From 5abea091a24f0f90fab2b45ed8899abeb0a8896e Mon Sep 17 00:00:00 2001 From: blendonl Date: Wed, 9 Sep 2026 03:46:25 +0200 Subject: [PATCH 1/6] test(backend): cover the total calculator edge cases and the family role matrix Extend the expense total calculator suite with the discount divergence the web app and the backend disagreed on, zero and equal-to-price discounts, fractional quantities and the rounding behaviour callers rely on. Add a role matrix that drives the real FamilyScopeGuard over the real family route metadata, asserting every OWNER/ADMIN/MEMBER cell for invite, remove, leave, approve, reject and invitation cancel, including the rule that an approver may not be the submitter. --- .../generated/generated/prisma/browser.ts | 184 + .../generated/generated/prisma/client.ts | 204 + .../generated/prisma/commonInputTypes.ts | 916 +++ .../generated/generated/prisma/enums.ts | 110 + .../generated/prisma/internal/class.ts | 520 ++ .../prisma/internal/prismaNamespace.ts | 3840 ++++++++++++ .../prisma/internal/prismaNamespaceBrowser.ts | 597 ++ .../generated/generated/prisma/models.ts | 44 + .../generated/prisma/models/Account.ts | 1642 ++++++ .../generated/prisma/models/Basket.ts | 1681 ++++++ .../generated/prisma/models/BasketItem.ts | 1750 ++++++ .../generated/prisma/models/DeviceToken.ts | 1515 +++++ .../generated/prisma/models/Expense.ts | 1935 +++++++ .../prisma/models/ExpenseCategory.ts | 1798 ++++++ .../generated/prisma/models/ExpenseItem.ts | 1639 ++++++ .../generated/prisma/models/Family.ts | 2029 +++++++ .../prisma/models/FamilyInvitation.ts | 1791 ++++++ .../generated/prisma/models/FamilyMember.ts | 1637 ++++++ .../generated/prisma/models/Income.ts | 1470 +++++ .../generated/prisma/models/IncomeCategory.ts | 1747 ++++++ .../generated/generated/prisma/models/Item.ts | 1768 ++++++ .../generated/prisma/models/ItemCategory.ts | 1883 ++++++ .../generated/prisma/models/ItemSize.ts | 1426 +++++ .../generated/prisma/models/Notification.ts | 2242 +++++++ .../prisma/models/NotificationPreference.ts | 1476 +++++ .../generated/prisma/models/PaymentMethod.ts | 1689 ++++++ .../generated/prisma/models/Receipt.ts | 1911 ++++++ .../generated/prisma/models/Session.ts | 1445 +++++ .../generated/prisma/models/Store.ts | 1565 +++++ .../generated/prisma/models/StoreItem.ts | 2003 +++++++ .../prisma/models/StoreItemDiscount.ts | 1454 +++++ .../generated/prisma/models/Transaction.ts | 2471 ++++++++ .../generated/generated/prisma/models/User.ts | 5155 +++++++++++++++++ .../prisma/models/UserExpenseCategory.ts | 1425 +++++ .../prisma/models/UserIncomeCategory.ts | 1425 +++++ .../generated/prisma/models/UserItem.ts | 1425 +++++ .../prisma/models/UserItemCategory.ts | 1425 +++++ .../generated/prisma/models/UserStore.ts | 1425 +++++ .../generated/prisma/models/UserStoreItem.ts | 1425 +++++ .../generated/prisma/models/Verification.ts | 1178 ++++ .../prisma/models/WebPushSubscription.ts | 1515 +++++ .../services/expense-total.calculator.spec.ts | 176 + .../controllers/family-role-matrix.spec.ts | 309 + plans/backend-review-2026-09-09.md | 548 ++ 44 files changed, 65813 insertions(+) create mode 100644 apps/backend/prisma/generated/generated/prisma/browser.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/client.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/commonInputTypes.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/enums.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/internal/class.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/internal/prismaNamespace.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/internal/prismaNamespaceBrowser.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/Account.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/Basket.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/BasketItem.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/DeviceToken.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/Expense.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/ExpenseCategory.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/ExpenseItem.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/Family.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/FamilyInvitation.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/FamilyMember.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/Income.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/IncomeCategory.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/Item.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/ItemCategory.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/ItemSize.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/Notification.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/NotificationPreference.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/PaymentMethod.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/Receipt.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/Session.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/Store.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/StoreItem.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/StoreItemDiscount.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/Transaction.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/User.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/UserExpenseCategory.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/UserIncomeCategory.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/UserItem.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/UserItemCategory.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/UserStore.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/UserStoreItem.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/Verification.ts create mode 100644 apps/backend/prisma/generated/generated/prisma/models/WebPushSubscription.ts create mode 100644 apps/backend/src/feature/family/rest/controllers/family-role-matrix.spec.ts create mode 100644 plans/backend-review-2026-09-09.md diff --git a/apps/backend/prisma/generated/generated/prisma/browser.ts b/apps/backend/prisma/generated/generated/prisma/browser.ts new file mode 100644 index 00000000..e292a227 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/browser.ts @@ -0,0 +1,184 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file should be your main import to use Prisma-related types and utilities in a browser. + * Use it to get access to models, enums, and input types. + * + * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only. + * See `client.ts` for the standard, server-side entry point. + * + * 🟢 You can import this file directly. + */ + +import * as Prisma from './internal/prismaNamespaceBrowser' +export { Prisma } +export * as $Enums from './enums' +export * from './enums'; +/** + * Model Account + * + */ +export type Account = Prisma.AccountModel +/** + * Model Session + * + */ +export type Session = Prisma.SessionModel +/** + * Model Verification + * + */ +export type Verification = Prisma.VerificationModel +/** + * Model Basket + * + */ +export type Basket = Prisma.BasketModel +/** + * Model BasketItem + * + */ +export type BasketItem = Prisma.BasketItemModel +/** + * Model ExpenseItem + * + */ +export type ExpenseItem = Prisma.ExpenseItemModel +/** + * Model Expense + * + */ +export type Expense = Prisma.ExpenseModel +/** + * Model ExpenseCategory + * + */ +export type ExpenseCategory = Prisma.ExpenseCategoryModel +/** + * Model UserExpenseCategory + * + */ +export type UserExpenseCategory = Prisma.UserExpenseCategoryModel +/** + * Model Family + * + */ +export type Family = Prisma.FamilyModel +/** + * Model FamilyMember + * + */ +export type FamilyMember = Prisma.FamilyMemberModel +/** + * Model FamilyInvitation + * + */ +export type FamilyInvitation = Prisma.FamilyInvitationModel +/** + * Model Income + * + */ +export type Income = Prisma.IncomeModel +/** + * Model IncomeCategory + * + */ +export type IncomeCategory = Prisma.IncomeCategoryModel +/** + * Model UserIncomeCategory + * + */ +export type UserIncomeCategory = Prisma.UserIncomeCategoryModel +/** + * Model Notification + * + */ +export type Notification = Prisma.NotificationModel +/** + * Model NotificationPreference + * + */ +export type NotificationPreference = Prisma.NotificationPreferenceModel +/** + * Model DeviceToken + * + */ +export type DeviceToken = Prisma.DeviceTokenModel +/** + * Model WebPushSubscription + * + */ +export type WebPushSubscription = Prisma.WebPushSubscriptionModel +/** + * Model PaymentMethod + * + */ +export type PaymentMethod = Prisma.PaymentMethodModel +/** + * Model Receipt + * + */ +export type Receipt = Prisma.ReceiptModel +/** + * Model User + * + */ +export type User = Prisma.UserModel +/** + * Model Store + * + */ +export type Store = Prisma.StoreModel +/** + * Model Item + * + */ +export type Item = Prisma.ItemModel +/** + * Model StoreItem + * + */ +export type StoreItem = Prisma.StoreItemModel +/** + * Model ItemSize + * + */ +export type ItemSize = Prisma.ItemSizeModel +/** + * Model StoreItemDiscount + * + */ +export type StoreItemDiscount = Prisma.StoreItemDiscountModel +/** + * Model ItemCategory + * + */ +export type ItemCategory = Prisma.ItemCategoryModel +/** + * Model UserStore + * + */ +export type UserStore = Prisma.UserStoreModel +/** + * Model UserItem + * + */ +export type UserItem = Prisma.UserItemModel +/** + * Model UserStoreItem + * + */ +export type UserStoreItem = Prisma.UserStoreItemModel +/** + * Model UserItemCategory + * + */ +export type UserItemCategory = Prisma.UserItemCategoryModel +/** + * Model Transaction + * + */ +export type Transaction = Prisma.TransactionModel diff --git a/apps/backend/prisma/generated/generated/prisma/client.ts b/apps/backend/prisma/generated/generated/prisma/client.ts new file mode 100644 index 00000000..fa9bcf05 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/client.ts @@ -0,0 +1,204 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types. + * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead. + * + * 🟢 You can import this file directly. + */ + +import * as process from 'node:process' +import * as path from 'node:path' + +import * as runtime from "@prisma/client/runtime/client" +import * as $Enums from "./enums" +import * as $Class from "./internal/class" +import * as Prisma from "./internal/prismaNamespace" + +export * as $Enums from './enums' +export * from "./enums" +/** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // Fetch zero or more Accounts + * const accounts = await prisma.account.findMany() + * ``` + * + * Read more in our [docs](https://pris.ly/d/client). + */ +export const PrismaClient = $Class.getPrismaClientClass() +export type PrismaClient = $Class.PrismaClient +export { Prisma } + +/** + * Model Account + * + */ +export type Account = Prisma.AccountModel +/** + * Model Session + * + */ +export type Session = Prisma.SessionModel +/** + * Model Verification + * + */ +export type Verification = Prisma.VerificationModel +/** + * Model Basket + * + */ +export type Basket = Prisma.BasketModel +/** + * Model BasketItem + * + */ +export type BasketItem = Prisma.BasketItemModel +/** + * Model ExpenseItem + * + */ +export type ExpenseItem = Prisma.ExpenseItemModel +/** + * Model Expense + * + */ +export type Expense = Prisma.ExpenseModel +/** + * Model ExpenseCategory + * + */ +export type ExpenseCategory = Prisma.ExpenseCategoryModel +/** + * Model UserExpenseCategory + * + */ +export type UserExpenseCategory = Prisma.UserExpenseCategoryModel +/** + * Model Family + * + */ +export type Family = Prisma.FamilyModel +/** + * Model FamilyMember + * + */ +export type FamilyMember = Prisma.FamilyMemberModel +/** + * Model FamilyInvitation + * + */ +export type FamilyInvitation = Prisma.FamilyInvitationModel +/** + * Model Income + * + */ +export type Income = Prisma.IncomeModel +/** + * Model IncomeCategory + * + */ +export type IncomeCategory = Prisma.IncomeCategoryModel +/** + * Model UserIncomeCategory + * + */ +export type UserIncomeCategory = Prisma.UserIncomeCategoryModel +/** + * Model Notification + * + */ +export type Notification = Prisma.NotificationModel +/** + * Model NotificationPreference + * + */ +export type NotificationPreference = Prisma.NotificationPreferenceModel +/** + * Model DeviceToken + * + */ +export type DeviceToken = Prisma.DeviceTokenModel +/** + * Model WebPushSubscription + * + */ +export type WebPushSubscription = Prisma.WebPushSubscriptionModel +/** + * Model PaymentMethod + * + */ +export type PaymentMethod = Prisma.PaymentMethodModel +/** + * Model Receipt + * + */ +export type Receipt = Prisma.ReceiptModel +/** + * Model User + * + */ +export type User = Prisma.UserModel +/** + * Model Store + * + */ +export type Store = Prisma.StoreModel +/** + * Model Item + * + */ +export type Item = Prisma.ItemModel +/** + * Model StoreItem + * + */ +export type StoreItem = Prisma.StoreItemModel +/** + * Model ItemSize + * + */ +export type ItemSize = Prisma.ItemSizeModel +/** + * Model StoreItemDiscount + * + */ +export type StoreItemDiscount = Prisma.StoreItemDiscountModel +/** + * Model ItemCategory + * + */ +export type ItemCategory = Prisma.ItemCategoryModel +/** + * Model UserStore + * + */ +export type UserStore = Prisma.UserStoreModel +/** + * Model UserItem + * + */ +export type UserItem = Prisma.UserItemModel +/** + * Model UserStoreItem + * + */ +export type UserStoreItem = Prisma.UserStoreItemModel +/** + * Model UserItemCategory + * + */ +export type UserItemCategory = Prisma.UserItemCategoryModel +/** + * Model Transaction + * + */ +export type Transaction = Prisma.TransactionModel diff --git a/apps/backend/prisma/generated/generated/prisma/commonInputTypes.ts b/apps/backend/prisma/generated/generated/prisma/commonInputTypes.ts new file mode 100644 index 00000000..4a15042b --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/commonInputTypes.ts @@ -0,0 +1,916 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports various common sort, input & filter types that are not directly linked to a particular model. + * + * 🟢 You can import this file directly. + */ + +import type * as runtime from "@prisma/client/runtime/client" +import * as $Enums from "./enums" +import type * as Prisma from "./internal/prismaNamespace" + + +export type StringFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringFilter<$PrismaModel> | string +} + +export type StringNullableFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null +} + +export type DateTimeNullableFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null +} + +export type DateTimeFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string +} + +export type SortOrderInput = { + sort: Prisma.SortOrder + nulls?: Prisma.NullsOrder +} + +export type StringWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedStringNullableFilter<$PrismaModel> + _max?: Prisma.NestedStringNullableFilter<$PrismaModel> +} + +export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> +} + +export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeFilter<$PrismaModel> +} + +export type EnumBasketScopeFilter<$PrismaModel = never> = { + equals?: $Enums.BasketScope | Prisma.EnumBasketScopeFieldRefInput<$PrismaModel> + in?: $Enums.BasketScope[] | Prisma.ListEnumBasketScopeFieldRefInput<$PrismaModel> + notIn?: $Enums.BasketScope[] | Prisma.ListEnumBasketScopeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumBasketScopeFilter<$PrismaModel> | $Enums.BasketScope +} + +export type EnumBasketScopeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.BasketScope | Prisma.EnumBasketScopeFieldRefInput<$PrismaModel> + in?: $Enums.BasketScope[] | Prisma.ListEnumBasketScopeFieldRefInput<$PrismaModel> + notIn?: $Enums.BasketScope[] | Prisma.ListEnumBasketScopeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumBasketScopeWithAggregatesFilter<$PrismaModel> | $Enums.BasketScope + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumBasketScopeFilter<$PrismaModel> + _max?: Prisma.NestedEnumBasketScopeFilter<$PrismaModel> +} + +export type DecimalFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type DecimalNullableFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> | null + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> | null + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type DecimalWithAggregatesFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedDecimalFilter<$PrismaModel> + _sum?: Prisma.NestedDecimalFilter<$PrismaModel> + _min?: Prisma.NestedDecimalFilter<$PrismaModel> + _max?: Prisma.NestedDecimalFilter<$PrismaModel> +} + +export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> | null + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> | null + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _sum?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _min?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _max?: Prisma.NestedDecimalNullableFilter<$PrismaModel> +} + +export type BoolFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean +} + +export type BoolWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedBoolFilter<$PrismaModel> + _max?: Prisma.NestedBoolFilter<$PrismaModel> +} + +export type EnumFamilyMemberRoleFilter<$PrismaModel = never> = { + equals?: $Enums.FamilyMemberRole | Prisma.EnumFamilyMemberRoleFieldRefInput<$PrismaModel> + in?: $Enums.FamilyMemberRole[] | Prisma.ListEnumFamilyMemberRoleFieldRefInput<$PrismaModel> + notIn?: $Enums.FamilyMemberRole[] | Prisma.ListEnumFamilyMemberRoleFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumFamilyMemberRoleFilter<$PrismaModel> | $Enums.FamilyMemberRole +} + +export type EnumFamilyMemberRoleWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.FamilyMemberRole | Prisma.EnumFamilyMemberRoleFieldRefInput<$PrismaModel> + in?: $Enums.FamilyMemberRole[] | Prisma.ListEnumFamilyMemberRoleFieldRefInput<$PrismaModel> + notIn?: $Enums.FamilyMemberRole[] | Prisma.ListEnumFamilyMemberRoleFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumFamilyMemberRoleWithAggregatesFilter<$PrismaModel> | $Enums.FamilyMemberRole + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumFamilyMemberRoleFilter<$PrismaModel> + _max?: Prisma.NestedEnumFamilyMemberRoleFilter<$PrismaModel> +} + +export type EnumFamilyInvitationStatusFilter<$PrismaModel = never> = { + equals?: $Enums.FamilyInvitationStatus | Prisma.EnumFamilyInvitationStatusFieldRefInput<$PrismaModel> + in?: $Enums.FamilyInvitationStatus[] | Prisma.ListEnumFamilyInvitationStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.FamilyInvitationStatus[] | Prisma.ListEnumFamilyInvitationStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumFamilyInvitationStatusFilter<$PrismaModel> | $Enums.FamilyInvitationStatus +} + +export type EnumFamilyInvitationStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.FamilyInvitationStatus | Prisma.EnumFamilyInvitationStatusFieldRefInput<$PrismaModel> + in?: $Enums.FamilyInvitationStatus[] | Prisma.ListEnumFamilyInvitationStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.FamilyInvitationStatus[] | Prisma.ListEnumFamilyInvitationStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumFamilyInvitationStatusWithAggregatesFilter<$PrismaModel> | $Enums.FamilyInvitationStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumFamilyInvitationStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumFamilyInvitationStatusFilter<$PrismaModel> +} + +export type EnumNotificationTypeFilter<$PrismaModel = never> = { + equals?: $Enums.NotificationType | Prisma.EnumNotificationTypeFieldRefInput<$PrismaModel> + in?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumNotificationTypeFilter<$PrismaModel> | $Enums.NotificationType +} + +export type EnumNotificationPriorityFilter<$PrismaModel = never> = { + equals?: $Enums.NotificationPriority | Prisma.EnumNotificationPriorityFieldRefInput<$PrismaModel> + in?: $Enums.NotificationPriority[] | Prisma.ListEnumNotificationPriorityFieldRefInput<$PrismaModel> + notIn?: $Enums.NotificationPriority[] | Prisma.ListEnumNotificationPriorityFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumNotificationPriorityFilter<$PrismaModel> | $Enums.NotificationPriority +} + +export type JsonNullableFilter<$PrismaModel = never> = +| Prisma.PatchUndefined< + Prisma.Either>, Exclude>, 'path'>>, + Required> + > +| Prisma.OptionalFlat>, 'path'>> + +export type JsonNullableFilterBase<$PrismaModel = never> = { + equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter + path?: string[] + mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> + string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter +} + +export type EnumNotificationTypeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.NotificationType | Prisma.EnumNotificationTypeFieldRefInput<$PrismaModel> + in?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumNotificationTypeWithAggregatesFilter<$PrismaModel> | $Enums.NotificationType + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumNotificationTypeFilter<$PrismaModel> + _max?: Prisma.NestedEnumNotificationTypeFilter<$PrismaModel> +} + +export type EnumNotificationPriorityWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.NotificationPriority | Prisma.EnumNotificationPriorityFieldRefInput<$PrismaModel> + in?: $Enums.NotificationPriority[] | Prisma.ListEnumNotificationPriorityFieldRefInput<$PrismaModel> + notIn?: $Enums.NotificationPriority[] | Prisma.ListEnumNotificationPriorityFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumNotificationPriorityWithAggregatesFilter<$PrismaModel> | $Enums.NotificationPriority + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumNotificationPriorityFilter<$PrismaModel> + _max?: Prisma.NestedEnumNotificationPriorityFilter<$PrismaModel> +} + +export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = +| Prisma.PatchUndefined< + Prisma.Either>, Exclude>, 'path'>>, + Required> + > +| Prisma.OptionalFlat>, 'path'>> + +export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = { + equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter + path?: string[] + mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> + string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedJsonNullableFilter<$PrismaModel> + _max?: Prisma.NestedJsonNullableFilter<$PrismaModel> +} + +export type JsonFilter<$PrismaModel = never> = +| Prisma.PatchUndefined< + Prisma.Either>, Exclude>, 'path'>>, + Required> + > +| Prisma.OptionalFlat>, 'path'>> + +export type JsonFilterBase<$PrismaModel = never> = { + equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter + path?: string[] + mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> + string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter +} + +export type JsonWithAggregatesFilter<$PrismaModel = never> = +| Prisma.PatchUndefined< + Prisma.Either>, Exclude>, 'path'>>, + Required> + > +| Prisma.OptionalFlat>, 'path'>> + +export type JsonWithAggregatesFilterBase<$PrismaModel = never> = { + equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter + path?: string[] + mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> + string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedJsonFilter<$PrismaModel> + _max?: Prisma.NestedJsonFilter<$PrismaModel> +} + +export type EnumPaymentMethodTypeFilter<$PrismaModel = never> = { + equals?: $Enums.PaymentMethodType | Prisma.EnumPaymentMethodTypeFieldRefInput<$PrismaModel> + in?: $Enums.PaymentMethodType[] | Prisma.ListEnumPaymentMethodTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.PaymentMethodType[] | Prisma.ListEnumPaymentMethodTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel> | $Enums.PaymentMethodType +} + +export type EnumPaymentMethodTypeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.PaymentMethodType | Prisma.EnumPaymentMethodTypeFieldRefInput<$PrismaModel> + in?: $Enums.PaymentMethodType[] | Prisma.ListEnumPaymentMethodTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.PaymentMethodType[] | Prisma.ListEnumPaymentMethodTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumPaymentMethodTypeWithAggregatesFilter<$PrismaModel> | $Enums.PaymentMethodType + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel> + _max?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel> +} + +export type IntFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntFilter<$PrismaModel> | number +} + +export type IntWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedIntFilter<$PrismaModel> + _max?: Prisma.NestedIntFilter<$PrismaModel> +} + +export type EnumTransactionScopeFilter<$PrismaModel = never> = { + equals?: $Enums.TransactionScope | Prisma.EnumTransactionScopeFieldRefInput<$PrismaModel> + in?: $Enums.TransactionScope[] | Prisma.ListEnumTransactionScopeFieldRefInput<$PrismaModel> + notIn?: $Enums.TransactionScope[] | Prisma.ListEnumTransactionScopeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTransactionScopeFilter<$PrismaModel> | $Enums.TransactionScope +} + +export type EnumTransactionTypeFilter<$PrismaModel = never> = { + equals?: $Enums.TransactionType | Prisma.EnumTransactionTypeFieldRefInput<$PrismaModel> + in?: $Enums.TransactionType[] | Prisma.ListEnumTransactionTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.TransactionType[] | Prisma.ListEnumTransactionTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTransactionTypeFilter<$PrismaModel> | $Enums.TransactionType +} + +export type EnumTransactionStatusFilter<$PrismaModel = never> = { + equals?: $Enums.TransactionStatus | Prisma.EnumTransactionStatusFieldRefInput<$PrismaModel> + in?: $Enums.TransactionStatus[] | Prisma.ListEnumTransactionStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.TransactionStatus[] | Prisma.ListEnumTransactionStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTransactionStatusFilter<$PrismaModel> | $Enums.TransactionStatus +} + +export type EnumTransactionScopeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.TransactionScope | Prisma.EnumTransactionScopeFieldRefInput<$PrismaModel> + in?: $Enums.TransactionScope[] | Prisma.ListEnumTransactionScopeFieldRefInput<$PrismaModel> + notIn?: $Enums.TransactionScope[] | Prisma.ListEnumTransactionScopeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTransactionScopeWithAggregatesFilter<$PrismaModel> | $Enums.TransactionScope + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumTransactionScopeFilter<$PrismaModel> + _max?: Prisma.NestedEnumTransactionScopeFilter<$PrismaModel> +} + +export type EnumTransactionTypeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.TransactionType | Prisma.EnumTransactionTypeFieldRefInput<$PrismaModel> + in?: $Enums.TransactionType[] | Prisma.ListEnumTransactionTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.TransactionType[] | Prisma.ListEnumTransactionTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTransactionTypeWithAggregatesFilter<$PrismaModel> | $Enums.TransactionType + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumTransactionTypeFilter<$PrismaModel> + _max?: Prisma.NestedEnumTransactionTypeFilter<$PrismaModel> +} + +export type EnumTransactionStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.TransactionStatus | Prisma.EnumTransactionStatusFieldRefInput<$PrismaModel> + in?: $Enums.TransactionStatus[] | Prisma.ListEnumTransactionStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.TransactionStatus[] | Prisma.ListEnumTransactionStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTransactionStatusWithAggregatesFilter<$PrismaModel> | $Enums.TransactionStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumTransactionStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumTransactionStatusFilter<$PrismaModel> +} + +export type NestedStringFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringFilter<$PrismaModel> | string +} + +export type NestedStringNullableFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null +} + +export type NestedDateTimeNullableFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null +} + +export type NestedDateTimeFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string +} + +export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type NestedIntFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntFilter<$PrismaModel> | number +} + +export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedStringNullableFilter<$PrismaModel> + _max?: Prisma.NestedStringNullableFilter<$PrismaModel> +} + +export type NestedIntNullableFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null +} + +export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> +} + +export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeFilter<$PrismaModel> +} + +export type NestedEnumBasketScopeFilter<$PrismaModel = never> = { + equals?: $Enums.BasketScope | Prisma.EnumBasketScopeFieldRefInput<$PrismaModel> + in?: $Enums.BasketScope[] | Prisma.ListEnumBasketScopeFieldRefInput<$PrismaModel> + notIn?: $Enums.BasketScope[] | Prisma.ListEnumBasketScopeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumBasketScopeFilter<$PrismaModel> | $Enums.BasketScope +} + +export type NestedEnumBasketScopeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.BasketScope | Prisma.EnumBasketScopeFieldRefInput<$PrismaModel> + in?: $Enums.BasketScope[] | Prisma.ListEnumBasketScopeFieldRefInput<$PrismaModel> + notIn?: $Enums.BasketScope[] | Prisma.ListEnumBasketScopeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumBasketScopeWithAggregatesFilter<$PrismaModel> | $Enums.BasketScope + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumBasketScopeFilter<$PrismaModel> + _max?: Prisma.NestedEnumBasketScopeFilter<$PrismaModel> +} + +export type NestedDecimalFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type NestedDecimalNullableFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> | null + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> | null + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedDecimalFilter<$PrismaModel> + _sum?: Prisma.NestedDecimalFilter<$PrismaModel> + _min?: Prisma.NestedDecimalFilter<$PrismaModel> + _max?: Prisma.NestedDecimalFilter<$PrismaModel> +} + +export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> | null + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> | null + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _sum?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _min?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _max?: Prisma.NestedDecimalNullableFilter<$PrismaModel> +} + +export type NestedBoolFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean +} + +export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedBoolFilter<$PrismaModel> + _max?: Prisma.NestedBoolFilter<$PrismaModel> +} + +export type NestedEnumFamilyMemberRoleFilter<$PrismaModel = never> = { + equals?: $Enums.FamilyMemberRole | Prisma.EnumFamilyMemberRoleFieldRefInput<$PrismaModel> + in?: $Enums.FamilyMemberRole[] | Prisma.ListEnumFamilyMemberRoleFieldRefInput<$PrismaModel> + notIn?: $Enums.FamilyMemberRole[] | Prisma.ListEnumFamilyMemberRoleFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumFamilyMemberRoleFilter<$PrismaModel> | $Enums.FamilyMemberRole +} + +export type NestedEnumFamilyMemberRoleWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.FamilyMemberRole | Prisma.EnumFamilyMemberRoleFieldRefInput<$PrismaModel> + in?: $Enums.FamilyMemberRole[] | Prisma.ListEnumFamilyMemberRoleFieldRefInput<$PrismaModel> + notIn?: $Enums.FamilyMemberRole[] | Prisma.ListEnumFamilyMemberRoleFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumFamilyMemberRoleWithAggregatesFilter<$PrismaModel> | $Enums.FamilyMemberRole + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumFamilyMemberRoleFilter<$PrismaModel> + _max?: Prisma.NestedEnumFamilyMemberRoleFilter<$PrismaModel> +} + +export type NestedEnumFamilyInvitationStatusFilter<$PrismaModel = never> = { + equals?: $Enums.FamilyInvitationStatus | Prisma.EnumFamilyInvitationStatusFieldRefInput<$PrismaModel> + in?: $Enums.FamilyInvitationStatus[] | Prisma.ListEnumFamilyInvitationStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.FamilyInvitationStatus[] | Prisma.ListEnumFamilyInvitationStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumFamilyInvitationStatusFilter<$PrismaModel> | $Enums.FamilyInvitationStatus +} + +export type NestedEnumFamilyInvitationStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.FamilyInvitationStatus | Prisma.EnumFamilyInvitationStatusFieldRefInput<$PrismaModel> + in?: $Enums.FamilyInvitationStatus[] | Prisma.ListEnumFamilyInvitationStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.FamilyInvitationStatus[] | Prisma.ListEnumFamilyInvitationStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumFamilyInvitationStatusWithAggregatesFilter<$PrismaModel> | $Enums.FamilyInvitationStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumFamilyInvitationStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumFamilyInvitationStatusFilter<$PrismaModel> +} + +export type NestedEnumNotificationTypeFilter<$PrismaModel = never> = { + equals?: $Enums.NotificationType | Prisma.EnumNotificationTypeFieldRefInput<$PrismaModel> + in?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumNotificationTypeFilter<$PrismaModel> | $Enums.NotificationType +} + +export type NestedEnumNotificationPriorityFilter<$PrismaModel = never> = { + equals?: $Enums.NotificationPriority | Prisma.EnumNotificationPriorityFieldRefInput<$PrismaModel> + in?: $Enums.NotificationPriority[] | Prisma.ListEnumNotificationPriorityFieldRefInput<$PrismaModel> + notIn?: $Enums.NotificationPriority[] | Prisma.ListEnumNotificationPriorityFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumNotificationPriorityFilter<$PrismaModel> | $Enums.NotificationPriority +} + +export type NestedEnumNotificationTypeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.NotificationType | Prisma.EnumNotificationTypeFieldRefInput<$PrismaModel> + in?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumNotificationTypeWithAggregatesFilter<$PrismaModel> | $Enums.NotificationType + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumNotificationTypeFilter<$PrismaModel> + _max?: Prisma.NestedEnumNotificationTypeFilter<$PrismaModel> +} + +export type NestedEnumNotificationPriorityWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.NotificationPriority | Prisma.EnumNotificationPriorityFieldRefInput<$PrismaModel> + in?: $Enums.NotificationPriority[] | Prisma.ListEnumNotificationPriorityFieldRefInput<$PrismaModel> + notIn?: $Enums.NotificationPriority[] | Prisma.ListEnumNotificationPriorityFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumNotificationPriorityWithAggregatesFilter<$PrismaModel> | $Enums.NotificationPriority + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumNotificationPriorityFilter<$PrismaModel> + _max?: Prisma.NestedEnumNotificationPriorityFilter<$PrismaModel> +} + +export type NestedJsonNullableFilter<$PrismaModel = never> = +| Prisma.PatchUndefined< + Prisma.Either>, Exclude>, 'path'>>, + Required> + > +| Prisma.OptionalFlat>, 'path'>> + +export type NestedJsonNullableFilterBase<$PrismaModel = never> = { + equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter + path?: string[] + mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> + string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter +} + +export type NestedJsonFilter<$PrismaModel = never> = +| Prisma.PatchUndefined< + Prisma.Either>, Exclude>, 'path'>>, + Required> + > +| Prisma.OptionalFlat>, 'path'>> + +export type NestedJsonFilterBase<$PrismaModel = never> = { + equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter + path?: string[] + mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> + string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter +} + +export type NestedEnumPaymentMethodTypeFilter<$PrismaModel = never> = { + equals?: $Enums.PaymentMethodType | Prisma.EnumPaymentMethodTypeFieldRefInput<$PrismaModel> + in?: $Enums.PaymentMethodType[] | Prisma.ListEnumPaymentMethodTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.PaymentMethodType[] | Prisma.ListEnumPaymentMethodTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel> | $Enums.PaymentMethodType +} + +export type NestedEnumPaymentMethodTypeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.PaymentMethodType | Prisma.EnumPaymentMethodTypeFieldRefInput<$PrismaModel> + in?: $Enums.PaymentMethodType[] | Prisma.ListEnumPaymentMethodTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.PaymentMethodType[] | Prisma.ListEnumPaymentMethodTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumPaymentMethodTypeWithAggregatesFilter<$PrismaModel> | $Enums.PaymentMethodType + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel> + _max?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel> +} + +export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedIntFilter<$PrismaModel> + _max?: Prisma.NestedIntFilter<$PrismaModel> +} + +export type NestedFloatFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatFilter<$PrismaModel> | number +} + +export type NestedEnumTransactionScopeFilter<$PrismaModel = never> = { + equals?: $Enums.TransactionScope | Prisma.EnumTransactionScopeFieldRefInput<$PrismaModel> + in?: $Enums.TransactionScope[] | Prisma.ListEnumTransactionScopeFieldRefInput<$PrismaModel> + notIn?: $Enums.TransactionScope[] | Prisma.ListEnumTransactionScopeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTransactionScopeFilter<$PrismaModel> | $Enums.TransactionScope +} + +export type NestedEnumTransactionTypeFilter<$PrismaModel = never> = { + equals?: $Enums.TransactionType | Prisma.EnumTransactionTypeFieldRefInput<$PrismaModel> + in?: $Enums.TransactionType[] | Prisma.ListEnumTransactionTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.TransactionType[] | Prisma.ListEnumTransactionTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTransactionTypeFilter<$PrismaModel> | $Enums.TransactionType +} + +export type NestedEnumTransactionStatusFilter<$PrismaModel = never> = { + equals?: $Enums.TransactionStatus | Prisma.EnumTransactionStatusFieldRefInput<$PrismaModel> + in?: $Enums.TransactionStatus[] | Prisma.ListEnumTransactionStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.TransactionStatus[] | Prisma.ListEnumTransactionStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTransactionStatusFilter<$PrismaModel> | $Enums.TransactionStatus +} + +export type NestedEnumTransactionScopeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.TransactionScope | Prisma.EnumTransactionScopeFieldRefInput<$PrismaModel> + in?: $Enums.TransactionScope[] | Prisma.ListEnumTransactionScopeFieldRefInput<$PrismaModel> + notIn?: $Enums.TransactionScope[] | Prisma.ListEnumTransactionScopeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTransactionScopeWithAggregatesFilter<$PrismaModel> | $Enums.TransactionScope + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumTransactionScopeFilter<$PrismaModel> + _max?: Prisma.NestedEnumTransactionScopeFilter<$PrismaModel> +} + +export type NestedEnumTransactionTypeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.TransactionType | Prisma.EnumTransactionTypeFieldRefInput<$PrismaModel> + in?: $Enums.TransactionType[] | Prisma.ListEnumTransactionTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.TransactionType[] | Prisma.ListEnumTransactionTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTransactionTypeWithAggregatesFilter<$PrismaModel> | $Enums.TransactionType + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumTransactionTypeFilter<$PrismaModel> + _max?: Prisma.NestedEnumTransactionTypeFilter<$PrismaModel> +} + +export type NestedEnumTransactionStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.TransactionStatus | Prisma.EnumTransactionStatusFieldRefInput<$PrismaModel> + in?: $Enums.TransactionStatus[] | Prisma.ListEnumTransactionStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.TransactionStatus[] | Prisma.ListEnumTransactionStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTransactionStatusWithAggregatesFilter<$PrismaModel> | $Enums.TransactionStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumTransactionStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumTransactionStatusFilter<$PrismaModel> +} + + diff --git a/apps/backend/prisma/generated/generated/prisma/enums.ts b/apps/backend/prisma/generated/generated/prisma/enums.ts new file mode 100644 index 00000000..be7b80f6 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/enums.ts @@ -0,0 +1,110 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* +* This file exports all enum related types from the schema. +* +* 🟢 You can import this file directly. +*/ + +export const BasketScope = { + PERSONAL: 'PERSONAL', + FAMILY: 'FAMILY' +} as const + +export type BasketScope = (typeof BasketScope)[keyof typeof BasketScope] + + +export const FamilyMemberRole = { + OWNER: 'OWNER', + ADMIN: 'ADMIN', + MEMBER: 'MEMBER' +} as const + +export type FamilyMemberRole = (typeof FamilyMemberRole)[keyof typeof FamilyMemberRole] + + +export const FamilyInvitationStatus = { + PENDING: 'PENDING', + ACCEPTED: 'ACCEPTED', + REJECTED: 'REJECTED', + CANCELLED: 'CANCELLED' +} as const + +export type FamilyInvitationStatus = (typeof FamilyInvitationStatus)[keyof typeof FamilyInvitationStatus] + + +export const NotificationType = { + FAMILY_INVITATION_SENT: 'FAMILY_INVITATION_SENT', + FAMILY_INVITATION_RECEIVED: 'FAMILY_INVITATION_RECEIVED', + FAMILY_INVITATION_ACCEPTED: 'FAMILY_INVITATION_ACCEPTED', + FAMILY_INVITATION_DECLINED: 'FAMILY_INVITATION_DECLINED', + FAMILY_MEMBER_JOINED: 'FAMILY_MEMBER_JOINED', + FAMILY_MEMBER_LEFT: 'FAMILY_MEMBER_LEFT', + FAMILY_EXPENSE_CREATED: 'FAMILY_EXPENSE_CREATED', + FAMILY_INCOME_CREATED: 'FAMILY_INCOME_CREATED', + TRANSACTION_MILESTONE_BUDGET_ALERT: 'TRANSACTION_MILESTONE_BUDGET_ALERT', + TRANSACTION_MILESTONE_SPENDING_LIMIT: 'TRANSACTION_MILESTONE_SPENDING_LIMIT', + RECEIPT_PROCESSING_COMPLETE: 'RECEIPT_PROCESSING_COMPLETE', + BASKET_ITEM_ADDED: 'BASKET_ITEM_ADDED', + BASKET_ITEMS_BOUGHT: 'BASKET_ITEMS_BOUGHT', + TRANSACTION_PENDING_CREATED: 'TRANSACTION_PENDING_CREATED', + TRANSACTION_APPROVED: 'TRANSACTION_APPROVED', + TRANSACTION_REJECTED: 'TRANSACTION_REJECTED' +} as const + +export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType] + + +export const NotificationDeliveryMethod = { + PUSH: 'PUSH', + IN_APP: 'IN_APP', + TOAST: 'TOAST' +} as const + +export type NotificationDeliveryMethod = (typeof NotificationDeliveryMethod)[keyof typeof NotificationDeliveryMethod] + + +export const NotificationPriority = { + LOW: 'LOW', + MEDIUM: 'MEDIUM', + HIGH: 'HIGH', + URGENT: 'URGENT' +} as const + +export type NotificationPriority = (typeof NotificationPriority)[keyof typeof NotificationPriority] + + +export const PaymentMethodType = { + CASH: 'CASH', + DEBIT_CARD: 'DEBIT_CARD' +} as const + +export type PaymentMethodType = (typeof PaymentMethodType)[keyof typeof PaymentMethodType] + + +export const TransactionType = { + EXPENSE: 'EXPENSE', + INCOME: 'INCOME' +} as const + +export type TransactionType = (typeof TransactionType)[keyof typeof TransactionType] + + +export const TransactionStatus = { + CONFIRMED: 'CONFIRMED', + PENDING: 'PENDING', + REJECTED: 'REJECTED' +} as const + +export type TransactionStatus = (typeof TransactionStatus)[keyof typeof TransactionStatus] + + +export const TransactionScope = { + PERSONAL: 'PERSONAL', + FAMILY: 'FAMILY' +} as const + +export type TransactionScope = (typeof TransactionScope)[keyof typeof TransactionScope] diff --git a/apps/backend/prisma/generated/generated/prisma/internal/class.ts b/apps/backend/prisma/generated/generated/prisma/internal/class.ts new file mode 100644 index 00000000..9ff79f7a --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/internal/class.ts @@ -0,0 +1,520 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * 🛑 Under no circumstances should you import this file directly! 🛑 + * + * Please import the `PrismaClient` class from the `client.ts` file instead. + */ + +import * as runtime from "@prisma/client/runtime/client" +import type * as Prisma from "./prismaNamespace" + + +const config: runtime.GetPrismaClientConfig = { + "previewFeatures": [], + "clientVersion": "7.4.1", + "engineVersion": "55ae170b1ced7fc6ed07a15f110549408c501bb3", + "activeProvider": "postgresql", + "inlineSchema": "model Account {\n id String @id @default(uuid())\n userId String @map(\"user_id\")\n accountId String @map(\"account_id\")\n providerId String @map(\"provider_id\")\n accessToken String? @map(\"access_token\")\n refreshToken String? @map(\"refresh_token\")\n idToken String? @map(\"id_token\")\n accessTokenExpiresAt DateTime? @map(\"access_token_expires_at\")\n scope String?\n expiresAt DateTime? @map(\"expires_at\")\n password String?\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@unique([providerId, accountId])\n @@index([userId])\n @@map(\"accounts\")\n}\n\nmodel Session {\n id String @id @default(uuid())\n userId String @map(\"user_id\")\n expiresAt DateTime @map(\"expires_at\")\n token String @unique\n ipAddress String? @map(\"ip_address\")\n userAgent String? @map(\"user_agent\")\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@index([userId])\n @@index([token])\n @@map(\"sessions\")\n}\n\nmodel Verification {\n id String @id @default(uuid())\n identifier String\n value String\n expiresAt DateTime @map(\"expires_at\")\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@unique([identifier, value])\n @@map(\"verifications\")\n}\n\nenum BasketScope {\n PERSONAL\n FAMILY\n\n @@map(\"basket_scope\")\n}\n\nmodel Basket {\n id String @id @default(uuid())\n userId String @map(\"user_id\")\n familyId String? @map(\"family_id\")\n scope BasketScope @default(PERSONAL)\n\n items BasketItem[]\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n family Family? @relation(fields: [familyId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@unique([userId, scope], name: \"personal_basket\")\n @@unique([familyId, scope], name: \"family_basket\")\n @@index([userId])\n @@index([familyId])\n @@map(\"basket\")\n}\n\nmodel BasketItem {\n id String @id @default(uuid())\n basketId String @map(\"basket_id\")\n name String\n quantity Decimal @default(1)\n price Decimal?\n categoryId String? @map(\"category_id\")\n notes String?\n addedBy String @map(\"added_by\")\n\n basket Basket @relation(fields: [basketId], references: [id], onDelete: Cascade)\n category ItemCategory? @relation(fields: [categoryId], references: [id], onDelete: SetNull)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@index([basketId])\n @@map(\"basket_item\")\n}\n\nmodel ExpenseItem {\n id String @id @default(uuid())\n itemId String @map(\"item_id\")\n expenseId String @map(\"expense_id\")\n\n price Decimal\n discount Decimal\n quantity Decimal @default(1)\n\n item StoreItem @relation(fields: [itemId], references: [id])\n expense Expense @relation(fields: [expenseId], references: [id])\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@map(\"expense_item\")\n}\n\nmodel Expense {\n id String\n transactionId String @unique @map(\"transaction_id\")\n storeId String? @map(\"store_id\")\n categoryId String @map(\"category_id\")\n\n description String?\n category ExpenseCategory @relation(fields: [categoryId], references: [id])\n\n transaction Transaction @relation(fields: [transactionId], references: [id])\n store Store? @relation(fields: [storeId], references: [id])\n items ExpenseItem[]\n receipt Receipt?\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@id([id])\n @@map(\"expense\")\n}\n\nmodel ExpenseCategory {\n id String @id @default(uuid())\n parentId String? @map(\"parent_id\")\n\n name String @unique\n isConnectedToStore Boolean @default(false)\n\n parent ExpenseCategory? @relation(name: \"children\", fields: [parentId], references: [id])\n children ExpenseCategory[] @relation(name: \"children\")\n expenses Expense[]\n users UserExpenseCategory[]\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@map(\"expense_category\")\n}\n\nmodel UserExpenseCategory {\n id String @id @default(uuid())\n userId String @map(\"user_id\")\n categoryId String @map(\"category_id\")\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n category ExpenseCategory @relation(fields: [categoryId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n\n @@unique([userId, categoryId])\n @@index([userId])\n @@index([categoryId])\n @@map(\"user_expense_category\")\n}\n\nenum FamilyMemberRole {\n OWNER\n ADMIN\n MEMBER\n\n @@map(\"family_member_role\")\n}\n\nenum FamilyInvitationStatus {\n PENDING\n ACCEPTED\n REJECTED\n CANCELLED\n\n @@map(\"family_invitation_status\")\n}\n\nmodel Family {\n id String @id @default(uuid())\n name String\n\n // Cached balance for performance\n balance Decimal @default(0)\n\n members FamilyMember[]\n invitations FamilyInvitation[]\n transactions Transaction[]\n notifications Notification[]\n baskets Basket[]\n receipts Receipt[]\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@map(\"family\")\n}\n\nmodel FamilyMember {\n id String @id @default(uuid())\n familyId String @map(\"family_id\")\n userId String @map(\"user_id\")\n\n role FamilyMemberRole @default(MEMBER)\n\n // Individual balance within this family\n balance Decimal @default(0)\n\n family Family @relation(fields: [familyId], references: [id], onDelete: Cascade)\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n joinedAt DateTime @default(now()) @map(\"joined_at\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@unique([familyId, userId])\n @@index([userId])\n @@index([familyId])\n @@map(\"family_member\")\n}\n\nmodel FamilyInvitation {\n id String @id @default(uuid())\n familyId String @map(\"family_id\")\n\n // Inviter (family member sending the invite)\n inviterId String @map(\"inviter_id\")\n\n // Invitee (identified by email, linked to userId when they accept)\n inviteeId String? @map(\"invitee_id\")\n inviteeEmail String @map(\"invitee_email\")\n\n status FamilyInvitationStatus @default(PENDING)\n\n // Expiration for pending invitations (7 days default)\n expiresAt DateTime @map(\"expires_at\")\n\n family Family @relation(fields: [familyId], references: [id], onDelete: Cascade)\n inviter User @relation(name: \"sent_invitations\", fields: [inviterId], references: [id], onDelete: Cascade)\n invitee User? @relation(name: \"received_invitations\", fields: [inviteeId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@index([familyId])\n @@index([inviteeEmail])\n @@index([inviteeId])\n @@map(\"family_invitation\")\n}\n\nmodel Income {\n id String\n transactionId String @unique @map(\"transaction_id\")\n storeId String @map(\"store_id\")\n categoryId String @map(\"category_id\")\n\n category IncomeCategory @relation(fields: [categoryId], references: [id])\n transaction Transaction @relation(fields: [transactionId], references: [id])\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@id([id])\n @@map(\"income\")\n}\n\nmodel IncomeCategory {\n id String @id @default(uuid())\n parentId String? @map(\"parent_id\")\n\n name String @unique\n\n parent IncomeCategory? @relation(name: \"children\", fields: [parentId], references: [id])\n children IncomeCategory[] @relation(name: \"children\")\n incomes Income[]\n users UserIncomeCategory[]\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@map(\"income_category\")\n}\n\nmodel UserIncomeCategory {\n id String @id @default(uuid())\n userId String @map(\"user_id\")\n categoryId String @map(\"category_id\")\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n category IncomeCategory @relation(fields: [categoryId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n\n @@unique([userId, categoryId])\n @@index([userId])\n @@index([categoryId])\n @@map(\"user_income_category\")\n}\n\nenum NotificationType {\n FAMILY_INVITATION_SENT\n FAMILY_INVITATION_RECEIVED\n FAMILY_INVITATION_ACCEPTED\n FAMILY_INVITATION_DECLINED\n FAMILY_MEMBER_JOINED\n FAMILY_MEMBER_LEFT\n FAMILY_EXPENSE_CREATED\n FAMILY_INCOME_CREATED\n TRANSACTION_MILESTONE_BUDGET_ALERT\n TRANSACTION_MILESTONE_SPENDING_LIMIT\n RECEIPT_PROCESSING_COMPLETE\n BASKET_ITEM_ADDED\n BASKET_ITEMS_BOUGHT\n TRANSACTION_PENDING_CREATED\n TRANSACTION_APPROVED\n TRANSACTION_REJECTED\n\n @@map(\"notification_type\")\n}\n\nenum NotificationDeliveryMethod {\n PUSH\n IN_APP\n TOAST\n\n @@map(\"notification_delivery_method\")\n}\n\nenum NotificationPriority {\n LOW\n MEDIUM\n HIGH\n URGENT\n\n @@map(\"notification_priority\")\n}\n\nmodel Notification {\n id String @id @default(uuid())\n userId String @map(\"user_id\")\n\n type NotificationType\n priority NotificationPriority @default(MEDIUM)\n\n // Notification content\n title String\n message String\n data Json? // Additional metadata (familyId, transactionId, etc.)\n\n // Delivery tracking\n deliveryMethods NotificationDeliveryMethod[]\n\n // Read/interaction status\n isRead Boolean @default(false) @map(\"is_read\")\n readAt DateTime? @map(\"read_at\")\n isInteracted Boolean @default(false) @map(\"is_interacted\")\n interactedAt DateTime? @map(\"interacted_at\")\n\n // Deep linking\n actionUrl String? @map(\"action_url\") // e.g., \"family/invitations/123\"\n\n // Related entities (optional foreign keys for filtering)\n familyId String? @map(\"family_id\")\n transactionId String? @map(\"transaction_id\")\n invitationId String? @map(\"invitation_id\")\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n family Family? @relation(fields: [familyId], references: [id], onDelete: Cascade)\n transaction Transaction? @relation(fields: [transactionId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@index([userId])\n @@index([userId, isRead])\n @@index([familyId])\n @@index([type])\n @@index([createdAt])\n @@map(\"notification\")\n}\n\nmodel NotificationPreference {\n id String @id @default(uuid())\n userId String @unique @map(\"user_id\")\n\n // Global settings\n enablePushNotifications Boolean @default(true) @map(\"enable_push_notifications\")\n enableInAppNotifications Boolean @default(true) @map(\"enable_in_app_notifications\")\n enableToastNotifications Boolean @default(true) @map(\"enable_toast_notifications\")\n\n // Quiet hours\n quietHoursEnabled Boolean @default(false) @map(\"quiet_hours_enabled\")\n quietHoursStart DateTime? @map(\"quiet_hours_start\") // Store as time only\n quietHoursEnd DateTime? @map(\"quiet_hours_end\") // Store as time only\n\n // Per-type preferences (stored as JSON for flexibility)\n typePreferences Json @default(\"{}\") @map(\"type_preferences\")\n // Structure: { \"FAMILY_INVITATION_RECEIVED\": { \"push\": true, \"inApp\": true, \"toast\": true }, ... }\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@map(\"notification_preference\")\n}\n\nmodel DeviceToken {\n id String @id @default(uuid())\n userId String @map(\"user_id\")\n\n // Expo Push Token\n expoPushToken String @unique @map(\"expo_push_token\")\n platform String? // \"ios\" | \"android\" | \"web\"\n deviceId String? @map(\"device_id\") // Unique device identifier\n deviceName String? @map(\"device_name\") // e.g., \"John's iPhone\"\n\n // Token validity\n isActive Boolean @default(true) @map(\"is_active\")\n lastUsed DateTime @default(now()) @map(\"last_used\")\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@index([userId])\n @@index([expoPushToken])\n @@map(\"device_token\")\n}\n\nmodel WebPushSubscription {\n id String @id @default(uuid())\n userId String @map(\"user_id\")\n\n endpoint String @unique\n p256dh String\n auth String\n\n userAgent String? @map(\"user_agent\")\n isActive Boolean @default(true) @map(\"is_active\")\n lastUsed DateTime @default(now()) @map(\"last_used\")\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@index([userId])\n @@index([endpoint])\n @@map(\"web_push_subscription\")\n}\n\nenum PaymentMethodType {\n CASH\n DEBIT_CARD\n\n @@map(\"payment_method_type\")\n}\n\nmodel PaymentMethod {\n id String @id @default(uuid())\n userId String @map(\"user_id\")\n name String\n type PaymentMethodType @default(CASH)\n color String @default(\"#6366F1\")\n initialBalance Decimal @default(0) @map(\"initial_balance\")\n currentBalance Decimal @default(0) @map(\"current_balance\")\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n transactions Transaction[]\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@index([userId])\n @@map(\"payment_method\")\n}\n\nmodel Receipt {\n id String @id @default(uuid())\n userId String @map(\"user_id\")\n familyId String? @map(\"family_id\")\n expenseId String? @unique @map(\"expense_id\")\n fileName String @map(\"file_name\")\n originalName String @map(\"original_name\")\n mimeType String @map(\"mime_type\")\n fileSize Int @map(\"file_size\")\n storageKey String @map(\"storage_key\")\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n family Family? @relation(fields: [familyId], references: [id], onDelete: SetNull)\n expense Expense? @relation(fields: [expenseId], references: [id], onDelete: SetNull)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@index([userId])\n @@index([familyId])\n @@index([expenseId])\n @@map(\"receipt\")\n}\n\ngenerator client {\n provider = \"prisma-client\"\n output = \"../generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\nmodel User {\n id String @id @default(uuid())\n\n email String @unique\n name String @default(\"\")\n firstName String @default(\"\") @map(\"first_name\")\n lastName String @default(\"\") @map(\"last_name\")\n image String?\n balance Decimal @default(0)\n\n emailVerified Boolean @default(false) @map(\"email_verified\")\n\n transactions Transaction[]\n accounts Account[]\n sessions Session[]\n\n // Family relationships\n familyMemberships FamilyMember[]\n sentInvitations FamilyInvitation[] @relation(\"sent_invitations\")\n receivedInvitations FamilyInvitation[] @relation(\"received_invitations\")\n\n // Notification relationships\n notifications Notification[]\n notificationPreference NotificationPreference?\n deviceTokens DeviceToken[]\n webPushSubscriptions WebPushSubscription[]\n\n // Basket relationships\n baskets Basket[]\n\n // User-scoped entity relationships\n userExpenseCategories UserExpenseCategory[]\n userIncomeCategories UserIncomeCategory[]\n userStores UserStore[]\n userItems UserItem[]\n userStoreItems UserStoreItem[]\n userItemCategories UserItemCategory[]\n\n // Payment methods\n paymentMethods PaymentMethod[]\n\n // Receipts\n receipts Receipt[]\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@map(\"users\")\n}\n\nmodel Store {\n id String @id @default(uuid())\n\n name String\n location String\n\n items StoreItem[]\n expenses Expense[]\n users UserStore[]\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@map(\"store\")\n}\n\nmodel Item {\n id String @id @default(uuid())\n categoryId String @map(\"category_id\")\n\n name String @unique\n nameEn String? @map(\"name_en\")\n\n category ItemCategory @relation(fields: [categoryId], references: [id])\n stores StoreItem[]\n users UserItem[]\n sizes ItemSize[]\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@map(\"item\")\n}\n\nmodel StoreItem {\n id String @id @default(uuid())\n itemId String @map(\"item_id\")\n storeId String @map(\"store_id\")\n\n price Decimal\n isDiscounted Boolean @map(\"is_discounted\")\n\n store Store @relation(fields: [storeId], references: [id])\n item Item @relation(fields: [itemId], references: [id])\n discounts StoreItemDiscount[]\n expenses ExpenseItem[]\n users UserStoreItem[]\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@map(\"store_item\")\n}\n\nmodel ItemSize {\n id String @id @default(uuid())\n itemId String @map(\"item_id\")\n value Decimal\n unit String\n\n item Item @relation(fields: [itemId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@unique([itemId, value, unit])\n @@map(\"item_size\")\n}\n\nmodel StoreItemDiscount {\n id String @id\n storeItemId String @map(\"store_item_id\")\n\n discount Decimal\n startedAt DateTime @default(now()) @map(\"started_at\")\n endedAt DateTime? @map(\"ended_at\")\n\n storeItem StoreItem @relation(fields: [storeItemId], references: [id])\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@map(\"store_item_discount\")\n}\n\nmodel ItemCategory {\n id String @id @default(uuid())\n parentId String? @map(\"parent_id\")\n\n name String\n\n parent ItemCategory? @relation(name: \"children\", fields: [parentId], references: [id])\n children ItemCategory[] @relation(name: \"children\")\n items Item[]\n users UserItemCategory[]\n basketItems BasketItem[]\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@map(\"item_category\")\n}\n\nmodel UserStore {\n id String @id @default(uuid())\n userId String @map(\"user_id\")\n storeId String @map(\"store_id\")\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n store Store @relation(fields: [storeId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n\n @@unique([userId, storeId])\n @@index([userId])\n @@index([storeId])\n @@map(\"user_store\")\n}\n\nmodel UserItem {\n id String @id @default(uuid())\n userId String @map(\"user_id\")\n itemId String @map(\"item_id\")\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n item Item @relation(fields: [itemId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n\n @@unique([userId, itemId])\n @@index([userId])\n @@index([itemId])\n @@map(\"user_item\")\n}\n\nmodel UserStoreItem {\n id String @id @default(uuid())\n userId String @map(\"user_id\")\n storeItemId String @map(\"store_item_id\")\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n storeItem StoreItem @relation(fields: [storeItemId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n\n @@unique([userId, storeItemId])\n @@index([userId])\n @@index([storeItemId])\n @@map(\"user_store_item\")\n}\n\nmodel UserItemCategory {\n id String @id @default(uuid())\n userId String @map(\"user_id\")\n categoryId String @map(\"category_id\")\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n category ItemCategory @relation(fields: [categoryId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n\n @@unique([userId, categoryId])\n @@index([userId])\n @@index([categoryId])\n @@map(\"user_item_category\")\n}\n\nenum TransactionType {\n EXPENSE\n INCOME\n\n @@map(\"transaction_type\")\n}\n\nenum TransactionStatus {\n CONFIRMED\n PENDING\n REJECTED\n\n @@map(\"transaction_status\")\n}\n\nenum TransactionScope {\n PERSONAL\n FAMILY\n\n @@map(\"transaction_scope\")\n}\n\nmodel Transaction {\n id String @id @default(uuid())\n userId String @map(\"user_id\")\n\n // Family context\n familyId String? @map(\"family_id\")\n scope TransactionScope @default(PERSONAL)\n\n type TransactionType\n status TransactionStatus @default(CONFIRMED) @map(\"status\")\n value Decimal\n rejectionReason String? @map(\"rejection_reason\")\n\n recordedAt DateTime @default(now()) @map(\"recorded_at\")\n\n // Payment method\n paymentMethodId String? @map(\"payment_method_id\")\n paymentMethod PaymentMethod? @relation(fields: [paymentMethodId], references: [id], onDelete: SetNull)\n\n expense Expense?\n income Income?\n user User @relation(fields: [userId], references: [id])\n family Family? @relation(fields: [familyId], references: [id], onDelete: SetNull)\n notifications Notification[]\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n @@index([userId])\n @@index([familyId])\n @@index([paymentMethodId])\n @@index([scope])\n @@index([status])\n @@index([userId, status])\n @@map(\"transaction\")\n}\n", + "runtimeDataModel": { + "models": {}, + "enums": {}, + "types": {} + }, + "parameterizationSchema": { + "strings": [], + "graph": "" + } +} + +config.runtimeDataModel = JSON.parse("{\"models\":{\"Account\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"accountId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"account_id\"},{\"name\":\"providerId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"provider_id\"},{\"name\":\"accessToken\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"access_token\"},{\"name\":\"refreshToken\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"refresh_token\"},{\"name\":\"idToken\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"id_token\"},{\"name\":\"accessTokenExpiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"access_token_expires_at\"},{\"name\":\"scope\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"expires_at\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"AccountToUser\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"accounts\"},\"Session\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"expires_at\"},{\"name\":\"token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ipAddress\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"ip_address\"},{\"name\":\"userAgent\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_agent\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"SessionToUser\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"sessions\"},\"Verification\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"identifier\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"value\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"expires_at\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"verifications\"},\"Basket\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"familyId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"family_id\"},{\"name\":\"scope\",\"kind\":\"enum\",\"type\":\"BasketScope\"},{\"name\":\"items\",\"kind\":\"object\",\"type\":\"BasketItem\",\"relationName\":\"BasketToBasketItem\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"BasketToUser\"},{\"name\":\"family\",\"kind\":\"object\",\"type\":\"Family\",\"relationName\":\"BasketToFamily\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"basket\"},\"BasketItem\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"basketId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"basket_id\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"category_id\"},{\"name\":\"notes\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"addedBy\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"added_by\"},{\"name\":\"basket\",\"kind\":\"object\",\"type\":\"Basket\",\"relationName\":\"BasketToBasketItem\"},{\"name\":\"category\",\"kind\":\"object\",\"type\":\"ItemCategory\",\"relationName\":\"BasketItemToItemCategory\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"basket_item\"},\"ExpenseItem\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"itemId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"item_id\"},{\"name\":\"expenseId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"expense_id\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"discount\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"item\",\"kind\":\"object\",\"type\":\"StoreItem\",\"relationName\":\"ExpenseItemToStoreItem\"},{\"name\":\"expense\",\"kind\":\"object\",\"type\":\"Expense\",\"relationName\":\"ExpenseToExpenseItem\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"expense_item\"},\"Expense\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"transactionId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"transaction_id\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"category_id\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"category\",\"kind\":\"object\",\"type\":\"ExpenseCategory\",\"relationName\":\"ExpenseToExpenseCategory\"},{\"name\":\"transaction\",\"kind\":\"object\",\"type\":\"Transaction\",\"relationName\":\"ExpenseToTransaction\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"ExpenseToStore\"},{\"name\":\"items\",\"kind\":\"object\",\"type\":\"ExpenseItem\",\"relationName\":\"ExpenseToExpenseItem\"},{\"name\":\"receipt\",\"kind\":\"object\",\"type\":\"Receipt\",\"relationName\":\"ExpenseToReceipt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"expense\"},\"ExpenseCategory\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"parentId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"parent_id\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isConnectedToStore\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"parent\",\"kind\":\"object\",\"type\":\"ExpenseCategory\",\"relationName\":\"children\"},{\"name\":\"children\",\"kind\":\"object\",\"type\":\"ExpenseCategory\",\"relationName\":\"children\"},{\"name\":\"expenses\",\"kind\":\"object\",\"type\":\"Expense\",\"relationName\":\"ExpenseToExpenseCategory\"},{\"name\":\"users\",\"kind\":\"object\",\"type\":\"UserExpenseCategory\",\"relationName\":\"ExpenseCategoryToUserExpenseCategory\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"expense_category\"},\"UserExpenseCategory\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"category_id\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserToUserExpenseCategory\"},{\"name\":\"category\",\"kind\":\"object\",\"type\":\"ExpenseCategory\",\"relationName\":\"ExpenseCategoryToUserExpenseCategory\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"}],\"dbName\":\"user_expense_category\"},\"Family\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"balance\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"members\",\"kind\":\"object\",\"type\":\"FamilyMember\",\"relationName\":\"FamilyToFamilyMember\"},{\"name\":\"invitations\",\"kind\":\"object\",\"type\":\"FamilyInvitation\",\"relationName\":\"FamilyToFamilyInvitation\"},{\"name\":\"transactions\",\"kind\":\"object\",\"type\":\"Transaction\",\"relationName\":\"FamilyToTransaction\"},{\"name\":\"notifications\",\"kind\":\"object\",\"type\":\"Notification\",\"relationName\":\"FamilyToNotification\"},{\"name\":\"baskets\",\"kind\":\"object\",\"type\":\"Basket\",\"relationName\":\"BasketToFamily\"},{\"name\":\"receipts\",\"kind\":\"object\",\"type\":\"Receipt\",\"relationName\":\"FamilyToReceipt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"family\"},\"FamilyMember\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"familyId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"family_id\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"role\",\"kind\":\"enum\",\"type\":\"FamilyMemberRole\"},{\"name\":\"balance\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"family\",\"kind\":\"object\",\"type\":\"Family\",\"relationName\":\"FamilyToFamilyMember\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"FamilyMemberToUser\"},{\"name\":\"joinedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"joined_at\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"family_member\"},\"FamilyInvitation\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"familyId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"family_id\"},{\"name\":\"inviterId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"inviter_id\"},{\"name\":\"inviteeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"invitee_id\"},{\"name\":\"inviteeEmail\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"invitee_email\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"FamilyInvitationStatus\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"expires_at\"},{\"name\":\"family\",\"kind\":\"object\",\"type\":\"Family\",\"relationName\":\"FamilyToFamilyInvitation\"},{\"name\":\"inviter\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"sent_invitations\"},{\"name\":\"invitee\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"received_invitations\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"family_invitation\"},\"Income\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"transactionId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"transaction_id\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"category_id\"},{\"name\":\"category\",\"kind\":\"object\",\"type\":\"IncomeCategory\",\"relationName\":\"IncomeToIncomeCategory\"},{\"name\":\"transaction\",\"kind\":\"object\",\"type\":\"Transaction\",\"relationName\":\"IncomeToTransaction\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"income\"},\"IncomeCategory\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"parentId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"parent_id\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"parent\",\"kind\":\"object\",\"type\":\"IncomeCategory\",\"relationName\":\"children\"},{\"name\":\"children\",\"kind\":\"object\",\"type\":\"IncomeCategory\",\"relationName\":\"children\"},{\"name\":\"incomes\",\"kind\":\"object\",\"type\":\"Income\",\"relationName\":\"IncomeToIncomeCategory\"},{\"name\":\"users\",\"kind\":\"object\",\"type\":\"UserIncomeCategory\",\"relationName\":\"IncomeCategoryToUserIncomeCategory\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"income_category\"},\"UserIncomeCategory\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"category_id\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserToUserIncomeCategory\"},{\"name\":\"category\",\"kind\":\"object\",\"type\":\"IncomeCategory\",\"relationName\":\"IncomeCategoryToUserIncomeCategory\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"}],\"dbName\":\"user_income_category\"},\"Notification\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"type\",\"kind\":\"enum\",\"type\":\"NotificationType\"},{\"name\":\"priority\",\"kind\":\"enum\",\"type\":\"NotificationPriority\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"message\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"data\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"deliveryMethods\",\"kind\":\"enum\",\"type\":\"NotificationDeliveryMethod\"},{\"name\":\"isRead\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_read\"},{\"name\":\"readAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"read_at\"},{\"name\":\"isInteracted\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_interacted\"},{\"name\":\"interactedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"interacted_at\"},{\"name\":\"actionUrl\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"action_url\"},{\"name\":\"familyId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"family_id\"},{\"name\":\"transactionId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"transaction_id\"},{\"name\":\"invitationId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"invitation_id\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"NotificationToUser\"},{\"name\":\"family\",\"kind\":\"object\",\"type\":\"Family\",\"relationName\":\"FamilyToNotification\"},{\"name\":\"transaction\",\"kind\":\"object\",\"type\":\"Transaction\",\"relationName\":\"NotificationToTransaction\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"notification\"},\"NotificationPreference\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"enablePushNotifications\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"enable_push_notifications\"},{\"name\":\"enableInAppNotifications\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"enable_in_app_notifications\"},{\"name\":\"enableToastNotifications\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"enable_toast_notifications\"},{\"name\":\"quietHoursEnabled\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"quiet_hours_enabled\"},{\"name\":\"quietHoursStart\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"quiet_hours_start\"},{\"name\":\"quietHoursEnd\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"quiet_hours_end\"},{\"name\":\"typePreferences\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"type_preferences\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"NotificationPreferenceToUser\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"notification_preference\"},\"DeviceToken\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"expoPushToken\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"expo_push_token\"},{\"name\":\"platform\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"deviceId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"device_id\"},{\"name\":\"deviceName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"device_name\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_active\"},{\"name\":\"lastUsed\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"last_used\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"DeviceTokenToUser\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"device_token\"},\"WebPushSubscription\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"endpoint\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"p256dh\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"auth\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userAgent\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_agent\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_active\"},{\"name\":\"lastUsed\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"last_used\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserToWebPushSubscription\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"web_push_subscription\"},\"PaymentMethod\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"enum\",\"type\":\"PaymentMethodType\"},{\"name\":\"color\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"initialBalance\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"initial_balance\"},{\"name\":\"currentBalance\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"current_balance\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"PaymentMethodToUser\"},{\"name\":\"transactions\",\"kind\":\"object\",\"type\":\"Transaction\",\"relationName\":\"PaymentMethodToTransaction\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"payment_method\"},\"Receipt\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"familyId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"family_id\"},{\"name\":\"expenseId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"expense_id\"},{\"name\":\"fileName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"file_name\"},{\"name\":\"originalName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"original_name\"},{\"name\":\"mimeType\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"mime_type\"},{\"name\":\"fileSize\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"file_size\"},{\"name\":\"storageKey\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"storage_key\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"ReceiptToUser\"},{\"name\":\"family\",\"kind\":\"object\",\"type\":\"Family\",\"relationName\":\"FamilyToReceipt\"},{\"name\":\"expense\",\"kind\":\"object\",\"type\":\"Expense\",\"relationName\":\"ExpenseToReceipt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"receipt\"},\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"firstName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"first_name\"},{\"name\":\"lastName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"last_name\"},{\"name\":\"image\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"balance\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"email_verified\"},{\"name\":\"transactions\",\"kind\":\"object\",\"type\":\"Transaction\",\"relationName\":\"TransactionToUser\"},{\"name\":\"accounts\",\"kind\":\"object\",\"type\":\"Account\",\"relationName\":\"AccountToUser\"},{\"name\":\"sessions\",\"kind\":\"object\",\"type\":\"Session\",\"relationName\":\"SessionToUser\"},{\"name\":\"familyMemberships\",\"kind\":\"object\",\"type\":\"FamilyMember\",\"relationName\":\"FamilyMemberToUser\"},{\"name\":\"sentInvitations\",\"kind\":\"object\",\"type\":\"FamilyInvitation\",\"relationName\":\"sent_invitations\"},{\"name\":\"receivedInvitations\",\"kind\":\"object\",\"type\":\"FamilyInvitation\",\"relationName\":\"received_invitations\"},{\"name\":\"notifications\",\"kind\":\"object\",\"type\":\"Notification\",\"relationName\":\"NotificationToUser\"},{\"name\":\"notificationPreference\",\"kind\":\"object\",\"type\":\"NotificationPreference\",\"relationName\":\"NotificationPreferenceToUser\"},{\"name\":\"deviceTokens\",\"kind\":\"object\",\"type\":\"DeviceToken\",\"relationName\":\"DeviceTokenToUser\"},{\"name\":\"webPushSubscriptions\",\"kind\":\"object\",\"type\":\"WebPushSubscription\",\"relationName\":\"UserToWebPushSubscription\"},{\"name\":\"baskets\",\"kind\":\"object\",\"type\":\"Basket\",\"relationName\":\"BasketToUser\"},{\"name\":\"userExpenseCategories\",\"kind\":\"object\",\"type\":\"UserExpenseCategory\",\"relationName\":\"UserToUserExpenseCategory\"},{\"name\":\"userIncomeCategories\",\"kind\":\"object\",\"type\":\"UserIncomeCategory\",\"relationName\":\"UserToUserIncomeCategory\"},{\"name\":\"userStores\",\"kind\":\"object\",\"type\":\"UserStore\",\"relationName\":\"UserToUserStore\"},{\"name\":\"userItems\",\"kind\":\"object\",\"type\":\"UserItem\",\"relationName\":\"UserToUserItem\"},{\"name\":\"userStoreItems\",\"kind\":\"object\",\"type\":\"UserStoreItem\",\"relationName\":\"UserToUserStoreItem\"},{\"name\":\"userItemCategories\",\"kind\":\"object\",\"type\":\"UserItemCategory\",\"relationName\":\"UserToUserItemCategory\"},{\"name\":\"paymentMethods\",\"kind\":\"object\",\"type\":\"PaymentMethod\",\"relationName\":\"PaymentMethodToUser\"},{\"name\":\"receipts\",\"kind\":\"object\",\"type\":\"Receipt\",\"relationName\":\"ReceiptToUser\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"users\"},\"Store\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"location\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"items\",\"kind\":\"object\",\"type\":\"StoreItem\",\"relationName\":\"StoreToStoreItem\"},{\"name\":\"expenses\",\"kind\":\"object\",\"type\":\"Expense\",\"relationName\":\"ExpenseToStore\"},{\"name\":\"users\",\"kind\":\"object\",\"type\":\"UserStore\",\"relationName\":\"StoreToUserStore\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"store\"},\"Item\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"category_id\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"nameEn\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"name_en\"},{\"name\":\"category\",\"kind\":\"object\",\"type\":\"ItemCategory\",\"relationName\":\"ItemToItemCategory\"},{\"name\":\"stores\",\"kind\":\"object\",\"type\":\"StoreItem\",\"relationName\":\"ItemToStoreItem\"},{\"name\":\"users\",\"kind\":\"object\",\"type\":\"UserItem\",\"relationName\":\"ItemToUserItem\"},{\"name\":\"sizes\",\"kind\":\"object\",\"type\":\"ItemSize\",\"relationName\":\"ItemToItemSize\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"item\"},\"StoreItem\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"itemId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"item_id\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"isDiscounted\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_discounted\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"StoreToStoreItem\"},{\"name\":\"item\",\"kind\":\"object\",\"type\":\"Item\",\"relationName\":\"ItemToStoreItem\"},{\"name\":\"discounts\",\"kind\":\"object\",\"type\":\"StoreItemDiscount\",\"relationName\":\"StoreItemToStoreItemDiscount\"},{\"name\":\"expenses\",\"kind\":\"object\",\"type\":\"ExpenseItem\",\"relationName\":\"ExpenseItemToStoreItem\"},{\"name\":\"users\",\"kind\":\"object\",\"type\":\"UserStoreItem\",\"relationName\":\"StoreItemToUserStoreItem\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"store_item\"},\"ItemSize\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"itemId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"item_id\"},{\"name\":\"value\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"unit\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"item\",\"kind\":\"object\",\"type\":\"Item\",\"relationName\":\"ItemToItemSize\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"item_size\"},\"StoreItemDiscount\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"storeItemId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_item_id\"},{\"name\":\"discount\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"startedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"started_at\"},{\"name\":\"endedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"ended_at\"},{\"name\":\"storeItem\",\"kind\":\"object\",\"type\":\"StoreItem\",\"relationName\":\"StoreItemToStoreItemDiscount\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"store_item_discount\"},\"ItemCategory\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"parentId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"parent_id\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"parent\",\"kind\":\"object\",\"type\":\"ItemCategory\",\"relationName\":\"children\"},{\"name\":\"children\",\"kind\":\"object\",\"type\":\"ItemCategory\",\"relationName\":\"children\"},{\"name\":\"items\",\"kind\":\"object\",\"type\":\"Item\",\"relationName\":\"ItemToItemCategory\"},{\"name\":\"users\",\"kind\":\"object\",\"type\":\"UserItemCategory\",\"relationName\":\"ItemCategoryToUserItemCategory\"},{\"name\":\"basketItems\",\"kind\":\"object\",\"type\":\"BasketItem\",\"relationName\":\"BasketItemToItemCategory\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"item_category\"},\"UserStore\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserToUserStore\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"StoreToUserStore\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"}],\"dbName\":\"user_store\"},\"UserItem\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"itemId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"item_id\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserToUserItem\"},{\"name\":\"item\",\"kind\":\"object\",\"type\":\"Item\",\"relationName\":\"ItemToUserItem\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"}],\"dbName\":\"user_item\"},\"UserStoreItem\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"storeItemId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_item_id\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserToUserStoreItem\"},{\"name\":\"storeItem\",\"kind\":\"object\",\"type\":\"StoreItem\",\"relationName\":\"StoreItemToUserStoreItem\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"}],\"dbName\":\"user_store_item\"},\"UserItemCategory\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"category_id\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserToUserItemCategory\"},{\"name\":\"category\",\"kind\":\"object\",\"type\":\"ItemCategory\",\"relationName\":\"ItemCategoryToUserItemCategory\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"}],\"dbName\":\"user_item_category\"},\"Transaction\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"familyId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"family_id\"},{\"name\":\"scope\",\"kind\":\"enum\",\"type\":\"TransactionScope\"},{\"name\":\"type\",\"kind\":\"enum\",\"type\":\"TransactionType\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"TransactionStatus\",\"dbName\":\"status\"},{\"name\":\"value\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"rejectionReason\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"rejection_reason\"},{\"name\":\"recordedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"recorded_at\"},{\"name\":\"paymentMethodId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"payment_method_id\"},{\"name\":\"paymentMethod\",\"kind\":\"object\",\"type\":\"PaymentMethod\",\"relationName\":\"PaymentMethodToTransaction\"},{\"name\":\"expense\",\"kind\":\"object\",\"type\":\"Expense\",\"relationName\":\"ExpenseToTransaction\"},{\"name\":\"income\",\"kind\":\"object\",\"type\":\"Income\",\"relationName\":\"IncomeToTransaction\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"TransactionToUser\"},{\"name\":\"family\",\"kind\":\"object\",\"type\":\"Family\",\"relationName\":\"FamilyToTransaction\"},{\"name\":\"notifications\",\"kind\":\"object\",\"type\":\"Notification\",\"relationName\":\"NotificationToTransaction\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"transaction\"}},\"enums\":{},\"types\":{}}") +config.parameterizationSchema = { + strings: JSON.parse("[\"where\",\"orderBy\",\"cursor\",\"user\",\"transactions\",\"_count\",\"paymentMethod\",\"parent\",\"children\",\"expenses\",\"category\",\"users\",\"transaction\",\"store\",\"items\",\"family\",\"members\",\"inviter\",\"invitee\",\"invitations\",\"notifications\",\"baskets\",\"expense\",\"receipts\",\"basket\",\"basketItems\",\"stores\",\"item\",\"sizes\",\"storeItem\",\"discounts\",\"receipt\",\"incomes\",\"income\",\"accounts\",\"sessions\",\"familyMemberships\",\"sentInvitations\",\"receivedInvitations\",\"notificationPreference\",\"deviceTokens\",\"webPushSubscriptions\",\"userExpenseCategories\",\"userIncomeCategories\",\"userStores\",\"userItems\",\"userStoreItems\",\"userItemCategories\",\"paymentMethods\",\"Account.findUnique\",\"Account.findUniqueOrThrow\",\"Account.findFirst\",\"Account.findFirstOrThrow\",\"Account.findMany\",\"data\",\"Account.createOne\",\"Account.createMany\",\"Account.createManyAndReturn\",\"Account.updateOne\",\"Account.updateMany\",\"Account.updateManyAndReturn\",\"create\",\"update\",\"Account.upsertOne\",\"Account.deleteOne\",\"Account.deleteMany\",\"having\",\"_min\",\"_max\",\"Account.groupBy\",\"Account.aggregate\",\"Session.findUnique\",\"Session.findUniqueOrThrow\",\"Session.findFirst\",\"Session.findFirstOrThrow\",\"Session.findMany\",\"Session.createOne\",\"Session.createMany\",\"Session.createManyAndReturn\",\"Session.updateOne\",\"Session.updateMany\",\"Session.updateManyAndReturn\",\"Session.upsertOne\",\"Session.deleteOne\",\"Session.deleteMany\",\"Session.groupBy\",\"Session.aggregate\",\"Verification.findUnique\",\"Verification.findUniqueOrThrow\",\"Verification.findFirst\",\"Verification.findFirstOrThrow\",\"Verification.findMany\",\"Verification.createOne\",\"Verification.createMany\",\"Verification.createManyAndReturn\",\"Verification.updateOne\",\"Verification.updateMany\",\"Verification.updateManyAndReturn\",\"Verification.upsertOne\",\"Verification.deleteOne\",\"Verification.deleteMany\",\"Verification.groupBy\",\"Verification.aggregate\",\"Basket.findUnique\",\"Basket.findUniqueOrThrow\",\"Basket.findFirst\",\"Basket.findFirstOrThrow\",\"Basket.findMany\",\"Basket.createOne\",\"Basket.createMany\",\"Basket.createManyAndReturn\",\"Basket.updateOne\",\"Basket.updateMany\",\"Basket.updateManyAndReturn\",\"Basket.upsertOne\",\"Basket.deleteOne\",\"Basket.deleteMany\",\"Basket.groupBy\",\"Basket.aggregate\",\"BasketItem.findUnique\",\"BasketItem.findUniqueOrThrow\",\"BasketItem.findFirst\",\"BasketItem.findFirstOrThrow\",\"BasketItem.findMany\",\"BasketItem.createOne\",\"BasketItem.createMany\",\"BasketItem.createManyAndReturn\",\"BasketItem.updateOne\",\"BasketItem.updateMany\",\"BasketItem.updateManyAndReturn\",\"BasketItem.upsertOne\",\"BasketItem.deleteOne\",\"BasketItem.deleteMany\",\"_avg\",\"_sum\",\"BasketItem.groupBy\",\"BasketItem.aggregate\",\"ExpenseItem.findUnique\",\"ExpenseItem.findUniqueOrThrow\",\"ExpenseItem.findFirst\",\"ExpenseItem.findFirstOrThrow\",\"ExpenseItem.findMany\",\"ExpenseItem.createOne\",\"ExpenseItem.createMany\",\"ExpenseItem.createManyAndReturn\",\"ExpenseItem.updateOne\",\"ExpenseItem.updateMany\",\"ExpenseItem.updateManyAndReturn\",\"ExpenseItem.upsertOne\",\"ExpenseItem.deleteOne\",\"ExpenseItem.deleteMany\",\"ExpenseItem.groupBy\",\"ExpenseItem.aggregate\",\"Expense.findUnique\",\"Expense.findUniqueOrThrow\",\"Expense.findFirst\",\"Expense.findFirstOrThrow\",\"Expense.findMany\",\"Expense.createOne\",\"Expense.createMany\",\"Expense.createManyAndReturn\",\"Expense.updateOne\",\"Expense.updateMany\",\"Expense.updateManyAndReturn\",\"Expense.upsertOne\",\"Expense.deleteOne\",\"Expense.deleteMany\",\"Expense.groupBy\",\"Expense.aggregate\",\"ExpenseCategory.findUnique\",\"ExpenseCategory.findUniqueOrThrow\",\"ExpenseCategory.findFirst\",\"ExpenseCategory.findFirstOrThrow\",\"ExpenseCategory.findMany\",\"ExpenseCategory.createOne\",\"ExpenseCategory.createMany\",\"ExpenseCategory.createManyAndReturn\",\"ExpenseCategory.updateOne\",\"ExpenseCategory.updateMany\",\"ExpenseCategory.updateManyAndReturn\",\"ExpenseCategory.upsertOne\",\"ExpenseCategory.deleteOne\",\"ExpenseCategory.deleteMany\",\"ExpenseCategory.groupBy\",\"ExpenseCategory.aggregate\",\"UserExpenseCategory.findUnique\",\"UserExpenseCategory.findUniqueOrThrow\",\"UserExpenseCategory.findFirst\",\"UserExpenseCategory.findFirstOrThrow\",\"UserExpenseCategory.findMany\",\"UserExpenseCategory.createOne\",\"UserExpenseCategory.createMany\",\"UserExpenseCategory.createManyAndReturn\",\"UserExpenseCategory.updateOne\",\"UserExpenseCategory.updateMany\",\"UserExpenseCategory.updateManyAndReturn\",\"UserExpenseCategory.upsertOne\",\"UserExpenseCategory.deleteOne\",\"UserExpenseCategory.deleteMany\",\"UserExpenseCategory.groupBy\",\"UserExpenseCategory.aggregate\",\"Family.findUnique\",\"Family.findUniqueOrThrow\",\"Family.findFirst\",\"Family.findFirstOrThrow\",\"Family.findMany\",\"Family.createOne\",\"Family.createMany\",\"Family.createManyAndReturn\",\"Family.updateOne\",\"Family.updateMany\",\"Family.updateManyAndReturn\",\"Family.upsertOne\",\"Family.deleteOne\",\"Family.deleteMany\",\"Family.groupBy\",\"Family.aggregate\",\"FamilyMember.findUnique\",\"FamilyMember.findUniqueOrThrow\",\"FamilyMember.findFirst\",\"FamilyMember.findFirstOrThrow\",\"FamilyMember.findMany\",\"FamilyMember.createOne\",\"FamilyMember.createMany\",\"FamilyMember.createManyAndReturn\",\"FamilyMember.updateOne\",\"FamilyMember.updateMany\",\"FamilyMember.updateManyAndReturn\",\"FamilyMember.upsertOne\",\"FamilyMember.deleteOne\",\"FamilyMember.deleteMany\",\"FamilyMember.groupBy\",\"FamilyMember.aggregate\",\"FamilyInvitation.findUnique\",\"FamilyInvitation.findUniqueOrThrow\",\"FamilyInvitation.findFirst\",\"FamilyInvitation.findFirstOrThrow\",\"FamilyInvitation.findMany\",\"FamilyInvitation.createOne\",\"FamilyInvitation.createMany\",\"FamilyInvitation.createManyAndReturn\",\"FamilyInvitation.updateOne\",\"FamilyInvitation.updateMany\",\"FamilyInvitation.updateManyAndReturn\",\"FamilyInvitation.upsertOne\",\"FamilyInvitation.deleteOne\",\"FamilyInvitation.deleteMany\",\"FamilyInvitation.groupBy\",\"FamilyInvitation.aggregate\",\"Income.findUnique\",\"Income.findUniqueOrThrow\",\"Income.findFirst\",\"Income.findFirstOrThrow\",\"Income.findMany\",\"Income.createOne\",\"Income.createMany\",\"Income.createManyAndReturn\",\"Income.updateOne\",\"Income.updateMany\",\"Income.updateManyAndReturn\",\"Income.upsertOne\",\"Income.deleteOne\",\"Income.deleteMany\",\"Income.groupBy\",\"Income.aggregate\",\"IncomeCategory.findUnique\",\"IncomeCategory.findUniqueOrThrow\",\"IncomeCategory.findFirst\",\"IncomeCategory.findFirstOrThrow\",\"IncomeCategory.findMany\",\"IncomeCategory.createOne\",\"IncomeCategory.createMany\",\"IncomeCategory.createManyAndReturn\",\"IncomeCategory.updateOne\",\"IncomeCategory.updateMany\",\"IncomeCategory.updateManyAndReturn\",\"IncomeCategory.upsertOne\",\"IncomeCategory.deleteOne\",\"IncomeCategory.deleteMany\",\"IncomeCategory.groupBy\",\"IncomeCategory.aggregate\",\"UserIncomeCategory.findUnique\",\"UserIncomeCategory.findUniqueOrThrow\",\"UserIncomeCategory.findFirst\",\"UserIncomeCategory.findFirstOrThrow\",\"UserIncomeCategory.findMany\",\"UserIncomeCategory.createOne\",\"UserIncomeCategory.createMany\",\"UserIncomeCategory.createManyAndReturn\",\"UserIncomeCategory.updateOne\",\"UserIncomeCategory.updateMany\",\"UserIncomeCategory.updateManyAndReturn\",\"UserIncomeCategory.upsertOne\",\"UserIncomeCategory.deleteOne\",\"UserIncomeCategory.deleteMany\",\"UserIncomeCategory.groupBy\",\"UserIncomeCategory.aggregate\",\"Notification.findUnique\",\"Notification.findUniqueOrThrow\",\"Notification.findFirst\",\"Notification.findFirstOrThrow\",\"Notification.findMany\",\"Notification.createOne\",\"Notification.createMany\",\"Notification.createManyAndReturn\",\"Notification.updateOne\",\"Notification.updateMany\",\"Notification.updateManyAndReturn\",\"Notification.upsertOne\",\"Notification.deleteOne\",\"Notification.deleteMany\",\"Notification.groupBy\",\"Notification.aggregate\",\"NotificationPreference.findUnique\",\"NotificationPreference.findUniqueOrThrow\",\"NotificationPreference.findFirst\",\"NotificationPreference.findFirstOrThrow\",\"NotificationPreference.findMany\",\"NotificationPreference.createOne\",\"NotificationPreference.createMany\",\"NotificationPreference.createManyAndReturn\",\"NotificationPreference.updateOne\",\"NotificationPreference.updateMany\",\"NotificationPreference.updateManyAndReturn\",\"NotificationPreference.upsertOne\",\"NotificationPreference.deleteOne\",\"NotificationPreference.deleteMany\",\"NotificationPreference.groupBy\",\"NotificationPreference.aggregate\",\"DeviceToken.findUnique\",\"DeviceToken.findUniqueOrThrow\",\"DeviceToken.findFirst\",\"DeviceToken.findFirstOrThrow\",\"DeviceToken.findMany\",\"DeviceToken.createOne\",\"DeviceToken.createMany\",\"DeviceToken.createManyAndReturn\",\"DeviceToken.updateOne\",\"DeviceToken.updateMany\",\"DeviceToken.updateManyAndReturn\",\"DeviceToken.upsertOne\",\"DeviceToken.deleteOne\",\"DeviceToken.deleteMany\",\"DeviceToken.groupBy\",\"DeviceToken.aggregate\",\"WebPushSubscription.findUnique\",\"WebPushSubscription.findUniqueOrThrow\",\"WebPushSubscription.findFirst\",\"WebPushSubscription.findFirstOrThrow\",\"WebPushSubscription.findMany\",\"WebPushSubscription.createOne\",\"WebPushSubscription.createMany\",\"WebPushSubscription.createManyAndReturn\",\"WebPushSubscription.updateOne\",\"WebPushSubscription.updateMany\",\"WebPushSubscription.updateManyAndReturn\",\"WebPushSubscription.upsertOne\",\"WebPushSubscription.deleteOne\",\"WebPushSubscription.deleteMany\",\"WebPushSubscription.groupBy\",\"WebPushSubscription.aggregate\",\"PaymentMethod.findUnique\",\"PaymentMethod.findUniqueOrThrow\",\"PaymentMethod.findFirst\",\"PaymentMethod.findFirstOrThrow\",\"PaymentMethod.findMany\",\"PaymentMethod.createOne\",\"PaymentMethod.createMany\",\"PaymentMethod.createManyAndReturn\",\"PaymentMethod.updateOne\",\"PaymentMethod.updateMany\",\"PaymentMethod.updateManyAndReturn\",\"PaymentMethod.upsertOne\",\"PaymentMethod.deleteOne\",\"PaymentMethod.deleteMany\",\"PaymentMethod.groupBy\",\"PaymentMethod.aggregate\",\"Receipt.findUnique\",\"Receipt.findUniqueOrThrow\",\"Receipt.findFirst\",\"Receipt.findFirstOrThrow\",\"Receipt.findMany\",\"Receipt.createOne\",\"Receipt.createMany\",\"Receipt.createManyAndReturn\",\"Receipt.updateOne\",\"Receipt.updateMany\",\"Receipt.updateManyAndReturn\",\"Receipt.upsertOne\",\"Receipt.deleteOne\",\"Receipt.deleteMany\",\"Receipt.groupBy\",\"Receipt.aggregate\",\"User.findUnique\",\"User.findUniqueOrThrow\",\"User.findFirst\",\"User.findFirstOrThrow\",\"User.findMany\",\"User.createOne\",\"User.createMany\",\"User.createManyAndReturn\",\"User.updateOne\",\"User.updateMany\",\"User.updateManyAndReturn\",\"User.upsertOne\",\"User.deleteOne\",\"User.deleteMany\",\"User.groupBy\",\"User.aggregate\",\"Store.findUnique\",\"Store.findUniqueOrThrow\",\"Store.findFirst\",\"Store.findFirstOrThrow\",\"Store.findMany\",\"Store.createOne\",\"Store.createMany\",\"Store.createManyAndReturn\",\"Store.updateOne\",\"Store.updateMany\",\"Store.updateManyAndReturn\",\"Store.upsertOne\",\"Store.deleteOne\",\"Store.deleteMany\",\"Store.groupBy\",\"Store.aggregate\",\"Item.findUnique\",\"Item.findUniqueOrThrow\",\"Item.findFirst\",\"Item.findFirstOrThrow\",\"Item.findMany\",\"Item.createOne\",\"Item.createMany\",\"Item.createManyAndReturn\",\"Item.updateOne\",\"Item.updateMany\",\"Item.updateManyAndReturn\",\"Item.upsertOne\",\"Item.deleteOne\",\"Item.deleteMany\",\"Item.groupBy\",\"Item.aggregate\",\"StoreItem.findUnique\",\"StoreItem.findUniqueOrThrow\",\"StoreItem.findFirst\",\"StoreItem.findFirstOrThrow\",\"StoreItem.findMany\",\"StoreItem.createOne\",\"StoreItem.createMany\",\"StoreItem.createManyAndReturn\",\"StoreItem.updateOne\",\"StoreItem.updateMany\",\"StoreItem.updateManyAndReturn\",\"StoreItem.upsertOne\",\"StoreItem.deleteOne\",\"StoreItem.deleteMany\",\"StoreItem.groupBy\",\"StoreItem.aggregate\",\"ItemSize.findUnique\",\"ItemSize.findUniqueOrThrow\",\"ItemSize.findFirst\",\"ItemSize.findFirstOrThrow\",\"ItemSize.findMany\",\"ItemSize.createOne\",\"ItemSize.createMany\",\"ItemSize.createManyAndReturn\",\"ItemSize.updateOne\",\"ItemSize.updateMany\",\"ItemSize.updateManyAndReturn\",\"ItemSize.upsertOne\",\"ItemSize.deleteOne\",\"ItemSize.deleteMany\",\"ItemSize.groupBy\",\"ItemSize.aggregate\",\"StoreItemDiscount.findUnique\",\"StoreItemDiscount.findUniqueOrThrow\",\"StoreItemDiscount.findFirst\",\"StoreItemDiscount.findFirstOrThrow\",\"StoreItemDiscount.findMany\",\"StoreItemDiscount.createOne\",\"StoreItemDiscount.createMany\",\"StoreItemDiscount.createManyAndReturn\",\"StoreItemDiscount.updateOne\",\"StoreItemDiscount.updateMany\",\"StoreItemDiscount.updateManyAndReturn\",\"StoreItemDiscount.upsertOne\",\"StoreItemDiscount.deleteOne\",\"StoreItemDiscount.deleteMany\",\"StoreItemDiscount.groupBy\",\"StoreItemDiscount.aggregate\",\"ItemCategory.findUnique\",\"ItemCategory.findUniqueOrThrow\",\"ItemCategory.findFirst\",\"ItemCategory.findFirstOrThrow\",\"ItemCategory.findMany\",\"ItemCategory.createOne\",\"ItemCategory.createMany\",\"ItemCategory.createManyAndReturn\",\"ItemCategory.updateOne\",\"ItemCategory.updateMany\",\"ItemCategory.updateManyAndReturn\",\"ItemCategory.upsertOne\",\"ItemCategory.deleteOne\",\"ItemCategory.deleteMany\",\"ItemCategory.groupBy\",\"ItemCategory.aggregate\",\"UserStore.findUnique\",\"UserStore.findUniqueOrThrow\",\"UserStore.findFirst\",\"UserStore.findFirstOrThrow\",\"UserStore.findMany\",\"UserStore.createOne\",\"UserStore.createMany\",\"UserStore.createManyAndReturn\",\"UserStore.updateOne\",\"UserStore.updateMany\",\"UserStore.updateManyAndReturn\",\"UserStore.upsertOne\",\"UserStore.deleteOne\",\"UserStore.deleteMany\",\"UserStore.groupBy\",\"UserStore.aggregate\",\"UserItem.findUnique\",\"UserItem.findUniqueOrThrow\",\"UserItem.findFirst\",\"UserItem.findFirstOrThrow\",\"UserItem.findMany\",\"UserItem.createOne\",\"UserItem.createMany\",\"UserItem.createManyAndReturn\",\"UserItem.updateOne\",\"UserItem.updateMany\",\"UserItem.updateManyAndReturn\",\"UserItem.upsertOne\",\"UserItem.deleteOne\",\"UserItem.deleteMany\",\"UserItem.groupBy\",\"UserItem.aggregate\",\"UserStoreItem.findUnique\",\"UserStoreItem.findUniqueOrThrow\",\"UserStoreItem.findFirst\",\"UserStoreItem.findFirstOrThrow\",\"UserStoreItem.findMany\",\"UserStoreItem.createOne\",\"UserStoreItem.createMany\",\"UserStoreItem.createManyAndReturn\",\"UserStoreItem.updateOne\",\"UserStoreItem.updateMany\",\"UserStoreItem.updateManyAndReturn\",\"UserStoreItem.upsertOne\",\"UserStoreItem.deleteOne\",\"UserStoreItem.deleteMany\",\"UserStoreItem.groupBy\",\"UserStoreItem.aggregate\",\"UserItemCategory.findUnique\",\"UserItemCategory.findUniqueOrThrow\",\"UserItemCategory.findFirst\",\"UserItemCategory.findFirstOrThrow\",\"UserItemCategory.findMany\",\"UserItemCategory.createOne\",\"UserItemCategory.createMany\",\"UserItemCategory.createManyAndReturn\",\"UserItemCategory.updateOne\",\"UserItemCategory.updateMany\",\"UserItemCategory.updateManyAndReturn\",\"UserItemCategory.upsertOne\",\"UserItemCategory.deleteOne\",\"UserItemCategory.deleteMany\",\"UserItemCategory.groupBy\",\"UserItemCategory.aggregate\",\"Transaction.findUnique\",\"Transaction.findUniqueOrThrow\",\"Transaction.findFirst\",\"Transaction.findFirstOrThrow\",\"Transaction.findMany\",\"Transaction.createOne\",\"Transaction.createMany\",\"Transaction.createManyAndReturn\",\"Transaction.updateOne\",\"Transaction.updateMany\",\"Transaction.updateManyAndReturn\",\"Transaction.upsertOne\",\"Transaction.deleteOne\",\"Transaction.deleteMany\",\"Transaction.groupBy\",\"Transaction.aggregate\",\"AND\",\"OR\",\"NOT\",\"id\",\"userId\",\"familyId\",\"TransactionScope\",\"scope\",\"TransactionType\",\"type\",\"TransactionStatus\",\"status\",\"value\",\"rejectionReason\",\"recordedAt\",\"paymentMethodId\",\"createdAt\",\"updatedAt\",\"equals\",\"in\",\"notIn\",\"lt\",\"lte\",\"gt\",\"gte\",\"not\",\"contains\",\"startsWith\",\"endsWith\",\"categoryId\",\"storeItemId\",\"itemId\",\"storeId\",\"parentId\",\"name\",\"discount\",\"startedAt\",\"endedAt\",\"unit\",\"price\",\"isDiscounted\",\"nameEn\",\"location\",\"every\",\"some\",\"none\",\"email\",\"firstName\",\"lastName\",\"image\",\"balance\",\"emailVerified\",\"expenseId\",\"fileName\",\"originalName\",\"mimeType\",\"fileSize\",\"storageKey\",\"PaymentMethodType\",\"color\",\"initialBalance\",\"currentBalance\",\"endpoint\",\"p256dh\",\"auth\",\"userAgent\",\"isActive\",\"lastUsed\",\"expoPushToken\",\"platform\",\"deviceId\",\"deviceName\",\"enablePushNotifications\",\"enableInAppNotifications\",\"enableToastNotifications\",\"quietHoursEnabled\",\"quietHoursStart\",\"quietHoursEnd\",\"typePreferences\",\"string_contains\",\"string_starts_with\",\"string_ends_with\",\"array_starts_with\",\"array_ends_with\",\"array_contains\",\"NotificationType\",\"NotificationPriority\",\"priority\",\"title\",\"message\",\"deliveryMethods\",\"isRead\",\"readAt\",\"isInteracted\",\"interactedAt\",\"actionUrl\",\"transactionId\",\"invitationId\",\"NotificationDeliveryMethod\",\"has\",\"hasEvery\",\"hasSome\",\"inviterId\",\"inviteeId\",\"inviteeEmail\",\"FamilyInvitationStatus\",\"expiresAt\",\"FamilyMemberRole\",\"role\",\"joinedAt\",\"isConnectedToStore\",\"description\",\"quantity\",\"basketId\",\"notes\",\"addedBy\",\"BasketScope\",\"identifier\",\"identifier_value\",\"token\",\"ipAddress\",\"accountId\",\"providerId\",\"accessToken\",\"refreshToken\",\"idToken\",\"accessTokenExpiresAt\",\"password\",\"userId_categoryId\",\"userId_storeId\",\"userId_storeItemId\",\"itemId_value_unit\",\"userId_itemId\",\"personal_basket\",\"family_basket\",\"familyId_userId\",\"providerId_accountId\",\"is\",\"isNot\",\"connectOrCreate\",\"upsert\",\"createMany\",\"set\",\"disconnect\",\"delete\",\"connect\",\"updateMany\",\"deleteMany\",\"increment\",\"decrement\",\"multiply\",\"divide\",\"push\"]"), + graph: "0RKrApAEEgMAAJcIACDJBAAAxQgAMMoEAACXAQAQywQAAMUIADDMBAEAAAABzQQBAOwHACHQBAEA8wcAIdkEQADtBwAh2gRAAO0HACGzBUAAlQgAIcIFAQDsBwAhwwUBAOwHACHEBQEA8wcAIcUFAQDzBwAhxgUBAPMHACHHBUAAlQgAIcgFAQDzBwAh0QUAAJAJACABAAAAAQAgFQMAAJcIACAGAACOCQAgDwAA3wgAIBQAAPsHACAWAADgCAAgIQAAjwkAIMkEAACKCQAwygQAAAMAEMsEAACKCQAwzAQBAOwHACHNBAEA7AcAIc4EAQDzBwAh0AQAAIsJ0AQi0gQAAIwJ0gQi1AQAAI0J1AQi1QQQAPQHACHWBAEA8wcAIdcEQADtBwAh2AQBAPMHACHZBEAA7QcAIdoEQADtBwAhCQMAALYOACAGAACiEAAgDwAAlhAAIBQAAI8OACAWAACUEAAgIQAAoxAAIM4EAACRCQAg1gQAAJEJACDYBAAAkQkAIBUDAACXCAAgBgAAjgkAIA8AAN8IACAUAAD7BwAgFgAA4AgAICEAAI8JACDJBAAAigkAMMoEAAADABDLBAAAigkAMMwEAQAAAAHNBAEA7AcAIc4EAQDzBwAh0AQAAIsJ0AQi0gQAAIwJ0gQi1AQAAI0J1AQi1QQQAPQHACHWBAEA8wcAIdcEQADtBwAh2AQBAPMHACHZBEAA7QcAIdoEQADtBwAhAwAAAAMAIAEAAAQAMAIAAAUAIA4DAACXCAAgBAAA9gcAIMkEAADACAAwygQAAAcAE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RAAAAAAdoEQAAAAAHoBAEAAAAB7AQQAAAAAfAEEAAAAAG5BRAAAAABAz0AAKMSACDUBQAApBIAINoFAAAgACADPQAAoRIAINQFAACiEgAg2gUAABAAIAM9AACfEgAg1AUAAKASACDaBQAAyQUAIAQ9AADUCQAw1AUAANUJADDWBQAA1wkAINoFAADYCQAwAz0AAMoJACDUBQAAywkAINoFAABNACADPQAAnRIAINQFAACeEgAg2gUAALQBACADPQAAwQkAINQFAADCCQAg2gUAABMAIAM9AAC6CQAg1AUAALsJACDaBQAAiwEAIAM9AACbEgAg1AUAAJwSACDaBQAAsQUAIAM9AACZEgAg1AUAAJoSACDaBQAAmQMAIAQ9AACkCQAw1AUAAKUJADDWBQAApwkAINoFAACoCQAwAAAABT0AAJESACA-AACXEgAg1AUAAJISACDVBQAAlhIAINoFAACxBQAgBT0AAI8SACA-AACUEgAg1AUAAJASACDVBQAAkxIAINoFAAAlACADPQAAkRIAINQFAACSEgAg2gUAALEFACADPQAAjxIAINQFAACQEgAg2gUAACUAIAAAAAU9AACHEgAgPgAAjRIAINQFAACIEgAg1QUAAIwSACDaBQAAsQUAIAU9AACFEgAgPgAAihIAINQFAACGEgAg1QUAAIkSACDaBQAAIAAgAz0AAIcSACDUBQAAiBIAINoFAACxBQAgAz0AAIUSACDUBQAAhhIAINoFAAAgACAAAAAFPQAA_REAID4AAIMSACDUBQAA_hEAINUFAACCEgAg2gUAALEFACAFPQAA-xEAID4AAIASACDUBQAA_BEAINUFAAD_EQAg2gUAACkAIAM9AAD9EQAg1AUAAP4RACDaBQAAsQUAIAM9AAD7EQAg1AUAAPwRACDaBQAAKQAgAAAABT0AAPMRACA-AAD5EQAg1AUAAPQRACDVBQAA-BEAINoFAACxBQAgBT0AAPERACA-AAD2EQAg1AUAAPIRACDVBQAA9REAINoFAADJBQAgAz0AAPMRACDUBQAA9BEAINoFAACxBQAgAz0AAPERACDUBQAA8hEAINoFAADJBQAgAAAABz0AANMRACA-AADvEQAg1AUAANQRACDVBQ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gEwgerAg" +} + +async function decodeBase64AsWasm(wasmBase64: string): Promise { + const { Buffer } = await import('node:buffer') + const wasmArray = Buffer.from(wasmBase64, 'base64') + return new WebAssembly.Module(wasmArray) +} + +config.compilerWasm = { + getRuntime: async () => await import("@prisma/client/runtime/query_compiler_fast_bg.postgresql.js"), + + getQueryCompilerWasmModule: async () => { + const { wasm } = await import("@prisma/client/runtime/query_compiler_fast_bg.postgresql.wasm-base64.js") + return await decodeBase64AsWasm(wasm) + }, + + importName: "./query_compiler_fast_bg.js" +} + + + +export type LogOptions = + 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never + +export interface PrismaClientConstructor { + /** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // Fetch zero or more Accounts + * const accounts = await prisma.account.findMany() + * ``` + * + * Read more in our [docs](https://pris.ly/d/client). + */ + + new < + Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, + LogOpts extends LogOptions = LogOptions, + OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'], + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs + >(options: Prisma.Subset ): PrismaClient +} + +/** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // Fetch zero or more Accounts + * const accounts = await prisma.account.findMany() + * ``` + * + * Read more in our [docs](https://pris.ly/d/client). + */ + +export interface PrismaClient< + in LogOpts extends Prisma.LogLevel = never, + in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, + in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs +> { + [K: symbol]: { types: Prisma.TypeMap['other'] } + + $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; + + /** + * Connect with the database + */ + $connect(): runtime.Types.Utils.JsPromise; + + /** + * Disconnect from the database + */ + $disconnect(): runtime.Types.Utils.JsPromise; + +/** + * Executes a prepared raw query and returns the number of affected rows. + * @example + * ``` + * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` + * ``` + * + * Read more in our [docs](https://pris.ly/d/raw-queries). + */ + $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; + + /** + * Executes a raw query and returns the number of affected rows. + * Susceptible to SQL injections, see documentation. + * @example + * ``` + * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') + * ``` + * + * Read more in our [docs](https://pris.ly/d/raw-queries). + */ + $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; + + /** + * Performs a prepared raw query and returns the `SELECT` data. + * @example + * ``` + * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` + * ``` + * + * Read more in our [docs](https://pris.ly/d/raw-queries). + */ + $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; + + /** + * Performs a raw query and returns the `SELECT` data. + * Susceptible to SQL injections, see documentation. + * @example + * ``` + * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') + * ``` + * + * Read more in our [docs](https://pris.ly/d/raw-queries). + */ + $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; + + + /** + * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. + * @example + * ``` + * const [george, bob, alice] = await prisma.$transaction([ + * prisma.user.create({ data: { name: 'George' } }), + * prisma.user.create({ data: { name: 'Bob' } }), + * prisma.user.create({ data: { name: 'Alice' } }), + * ]) + * ``` + * + * Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions). + */ + $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise> + + $transaction(fn: (prisma: Omit) => runtime.Types.Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise + + $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, runtime.Types.Utils.Call, { + extArgs: ExtArgs + }>> + + /** + * `prisma.account`: Exposes CRUD operations for the **Account** model. + * Example usage: + * ```ts + * // Fetch zero or more Accounts + * const accounts = await prisma.account.findMany() + * ``` + */ + get account(): Prisma.AccountDelegate; + + /** + * `prisma.session`: Exposes CRUD operations for the **Session** model. + * Example usage: + * ```ts + * // Fetch zero or more Sessions + * const sessions = await prisma.session.findMany() + * ``` + */ + get session(): Prisma.SessionDelegate; + + /** + * `prisma.verification`: Exposes CRUD operations for the **Verification** model. + * Example usage: + * ```ts + * // Fetch zero or more Verifications + * const verifications = await prisma.verification.findMany() + * ``` + */ + get verification(): Prisma.VerificationDelegate; + + /** + * `prisma.basket`: Exposes CRUD operations for the **Basket** model. + * Example usage: + * ```ts + * // Fetch zero or more Baskets + * const baskets = await prisma.basket.findMany() + * ``` + */ + get basket(): Prisma.BasketDelegate; + + /** + * `prisma.basketItem`: Exposes CRUD operations for the **BasketItem** model. + * Example usage: + * ```ts + * // Fetch zero or more BasketItems + * const basketItems = await prisma.basketItem.findMany() + * ``` + */ + get basketItem(): Prisma.BasketItemDelegate; + + /** + * `prisma.expenseItem`: Exposes CRUD operations for the **ExpenseItem** model. + * Example usage: + * ```ts + * // Fetch zero or more ExpenseItems + * const expenseItems = await prisma.expenseItem.findMany() + * ``` + */ + get expenseItem(): Prisma.ExpenseItemDelegate; + + /** + * `prisma.expense`: Exposes CRUD operations for the **Expense** model. + * Example usage: + * ```ts + * // Fetch zero or more Expenses + * const expenses = await prisma.expense.findMany() + * ``` + */ + get expense(): Prisma.ExpenseDelegate; + + /** + * `prisma.expenseCategory`: Exposes CRUD operations for the **ExpenseCategory** model. + * Example usage: + * ```ts + * // Fetch zero or more ExpenseCategories + * const expenseCategories = await prisma.expenseCategory.findMany() + * ``` + */ + get expenseCategory(): Prisma.ExpenseCategoryDelegate; + + /** + * `prisma.userExpenseCategory`: Exposes CRUD operations for the **UserExpenseCategory** model. + * Example usage: + * ```ts + * // Fetch zero or more UserExpenseCategories + * const userExpenseCategories = await prisma.userExpenseCategory.findMany() + * ``` + */ + get userExpenseCategory(): Prisma.UserExpenseCategoryDelegate; + + /** + * `prisma.family`: Exposes CRUD operations for the **Family** model. + * Example usage: + * ```ts + * // Fetch zero or more Families + * const families = await prisma.family.findMany() + * ``` + */ + get family(): Prisma.FamilyDelegate; + + /** + * `prisma.familyMember`: Exposes CRUD operations for the **FamilyMember** model. + * Example usage: + * ```ts + * // Fetch zero or more FamilyMembers + * const familyMembers = await prisma.familyMember.findMany() + * ``` + */ + get familyMember(): Prisma.FamilyMemberDelegate; + + /** + * `prisma.familyInvitation`: Exposes CRUD operations for the **FamilyInvitation** model. + * Example usage: + * ```ts + * // Fetch zero or more FamilyInvitations + * const familyInvitations = await prisma.familyInvitation.findMany() + * ``` + */ + get familyInvitation(): Prisma.FamilyInvitationDelegate; + + /** + * `prisma.income`: Exposes CRUD operations for the **Income** model. + * Example usage: + * ```ts + * // Fetch zero or more Incomes + * const incomes = await prisma.income.findMany() + * ``` + */ + get income(): Prisma.IncomeDelegate; + + /** + * `prisma.incomeCategory`: Exposes CRUD operations for the **IncomeCategory** model. + * Example usage: + * ```ts + * // Fetch zero or more IncomeCategories + * const incomeCategories = await prisma.incomeCategory.findMany() + * ``` + */ + get incomeCategory(): Prisma.IncomeCategoryDelegate; + + /** + * `prisma.userIncomeCategory`: Exposes CRUD operations for the **UserIncomeCategory** model. + * Example usage: + * ```ts + * // Fetch zero or more UserIncomeCategories + * const userIncomeCategories = await prisma.userIncomeCategory.findMany() + * ``` + */ + get userIncomeCategory(): Prisma.UserIncomeCategoryDelegate; + + /** + * `prisma.notification`: Exposes CRUD operations for the **Notification** model. + * Example usage: + * ```ts + * // Fetch zero or more Notifications + * const notifications = await prisma.notification.findMany() + * ``` + */ + get notification(): Prisma.NotificationDelegate; + + /** + * `prisma.notificationPreference`: Exposes CRUD operations for the **NotificationPreference** model. + * Example usage: + * ```ts + * // Fetch zero or more NotificationPreferences + * const notificationPreferences = await prisma.notificationPreference.findMany() + * ``` + */ + get notificationPreference(): Prisma.NotificationPreferenceDelegate; + + /** + * `prisma.deviceToken`: Exposes CRUD operations for the **DeviceToken** model. + * Example usage: + * ```ts + * // Fetch zero or more DeviceTokens + * const deviceTokens = await prisma.deviceToken.findMany() + * ``` + */ + get deviceToken(): Prisma.DeviceTokenDelegate; + + /** + * `prisma.webPushSubscription`: Exposes CRUD operations for the **WebPushSubscription** model. + * Example usage: + * ```ts + * // Fetch zero or more WebPushSubscriptions + * const webPushSubscriptions = await prisma.webPushSubscription.findMany() + * ``` + */ + get webPushSubscription(): Prisma.WebPushSubscriptionDelegate; + + /** + * `prisma.paymentMethod`: Exposes CRUD operations for the **PaymentMethod** model. + * Example usage: + * ```ts + * // Fetch zero or more PaymentMethods + * const paymentMethods = await prisma.paymentMethod.findMany() + * ``` + */ + get paymentMethod(): Prisma.PaymentMethodDelegate; + + /** + * `prisma.receipt`: Exposes CRUD operations for the **Receipt** model. + * Example usage: + * ```ts + * // Fetch zero or more Receipts + * const receipts = await prisma.receipt.findMany() + * ``` + */ + get receipt(): Prisma.ReceiptDelegate; + + /** + * `prisma.user`: Exposes CRUD operations for the **User** model. + * Example usage: + * ```ts + * // Fetch zero or more Users + * const users = await prisma.user.findMany() + * ``` + */ + get user(): Prisma.UserDelegate; + + /** + * `prisma.store`: Exposes CRUD operations for the **Store** model. + * Example usage: + * ```ts + * // Fetch zero or more Stores + * const stores = await prisma.store.findMany() + * ``` + */ + get store(): Prisma.StoreDelegate; + + /** + * `prisma.item`: Exposes CRUD operations for the **Item** model. + * Example usage: + * ```ts + * // Fetch zero or more Items + * const items = await prisma.item.findMany() + * ``` + */ + get item(): Prisma.ItemDelegate; + + /** + * `prisma.storeItem`: Exposes CRUD operations for the **StoreItem** model. + * Example usage: + * ```ts + * // Fetch zero or more StoreItems + * const storeItems = await prisma.storeItem.findMany() + * ``` + */ + get storeItem(): Prisma.StoreItemDelegate; + + /** + * `prisma.itemSize`: Exposes CRUD operations for the **ItemSize** model. + * Example usage: + * ```ts + * // Fetch zero or more ItemSizes + * const itemSizes = await prisma.itemSize.findMany() + * ``` + */ + get itemSize(): Prisma.ItemSizeDelegate; + + /** + * `prisma.storeItemDiscount`: Exposes CRUD operations for the **StoreItemDiscount** model. + * Example usage: + * ```ts + * // Fetch zero or more StoreItemDiscounts + * const storeItemDiscounts = await prisma.storeItemDiscount.findMany() + * ``` + */ + get storeItemDiscount(): Prisma.StoreItemDiscountDelegate; + + /** + * `prisma.itemCategory`: Exposes CRUD operations for the **ItemCategory** model. + * Example usage: + * ```ts + * // Fetch zero or more ItemCategories + * const itemCategories = await prisma.itemCategory.findMany() + * ``` + */ + get itemCategory(): Prisma.ItemCategoryDelegate; + + /** + * `prisma.userStore`: Exposes CRUD operations for the **UserStore** model. + * Example usage: + * ```ts + * // Fetch zero or more UserStores + * const userStores = await prisma.userStore.findMany() + * ``` + */ + get userStore(): Prisma.UserStoreDelegate; + + /** + * `prisma.userItem`: Exposes CRUD operations for the **UserItem** model. + * Example usage: + * ```ts + * // Fetch zero or more UserItems + * const userItems = await prisma.userItem.findMany() + * ``` + */ + get userItem(): Prisma.UserItemDelegate; + + /** + * `prisma.userStoreItem`: Exposes CRUD operations for the **UserStoreItem** model. + * Example usage: + * ```ts + * // Fetch zero or more UserStoreItems + * const userStoreItems = await prisma.userStoreItem.findMany() + * ``` + */ + get userStoreItem(): Prisma.UserStoreItemDelegate; + + /** + * `prisma.userItemCategory`: Exposes CRUD operations for the **UserItemCategory** model. + * Example usage: + * ```ts + * // Fetch zero or more UserItemCategories + * const userItemCategories = await prisma.userItemCategory.findMany() + * ``` + */ + get userItemCategory(): Prisma.UserItemCategoryDelegate; + + /** + * `prisma.transaction`: Exposes CRUD operations for the **Transaction** model. + * Example usage: + * ```ts + * // Fetch zero or more Transactions + * const transactions = await prisma.transaction.findMany() + * ``` + */ + get transaction(): Prisma.TransactionDelegate; +} + +export function getPrismaClientClass(): PrismaClientConstructor { + return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor +} diff --git a/apps/backend/prisma/generated/generated/prisma/internal/prismaNamespace.ts b/apps/backend/prisma/generated/generated/prisma/internal/prismaNamespace.ts new file mode 100644 index 00000000..b64e0774 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/internal/prismaNamespace.ts @@ -0,0 +1,3840 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * 🛑 Under no circumstances should you import this file directly! 🛑 + * + * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file. + * While this enables partial backward compatibility, it is not part of the stable public API. + * + * If you are looking for your Models, Enums, and Input Types, please import them from the respective + * model files in the `model` directory! + */ + +import * as runtime from "@prisma/client/runtime/client" +import type * as Prisma from "../models" +import { type PrismaClient } from "./class" + +export type * from '../models' + +export type DMMF = typeof runtime.DMMF + +export type PrismaPromise = runtime.Types.Public.PrismaPromise + +/** + * Prisma Errors + */ + +export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError +export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError + +export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError +export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError + +export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError +export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError + +export const PrismaClientInitializationError = runtime.PrismaClientInitializationError +export type PrismaClientInitializationError = runtime.PrismaClientInitializationError + +export const PrismaClientValidationError = runtime.PrismaClientValidationError +export type PrismaClientValidationError = runtime.PrismaClientValidationError + +/** + * Re-export of sql-template-tag + */ +export const sql = runtime.sqltag +export const empty = runtime.empty +export const join = runtime.join +export const raw = runtime.raw +export const Sql = runtime.Sql +export type Sql = runtime.Sql + + + +/** + * Decimal.js + */ +export const Decimal = runtime.Decimal +export type Decimal = runtime.Decimal + +export type DecimalJsLike = runtime.DecimalJsLike + +/** +* Extensions +*/ +export type Extension = runtime.Types.Extensions.UserArgs +export const getExtensionContext = runtime.Extensions.getExtensionContext +export type Args = runtime.Types.Public.Args +export type Payload = runtime.Types.Public.Payload +export type Result = runtime.Types.Public.Result +export type Exact = runtime.Types.Public.Exact + +export type PrismaVersion = { + client: string + engine: string +} + +/** + * Prisma Client JS version: 7.4.1 + * Query Engine version: 55ae170b1ced7fc6ed07a15f110549408c501bb3 + */ +export const prismaVersion: PrismaVersion = { + client: "7.4.1", + engine: "55ae170b1ced7fc6ed07a15f110549408c501bb3" +} + +/** + * Utility Types + */ + +export type Bytes = runtime.Bytes +export type JsonObject = runtime.JsonObject +export type JsonArray = runtime.JsonArray +export type JsonValue = runtime.JsonValue +export type InputJsonObject = runtime.InputJsonObject +export type InputJsonArray = runtime.InputJsonArray +export type InputJsonValue = runtime.InputJsonValue + + +export const NullTypes = { + DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull), + JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull), + AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull), +} +/** + * Helper for filtering JSON entries that have `null` on the database (empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const DbNull = runtime.DbNull + +/** + * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const JsonNull = runtime.JsonNull + +/** + * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const AnyNull = runtime.AnyNull + + +type SelectAndInclude = { + select: any + include: any +} + +type SelectAndOmit = { + select: any + omit: any +} + +/** + * From T, pick a set of properties whose keys are in the union K + */ +type Prisma__Pick = { + [P in K]: T[P]; +}; + +export type Enumerable = T | Array; + +/** + * Subset + * @desc From `T` pick properties that exist in `U`. Simple version of Intersection + */ +export type Subset = { + [key in keyof T]: key extends keyof U ? T[key] : never; +}; + +/** + * SelectSubset + * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. + * Additionally, it validates, if both select and include are present. If the case, it errors. + */ +export type SelectSubset = { + [key in keyof T]: key extends keyof U ? T[key] : never +} & + (T extends SelectAndInclude + ? 'Please either choose `select` or `include`.' + : T extends SelectAndOmit + ? 'Please either choose `select` or `omit`.' + : {}) + +/** + * Subset + Intersection + * @desc From `T` pick properties that exist in `U` and intersect `K` + */ +export type SubsetIntersection = { + [key in keyof T]: key extends keyof U ? T[key] : never +} & + K + +type Without = { [P in Exclude]?: never }; + +/** + * XOR is needed to have a real mutually exclusive union type + * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types + */ +export type XOR = + T extends object ? + U extends object ? + (Without & U) | (Without & T) + : U : T + + +/** + * Is T a Record? + */ +type IsObject = T extends Array +? False +: T extends Date +? False +: T extends Uint8Array +? False +: T extends BigInt +? False +: T extends object +? True +: False + + +/** + * If it's T[], return T + */ +export type UnEnumerate = T extends Array ? U : T + +/** + * From ts-toolbelt + */ + +type __Either = Omit & + { + // Merge all but K + [P in K]: Prisma__Pick // With K possibilities + }[K] + +type EitherStrict = Strict<__Either> + +type EitherLoose = ComputeRaw<__Either> + +type _Either< + O extends object, + K extends Key, + strict extends Boolean +> = { + 1: EitherStrict + 0: EitherLoose +}[strict] + +export type Either< + O extends object, + K extends Key, + strict extends Boolean = 1 +> = O extends unknown ? _Either : never + +export type Union = any + +export type PatchUndefined = { + [K in keyof O]: O[K] extends undefined ? At : O[K] +} & {} + +/** Helper Types for "Merge" **/ +export type IntersectOf = ( + U extends unknown ? (k: U) => void : never +) extends (k: infer I) => void + ? I + : never + +export type Overwrite = { + [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; +} & {}; + +type _Merge = IntersectOf; +}>>; + +type Key = string | number | symbol; +type AtStrict = O[K & keyof O]; +type AtLoose = O extends unknown ? AtStrict : never; +export type At = { + 1: AtStrict; + 0: AtLoose; +}[strict]; + +export type ComputeRaw = A extends Function ? A : { + [K in keyof A]: A[K]; +} & {}; + +export type OptionalFlat = { + [K in keyof O]?: O[K]; +} & {}; + +type _Record = { + [P in K]: T; +}; + +// cause typescript not to expand types and preserve names +type NoExpand = T extends unknown ? T : never; + +// this type assumes the passed object is entirely optional +export type AtLeast = NoExpand< + O extends unknown + ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) + | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O + : never>; + +type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; + +export type Strict = ComputeRaw<_Strict>; +/** End Helper Types for "Merge" **/ + +export type Merge = ComputeRaw<_Merge>>; + +export type Boolean = True | False + +export type True = 1 + +export type False = 0 + +export type Not = { + 0: 1 + 1: 0 +}[B] + +export type Extends = [A1] extends [never] + ? 0 // anything `never` is false + : A1 extends A2 + ? 1 + : 0 + +export type Has = Not< + Extends, U1> +> + +export type Or = { + 0: { + 0: 0 + 1: 1 + } + 1: { + 0: 1 + 1: 1 + } +}[B1][B2] + +export type Keys = U extends unknown ? keyof U : never + +export type GetScalarType = O extends object ? { + [P in keyof T]: P extends keyof O + ? O[P] + : never +} : never + +type FieldPaths< + T, + U = Omit +> = IsObject extends True ? U : T + +export type GetHavingFields = { + [K in keyof T]: Or< + Or, Extends<'AND', K>>, + Extends<'NOT', K> + > extends True + ? // infer is only needed to not hit TS limit + // based on the brilliant idea of Pierre-Antoine Mills + // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 + T[K] extends infer TK + ? GetHavingFields extends object ? Merge> : never> + : never + : {} extends FieldPaths + ? never + : K +}[keyof T] + +/** + * Convert tuple to union + */ +type _TupleToUnion = T extends (infer E)[] ? E : never +type TupleToUnion = _TupleToUnion +export type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T + +/** + * Like `Pick`, but additionally can also accept an array of keys + */ +export type PickEnumerable | keyof T> = Prisma__Pick> + +/** + * Exclude all keys with underscores + */ +export type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T + + +export type FieldRef = runtime.FieldRef + +type FieldRefInputType = Model extends never ? never : FieldRef + + +export const ModelName = { + Account: 'Account', + Session: 'Session', + Verification: 'Verification', + Basket: 'Basket', + BasketItem: 'BasketItem', + ExpenseItem: 'ExpenseItem', + Expense: 'Expense', + ExpenseCategory: 'ExpenseCategory', + UserExpenseCategory: 'UserExpenseCategory', + Family: 'Family', + FamilyMember: 'FamilyMember', + FamilyInvitation: 'FamilyInvitation', + Income: 'Income', + IncomeCategory: 'IncomeCategory', + UserIncomeCategory: 'UserIncomeCategory', + Notification: 'Notification', + NotificationPreference: 'NotificationPreference', + DeviceToken: 'DeviceToken', + WebPushSubscription: 'WebPushSubscription', + PaymentMethod: 'PaymentMethod', + Receipt: 'Receipt', + User: 'User', + Store: 'Store', + Item: 'Item', + StoreItem: 'StoreItem', + ItemSize: 'ItemSize', + StoreItemDiscount: 'StoreItemDiscount', + ItemCategory: 'ItemCategory', + UserStore: 'UserStore', + UserItem: 'UserItem', + UserStoreItem: 'UserStoreItem', + UserItemCategory: 'UserItemCategory', + Transaction: 'Transaction' +} as const + +export type ModelName = (typeof ModelName)[keyof typeof ModelName] + + + +export interface TypeMapCb extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record> { + returns: TypeMap +} + +export type TypeMap = { + globalOmitOptions: { + omit: GlobalOmitOptions + } + meta: { + modelProps: "account" | "session" | "verification" | "basket" | "basketItem" | "expenseItem" | "expense" | "expenseCategory" | "userExpenseCategory" | "family" | "familyMember" | "familyInvitation" | "income" | "incomeCategory" | "userIncomeCategory" | "notification" | "notificationPreference" | "deviceToken" | "webPushSubscription" | "paymentMethod" | "receipt" | "user" | "store" | "item" | "storeItem" | "itemSize" | "storeItemDiscount" | "itemCategory" | "userStore" | "userItem" | "userStoreItem" | "userItemCategory" | "transaction" + txIsolationLevel: TransactionIsolationLevel + } + model: { + Account: { + payload: Prisma.$AccountPayload + fields: Prisma.AccountFieldRefs + operations: { + findUnique: { + args: Prisma.AccountFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AccountFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AccountFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AccountFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AccountFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AccountCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AccountCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AccountCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.AccountDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AccountUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AccountDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AccountUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AccountUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AccountUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AccountAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AccountGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AccountCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Session: { + payload: Prisma.$SessionPayload + fields: Prisma.SessionFieldRefs + operations: { + findUnique: { + args: Prisma.SessionFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.SessionFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.SessionFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.SessionFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.SessionFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.SessionCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.SessionCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.SessionCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.SessionDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.SessionUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.SessionDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.SessionUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.SessionUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.SessionUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.SessionAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.SessionGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.SessionCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Verification: { + payload: Prisma.$VerificationPayload + fields: Prisma.VerificationFieldRefs + operations: { + findUnique: { + args: Prisma.VerificationFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.VerificationFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.VerificationFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.VerificationFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.VerificationFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.VerificationCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.VerificationCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.VerificationCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.VerificationDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.VerificationUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.VerificationDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.VerificationUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.VerificationUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.VerificationUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.VerificationAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.VerificationGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.VerificationCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Basket: { + payload: Prisma.$BasketPayload + fields: Prisma.BasketFieldRefs + operations: { + findUnique: { + args: Prisma.BasketFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.BasketFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.BasketFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.BasketFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.BasketFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.BasketCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.BasketCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.BasketCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.BasketDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.BasketUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.BasketDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.BasketUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.BasketUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.BasketUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.BasketAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.BasketGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.BasketCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + BasketItem: { + payload: Prisma.$BasketItemPayload + fields: Prisma.BasketItemFieldRefs + operations: { + findUnique: { + args: Prisma.BasketItemFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.BasketItemFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.BasketItemFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.BasketItemFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.BasketItemFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.BasketItemCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.BasketItemCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.BasketItemCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.BasketItemDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.BasketItemUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.BasketItemDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.BasketItemUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.BasketItemUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.BasketItemUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.BasketItemAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.BasketItemGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.BasketItemCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ExpenseItem: { + payload: Prisma.$ExpenseItemPayload + fields: Prisma.ExpenseItemFieldRefs + operations: { + findUnique: { + args: Prisma.ExpenseItemFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ExpenseItemFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ExpenseItemFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ExpenseItemFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ExpenseItemFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ExpenseItemCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ExpenseItemCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ExpenseItemCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ExpenseItemDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ExpenseItemUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ExpenseItemDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ExpenseItemUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ExpenseItemUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ExpenseItemUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ExpenseItemAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ExpenseItemGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ExpenseItemCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Expense: { + payload: Prisma.$ExpensePayload + fields: Prisma.ExpenseFieldRefs + operations: { + findUnique: { + args: Prisma.ExpenseFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ExpenseFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ExpenseFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ExpenseFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ExpenseFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ExpenseCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ExpenseCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ExpenseCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ExpenseDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ExpenseUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ExpenseDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ExpenseUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ExpenseUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ExpenseUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ExpenseAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ExpenseGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ExpenseCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ExpenseCategory: { + payload: Prisma.$ExpenseCategoryPayload + fields: Prisma.ExpenseCategoryFieldRefs + operations: { + findUnique: { + args: Prisma.ExpenseCategoryFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ExpenseCategoryFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ExpenseCategoryFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ExpenseCategoryFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ExpenseCategoryFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ExpenseCategoryCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ExpenseCategoryCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ExpenseCategoryCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ExpenseCategoryDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ExpenseCategoryUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ExpenseCategoryDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ExpenseCategoryUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ExpenseCategoryUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ExpenseCategoryUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ExpenseCategoryAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ExpenseCategoryGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ExpenseCategoryCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + UserExpenseCategory: { + payload: Prisma.$UserExpenseCategoryPayload + fields: Prisma.UserExpenseCategoryFieldRefs + operations: { + findUnique: { + args: Prisma.UserExpenseCategoryFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.UserExpenseCategoryFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.UserExpenseCategoryFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.UserExpenseCategoryFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.UserExpenseCategoryFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.UserExpenseCategoryCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.UserExpenseCategoryCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.UserExpenseCategoryCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.UserExpenseCategoryDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.UserExpenseCategoryUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.UserExpenseCategoryDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.UserExpenseCategoryUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.UserExpenseCategoryUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.UserExpenseCategoryUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.UserExpenseCategoryAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.UserExpenseCategoryGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.UserExpenseCategoryCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Family: { + payload: Prisma.$FamilyPayload + fields: Prisma.FamilyFieldRefs + operations: { + findUnique: { + args: Prisma.FamilyFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.FamilyFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.FamilyFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.FamilyFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.FamilyFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.FamilyCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.FamilyCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.FamilyCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.FamilyDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.FamilyUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.FamilyDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.FamilyUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.FamilyUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.FamilyUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.FamilyAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.FamilyGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.FamilyCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + FamilyMember: { + payload: Prisma.$FamilyMemberPayload + fields: Prisma.FamilyMemberFieldRefs + operations: { + findUnique: { + args: Prisma.FamilyMemberFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.FamilyMemberFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.FamilyMemberFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.FamilyMemberFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.FamilyMemberFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.FamilyMemberCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.FamilyMemberCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.FamilyMemberCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.FamilyMemberDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.FamilyMemberUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.FamilyMemberDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.FamilyMemberUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.FamilyMemberUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.FamilyMemberUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.FamilyMemberAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.FamilyMemberGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.FamilyMemberCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + FamilyInvitation: { + payload: Prisma.$FamilyInvitationPayload + fields: Prisma.FamilyInvitationFieldRefs + operations: { + findUnique: { + args: Prisma.FamilyInvitationFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.FamilyInvitationFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.FamilyInvitationFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.FamilyInvitationFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.FamilyInvitationFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.FamilyInvitationCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.FamilyInvitationCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.FamilyInvitationCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.FamilyInvitationDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.FamilyInvitationUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.FamilyInvitationDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.FamilyInvitationUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.FamilyInvitationUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.FamilyInvitationUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.FamilyInvitationAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.FamilyInvitationGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.FamilyInvitationCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Income: { + payload: Prisma.$IncomePayload + fields: Prisma.IncomeFieldRefs + operations: { + findUnique: { + args: Prisma.IncomeFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.IncomeFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.IncomeFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.IncomeFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.IncomeFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.IncomeCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.IncomeCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.IncomeCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.IncomeDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.IncomeUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.IncomeDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.IncomeUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.IncomeUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.IncomeUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.IncomeAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.IncomeGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.IncomeCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + IncomeCategory: { + payload: Prisma.$IncomeCategoryPayload + fields: Prisma.IncomeCategoryFieldRefs + operations: { + findUnique: { + args: Prisma.IncomeCategoryFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.IncomeCategoryFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.IncomeCategoryFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.IncomeCategoryFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.IncomeCategoryFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.IncomeCategoryCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.IncomeCategoryCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.IncomeCategoryCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.IncomeCategoryDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.IncomeCategoryUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.IncomeCategoryDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.IncomeCategoryUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.IncomeCategoryUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.IncomeCategoryUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.IncomeCategoryAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.IncomeCategoryGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.IncomeCategoryCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + UserIncomeCategory: { + payload: Prisma.$UserIncomeCategoryPayload + fields: Prisma.UserIncomeCategoryFieldRefs + operations: { + findUnique: { + args: Prisma.UserIncomeCategoryFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.UserIncomeCategoryFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.UserIncomeCategoryFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.UserIncomeCategoryFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.UserIncomeCategoryFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.UserIncomeCategoryCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.UserIncomeCategoryCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.UserIncomeCategoryCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.UserIncomeCategoryDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.UserIncomeCategoryUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.UserIncomeCategoryDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.UserIncomeCategoryUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.UserIncomeCategoryUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.UserIncomeCategoryUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.UserIncomeCategoryAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.UserIncomeCategoryGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.UserIncomeCategoryCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Notification: { + payload: Prisma.$NotificationPayload + fields: Prisma.NotificationFieldRefs + operations: { + findUnique: { + args: Prisma.NotificationFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.NotificationFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.NotificationFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.NotificationFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.NotificationFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.NotificationCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.NotificationCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.NotificationCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.NotificationDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.NotificationUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.NotificationDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.NotificationUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.NotificationUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.NotificationUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.NotificationAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.NotificationGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.NotificationCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + NotificationPreference: { + payload: Prisma.$NotificationPreferencePayload + fields: Prisma.NotificationPreferenceFieldRefs + operations: { + findUnique: { + args: Prisma.NotificationPreferenceFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.NotificationPreferenceFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.NotificationPreferenceFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.NotificationPreferenceFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.NotificationPreferenceFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.NotificationPreferenceCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.NotificationPreferenceCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.NotificationPreferenceCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.NotificationPreferenceDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.NotificationPreferenceUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.NotificationPreferenceDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.NotificationPreferenceUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.NotificationPreferenceUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.NotificationPreferenceUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.NotificationPreferenceAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.NotificationPreferenceGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.NotificationPreferenceCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + DeviceToken: { + payload: Prisma.$DeviceTokenPayload + fields: Prisma.DeviceTokenFieldRefs + operations: { + findUnique: { + args: Prisma.DeviceTokenFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.DeviceTokenFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.DeviceTokenFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.DeviceTokenFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.DeviceTokenFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.DeviceTokenCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.DeviceTokenCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.DeviceTokenCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.DeviceTokenDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.DeviceTokenUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.DeviceTokenDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.DeviceTokenUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.DeviceTokenUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.DeviceTokenUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.DeviceTokenAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.DeviceTokenGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.DeviceTokenCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + WebPushSubscription: { + payload: Prisma.$WebPushSubscriptionPayload + fields: Prisma.WebPushSubscriptionFieldRefs + operations: { + findUnique: { + args: Prisma.WebPushSubscriptionFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.WebPushSubscriptionFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.WebPushSubscriptionFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.WebPushSubscriptionFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.WebPushSubscriptionFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.WebPushSubscriptionCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.WebPushSubscriptionCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.WebPushSubscriptionCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.WebPushSubscriptionDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.WebPushSubscriptionUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.WebPushSubscriptionDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.WebPushSubscriptionUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.WebPushSubscriptionUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.WebPushSubscriptionUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.WebPushSubscriptionAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.WebPushSubscriptionGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.WebPushSubscriptionCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + PaymentMethod: { + payload: Prisma.$PaymentMethodPayload + fields: Prisma.PaymentMethodFieldRefs + operations: { + findUnique: { + args: Prisma.PaymentMethodFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.PaymentMethodFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.PaymentMethodFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.PaymentMethodFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.PaymentMethodFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.PaymentMethodCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.PaymentMethodCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.PaymentMethodCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.PaymentMethodDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.PaymentMethodUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.PaymentMethodDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.PaymentMethodUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.PaymentMethodUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.PaymentMethodUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.PaymentMethodAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.PaymentMethodGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.PaymentMethodCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Receipt: { + payload: Prisma.$ReceiptPayload + fields: Prisma.ReceiptFieldRefs + operations: { + findUnique: { + args: Prisma.ReceiptFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ReceiptFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ReceiptFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ReceiptFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ReceiptFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ReceiptCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ReceiptCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ReceiptCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ReceiptDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ReceiptUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ReceiptDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ReceiptUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ReceiptUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ReceiptUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ReceiptAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ReceiptGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ReceiptCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + User: { + payload: Prisma.$UserPayload + fields: Prisma.UserFieldRefs + operations: { + findUnique: { + args: Prisma.UserFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.UserFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.UserFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.UserFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.UserFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.UserCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.UserCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.UserCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.UserDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.UserUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.UserDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.UserUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.UserUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.UserUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.UserAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.UserGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.UserCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Store: { + payload: Prisma.$StorePayload + fields: Prisma.StoreFieldRefs + operations: { + findUnique: { + args: Prisma.StoreFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.StoreFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.StoreFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.StoreFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.StoreFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.StoreCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.StoreCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.StoreCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.StoreDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.StoreUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.StoreDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.StoreUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.StoreUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.StoreUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.StoreAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.StoreGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.StoreCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Item: { + payload: Prisma.$ItemPayload + fields: Prisma.ItemFieldRefs + operations: { + findUnique: { + args: Prisma.ItemFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ItemFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ItemFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ItemFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ItemFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ItemCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ItemCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ItemCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ItemDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ItemUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ItemDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ItemUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ItemUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ItemUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ItemAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ItemGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ItemCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + StoreItem: { + payload: Prisma.$StoreItemPayload + fields: Prisma.StoreItemFieldRefs + operations: { + findUnique: { + args: Prisma.StoreItemFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.StoreItemFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.StoreItemFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.StoreItemFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.StoreItemFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.StoreItemCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.StoreItemCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.StoreItemCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.StoreItemDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.StoreItemUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.StoreItemDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.StoreItemUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.StoreItemUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.StoreItemUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.StoreItemAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.StoreItemGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.StoreItemCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ItemSize: { + payload: Prisma.$ItemSizePayload + fields: Prisma.ItemSizeFieldRefs + operations: { + findUnique: { + args: Prisma.ItemSizeFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ItemSizeFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ItemSizeFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ItemSizeFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ItemSizeFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ItemSizeCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ItemSizeCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ItemSizeCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ItemSizeDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ItemSizeUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ItemSizeDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ItemSizeUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ItemSizeUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ItemSizeUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ItemSizeAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ItemSizeGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ItemSizeCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + StoreItemDiscount: { + payload: Prisma.$StoreItemDiscountPayload + fields: Prisma.StoreItemDiscountFieldRefs + operations: { + findUnique: { + args: Prisma.StoreItemDiscountFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.StoreItemDiscountFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.StoreItemDiscountFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.StoreItemDiscountFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.StoreItemDiscountFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.StoreItemDiscountCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.StoreItemDiscountCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.StoreItemDiscountCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.StoreItemDiscountDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.StoreItemDiscountUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.StoreItemDiscountDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.StoreItemDiscountUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.StoreItemDiscountUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.StoreItemDiscountUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.StoreItemDiscountAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.StoreItemDiscountGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.StoreItemDiscountCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ItemCategory: { + payload: Prisma.$ItemCategoryPayload + fields: Prisma.ItemCategoryFieldRefs + operations: { + findUnique: { + args: Prisma.ItemCategoryFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ItemCategoryFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ItemCategoryFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ItemCategoryFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ItemCategoryFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ItemCategoryCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ItemCategoryCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ItemCategoryCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ItemCategoryDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ItemCategoryUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ItemCategoryDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ItemCategoryUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ItemCategoryUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ItemCategoryUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ItemCategoryAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ItemCategoryGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ItemCategoryCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + UserStore: { + payload: Prisma.$UserStorePayload + fields: Prisma.UserStoreFieldRefs + operations: { + findUnique: { + args: Prisma.UserStoreFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.UserStoreFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.UserStoreFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.UserStoreFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.UserStoreFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.UserStoreCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.UserStoreCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.UserStoreCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.UserStoreDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.UserStoreUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.UserStoreDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.UserStoreUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.UserStoreUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.UserStoreUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.UserStoreAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.UserStoreGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.UserStoreCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + UserItem: { + payload: Prisma.$UserItemPayload + fields: Prisma.UserItemFieldRefs + operations: { + findUnique: { + args: Prisma.UserItemFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.UserItemFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.UserItemFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.UserItemFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.UserItemFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.UserItemCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.UserItemCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.UserItemCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.UserItemDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.UserItemUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.UserItemDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.UserItemUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.UserItemUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.UserItemUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.UserItemAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.UserItemGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.UserItemCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + UserStoreItem: { + payload: Prisma.$UserStoreItemPayload + fields: Prisma.UserStoreItemFieldRefs + operations: { + findUnique: { + args: Prisma.UserStoreItemFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.UserStoreItemFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.UserStoreItemFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.UserStoreItemFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.UserStoreItemFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.UserStoreItemCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.UserStoreItemCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.UserStoreItemCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.UserStoreItemDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.UserStoreItemUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.UserStoreItemDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.UserStoreItemUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.UserStoreItemUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.UserStoreItemUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.UserStoreItemAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.UserStoreItemGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.UserStoreItemCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + UserItemCategory: { + payload: Prisma.$UserItemCategoryPayload + fields: Prisma.UserItemCategoryFieldRefs + operations: { + findUnique: { + args: Prisma.UserItemCategoryFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.UserItemCategoryFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.UserItemCategoryFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.UserItemCategoryFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.UserItemCategoryFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.UserItemCategoryCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.UserItemCategoryCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.UserItemCategoryCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.UserItemCategoryDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.UserItemCategoryUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.UserItemCategoryDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.UserItemCategoryUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.UserItemCategoryUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.UserItemCategoryUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.UserItemCategoryAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.UserItemCategoryGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.UserItemCategoryCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Transaction: { + payload: Prisma.$TransactionPayload + fields: Prisma.TransactionFieldRefs + operations: { + findUnique: { + args: Prisma.TransactionFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.TransactionFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.TransactionFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.TransactionFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.TransactionFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.TransactionCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.TransactionCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.TransactionCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.TransactionDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.TransactionUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.TransactionDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.TransactionUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.TransactionUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.TransactionUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.TransactionAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.TransactionGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.TransactionCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + } +} & { + other: { + payload: any + operations: { + $executeRaw: { + args: [query: TemplateStringsArray | Sql, ...values: any[]], + result: any + } + $executeRawUnsafe: { + args: [query: string, ...values: any[]], + result: any + } + $queryRaw: { + args: [query: TemplateStringsArray | Sql, ...values: any[]], + result: any + } + $queryRawUnsafe: { + args: [query: string, ...values: any[]], + result: any + } + } + } +} + +/** + * Enums + */ + +export const TransactionIsolationLevel = runtime.makeStrictEnum({ + ReadUncommitted: 'ReadUncommitted', + ReadCommitted: 'ReadCommitted', + RepeatableRead: 'RepeatableRead', + Serializable: 'Serializable' +} as const) + +export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + + +export const AccountScalarFieldEnum = { + id: 'id', + userId: 'userId', + accountId: 'accountId', + providerId: 'providerId', + accessToken: 'accessToken', + refreshToken: 'refreshToken', + idToken: 'idToken', + accessTokenExpiresAt: 'accessTokenExpiresAt', + scope: 'scope', + expiresAt: 'expiresAt', + password: 'password', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum] + + +export const SessionScalarFieldEnum = { + id: 'id', + userId: 'userId', + expiresAt: 'expiresAt', + token: 'token', + ipAddress: 'ipAddress', + userAgent: 'userAgent', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum] + + +export const VerificationScalarFieldEnum = { + id: 'id', + identifier: 'identifier', + value: 'value', + expiresAt: 'expiresAt', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type VerificationScalarFieldEnum = (typeof VerificationScalarFieldEnum)[keyof typeof VerificationScalarFieldEnum] + + +export const BasketScalarFieldEnum = { + id: 'id', + userId: 'userId', + familyId: 'familyId', + scope: 'scope', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type BasketScalarFieldEnum = (typeof BasketScalarFieldEnum)[keyof typeof BasketScalarFieldEnum] + + +export const BasketItemScalarFieldEnum = { + id: 'id', + basketId: 'basketId', + name: 'name', + quantity: 'quantity', + price: 'price', + categoryId: 'categoryId', + notes: 'notes', + addedBy: 'addedBy', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type BasketItemScalarFieldEnum = (typeof BasketItemScalarFieldEnum)[keyof typeof BasketItemScalarFieldEnum] + + +export const ExpenseItemScalarFieldEnum = { + id: 'id', + itemId: 'itemId', + expenseId: 'expenseId', + price: 'price', + discount: 'discount', + quantity: 'quantity', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type ExpenseItemScalarFieldEnum = (typeof ExpenseItemScalarFieldEnum)[keyof typeof ExpenseItemScalarFieldEnum] + + +export const ExpenseScalarFieldEnum = { + id: 'id', + transactionId: 'transactionId', + storeId: 'storeId', + categoryId: 'categoryId', + description: 'description', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type ExpenseScalarFieldEnum = (typeof ExpenseScalarFieldEnum)[keyof typeof ExpenseScalarFieldEnum] + + +export const ExpenseCategoryScalarFieldEnum = { + id: 'id', + parentId: 'parentId', + name: 'name', + isConnectedToStore: 'isConnectedToStore', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type ExpenseCategoryScalarFieldEnum = (typeof ExpenseCategoryScalarFieldEnum)[keyof typeof ExpenseCategoryScalarFieldEnum] + + +export const UserExpenseCategoryScalarFieldEnum = { + id: 'id', + userId: 'userId', + categoryId: 'categoryId', + createdAt: 'createdAt' +} as const + +export type UserExpenseCategoryScalarFieldEnum = (typeof UserExpenseCategoryScalarFieldEnum)[keyof typeof UserExpenseCategoryScalarFieldEnum] + + +export const FamilyScalarFieldEnum = { + id: 'id', + name: 'name', + balance: 'balance', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type FamilyScalarFieldEnum = (typeof FamilyScalarFieldEnum)[keyof typeof FamilyScalarFieldEnum] + + +export const FamilyMemberScalarFieldEnum = { + id: 'id', + familyId: 'familyId', + userId: 'userId', + role: 'role', + balance: 'balance', + joinedAt: 'joinedAt', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type FamilyMemberScalarFieldEnum = (typeof FamilyMemberScalarFieldEnum)[keyof typeof FamilyMemberScalarFieldEnum] + + +export const FamilyInvitationScalarFieldEnum = { + id: 'id', + familyId: 'familyId', + inviterId: 'inviterId', + inviteeId: 'inviteeId', + inviteeEmail: 'inviteeEmail', + status: 'status', + expiresAt: 'expiresAt', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type FamilyInvitationScalarFieldEnum = (typeof FamilyInvitationScalarFieldEnum)[keyof typeof FamilyInvitationScalarFieldEnum] + + +export const IncomeScalarFieldEnum = { + id: 'id', + transactionId: 'transactionId', + storeId: 'storeId', + categoryId: 'categoryId', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type IncomeScalarFieldEnum = (typeof IncomeScalarFieldEnum)[keyof typeof IncomeScalarFieldEnum] + + +export const IncomeCategoryScalarFieldEnum = { + id: 'id', + parentId: 'parentId', + name: 'name', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type IncomeCategoryScalarFieldEnum = (typeof IncomeCategoryScalarFieldEnum)[keyof typeof IncomeCategoryScalarFieldEnum] + + +export const UserIncomeCategoryScalarFieldEnum = { + id: 'id', + userId: 'userId', + categoryId: 'categoryId', + createdAt: 'createdAt' +} as const + +export type UserIncomeCategoryScalarFieldEnum = (typeof UserIncomeCategoryScalarFieldEnum)[keyof typeof UserIncomeCategoryScalarFieldEnum] + + +export const NotificationScalarFieldEnum = { + id: 'id', + userId: 'userId', + type: 'type', + priority: 'priority', + title: 'title', + message: 'message', + data: 'data', + deliveryMethods: 'deliveryMethods', + isRead: 'isRead', + readAt: 'readAt', + isInteracted: 'isInteracted', + interactedAt: 'interactedAt', + actionUrl: 'actionUrl', + familyId: 'familyId', + transactionId: 'transactionId', + invitationId: 'invitationId', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum] + + +export const NotificationPreferenceScalarFieldEnum = { + id: 'id', + userId: 'userId', + enablePushNotifications: 'enablePushNotifications', + enableInAppNotifications: 'enableInAppNotifications', + enableToastNotifications: 'enableToastNotifications', + quietHoursEnabled: 'quietHoursEnabled', + quietHoursStart: 'quietHoursStart', + quietHoursEnd: 'quietHoursEnd', + typePreferences: 'typePreferences', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type NotificationPreferenceScalarFieldEnum = (typeof NotificationPreferenceScalarFieldEnum)[keyof typeof NotificationPreferenceScalarFieldEnum] + + +export const DeviceTokenScalarFieldEnum = { + id: 'id', + userId: 'userId', + expoPushToken: 'expoPushToken', + platform: 'platform', + deviceId: 'deviceId', + deviceName: 'deviceName', + isActive: 'isActive', + lastUsed: 'lastUsed', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type DeviceTokenScalarFieldEnum = (typeof DeviceTokenScalarFieldEnum)[keyof typeof DeviceTokenScalarFieldEnum] + + +export const WebPushSubscriptionScalarFieldEnum = { + id: 'id', + userId: 'userId', + endpoint: 'endpoint', + p256dh: 'p256dh', + auth: 'auth', + userAgent: 'userAgent', + isActive: 'isActive', + lastUsed: 'lastUsed', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type WebPushSubscriptionScalarFieldEnum = (typeof WebPushSubscriptionScalarFieldEnum)[keyof typeof WebPushSubscriptionScalarFieldEnum] + + +export const PaymentMethodScalarFieldEnum = { + id: 'id', + userId: 'userId', + name: 'name', + type: 'type', + color: 'color', + initialBalance: 'initialBalance', + currentBalance: 'currentBalance', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type PaymentMethodScalarFieldEnum = (typeof PaymentMethodScalarFieldEnum)[keyof typeof PaymentMethodScalarFieldEnum] + + +export const ReceiptScalarFieldEnum = { + id: 'id', + userId: 'userId', + familyId: 'familyId', + expenseId: 'expenseId', + fileName: 'fileName', + originalName: 'originalName', + mimeType: 'mimeType', + fileSize: 'fileSize', + storageKey: 'storageKey', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type ReceiptScalarFieldEnum = (typeof ReceiptScalarFieldEnum)[keyof typeof ReceiptScalarFieldEnum] + + +export const UserScalarFieldEnum = { + id: 'id', + email: 'email', + name: 'name', + firstName: 'firstName', + lastName: 'lastName', + image: 'image', + balance: 'balance', + emailVerified: 'emailVerified', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] + + +export const StoreScalarFieldEnum = { + id: 'id', + name: 'name', + location: 'location', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type StoreScalarFieldEnum = (typeof StoreScalarFieldEnum)[keyof typeof StoreScalarFieldEnum] + + +export const ItemScalarFieldEnum = { + id: 'id', + categoryId: 'categoryId', + name: 'name', + nameEn: 'nameEn', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type ItemScalarFieldEnum = (typeof ItemScalarFieldEnum)[keyof typeof ItemScalarFieldEnum] + + +export const StoreItemScalarFieldEnum = { + id: 'id', + itemId: 'itemId', + storeId: 'storeId', + price: 'price', + isDiscounted: 'isDiscounted', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type StoreItemScalarFieldEnum = (typeof StoreItemScalarFieldEnum)[keyof typeof StoreItemScalarFieldEnum] + + +export const ItemSizeScalarFieldEnum = { + id: 'id', + itemId: 'itemId', + value: 'value', + unit: 'unit', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type ItemSizeScalarFieldEnum = (typeof ItemSizeScalarFieldEnum)[keyof typeof ItemSizeScalarFieldEnum] + + +export const StoreItemDiscountScalarFieldEnum = { + id: 'id', + storeItemId: 'storeItemId', + discount: 'discount', + startedAt: 'startedAt', + endedAt: 'endedAt', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type StoreItemDiscountScalarFieldEnum = (typeof StoreItemDiscountScalarFieldEnum)[keyof typeof StoreItemDiscountScalarFieldEnum] + + +export const ItemCategoryScalarFieldEnum = { + id: 'id', + parentId: 'parentId', + name: 'name', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type ItemCategoryScalarFieldEnum = (typeof ItemCategoryScalarFieldEnum)[keyof typeof ItemCategoryScalarFieldEnum] + + +export const UserStoreScalarFieldEnum = { + id: 'id', + userId: 'userId', + storeId: 'storeId', + createdAt: 'createdAt' +} as const + +export type UserStoreScalarFieldEnum = (typeof UserStoreScalarFieldEnum)[keyof typeof UserStoreScalarFieldEnum] + + +export const UserItemScalarFieldEnum = { + id: 'id', + userId: 'userId', + itemId: 'itemId', + createdAt: 'createdAt' +} as const + +export type UserItemScalarFieldEnum = (typeof UserItemScalarFieldEnum)[keyof typeof UserItemScalarFieldEnum] + + +export const UserStoreItemScalarFieldEnum = { + id: 'id', + userId: 'userId', + storeItemId: 'storeItemId', + createdAt: 'createdAt' +} as const + +export type UserStoreItemScalarFieldEnum = (typeof UserStoreItemScalarFieldEnum)[keyof typeof UserStoreItemScalarFieldEnum] + + +export const UserItemCategoryScalarFieldEnum = { + id: 'id', + userId: 'userId', + categoryId: 'categoryId', + createdAt: 'createdAt' +} as const + +export type UserItemCategoryScalarFieldEnum = (typeof UserItemCategoryScalarFieldEnum)[keyof typeof UserItemCategoryScalarFieldEnum] + + +export const TransactionScalarFieldEnum = { + id: 'id', + userId: 'userId', + familyId: 'familyId', + scope: 'scope', + type: 'type', + status: 'status', + value: 'value', + rejectionReason: 'rejectionReason', + recordedAt: 'recordedAt', + paymentMethodId: 'paymentMethodId', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type TransactionScalarFieldEnum = (typeof TransactionScalarFieldEnum)[keyof typeof TransactionScalarFieldEnum] + + +export const SortOrder = { + asc: 'asc', + desc: 'desc' +} as const + +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + + +export const NullableJsonNullValueInput = { + DbNull: DbNull, + JsonNull: JsonNull +} as const + +export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput] + + +export const JsonNullValueInput = { + JsonNull: JsonNull +} as const + +export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput] + + +export const QueryMode = { + default: 'default', + insensitive: 'insensitive' +} as const + +export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] + + +export const NullsOrder = { + first: 'first', + last: 'last' +} as const + +export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] + + +export const JsonNullValueFilter = { + DbNull: DbNull, + JsonNull: JsonNull, + AnyNull: AnyNull +} as const + +export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] + + + +/** + * Field references + */ + + +/** + * Reference to a field of type 'String' + */ +export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> + + + +/** + * Reference to a field of type 'String[]' + */ +export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> + + + +/** + * Reference to a field of type 'DateTime' + */ +export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> + + + +/** + * Reference to a field of type 'DateTime[]' + */ +export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> + + + +/** + * Reference to a field of type 'BasketScope' + */ +export type EnumBasketScopeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BasketScope'> + + + +/** + * Reference to a field of type 'BasketScope[]' + */ +export type ListEnumBasketScopeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BasketScope[]'> + + + +/** + * Reference to a field of type 'Decimal' + */ +export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal'> + + + +/** + * Reference to a field of type 'Decimal[]' + */ +export type ListDecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal[]'> + + + +/** + * Reference to a field of type 'Boolean' + */ +export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> + + + +/** + * Reference to a field of type 'FamilyMemberRole' + */ +export type EnumFamilyMemberRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'FamilyMemberRole'> + + + +/** + * Reference to a field of type 'FamilyMemberRole[]' + */ +export type ListEnumFamilyMemberRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'FamilyMemberRole[]'> + + + +/** + * Reference to a field of type 'FamilyInvitationStatus' + */ +export type EnumFamilyInvitationStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'FamilyInvitationStatus'> + + + +/** + * Reference to a field of type 'FamilyInvitationStatus[]' + */ +export type ListEnumFamilyInvitationStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'FamilyInvitationStatus[]'> + + + +/** + * Reference to a field of type 'NotificationType' + */ +export type EnumNotificationTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'NotificationType'> + + + +/** + * Reference to a field of type 'NotificationType[]' + */ +export type ListEnumNotificationTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'NotificationType[]'> + + + +/** + * Reference to a field of type 'NotificationPriority' + */ +export type EnumNotificationPriorityFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'NotificationPriority'> + + + +/** + * Reference to a field of type 'NotificationPriority[]' + */ +export type ListEnumNotificationPriorityFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'NotificationPriority[]'> + + + +/** + * Reference to a field of type 'Json' + */ +export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'> + + + +/** + * Reference to a field of type 'QueryMode' + */ +export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'> + + + +/** + * Reference to a field of type 'NotificationDeliveryMethod[]' + */ +export type ListEnumNotificationDeliveryMethodFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'NotificationDeliveryMethod[]'> + + + +/** + * Reference to a field of type 'NotificationDeliveryMethod' + */ +export type EnumNotificationDeliveryMethodFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'NotificationDeliveryMethod'> + + + +/** + * Reference to a field of type 'PaymentMethodType' + */ +export type EnumPaymentMethodTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentMethodType'> + + + +/** + * Reference to a field of type 'PaymentMethodType[]' + */ +export type ListEnumPaymentMethodTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentMethodType[]'> + + + +/** + * Reference to a field of type 'Int' + */ +export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> + + + +/** + * Reference to a field of type 'Int[]' + */ +export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'> + + + +/** + * Reference to a field of type 'TransactionScope' + */ +export type EnumTransactionScopeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TransactionScope'> + + + +/** + * Reference to a field of type 'TransactionScope[]' + */ +export type ListEnumTransactionScopeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TransactionScope[]'> + + + +/** + * Reference to a field of type 'TransactionType' + */ +export type EnumTransactionTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TransactionType'> + + + +/** + * Reference to a field of type 'TransactionType[]' + */ +export type ListEnumTransactionTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TransactionType[]'> + + + +/** + * Reference to a field of type 'TransactionStatus' + */ +export type EnumTransactionStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TransactionStatus'> + + + +/** + * Reference to a field of type 'TransactionStatus[]' + */ +export type ListEnumTransactionStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TransactionStatus[]'> + + + +/** + * Reference to a field of type 'Float' + */ +export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> + + + +/** + * Reference to a field of type 'Float[]' + */ +export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> + + +/** + * Batch Payload for updateMany & deleteMany & createMany + */ +export type BatchPayload = { + count: number +} + +export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs> +export type DefaultPrismaClient = PrismaClient +export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' +export type PrismaClientOptions = ({ + /** + * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`. + */ + adapter: runtime.SqlDriverAdapterFactory + accelerateUrl?: never +} | { + /** + * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database. + */ + accelerateUrl: string + adapter?: never +}) & { + /** + * @default "colorless" + */ + errorFormat?: ErrorFormat + /** + * @example + * ``` + * // Shorthand for `emit: 'stdout'` + * log: ['query', 'info', 'warn', 'error'] + * + * // Emit as events only + * log: [ + * { emit: 'event', level: 'query' }, + * { emit: 'event', level: 'info' }, + * { emit: 'event', level: 'warn' } + * { emit: 'event', level: 'error' } + * ] + * + * / Emit as events and log to stdout + * og: [ + * { emit: 'stdout', level: 'query' }, + * { emit: 'stdout', level: 'info' }, + * { emit: 'stdout', level: 'warn' } + * { emit: 'stdout', level: 'error' } + * + * ``` + * Read more in our [docs](https://pris.ly/d/logging). + */ + log?: (LogLevel | LogDefinition)[] + /** + * The default values for transactionOptions + * maxWait ?= 2000 + * timeout ?= 5000 + */ + transactionOptions?: { + maxWait?: number + timeout?: number + isolationLevel?: TransactionIsolationLevel + } + /** + * Global configuration for omitting model fields by default. + * + * @example + * ``` + * const prisma = new PrismaClient({ + * omit: { + * user: { + * password: true + * } + * } + * }) + * ``` + */ + omit?: GlobalOmitConfig + /** + * SQL commenter plugins that add metadata to SQL queries as comments. + * Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/ + * + * @example + * ``` + * const prisma = new PrismaClient({ + * adapter, + * comments: [ + * traceContext(), + * queryInsights(), + * ], + * }) + * ``` + */ + comments?: runtime.SqlCommenterPlugin[] +} +export type GlobalOmitConfig = { + account?: Prisma.AccountOmit + session?: Prisma.SessionOmit + verification?: Prisma.VerificationOmit + basket?: Prisma.BasketOmit + basketItem?: Prisma.BasketItemOmit + expenseItem?: Prisma.ExpenseItemOmit + expense?: Prisma.ExpenseOmit + expenseCategory?: Prisma.ExpenseCategoryOmit + userExpenseCategory?: Prisma.UserExpenseCategoryOmit + family?: Prisma.FamilyOmit + familyMember?: Prisma.FamilyMemberOmit + familyInvitation?: Prisma.FamilyInvitationOmit + income?: Prisma.IncomeOmit + incomeCategory?: Prisma.IncomeCategoryOmit + userIncomeCategory?: Prisma.UserIncomeCategoryOmit + notification?: Prisma.NotificationOmit + notificationPreference?: Prisma.NotificationPreferenceOmit + deviceToken?: Prisma.DeviceTokenOmit + webPushSubscription?: Prisma.WebPushSubscriptionOmit + paymentMethod?: Prisma.PaymentMethodOmit + receipt?: Prisma.ReceiptOmit + user?: Prisma.UserOmit + store?: Prisma.StoreOmit + item?: Prisma.ItemOmit + storeItem?: Prisma.StoreItemOmit + itemSize?: Prisma.ItemSizeOmit + storeItemDiscount?: Prisma.StoreItemDiscountOmit + itemCategory?: Prisma.ItemCategoryOmit + userStore?: Prisma.UserStoreOmit + userItem?: Prisma.UserItemOmit + userStoreItem?: Prisma.UserStoreItemOmit + userItemCategory?: Prisma.UserItemCategoryOmit + transaction?: Prisma.TransactionOmit +} + +/* Types for Logging */ +export type LogLevel = 'info' | 'query' | 'warn' | 'error' +export type LogDefinition = { + level: LogLevel + emit: 'stdout' | 'event' +} + +export type CheckIsLogLevel = T extends LogLevel ? T : never; + +export type GetLogType = CheckIsLogLevel< + T extends LogDefinition ? T['level'] : T +>; + +export type GetEvents = T extends Array + ? GetLogType + : never; + +export type QueryEvent = { + timestamp: Date + query: string + params: string + duration: number + target: string +} + +export type LogEvent = { + timestamp: Date + message: string + target: string +} +/* End Types for Logging */ + + +export type PrismaAction = + | 'findUnique' + | 'findUniqueOrThrow' + | 'findMany' + | 'findFirst' + | 'findFirstOrThrow' + | 'create' + | 'createMany' + | 'createManyAndReturn' + | 'update' + | 'updateMany' + | 'updateManyAndReturn' + | 'upsert' + | 'delete' + | 'deleteMany' + | 'executeRaw' + | 'queryRaw' + | 'aggregate' + | 'count' + | 'runCommandRaw' + | 'findRaw' + | 'groupBy' + +/** + * `PrismaClient` proxy available in interactive transactions. + */ +export type TransactionClient = Omit + diff --git a/apps/backend/prisma/generated/generated/prisma/internal/prismaNamespaceBrowser.ts b/apps/backend/prisma/generated/generated/prisma/internal/prismaNamespaceBrowser.ts new file mode 100644 index 00000000..d9b81461 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/internal/prismaNamespaceBrowser.ts @@ -0,0 +1,597 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * 🛑 Under no circumstances should you import this file directly! 🛑 + * + * All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file. + * While this enables partial backward compatibility, it is not part of the stable public API. + * + * If you are looking for your Models, Enums, and Input Types, please import them from the respective + * model files in the `model` directory! + */ + +import * as runtime from "@prisma/client/runtime/index-browser" + +export type * from '../models' +export type * from './prismaNamespace' + +export const Decimal = runtime.Decimal + + +export const NullTypes = { + DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull), + JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull), + AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull), +} +/** + * Helper for filtering JSON entries that have `null` on the database (empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const DbNull = runtime.DbNull + +/** + * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const JsonNull = runtime.JsonNull + +/** + * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const AnyNull = runtime.AnyNull + + +export const ModelName = { + Account: 'Account', + Session: 'Session', + Verification: 'Verification', + Basket: 'Basket', + BasketItem: 'BasketItem', + ExpenseItem: 'ExpenseItem', + Expense: 'Expense', + ExpenseCategory: 'ExpenseCategory', + UserExpenseCategory: 'UserExpenseCategory', + Family: 'Family', + FamilyMember: 'FamilyMember', + FamilyInvitation: 'FamilyInvitation', + Income: 'Income', + IncomeCategory: 'IncomeCategory', + UserIncomeCategory: 'UserIncomeCategory', + Notification: 'Notification', + NotificationPreference: 'NotificationPreference', + DeviceToken: 'DeviceToken', + WebPushSubscription: 'WebPushSubscription', + PaymentMethod: 'PaymentMethod', + Receipt: 'Receipt', + User: 'User', + Store: 'Store', + Item: 'Item', + StoreItem: 'StoreItem', + ItemSize: 'ItemSize', + StoreItemDiscount: 'StoreItemDiscount', + ItemCategory: 'ItemCategory', + UserStore: 'UserStore', + UserItem: 'UserItem', + UserStoreItem: 'UserStoreItem', + UserItemCategory: 'UserItemCategory', + Transaction: 'Transaction' +} as const + +export type ModelName = (typeof ModelName)[keyof typeof ModelName] + +/* + * Enums + */ + +export const TransactionIsolationLevel = runtime.makeStrictEnum({ + ReadUncommitted: 'ReadUncommitted', + ReadCommitted: 'ReadCommitted', + RepeatableRead: 'RepeatableRead', + Serializable: 'Serializable' +} as const) + +export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + + +export const AccountScalarFieldEnum = { + id: 'id', + userId: 'userId', + accountId: 'accountId', + providerId: 'providerId', + accessToken: 'accessToken', + refreshToken: 'refreshToken', + idToken: 'idToken', + accessTokenExpiresAt: 'accessTokenExpiresAt', + scope: 'scope', + expiresAt: 'expiresAt', + password: 'password', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum] + + +export const SessionScalarFieldEnum = { + id: 'id', + userId: 'userId', + expiresAt: 'expiresAt', + token: 'token', + ipAddress: 'ipAddress', + userAgent: 'userAgent', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum] + + +export const VerificationScalarFieldEnum = { + id: 'id', + identifier: 'identifier', + value: 'value', + expiresAt: 'expiresAt', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type VerificationScalarFieldEnum = (typeof VerificationScalarFieldEnum)[keyof typeof VerificationScalarFieldEnum] + + +export const BasketScalarFieldEnum = { + id: 'id', + userId: 'userId', + familyId: 'familyId', + scope: 'scope', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type BasketScalarFieldEnum = (typeof BasketScalarFieldEnum)[keyof typeof BasketScalarFieldEnum] + + +export const BasketItemScalarFieldEnum = { + id: 'id', + basketId: 'basketId', + name: 'name', + quantity: 'quantity', + price: 'price', + categoryId: 'categoryId', + notes: 'notes', + addedBy: 'addedBy', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type BasketItemScalarFieldEnum = (typeof BasketItemScalarFieldEnum)[keyof typeof BasketItemScalarFieldEnum] + + +export const ExpenseItemScalarFieldEnum = { + id: 'id', + itemId: 'itemId', + expenseId: 'expenseId', + price: 'price', + discount: 'discount', + quantity: 'quantity', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type ExpenseItemScalarFieldEnum = (typeof ExpenseItemScalarFieldEnum)[keyof typeof ExpenseItemScalarFieldEnum] + + +export const ExpenseScalarFieldEnum = { + id: 'id', + transactionId: 'transactionId', + storeId: 'storeId', + categoryId: 'categoryId', + description: 'description', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type ExpenseScalarFieldEnum = (typeof ExpenseScalarFieldEnum)[keyof typeof ExpenseScalarFieldEnum] + + +export const ExpenseCategoryScalarFieldEnum = { + id: 'id', + parentId: 'parentId', + name: 'name', + isConnectedToStore: 'isConnectedToStore', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type ExpenseCategoryScalarFieldEnum = (typeof ExpenseCategoryScalarFieldEnum)[keyof typeof ExpenseCategoryScalarFieldEnum] + + +export const UserExpenseCategoryScalarFieldEnum = { + id: 'id', + userId: 'userId', + categoryId: 'categoryId', + createdAt: 'createdAt' +} as const + +export type UserExpenseCategoryScalarFieldEnum = (typeof UserExpenseCategoryScalarFieldEnum)[keyof typeof UserExpenseCategoryScalarFieldEnum] + + +export const FamilyScalarFieldEnum = { + id: 'id', + name: 'name', + balance: 'balance', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type FamilyScalarFieldEnum = (typeof FamilyScalarFieldEnum)[keyof typeof FamilyScalarFieldEnum] + + +export const FamilyMemberScalarFieldEnum = { + id: 'id', + familyId: 'familyId', + userId: 'userId', + role: 'role', + balance: 'balance', + joinedAt: 'joinedAt', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type FamilyMemberScalarFieldEnum = (typeof FamilyMemberScalarFieldEnum)[keyof typeof FamilyMemberScalarFieldEnum] + + +export const FamilyInvitationScalarFieldEnum = { + id: 'id', + familyId: 'familyId', + inviterId: 'inviterId', + inviteeId: 'inviteeId', + inviteeEmail: 'inviteeEmail', + status: 'status', + expiresAt: 'expiresAt', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type FamilyInvitationScalarFieldEnum = (typeof FamilyInvitationScalarFieldEnum)[keyof typeof FamilyInvitationScalarFieldEnum] + + +export const IncomeScalarFieldEnum = { + id: 'id', + transactionId: 'transactionId', + storeId: 'storeId', + categoryId: 'categoryId', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type IncomeScalarFieldEnum = (typeof IncomeScalarFieldEnum)[keyof typeof IncomeScalarFieldEnum] + + +export const IncomeCategoryScalarFieldEnum = { + id: 'id', + parentId: 'parentId', + name: 'name', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type IncomeCategoryScalarFieldEnum = (typeof IncomeCategoryScalarFieldEnum)[keyof typeof IncomeCategoryScalarFieldEnum] + + +export const UserIncomeCategoryScalarFieldEnum = { + id: 'id', + userId: 'userId', + categoryId: 'categoryId', + createdAt: 'createdAt' +} as const + +export type UserIncomeCategoryScalarFieldEnum = (typeof UserIncomeCategoryScalarFieldEnum)[keyof typeof UserIncomeCategoryScalarFieldEnum] + + +export const NotificationScalarFieldEnum = { + id: 'id', + userId: 'userId', + type: 'type', + priority: 'priority', + title: 'title', + message: 'message', + data: 'data', + deliveryMethods: 'deliveryMethods', + isRead: 'isRead', + readAt: 'readAt', + isInteracted: 'isInteracted', + interactedAt: 'interactedAt', + actionUrl: 'actionUrl', + familyId: 'familyId', + transactionId: 'transactionId', + invitationId: 'invitationId', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum] + + +export const NotificationPreferenceScalarFieldEnum = { + id: 'id', + userId: 'userId', + enablePushNotifications: 'enablePushNotifications', + enableInAppNotifications: 'enableInAppNotifications', + enableToastNotifications: 'enableToastNotifications', + quietHoursEnabled: 'quietHoursEnabled', + quietHoursStart: 'quietHoursStart', + quietHoursEnd: 'quietHoursEnd', + typePreferences: 'typePreferences', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type NotificationPreferenceScalarFieldEnum = (typeof NotificationPreferenceScalarFieldEnum)[keyof typeof NotificationPreferenceScalarFieldEnum] + + +export const DeviceTokenScalarFieldEnum = { + id: 'id', + userId: 'userId', + expoPushToken: 'expoPushToken', + platform: 'platform', + deviceId: 'deviceId', + deviceName: 'deviceName', + isActive: 'isActive', + lastUsed: 'lastUsed', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type DeviceTokenScalarFieldEnum = (typeof DeviceTokenScalarFieldEnum)[keyof typeof DeviceTokenScalarFieldEnum] + + +export const WebPushSubscriptionScalarFieldEnum = { + id: 'id', + userId: 'userId', + endpoint: 'endpoint', + p256dh: 'p256dh', + auth: 'auth', + userAgent: 'userAgent', + isActive: 'isActive', + lastUsed: 'lastUsed', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type WebPushSubscriptionScalarFieldEnum = (typeof WebPushSubscriptionScalarFieldEnum)[keyof typeof WebPushSubscriptionScalarFieldEnum] + + +export const PaymentMethodScalarFieldEnum = { + id: 'id', + userId: 'userId', + name: 'name', + type: 'type', + color: 'color', + initialBalance: 'initialBalance', + currentBalance: 'currentBalance', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type PaymentMethodScalarFieldEnum = (typeof PaymentMethodScalarFieldEnum)[keyof typeof PaymentMethodScalarFieldEnum] + + +export const ReceiptScalarFieldEnum = { + id: 'id', + userId: 'userId', + familyId: 'familyId', + expenseId: 'expenseId', + fileName: 'fileName', + originalName: 'originalName', + mimeType: 'mimeType', + fileSize: 'fileSize', + storageKey: 'storageKey', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type ReceiptScalarFieldEnum = (typeof ReceiptScalarFieldEnum)[keyof typeof ReceiptScalarFieldEnum] + + +export const UserScalarFieldEnum = { + id: 'id', + email: 'email', + name: 'name', + firstName: 'firstName', + lastName: 'lastName', + image: 'image', + balance: 'balance', + emailVerified: 'emailVerified', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] + + +export const StoreScalarFieldEnum = { + id: 'id', + name: 'name', + location: 'location', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type StoreScalarFieldEnum = (typeof StoreScalarFieldEnum)[keyof typeof StoreScalarFieldEnum] + + +export const ItemScalarFieldEnum = { + id: 'id', + categoryId: 'categoryId', + name: 'name', + nameEn: 'nameEn', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type ItemScalarFieldEnum = (typeof ItemScalarFieldEnum)[keyof typeof ItemScalarFieldEnum] + + +export const StoreItemScalarFieldEnum = { + id: 'id', + itemId: 'itemId', + storeId: 'storeId', + price: 'price', + isDiscounted: 'isDiscounted', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type StoreItemScalarFieldEnum = (typeof StoreItemScalarFieldEnum)[keyof typeof StoreItemScalarFieldEnum] + + +export const ItemSizeScalarFieldEnum = { + id: 'id', + itemId: 'itemId', + value: 'value', + unit: 'unit', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type ItemSizeScalarFieldEnum = (typeof ItemSizeScalarFieldEnum)[keyof typeof ItemSizeScalarFieldEnum] + + +export const StoreItemDiscountScalarFieldEnum = { + id: 'id', + storeItemId: 'storeItemId', + discount: 'discount', + startedAt: 'startedAt', + endedAt: 'endedAt', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type StoreItemDiscountScalarFieldEnum = (typeof StoreItemDiscountScalarFieldEnum)[keyof typeof StoreItemDiscountScalarFieldEnum] + + +export const ItemCategoryScalarFieldEnum = { + id: 'id', + parentId: 'parentId', + name: 'name', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type ItemCategoryScalarFieldEnum = (typeof ItemCategoryScalarFieldEnum)[keyof typeof ItemCategoryScalarFieldEnum] + + +export const UserStoreScalarFieldEnum = { + id: 'id', + userId: 'userId', + storeId: 'storeId', + createdAt: 'createdAt' +} as const + +export type UserStoreScalarFieldEnum = (typeof UserStoreScalarFieldEnum)[keyof typeof UserStoreScalarFieldEnum] + + +export const UserItemScalarFieldEnum = { + id: 'id', + userId: 'userId', + itemId: 'itemId', + createdAt: 'createdAt' +} as const + +export type UserItemScalarFieldEnum = (typeof UserItemScalarFieldEnum)[keyof typeof UserItemScalarFieldEnum] + + +export const UserStoreItemScalarFieldEnum = { + id: 'id', + userId: 'userId', + storeItemId: 'storeItemId', + createdAt: 'createdAt' +} as const + +export type UserStoreItemScalarFieldEnum = (typeof UserStoreItemScalarFieldEnum)[keyof typeof UserStoreItemScalarFieldEnum] + + +export const UserItemCategoryScalarFieldEnum = { + id: 'id', + userId: 'userId', + categoryId: 'categoryId', + createdAt: 'createdAt' +} as const + +export type UserItemCategoryScalarFieldEnum = (typeof UserItemCategoryScalarFieldEnum)[keyof typeof UserItemCategoryScalarFieldEnum] + + +export const TransactionScalarFieldEnum = { + id: 'id', + userId: 'userId', + familyId: 'familyId', + scope: 'scope', + type: 'type', + status: 'status', + value: 'value', + rejectionReason: 'rejectionReason', + recordedAt: 'recordedAt', + paymentMethodId: 'paymentMethodId', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type TransactionScalarFieldEnum = (typeof TransactionScalarFieldEnum)[keyof typeof TransactionScalarFieldEnum] + + +export const SortOrder = { + asc: 'asc', + desc: 'desc' +} as const + +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + + +export const NullableJsonNullValueInput = { + DbNull: DbNull, + JsonNull: JsonNull +} as const + +export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput] + + +export const JsonNullValueInput = { + JsonNull: JsonNull +} as const + +export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput] + + +export const QueryMode = { + default: 'default', + insensitive: 'insensitive' +} as const + +export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] + + +export const NullsOrder = { + first: 'first', + last: 'last' +} as const + +export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] + + +export const JsonNullValueFilter = { + DbNull: DbNull, + JsonNull: JsonNull, + AnyNull: AnyNull +} as const + +export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] + diff --git a/apps/backend/prisma/generated/generated/prisma/models.ts b/apps/backend/prisma/generated/generated/prisma/models.ts new file mode 100644 index 00000000..a7223bc2 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models.ts @@ -0,0 +1,44 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This is a barrel export file for all models and their related types. + * + * 🟢 You can import this file directly. + */ +export type * from './models/Account' +export type * from './models/Session' +export type * from './models/Verification' +export type * from './models/Basket' +export type * from './models/BasketItem' +export type * from './models/ExpenseItem' +export type * from './models/Expense' +export type * from './models/ExpenseCategory' +export type * from './models/UserExpenseCategory' +export type * from './models/Family' +export type * from './models/FamilyMember' +export type * from './models/FamilyInvitation' +export type * from './models/Income' +export type * from './models/IncomeCategory' +export type * from './models/UserIncomeCategory' +export type * from './models/Notification' +export type * from './models/NotificationPreference' +export type * from './models/DeviceToken' +export type * from './models/WebPushSubscription' +export type * from './models/PaymentMethod' +export type * from './models/Receipt' +export type * from './models/User' +export type * from './models/Store' +export type * from './models/Item' +export type * from './models/StoreItem' +export type * from './models/ItemSize' +export type * from './models/StoreItemDiscount' +export type * from './models/ItemCategory' +export type * from './models/UserStore' +export type * from './models/UserItem' +export type * from './models/UserStoreItem' +export type * from './models/UserItemCategory' +export type * from './models/Transaction' +export type * from './commonInputTypes' \ No newline at end of file diff --git a/apps/backend/prisma/generated/generated/prisma/models/Account.ts b/apps/backend/prisma/generated/generated/prisma/models/Account.ts new file mode 100644 index 00000000..9b1ae205 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/Account.ts @@ -0,0 +1,1642 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Account` 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 Account + * + */ +export type AccountModel = runtime.Types.Result.DefaultSelection + +export type AggregateAccount = { + _count: AccountCountAggregateOutputType | null + _min: AccountMinAggregateOutputType | null + _max: AccountMaxAggregateOutputType | null +} + +export type AccountMinAggregateOutputType = { + id: string | null + userId: string | null + accountId: string | null + providerId: string | null + accessToken: string | null + refreshToken: string | null + idToken: string | null + accessTokenExpiresAt: Date | null + scope: string | null + expiresAt: Date | null + password: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type AccountMaxAggregateOutputType = { + id: string | null + userId: string | null + accountId: string | null + providerId: string | null + accessToken: string | null + refreshToken: string | null + idToken: string | null + accessTokenExpiresAt: Date | null + scope: string | null + expiresAt: Date | null + password: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type AccountCountAggregateOutputType = { + id: number + userId: number + accountId: number + providerId: number + accessToken: number + refreshToken: number + idToken: number + accessTokenExpiresAt: number + scope: number + expiresAt: number + password: number + createdAt: number + updatedAt: number + _all: number +} + + +export type AccountMinAggregateInputType = { + id?: true + userId?: true + accountId?: true + providerId?: true + accessToken?: true + refreshToken?: true + idToken?: true + accessTokenExpiresAt?: true + scope?: true + expiresAt?: true + password?: true + createdAt?: true + updatedAt?: true +} + +export type AccountMaxAggregateInputType = { + id?: true + userId?: true + accountId?: true + providerId?: true + accessToken?: true + refreshToken?: true + idToken?: true + accessTokenExpiresAt?: true + scope?: true + expiresAt?: true + password?: true + createdAt?: true + updatedAt?: true +} + +export type AccountCountAggregateInputType = { + id?: true + userId?: true + accountId?: true + providerId?: true + accessToken?: true + refreshToken?: true + idToken?: true + accessTokenExpiresAt?: true + scope?: true + expiresAt?: true + password?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type AccountAggregateArgs = { + /** + * Filter which Account to aggregate. + */ + where?: Prisma.AccountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Accounts to fetch. + */ + orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AccountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Accounts 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` Accounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Accounts + **/ + _count?: true | AccountCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AccountMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AccountMaxAggregateInputType +} + +export type GetAccountAggregateType = { + [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type AccountGroupByArgs = { + where?: Prisma.AccountWhereInput + orderBy?: Prisma.AccountOrderByWithAggregationInput | Prisma.AccountOrderByWithAggregationInput[] + by: Prisma.AccountScalarFieldEnum[] | Prisma.AccountScalarFieldEnum + having?: Prisma.AccountScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AccountCountAggregateInputType | true + _min?: AccountMinAggregateInputType + _max?: AccountMaxAggregateInputType +} + +export type AccountGroupByOutputType = { + id: string + userId: string + accountId: string + providerId: string + accessToken: string | null + refreshToken: string | null + idToken: string | null + accessTokenExpiresAt: Date | null + scope: string | null + expiresAt: Date | null + password: string | null + createdAt: Date + updatedAt: Date + _count: AccountCountAggregateOutputType | null + _min: AccountMinAggregateOutputType | null + _max: AccountMaxAggregateOutputType | null +} + +type GetAccountGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type AccountWhereInput = { + AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] + OR?: Prisma.AccountWhereInput[] + NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] + id?: Prisma.StringFilter<"Account"> | string + userId?: Prisma.StringFilter<"Account"> | string + accountId?: Prisma.StringFilter<"Account"> | string + providerId?: Prisma.StringFilter<"Account"> | string + accessToken?: Prisma.StringNullableFilter<"Account"> | string | null + refreshToken?: Prisma.StringNullableFilter<"Account"> | string | null + idToken?: Prisma.StringNullableFilter<"Account"> | string | null + accessTokenExpiresAt?: Prisma.DateTimeNullableFilter<"Account"> | Date | string | null + scope?: Prisma.StringNullableFilter<"Account"> | string | null + expiresAt?: Prisma.DateTimeNullableFilter<"Account"> | Date | string | null + password?: Prisma.StringNullableFilter<"Account"> | string | null + createdAt?: Prisma.DateTimeFilter<"Account"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Account"> | Date | string + user?: Prisma.XOR +} + +export type AccountOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + accountId?: Prisma.SortOrder + providerId?: Prisma.SortOrder + accessToken?: Prisma.SortOrderInput | Prisma.SortOrder + refreshToken?: Prisma.SortOrderInput | Prisma.SortOrder + idToken?: Prisma.SortOrderInput | Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder + scope?: Prisma.SortOrderInput | Prisma.SortOrder + expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder + password?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput +} + +export type AccountWhereUniqueInput = Prisma.AtLeast<{ + id?: string + providerId_accountId?: Prisma.AccountProviderIdAccountIdCompoundUniqueInput + AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] + OR?: Prisma.AccountWhereInput[] + NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] + userId?: Prisma.StringFilter<"Account"> | string + accountId?: Prisma.StringFilter<"Account"> | string + providerId?: Prisma.StringFilter<"Account"> | string + accessToken?: Prisma.StringNullableFilter<"Account"> | string | null + refreshToken?: Prisma.StringNullableFilter<"Account"> | string | null + idToken?: Prisma.StringNullableFilter<"Account"> | string | null + accessTokenExpiresAt?: Prisma.DateTimeNullableFilter<"Account"> | Date | string | null + scope?: Prisma.StringNullableFilter<"Account"> | string | null + expiresAt?: Prisma.DateTimeNullableFilter<"Account"> | Date | string | null + password?: Prisma.StringNullableFilter<"Account"> | string | null + createdAt?: Prisma.DateTimeFilter<"Account"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Account"> | Date | string + user?: Prisma.XOR +}, "id" | "providerId_accountId"> + +export type AccountOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + accountId?: Prisma.SortOrder + providerId?: Prisma.SortOrder + accessToken?: Prisma.SortOrderInput | Prisma.SortOrder + refreshToken?: Prisma.SortOrderInput | Prisma.SortOrder + idToken?: Prisma.SortOrderInput | Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder + scope?: Prisma.SortOrderInput | Prisma.SortOrder + expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder + password?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.AccountCountOrderByAggregateInput + _max?: Prisma.AccountMaxOrderByAggregateInput + _min?: Prisma.AccountMinOrderByAggregateInput +} + +export type AccountScalarWhereWithAggregatesInput = { + AND?: Prisma.AccountScalarWhereWithAggregatesInput | Prisma.AccountScalarWhereWithAggregatesInput[] + OR?: Prisma.AccountScalarWhereWithAggregatesInput[] + NOT?: Prisma.AccountScalarWhereWithAggregatesInput | Prisma.AccountScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Account"> | string + userId?: Prisma.StringWithAggregatesFilter<"Account"> | string + accountId?: Prisma.StringWithAggregatesFilter<"Account"> | string + providerId?: Prisma.StringWithAggregatesFilter<"Account"> | string + accessToken?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null + refreshToken?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null + idToken?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null + accessTokenExpiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Account"> | Date | string | null + scope?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null + expiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Account"> | Date | string | null + password?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Account"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Account"> | Date | string +} + +export type AccountCreateInput = { + id?: string + accountId: string + providerId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + scope?: string | null + expiresAt?: Date | string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutAccountsInput +} + +export type AccountUncheckedCreateInput = { + id?: string + userId: string + accountId: string + providerId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + scope?: string | null + expiresAt?: Date | string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AccountUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutAccountsNestedInput +} + +export type AccountUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AccountCreateManyInput = { + id?: string + userId: string + accountId: string + providerId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + scope?: string | null + expiresAt?: Date | string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AccountUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AccountUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AccountProviderIdAccountIdCompoundUniqueInput = { + providerId: string + accountId: string +} + +export type AccountCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + accountId?: Prisma.SortOrder + providerId?: Prisma.SortOrder + accessToken?: Prisma.SortOrder + refreshToken?: Prisma.SortOrder + idToken?: Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrder + scope?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + password?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AccountMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + accountId?: Prisma.SortOrder + providerId?: Prisma.SortOrder + accessToken?: Prisma.SortOrder + refreshToken?: Prisma.SortOrder + idToken?: Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrder + scope?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + password?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AccountMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + accountId?: Prisma.SortOrder + providerId?: Prisma.SortOrder + accessToken?: Prisma.SortOrder + refreshToken?: Prisma.SortOrder + idToken?: Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrder + scope?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + password?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AccountListRelationFilter = { + every?: Prisma.AccountWhereInput + some?: Prisma.AccountWhereInput + none?: Prisma.AccountWhereInput +} + +export type AccountOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type StringFieldUpdateOperationsInput = { + set?: string +} + +export type NullableStringFieldUpdateOperationsInput = { + set?: string | null +} + +export type NullableDateTimeFieldUpdateOperationsInput = { + set?: Date | string | null +} + +export type DateTimeFieldUpdateOperationsInput = { + set?: Date | string +} + +export type AccountCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[] + createMany?: Prisma.AccountCreateManyUserInputEnvelope + connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] +} + +export type AccountUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[] + createMany?: Prisma.AccountCreateManyUserInputEnvelope + connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] +} + +export type AccountUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[] + upsert?: Prisma.AccountUpsertWithWhereUniqueWithoutUserInput | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.AccountCreateManyUserInputEnvelope + set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + update?: Prisma.AccountUpdateWithWhereUniqueWithoutUserInput | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.AccountUpdateManyWithWhereWithoutUserInput | Prisma.AccountUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] +} + +export type AccountUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[] + upsert?: Prisma.AccountUpsertWithWhereUniqueWithoutUserInput | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.AccountCreateManyUserInputEnvelope + set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + update?: Prisma.AccountUpdateWithWhereUniqueWithoutUserInput | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.AccountUpdateManyWithWhereWithoutUserInput | Prisma.AccountUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] +} + +export type AccountCreateWithoutUserInput = { + id?: string + accountId: string + providerId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + scope?: string | null + expiresAt?: Date | string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AccountUncheckedCreateWithoutUserInput = { + id?: string + accountId: string + providerId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + scope?: string | null + expiresAt?: Date | string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AccountCreateOrConnectWithoutUserInput = { + where: Prisma.AccountWhereUniqueInput + create: Prisma.XOR +} + +export type AccountCreateManyUserInputEnvelope = { + data: Prisma.AccountCreateManyUserInput | Prisma.AccountCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type AccountUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.AccountWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type AccountUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.AccountWhereUniqueInput + data: Prisma.XOR +} + +export type AccountUpdateManyWithWhereWithoutUserInput = { + where: Prisma.AccountScalarWhereInput + data: Prisma.XOR +} + +export type AccountScalarWhereInput = { + AND?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] + OR?: Prisma.AccountScalarWhereInput[] + NOT?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] + id?: Prisma.StringFilter<"Account"> | string + userId?: Prisma.StringFilter<"Account"> | string + accountId?: Prisma.StringFilter<"Account"> | string + providerId?: Prisma.StringFilter<"Account"> | string + accessToken?: Prisma.StringNullableFilter<"Account"> | string | null + refreshToken?: Prisma.StringNullableFilter<"Account"> | string | null + idToken?: Prisma.StringNullableFilter<"Account"> | string | null + accessTokenExpiresAt?: Prisma.DateTimeNullableFilter<"Account"> | Date | string | null + scope?: Prisma.StringNullableFilter<"Account"> | string | null + expiresAt?: Prisma.DateTimeNullableFilter<"Account"> | Date | string | null + password?: Prisma.StringNullableFilter<"Account"> | string | null + createdAt?: Prisma.DateTimeFilter<"Account"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Account"> | Date | string +} + +export type AccountCreateManyUserInput = { + id?: string + accountId: string + providerId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + scope?: string | null + expiresAt?: Date | string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AccountUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AccountUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AccountUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type AccountSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + accountId?: boolean + providerId?: boolean + accessToken?: boolean + refreshToken?: boolean + idToken?: boolean + accessTokenExpiresAt?: boolean + scope?: boolean + expiresAt?: boolean + password?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["account"]> + +export type AccountSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + accountId?: boolean + providerId?: boolean + accessToken?: boolean + refreshToken?: boolean + idToken?: boolean + accessTokenExpiresAt?: boolean + scope?: boolean + expiresAt?: boolean + password?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["account"]> + +export type AccountSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + accountId?: boolean + providerId?: boolean + accessToken?: boolean + refreshToken?: boolean + idToken?: boolean + accessTokenExpiresAt?: boolean + scope?: boolean + expiresAt?: boolean + password?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["account"]> + +export type AccountSelectScalar = { + id?: boolean + userId?: boolean + accountId?: boolean + providerId?: boolean + accessToken?: boolean + refreshToken?: boolean + idToken?: boolean + accessTokenExpiresAt?: boolean + scope?: boolean + expiresAt?: boolean + password?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type AccountOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "accountId" | "providerId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "scope" | "expiresAt" | "password" | "createdAt" | "updatedAt", ExtArgs["result"]["account"]> +export type AccountInclude = { + user?: boolean | Prisma.UserDefaultArgs +} +export type AccountIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs +} +export type AccountIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs +} + +export type $AccountPayload = { + name: "Account" + objects: { + user: Prisma.$UserPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + userId: string + accountId: string + providerId: string + accessToken: string | null + refreshToken: string | null + idToken: string | null + accessTokenExpiresAt: Date | null + scope: string | null + expiresAt: Date | null + password: string | null + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["account"]> + composites: {} +} + +export type AccountGetPayload = runtime.Types.Result.GetResult + +export type AccountCountArgs = + Omit & { + select?: AccountCountAggregateInputType | true + } + +export interface AccountDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Account'], meta: { name: 'Account' } } + /** + * Find zero or one Account that matches the filter. + * @param {AccountFindUniqueArgs} args - Arguments to find a Account + * @example + * // Get one Account + * const account = await prisma.account.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Account that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account + * @example + * // Get one Account + * const account = await prisma.account.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Account 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 {AccountFindFirstArgs} args - Arguments to find a Account + * @example + * // Get one Account + * const account = await prisma.account.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Account 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 {AccountFindFirstOrThrowArgs} args - Arguments to find a Account + * @example + * // Get one Account + * const account = await prisma.account.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Accounts 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 {AccountFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Accounts + * const accounts = await prisma.account.findMany() + * + * // Get first 10 Accounts + * const accounts = await prisma.account.findMany({ take: 10 }) + * + * // Only select the `id` + * const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Account. + * @param {AccountCreateArgs} args - Arguments to create a Account. + * @example + * // Create one Account + * const Account = await prisma.account.create({ + * data: { + * // ... data to create a Account + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Accounts. + * @param {AccountCreateManyArgs} args - Arguments to create many Accounts. + * @example + * // Create many Accounts + * const account = await prisma.account.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Accounts and returns the data saved in the database. + * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts. + * @example + * // Create many Accounts + * const account = await prisma.account.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Accounts and only return the `id` + * const accountWithIdOnly = await prisma.account.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Account. + * @param {AccountDeleteArgs} args - Arguments to delete one Account. + * @example + * // Delete one Account + * const Account = await prisma.account.delete({ + * where: { + * // ... filter to delete one Account + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Account. + * @param {AccountUpdateArgs} args - Arguments to update one Account. + * @example + * // Update one Account + * const account = await prisma.account.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Accounts. + * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete. + * @example + * // Delete a few Accounts + * const { count } = await prisma.account.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Accounts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Accounts + * const account = await prisma.account.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Accounts and returns the data updated in the database. + * @param {AccountUpdateManyAndReturnArgs} args - Arguments to update many Accounts. + * @example + * // Update many Accounts + * const account = await prisma.account.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Accounts and only return the `id` + * const accountWithIdOnly = await prisma.account.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Account. + * @param {AccountUpsertArgs} args - Arguments to update or create a Account. + * @example + * // Update or create a Account + * const account = await prisma.account.upsert({ + * create: { + * // ... data to create a Account + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Account we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Accounts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AccountCountArgs} args - Arguments to filter Accounts to count. + * @example + * // Count the number of Accounts + * const count = await prisma.account.count({ + * where: { + * // ... the filter for the Accounts we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Account. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AccountAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Account. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AccountGroupByArgs} 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 AccountGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AccountGroupByArgs['orderBy'] } + : { orderBy?: AccountGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Account model + */ +readonly fields: AccountFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Account. + * 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__AccountClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the Account model + */ +export interface AccountFieldRefs { + readonly id: Prisma.FieldRef<"Account", 'String'> + readonly userId: Prisma.FieldRef<"Account", 'String'> + readonly accountId: Prisma.FieldRef<"Account", 'String'> + readonly providerId: Prisma.FieldRef<"Account", 'String'> + readonly accessToken: Prisma.FieldRef<"Account", 'String'> + readonly refreshToken: Prisma.FieldRef<"Account", 'String'> + readonly idToken: Prisma.FieldRef<"Account", 'String'> + readonly accessTokenExpiresAt: Prisma.FieldRef<"Account", 'DateTime'> + readonly scope: Prisma.FieldRef<"Account", 'String'> + readonly expiresAt: Prisma.FieldRef<"Account", 'DateTime'> + readonly password: Prisma.FieldRef<"Account", 'String'> + readonly createdAt: Prisma.FieldRef<"Account", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Account", 'DateTime'> +} + + +// Custom InputTypes +/** + * Account findUnique + */ +export type AccountFindUniqueArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter, which Account to fetch. + */ + where: Prisma.AccountWhereUniqueInput +} + +/** + * Account findUniqueOrThrow + */ +export type AccountFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter, which Account to fetch. + */ + where: Prisma.AccountWhereUniqueInput +} + +/** + * Account findFirst + */ +export type AccountFindFirstArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter, which Account to fetch. + */ + where?: Prisma.AccountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Accounts to fetch. + */ + orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Accounts. + */ + cursor?: Prisma.AccountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Accounts 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` Accounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Accounts. + */ + distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] +} + +/** + * Account findFirstOrThrow + */ +export type AccountFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter, which Account to fetch. + */ + where?: Prisma.AccountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Accounts to fetch. + */ + orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Accounts. + */ + cursor?: Prisma.AccountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Accounts 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` Accounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Accounts. + */ + distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] +} + +/** + * Account findMany + */ +export type AccountFindManyArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter, which Accounts to fetch. + */ + where?: Prisma.AccountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Accounts to fetch. + */ + orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Accounts. + */ + cursor?: Prisma.AccountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Accounts 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` Accounts. + */ + skip?: number + distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] +} + +/** + * Account create + */ +export type AccountCreateArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * The data needed to create a Account. + */ + data: Prisma.XOR +} + +/** + * Account createMany + */ +export type AccountCreateManyArgs = { + /** + * The data used to create many Accounts. + */ + data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Account createManyAndReturn + */ +export type AccountCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * The data used to create many Accounts. + */ + data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountIncludeCreateManyAndReturn | null +} + +/** + * Account update + */ +export type AccountUpdateArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * The data needed to update a Account. + */ + data: Prisma.XOR + /** + * Choose, which Account to update. + */ + where: Prisma.AccountWhereUniqueInput +} + +/** + * Account updateMany + */ +export type AccountUpdateManyArgs = { + /** + * The data used to update Accounts. + */ + data: Prisma.XOR + /** + * Filter which Accounts to update + */ + where?: Prisma.AccountWhereInput + /** + * Limit how many Accounts to update. + */ + limit?: number +} + +/** + * Account updateManyAndReturn + */ +export type AccountUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * The data used to update Accounts. + */ + data: Prisma.XOR + /** + * Filter which Accounts to update + */ + where?: Prisma.AccountWhereInput + /** + * Limit how many Accounts to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountIncludeUpdateManyAndReturn | null +} + +/** + * Account upsert + */ +export type AccountUpsertArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * The filter to search for the Account to update in case it exists. + */ + where: Prisma.AccountWhereUniqueInput + /** + * In case the Account found by the `where` argument doesn't exist, create a new Account with this data. + */ + create: Prisma.XOR + /** + * In case the Account was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Account delete + */ +export type AccountDeleteArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter which Account to delete. + */ + where: Prisma.AccountWhereUniqueInput +} + +/** + * Account deleteMany + */ +export type AccountDeleteManyArgs = { + /** + * Filter which Accounts to delete + */ + where?: Prisma.AccountWhereInput + /** + * Limit how many Accounts to delete. + */ + limit?: number +} + +/** + * Account without action + */ +export type AccountDefaultArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/Basket.ts b/apps/backend/prisma/generated/generated/prisma/models/Basket.ts new file mode 100644 index 00000000..07b185ad --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/Basket.ts @@ -0,0 +1,1681 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Basket` 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 Basket + * + */ +export type BasketModel = runtime.Types.Result.DefaultSelection + +export type AggregateBasket = { + _count: BasketCountAggregateOutputType | null + _min: BasketMinAggregateOutputType | null + _max: BasketMaxAggregateOutputType | null +} + +export type BasketMinAggregateOutputType = { + id: string | null + userId: string | null + familyId: string | null + scope: $Enums.BasketScope | null + createdAt: Date | null + updatedAt: Date | null +} + +export type BasketMaxAggregateOutputType = { + id: string | null + userId: string | null + familyId: string | null + scope: $Enums.BasketScope | null + createdAt: Date | null + updatedAt: Date | null +} + +export type BasketCountAggregateOutputType = { + id: number + userId: number + familyId: number + scope: number + createdAt: number + updatedAt: number + _all: number +} + + +export type BasketMinAggregateInputType = { + id?: true + userId?: true + familyId?: true + scope?: true + createdAt?: true + updatedAt?: true +} + +export type BasketMaxAggregateInputType = { + id?: true + userId?: true + familyId?: true + scope?: true + createdAt?: true + updatedAt?: true +} + +export type BasketCountAggregateInputType = { + id?: true + userId?: true + familyId?: true + scope?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type BasketAggregateArgs = { + /** + * Filter which Basket to aggregate. + */ + where?: Prisma.BasketWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Baskets to fetch. + */ + orderBy?: Prisma.BasketOrderByWithRelationInput | Prisma.BasketOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.BasketWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Baskets 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` Baskets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Baskets + **/ + _count?: true | BasketCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: BasketMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: BasketMaxAggregateInputType +} + +export type GetBasketAggregateType = { + [P in keyof T & keyof AggregateBasket]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type BasketGroupByArgs = { + where?: Prisma.BasketWhereInput + orderBy?: Prisma.BasketOrderByWithAggregationInput | Prisma.BasketOrderByWithAggregationInput[] + by: Prisma.BasketScalarFieldEnum[] | Prisma.BasketScalarFieldEnum + having?: Prisma.BasketScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: BasketCountAggregateInputType | true + _min?: BasketMinAggregateInputType + _max?: BasketMaxAggregateInputType +} + +export type BasketGroupByOutputType = { + id: string + userId: string + familyId: string | null + scope: $Enums.BasketScope + createdAt: Date + updatedAt: Date + _count: BasketCountAggregateOutputType | null + _min: BasketMinAggregateOutputType | null + _max: BasketMaxAggregateOutputType | null +} + +type GetBasketGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof BasketGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type BasketWhereInput = { + AND?: Prisma.BasketWhereInput | Prisma.BasketWhereInput[] + OR?: Prisma.BasketWhereInput[] + NOT?: Prisma.BasketWhereInput | Prisma.BasketWhereInput[] + id?: Prisma.StringFilter<"Basket"> | string + userId?: Prisma.StringFilter<"Basket"> | string + familyId?: Prisma.StringNullableFilter<"Basket"> | string | null + scope?: Prisma.EnumBasketScopeFilter<"Basket"> | $Enums.BasketScope + createdAt?: Prisma.DateTimeFilter<"Basket"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Basket"> | Date | string + items?: Prisma.BasketItemListRelationFilter + user?: Prisma.XOR + family?: Prisma.XOR | null +} + +export type BasketOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + familyId?: Prisma.SortOrderInput | Prisma.SortOrder + scope?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + items?: Prisma.BasketItemOrderByRelationAggregateInput + user?: Prisma.UserOrderByWithRelationInput + family?: Prisma.FamilyOrderByWithRelationInput +} + +export type BasketWhereUniqueInput = Prisma.AtLeast<{ + id?: string + personal_basket?: Prisma.BasketPersonal_basketCompoundUniqueInput + family_basket?: Prisma.BasketFamily_basketCompoundUniqueInput + AND?: Prisma.BasketWhereInput | Prisma.BasketWhereInput[] + OR?: Prisma.BasketWhereInput[] + NOT?: Prisma.BasketWhereInput | Prisma.BasketWhereInput[] + userId?: Prisma.StringFilter<"Basket"> | string + familyId?: Prisma.StringNullableFilter<"Basket"> | string | null + scope?: Prisma.EnumBasketScopeFilter<"Basket"> | $Enums.BasketScope + createdAt?: Prisma.DateTimeFilter<"Basket"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Basket"> | Date | string + items?: Prisma.BasketItemListRelationFilter + user?: Prisma.XOR + family?: Prisma.XOR | null +}, "id" | "personal_basket" | "family_basket"> + +export type BasketOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + familyId?: Prisma.SortOrderInput | Prisma.SortOrder + scope?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.BasketCountOrderByAggregateInput + _max?: Prisma.BasketMaxOrderByAggregateInput + _min?: Prisma.BasketMinOrderByAggregateInput +} + +export type BasketScalarWhereWithAggregatesInput = { + AND?: Prisma.BasketScalarWhereWithAggregatesInput | Prisma.BasketScalarWhereWithAggregatesInput[] + OR?: Prisma.BasketScalarWhereWithAggregatesInput[] + NOT?: Prisma.BasketScalarWhereWithAggregatesInput | Prisma.BasketScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Basket"> | string + userId?: Prisma.StringWithAggregatesFilter<"Basket"> | string + familyId?: Prisma.StringNullableWithAggregatesFilter<"Basket"> | string | null + scope?: Prisma.EnumBasketScopeWithAggregatesFilter<"Basket"> | $Enums.BasketScope + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Basket"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Basket"> | Date | string +} + +export type BasketCreateInput = { + id?: string + scope?: $Enums.BasketScope + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.BasketItemCreateNestedManyWithoutBasketInput + user: Prisma.UserCreateNestedOneWithoutBasketsInput + family?: Prisma.FamilyCreateNestedOneWithoutBasketsInput +} + +export type BasketUncheckedCreateInput = { + id?: string + userId: string + familyId?: string | null + scope?: $Enums.BasketScope + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.BasketItemUncheckedCreateNestedManyWithoutBasketInput +} + +export type BasketUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumBasketScopeFieldUpdateOperationsInput | $Enums.BasketScope + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.BasketItemUpdateManyWithoutBasketNestedInput + user?: Prisma.UserUpdateOneRequiredWithoutBasketsNestedInput + family?: Prisma.FamilyUpdateOneWithoutBasketsNestedInput +} + +export type BasketUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + scope?: Prisma.EnumBasketScopeFieldUpdateOperationsInput | $Enums.BasketScope + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.BasketItemUncheckedUpdateManyWithoutBasketNestedInput +} + +export type BasketCreateManyInput = { + id?: string + userId: string + familyId?: string | null + scope?: $Enums.BasketScope + createdAt?: Date | string + updatedAt?: Date | string +} + +export type BasketUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumBasketScopeFieldUpdateOperationsInput | $Enums.BasketScope + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type BasketUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + scope?: Prisma.EnumBasketScopeFieldUpdateOperationsInput | $Enums.BasketScope + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type BasketPersonal_basketCompoundUniqueInput = { + userId: string + scope: $Enums.BasketScope +} + +export type BasketFamily_basketCompoundUniqueInput = { + familyId: string + scope: $Enums.BasketScope +} + +export type BasketCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + familyId?: Prisma.SortOrder + scope?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type BasketMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + familyId?: Prisma.SortOrder + scope?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type BasketMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + familyId?: Prisma.SortOrder + scope?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type BasketScalarRelationFilter = { + is?: Prisma.BasketWhereInput + isNot?: Prisma.BasketWhereInput +} + +export type BasketListRelationFilter = { + every?: Prisma.BasketWhereInput + some?: Prisma.BasketWhereInput + none?: Prisma.BasketWhereInput +} + +export type BasketOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type EnumBasketScopeFieldUpdateOperationsInput = { + set?: $Enums.BasketScope +} + +export type BasketCreateNestedOneWithoutItemsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.BasketCreateOrConnectWithoutItemsInput + connect?: Prisma.BasketWhereUniqueInput +} + +export type BasketUpdateOneRequiredWithoutItemsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.BasketCreateOrConnectWithoutItemsInput + upsert?: Prisma.BasketUpsertWithoutItemsInput + connect?: Prisma.BasketWhereUniqueInput + update?: Prisma.XOR, Prisma.BasketUncheckedUpdateWithoutItemsInput> +} + +export type BasketCreateNestedManyWithoutFamilyInput = { + create?: Prisma.XOR | Prisma.BasketCreateWithoutFamilyInput[] | Prisma.BasketUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.BasketCreateOrConnectWithoutFamilyInput | Prisma.BasketCreateOrConnectWithoutFamilyInput[] + createMany?: Prisma.BasketCreateManyFamilyInputEnvelope + connect?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] +} + +export type BasketUncheckedCreateNestedManyWithoutFamilyInput = { + create?: Prisma.XOR | Prisma.BasketCreateWithoutFamilyInput[] | Prisma.BasketUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.BasketCreateOrConnectWithoutFamilyInput | Prisma.BasketCreateOrConnectWithoutFamilyInput[] + createMany?: Prisma.BasketCreateManyFamilyInputEnvelope + connect?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] +} + +export type BasketUpdateManyWithoutFamilyNestedInput = { + create?: Prisma.XOR | Prisma.BasketCreateWithoutFamilyInput[] | Prisma.BasketUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.BasketCreateOrConnectWithoutFamilyInput | Prisma.BasketCreateOrConnectWithoutFamilyInput[] + upsert?: Prisma.BasketUpsertWithWhereUniqueWithoutFamilyInput | Prisma.BasketUpsertWithWhereUniqueWithoutFamilyInput[] + createMany?: Prisma.BasketCreateManyFamilyInputEnvelope + set?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] + disconnect?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] + delete?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] + connect?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] + update?: Prisma.BasketUpdateWithWhereUniqueWithoutFamilyInput | Prisma.BasketUpdateWithWhereUniqueWithoutFamilyInput[] + updateMany?: Prisma.BasketUpdateManyWithWhereWithoutFamilyInput | Prisma.BasketUpdateManyWithWhereWithoutFamilyInput[] + deleteMany?: Prisma.BasketScalarWhereInput | Prisma.BasketScalarWhereInput[] +} + +export type BasketUncheckedUpdateManyWithoutFamilyNestedInput = { + create?: Prisma.XOR | Prisma.BasketCreateWithoutFamilyInput[] | Prisma.BasketUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.BasketCreateOrConnectWithoutFamilyInput | Prisma.BasketCreateOrConnectWithoutFamilyInput[] + upsert?: Prisma.BasketUpsertWithWhereUniqueWithoutFamilyInput | Prisma.BasketUpsertWithWhereUniqueWithoutFamilyInput[] + createMany?: Prisma.BasketCreateManyFamilyInputEnvelope + set?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] + disconnect?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] + delete?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] + connect?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] + update?: Prisma.BasketUpdateWithWhereUniqueWithoutFamilyInput | Prisma.BasketUpdateWithWhereUniqueWithoutFamilyInput[] + updateMany?: Prisma.BasketUpdateManyWithWhereWithoutFamilyInput | Prisma.BasketUpdateManyWithWhereWithoutFamilyInput[] + deleteMany?: Prisma.BasketScalarWhereInput | Prisma.BasketScalarWhereInput[] +} + +export type BasketCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.BasketCreateWithoutUserInput[] | Prisma.BasketUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.BasketCreateOrConnectWithoutUserInput | Prisma.BasketCreateOrConnectWithoutUserInput[] + createMany?: Prisma.BasketCreateManyUserInputEnvelope + connect?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] +} + +export type BasketUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.BasketCreateWithoutUserInput[] | Prisma.BasketUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.BasketCreateOrConnectWithoutUserInput | Prisma.BasketCreateOrConnectWithoutUserInput[] + createMany?: Prisma.BasketCreateManyUserInputEnvelope + connect?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] +} + +export type BasketUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.BasketCreateWithoutUserInput[] | Prisma.BasketUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.BasketCreateOrConnectWithoutUserInput | Prisma.BasketCreateOrConnectWithoutUserInput[] + upsert?: Prisma.BasketUpsertWithWhereUniqueWithoutUserInput | Prisma.BasketUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.BasketCreateManyUserInputEnvelope + set?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] + disconnect?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] + delete?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] + connect?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] + update?: Prisma.BasketUpdateWithWhereUniqueWithoutUserInput | Prisma.BasketUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.BasketUpdateManyWithWhereWithoutUserInput | Prisma.BasketUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.BasketScalarWhereInput | Prisma.BasketScalarWhereInput[] +} + +export type BasketUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.BasketCreateWithoutUserInput[] | Prisma.BasketUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.BasketCreateOrConnectWithoutUserInput | Prisma.BasketCreateOrConnectWithoutUserInput[] + upsert?: Prisma.BasketUpsertWithWhereUniqueWithoutUserInput | Prisma.BasketUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.BasketCreateManyUserInputEnvelope + set?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] + disconnect?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] + delete?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] + connect?: Prisma.BasketWhereUniqueInput | Prisma.BasketWhereUniqueInput[] + update?: Prisma.BasketUpdateWithWhereUniqueWithoutUserInput | Prisma.BasketUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.BasketUpdateManyWithWhereWithoutUserInput | Prisma.BasketUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.BasketScalarWhereInput | Prisma.BasketScalarWhereInput[] +} + +export type BasketCreateWithoutItemsInput = { + id?: string + scope?: $Enums.BasketScope + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutBasketsInput + family?: Prisma.FamilyCreateNestedOneWithoutBasketsInput +} + +export type BasketUncheckedCreateWithoutItemsInput = { + id?: string + userId: string + familyId?: string | null + scope?: $Enums.BasketScope + createdAt?: Date | string + updatedAt?: Date | string +} + +export type BasketCreateOrConnectWithoutItemsInput = { + where: Prisma.BasketWhereUniqueInput + create: Prisma.XOR +} + +export type BasketUpsertWithoutItemsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.BasketWhereInput +} + +export type BasketUpdateToOneWithWhereWithoutItemsInput = { + where?: Prisma.BasketWhereInput + data: Prisma.XOR +} + +export type BasketUpdateWithoutItemsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumBasketScopeFieldUpdateOperationsInput | $Enums.BasketScope + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutBasketsNestedInput + family?: Prisma.FamilyUpdateOneWithoutBasketsNestedInput +} + +export type BasketUncheckedUpdateWithoutItemsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + scope?: Prisma.EnumBasketScopeFieldUpdateOperationsInput | $Enums.BasketScope + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type BasketCreateWithoutFamilyInput = { + id?: string + scope?: $Enums.BasketScope + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.BasketItemCreateNestedManyWithoutBasketInput + user: Prisma.UserCreateNestedOneWithoutBasketsInput +} + +export type BasketUncheckedCreateWithoutFamilyInput = { + id?: string + userId: string + scope?: $Enums.BasketScope + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.BasketItemUncheckedCreateNestedManyWithoutBasketInput +} + +export type BasketCreateOrConnectWithoutFamilyInput = { + where: Prisma.BasketWhereUniqueInput + create: Prisma.XOR +} + +export type BasketCreateManyFamilyInputEnvelope = { + data: Prisma.BasketCreateManyFamilyInput | Prisma.BasketCreateManyFamilyInput[] + skipDuplicates?: boolean +} + +export type BasketUpsertWithWhereUniqueWithoutFamilyInput = { + where: Prisma.BasketWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type BasketUpdateWithWhereUniqueWithoutFamilyInput = { + where: Prisma.BasketWhereUniqueInput + data: Prisma.XOR +} + +export type BasketUpdateManyWithWhereWithoutFamilyInput = { + where: Prisma.BasketScalarWhereInput + data: Prisma.XOR +} + +export type BasketScalarWhereInput = { + AND?: Prisma.BasketScalarWhereInput | Prisma.BasketScalarWhereInput[] + OR?: Prisma.BasketScalarWhereInput[] + NOT?: Prisma.BasketScalarWhereInput | Prisma.BasketScalarWhereInput[] + id?: Prisma.StringFilter<"Basket"> | string + userId?: Prisma.StringFilter<"Basket"> | string + familyId?: Prisma.StringNullableFilter<"Basket"> | string | null + scope?: Prisma.EnumBasketScopeFilter<"Basket"> | $Enums.BasketScope + createdAt?: Prisma.DateTimeFilter<"Basket"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Basket"> | Date | string +} + +export type BasketCreateWithoutUserInput = { + id?: string + scope?: $Enums.BasketScope + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.BasketItemCreateNestedManyWithoutBasketInput + family?: Prisma.FamilyCreateNestedOneWithoutBasketsInput +} + +export type BasketUncheckedCreateWithoutUserInput = { + id?: string + familyId?: string | null + scope?: $Enums.BasketScope + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.BasketItemUncheckedCreateNestedManyWithoutBasketInput +} + +export type BasketCreateOrConnectWithoutUserInput = { + where: Prisma.BasketWhereUniqueInput + create: Prisma.XOR +} + +export type BasketCreateManyUserInputEnvelope = { + data: Prisma.BasketCreateManyUserInput | Prisma.BasketCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type BasketUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.BasketWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type BasketUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.BasketWhereUniqueInput + data: Prisma.XOR +} + +export type BasketUpdateManyWithWhereWithoutUserInput = { + where: Prisma.BasketScalarWhereInput + data: Prisma.XOR +} + +export type BasketCreateManyFamilyInput = { + id?: string + userId: string + scope?: $Enums.BasketScope + createdAt?: Date | string + updatedAt?: Date | string +} + +export type BasketUpdateWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumBasketScopeFieldUpdateOperationsInput | $Enums.BasketScope + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.BasketItemUpdateManyWithoutBasketNestedInput + user?: Prisma.UserUpdateOneRequiredWithoutBasketsNestedInput +} + +export type BasketUncheckedUpdateWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumBasketScopeFieldUpdateOperationsInput | $Enums.BasketScope + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.BasketItemUncheckedUpdateManyWithoutBasketNestedInput +} + +export type BasketUncheckedUpdateManyWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumBasketScopeFieldUpdateOperationsInput | $Enums.BasketScope + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type BasketCreateManyUserInput = { + id?: string + familyId?: string | null + scope?: $Enums.BasketScope + createdAt?: Date | string + updatedAt?: Date | string +} + +export type BasketUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumBasketScopeFieldUpdateOperationsInput | $Enums.BasketScope + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.BasketItemUpdateManyWithoutBasketNestedInput + family?: Prisma.FamilyUpdateOneWithoutBasketsNestedInput +} + +export type BasketUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + scope?: Prisma.EnumBasketScopeFieldUpdateOperationsInput | $Enums.BasketScope + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.BasketItemUncheckedUpdateManyWithoutBasketNestedInput +} + +export type BasketUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + scope?: Prisma.EnumBasketScopeFieldUpdateOperationsInput | $Enums.BasketScope + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + +/** + * Count Type BasketCountOutputType + */ + +export type BasketCountOutputType = { + items: number +} + +export type BasketCountOutputTypeSelect = { + items?: boolean | BasketCountOutputTypeCountItemsArgs +} + +/** + * BasketCountOutputType without action + */ +export type BasketCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the BasketCountOutputType + */ + select?: Prisma.BasketCountOutputTypeSelect | null +} + +/** + * BasketCountOutputType without action + */ +export type BasketCountOutputTypeCountItemsArgs = { + where?: Prisma.BasketItemWhereInput +} + + +export type BasketSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + familyId?: boolean + scope?: boolean + createdAt?: boolean + updatedAt?: boolean + items?: boolean | Prisma.Basket$itemsArgs + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Basket$familyArgs + _count?: boolean | Prisma.BasketCountOutputTypeDefaultArgs +}, ExtArgs["result"]["basket"]> + +export type BasketSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + familyId?: boolean + scope?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Basket$familyArgs +}, ExtArgs["result"]["basket"]> + +export type BasketSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + familyId?: boolean + scope?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Basket$familyArgs +}, ExtArgs["result"]["basket"]> + +export type BasketSelectScalar = { + id?: boolean + userId?: boolean + familyId?: boolean + scope?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type BasketOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "familyId" | "scope" | "createdAt" | "updatedAt", ExtArgs["result"]["basket"]> +export type BasketInclude = { + items?: boolean | Prisma.Basket$itemsArgs + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Basket$familyArgs + _count?: boolean | Prisma.BasketCountOutputTypeDefaultArgs +} +export type BasketIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Basket$familyArgs +} +export type BasketIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Basket$familyArgs +} + +export type $BasketPayload = { + name: "Basket" + objects: { + items: Prisma.$BasketItemPayload[] + user: Prisma.$UserPayload + family: Prisma.$FamilyPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + userId: string + familyId: string | null + scope: $Enums.BasketScope + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["basket"]> + composites: {} +} + +export type BasketGetPayload = runtime.Types.Result.GetResult + +export type BasketCountArgs = + Omit & { + select?: BasketCountAggregateInputType | true + } + +export interface BasketDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Basket'], meta: { name: 'Basket' } } + /** + * Find zero or one Basket that matches the filter. + * @param {BasketFindUniqueArgs} args - Arguments to find a Basket + * @example + * // Get one Basket + * const basket = await prisma.basket.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__BasketClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Basket that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {BasketFindUniqueOrThrowArgs} args - Arguments to find a Basket + * @example + * // Get one Basket + * const basket = await prisma.basket.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__BasketClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Basket 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 {BasketFindFirstArgs} args - Arguments to find a Basket + * @example + * // Get one Basket + * const basket = await prisma.basket.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__BasketClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Basket 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 {BasketFindFirstOrThrowArgs} args - Arguments to find a Basket + * @example + * // Get one Basket + * const basket = await prisma.basket.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__BasketClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Baskets 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 {BasketFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Baskets + * const baskets = await prisma.basket.findMany() + * + * // Get first 10 Baskets + * const baskets = await prisma.basket.findMany({ take: 10 }) + * + * // Only select the `id` + * const basketWithIdOnly = await prisma.basket.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Basket. + * @param {BasketCreateArgs} args - Arguments to create a Basket. + * @example + * // Create one Basket + * const Basket = await prisma.basket.create({ + * data: { + * // ... data to create a Basket + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__BasketClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Baskets. + * @param {BasketCreateManyArgs} args - Arguments to create many Baskets. + * @example + * // Create many Baskets + * const basket = await prisma.basket.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Baskets and returns the data saved in the database. + * @param {BasketCreateManyAndReturnArgs} args - Arguments to create many Baskets. + * @example + * // Create many Baskets + * const basket = await prisma.basket.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Baskets and only return the `id` + * const basketWithIdOnly = await prisma.basket.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Basket. + * @param {BasketDeleteArgs} args - Arguments to delete one Basket. + * @example + * // Delete one Basket + * const Basket = await prisma.basket.delete({ + * where: { + * // ... filter to delete one Basket + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__BasketClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Basket. + * @param {BasketUpdateArgs} args - Arguments to update one Basket. + * @example + * // Update one Basket + * const basket = await prisma.basket.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__BasketClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Baskets. + * @param {BasketDeleteManyArgs} args - Arguments to filter Baskets to delete. + * @example + * // Delete a few Baskets + * const { count } = await prisma.basket.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Baskets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {BasketUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Baskets + * const basket = await prisma.basket.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Baskets and returns the data updated in the database. + * @param {BasketUpdateManyAndReturnArgs} args - Arguments to update many Baskets. + * @example + * // Update many Baskets + * const basket = await prisma.basket.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Baskets and only return the `id` + * const basketWithIdOnly = await prisma.basket.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Basket. + * @param {BasketUpsertArgs} args - Arguments to update or create a Basket. + * @example + * // Update or create a Basket + * const basket = await prisma.basket.upsert({ + * create: { + * // ... data to create a Basket + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Basket we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__BasketClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Baskets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {BasketCountArgs} args - Arguments to filter Baskets to count. + * @example + * // Count the number of Baskets + * const count = await prisma.basket.count({ + * where: { + * // ... the filter for the Baskets we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Basket. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {BasketAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Basket. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {BasketGroupByArgs} 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 BasketGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: BasketGroupByArgs['orderBy'] } + : { orderBy?: BasketGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetBasketGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Basket model + */ +readonly fields: BasketFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Basket. + * 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__BasketClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + items = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + family = {}>(args?: Prisma.Subset>): Prisma.Prisma__FamilyClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the Basket model + */ +export interface BasketFieldRefs { + readonly id: Prisma.FieldRef<"Basket", 'String'> + readonly userId: Prisma.FieldRef<"Basket", 'String'> + readonly familyId: Prisma.FieldRef<"Basket", 'String'> + readonly scope: Prisma.FieldRef<"Basket", 'BasketScope'> + readonly createdAt: Prisma.FieldRef<"Basket", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Basket", 'DateTime'> +} + + +// Custom InputTypes +/** + * Basket findUnique + */ +export type BasketFindUniqueArgs = { + /** + * Select specific fields to fetch from the Basket + */ + select?: Prisma.BasketSelect | null + /** + * Omit specific fields from the Basket + */ + omit?: Prisma.BasketOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketInclude | null + /** + * Filter, which Basket to fetch. + */ + where: Prisma.BasketWhereUniqueInput +} + +/** + * Basket findUniqueOrThrow + */ +export type BasketFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Basket + */ + select?: Prisma.BasketSelect | null + /** + * Omit specific fields from the Basket + */ + omit?: Prisma.BasketOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketInclude | null + /** + * Filter, which Basket to fetch. + */ + where: Prisma.BasketWhereUniqueInput +} + +/** + * Basket findFirst + */ +export type BasketFindFirstArgs = { + /** + * Select specific fields to fetch from the Basket + */ + select?: Prisma.BasketSelect | null + /** + * Omit specific fields from the Basket + */ + omit?: Prisma.BasketOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketInclude | null + /** + * Filter, which Basket to fetch. + */ + where?: Prisma.BasketWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Baskets to fetch. + */ + orderBy?: Prisma.BasketOrderByWithRelationInput | Prisma.BasketOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Baskets. + */ + cursor?: Prisma.BasketWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Baskets 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` Baskets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Baskets. + */ + distinct?: Prisma.BasketScalarFieldEnum | Prisma.BasketScalarFieldEnum[] +} + +/** + * Basket findFirstOrThrow + */ +export type BasketFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Basket + */ + select?: Prisma.BasketSelect | null + /** + * Omit specific fields from the Basket + */ + omit?: Prisma.BasketOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketInclude | null + /** + * Filter, which Basket to fetch. + */ + where?: Prisma.BasketWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Baskets to fetch. + */ + orderBy?: Prisma.BasketOrderByWithRelationInput | Prisma.BasketOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Baskets. + */ + cursor?: Prisma.BasketWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Baskets 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` Baskets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Baskets. + */ + distinct?: Prisma.BasketScalarFieldEnum | Prisma.BasketScalarFieldEnum[] +} + +/** + * Basket findMany + */ +export type BasketFindManyArgs = { + /** + * Select specific fields to fetch from the Basket + */ + select?: Prisma.BasketSelect | null + /** + * Omit specific fields from the Basket + */ + omit?: Prisma.BasketOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketInclude | null + /** + * Filter, which Baskets to fetch. + */ + where?: Prisma.BasketWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Baskets to fetch. + */ + orderBy?: Prisma.BasketOrderByWithRelationInput | Prisma.BasketOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Baskets. + */ + cursor?: Prisma.BasketWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Baskets 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` Baskets. + */ + skip?: number + distinct?: Prisma.BasketScalarFieldEnum | Prisma.BasketScalarFieldEnum[] +} + +/** + * Basket create + */ +export type BasketCreateArgs = { + /** + * Select specific fields to fetch from the Basket + */ + select?: Prisma.BasketSelect | null + /** + * Omit specific fields from the Basket + */ + omit?: Prisma.BasketOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketInclude | null + /** + * The data needed to create a Basket. + */ + data: Prisma.XOR +} + +/** + * Basket createMany + */ +export type BasketCreateManyArgs = { + /** + * The data used to create many Baskets. + */ + data: Prisma.BasketCreateManyInput | Prisma.BasketCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Basket createManyAndReturn + */ +export type BasketCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Basket + */ + select?: Prisma.BasketSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Basket + */ + omit?: Prisma.BasketOmit | null + /** + * The data used to create many Baskets. + */ + data: Prisma.BasketCreateManyInput | Prisma.BasketCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketIncludeCreateManyAndReturn | null +} + +/** + * Basket update + */ +export type BasketUpdateArgs = { + /** + * Select specific fields to fetch from the Basket + */ + select?: Prisma.BasketSelect | null + /** + * Omit specific fields from the Basket + */ + omit?: Prisma.BasketOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketInclude | null + /** + * The data needed to update a Basket. + */ + data: Prisma.XOR + /** + * Choose, which Basket to update. + */ + where: Prisma.BasketWhereUniqueInput +} + +/** + * Basket updateMany + */ +export type BasketUpdateManyArgs = { + /** + * The data used to update Baskets. + */ + data: Prisma.XOR + /** + * Filter which Baskets to update + */ + where?: Prisma.BasketWhereInput + /** + * Limit how many Baskets to update. + */ + limit?: number +} + +/** + * Basket updateManyAndReturn + */ +export type BasketUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Basket + */ + select?: Prisma.BasketSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Basket + */ + omit?: Prisma.BasketOmit | null + /** + * The data used to update Baskets. + */ + data: Prisma.XOR + /** + * Filter which Baskets to update + */ + where?: Prisma.BasketWhereInput + /** + * Limit how many Baskets to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketIncludeUpdateManyAndReturn | null +} + +/** + * Basket upsert + */ +export type BasketUpsertArgs = { + /** + * Select specific fields to fetch from the Basket + */ + select?: Prisma.BasketSelect | null + /** + * Omit specific fields from the Basket + */ + omit?: Prisma.BasketOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketInclude | null + /** + * The filter to search for the Basket to update in case it exists. + */ + where: Prisma.BasketWhereUniqueInput + /** + * In case the Basket found by the `where` argument doesn't exist, create a new Basket with this data. + */ + create: Prisma.XOR + /** + * In case the Basket was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Basket delete + */ +export type BasketDeleteArgs = { + /** + * Select specific fields to fetch from the Basket + */ + select?: Prisma.BasketSelect | null + /** + * Omit specific fields from the Basket + */ + omit?: Prisma.BasketOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketInclude | null + /** + * Filter which Basket to delete. + */ + where: Prisma.BasketWhereUniqueInput +} + +/** + * Basket deleteMany + */ +export type BasketDeleteManyArgs = { + /** + * Filter which Baskets to delete + */ + where?: Prisma.BasketWhereInput + /** + * Limit how many Baskets to delete. + */ + limit?: number +} + +/** + * Basket.items + */ +export type Basket$itemsArgs = { + /** + * Select specific fields to fetch from the BasketItem + */ + select?: Prisma.BasketItemSelect | null + /** + * Omit specific fields from the BasketItem + */ + omit?: Prisma.BasketItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketItemInclude | null + where?: Prisma.BasketItemWhereInput + orderBy?: Prisma.BasketItemOrderByWithRelationInput | Prisma.BasketItemOrderByWithRelationInput[] + cursor?: Prisma.BasketItemWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.BasketItemScalarFieldEnum | Prisma.BasketItemScalarFieldEnum[] +} + +/** + * Basket.family + */ +export type Basket$familyArgs = { + /** + * Select specific fields to fetch from the Family + */ + select?: Prisma.FamilySelect | null + /** + * Omit specific fields from the Family + */ + omit?: Prisma.FamilyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInclude | null + where?: Prisma.FamilyWhereInput +} + +/** + * Basket without action + */ +export type BasketDefaultArgs = { + /** + * Select specific fields to fetch from the Basket + */ + select?: Prisma.BasketSelect | null + /** + * Omit specific fields from the Basket + */ + omit?: Prisma.BasketOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/BasketItem.ts b/apps/backend/prisma/generated/generated/prisma/models/BasketItem.ts new file mode 100644 index 00000000..cd7df709 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/BasketItem.ts @@ -0,0 +1,1750 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `BasketItem` 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 BasketItem + * + */ +export type BasketItemModel = runtime.Types.Result.DefaultSelection + +export type AggregateBasketItem = { + _count: BasketItemCountAggregateOutputType | null + _avg: BasketItemAvgAggregateOutputType | null + _sum: BasketItemSumAggregateOutputType | null + _min: BasketItemMinAggregateOutputType | null + _max: BasketItemMaxAggregateOutputType | null +} + +export type BasketItemAvgAggregateOutputType = { + quantity: runtime.Decimal | null + price: runtime.Decimal | null +} + +export type BasketItemSumAggregateOutputType = { + quantity: runtime.Decimal | null + price: runtime.Decimal | null +} + +export type BasketItemMinAggregateOutputType = { + id: string | null + basketId: string | null + name: string | null + quantity: runtime.Decimal | null + price: runtime.Decimal | null + categoryId: string | null + notes: string | null + addedBy: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type BasketItemMaxAggregateOutputType = { + id: string | null + basketId: string | null + name: string | null + quantity: runtime.Decimal | null + price: runtime.Decimal | null + categoryId: string | null + notes: string | null + addedBy: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type BasketItemCountAggregateOutputType = { + id: number + basketId: number + name: number + quantity: number + price: number + categoryId: number + notes: number + addedBy: number + createdAt: number + updatedAt: number + _all: number +} + + +export type BasketItemAvgAggregateInputType = { + quantity?: true + price?: true +} + +export type BasketItemSumAggregateInputType = { + quantity?: true + price?: true +} + +export type BasketItemMinAggregateInputType = { + id?: true + basketId?: true + name?: true + quantity?: true + price?: true + categoryId?: true + notes?: true + addedBy?: true + createdAt?: true + updatedAt?: true +} + +export type BasketItemMaxAggregateInputType = { + id?: true + basketId?: true + name?: true + quantity?: true + price?: true + categoryId?: true + notes?: true + addedBy?: true + createdAt?: true + updatedAt?: true +} + +export type BasketItemCountAggregateInputType = { + id?: true + basketId?: true + name?: true + quantity?: true + price?: true + categoryId?: true + notes?: true + addedBy?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type BasketItemAggregateArgs = { + /** + * Filter which BasketItem to aggregate. + */ + where?: Prisma.BasketItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of BasketItems to fetch. + */ + orderBy?: Prisma.BasketItemOrderByWithRelationInput | Prisma.BasketItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.BasketItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` BasketItems 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` BasketItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned BasketItems + **/ + _count?: true | BasketItemCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: BasketItemAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: BasketItemSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: BasketItemMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: BasketItemMaxAggregateInputType +} + +export type GetBasketItemAggregateType = { + [P in keyof T & keyof AggregateBasketItem]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type BasketItemGroupByArgs = { + where?: Prisma.BasketItemWhereInput + orderBy?: Prisma.BasketItemOrderByWithAggregationInput | Prisma.BasketItemOrderByWithAggregationInput[] + by: Prisma.BasketItemScalarFieldEnum[] | Prisma.BasketItemScalarFieldEnum + having?: Prisma.BasketItemScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: BasketItemCountAggregateInputType | true + _avg?: BasketItemAvgAggregateInputType + _sum?: BasketItemSumAggregateInputType + _min?: BasketItemMinAggregateInputType + _max?: BasketItemMaxAggregateInputType +} + +export type BasketItemGroupByOutputType = { + id: string + basketId: string + name: string + quantity: runtime.Decimal + price: runtime.Decimal | null + categoryId: string | null + notes: string | null + addedBy: string + createdAt: Date + updatedAt: Date + _count: BasketItemCountAggregateOutputType | null + _avg: BasketItemAvgAggregateOutputType | null + _sum: BasketItemSumAggregateOutputType | null + _min: BasketItemMinAggregateOutputType | null + _max: BasketItemMaxAggregateOutputType | null +} + +type GetBasketItemGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof BasketItemGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type BasketItemWhereInput = { + AND?: Prisma.BasketItemWhereInput | Prisma.BasketItemWhereInput[] + OR?: Prisma.BasketItemWhereInput[] + NOT?: Prisma.BasketItemWhereInput | Prisma.BasketItemWhereInput[] + id?: Prisma.StringFilter<"BasketItem"> | string + basketId?: Prisma.StringFilter<"BasketItem"> | string + name?: Prisma.StringFilter<"BasketItem"> | string + quantity?: Prisma.DecimalFilter<"BasketItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + price?: Prisma.DecimalNullableFilter<"BasketItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + categoryId?: Prisma.StringNullableFilter<"BasketItem"> | string | null + notes?: Prisma.StringNullableFilter<"BasketItem"> | string | null + addedBy?: Prisma.StringFilter<"BasketItem"> | string + createdAt?: Prisma.DateTimeFilter<"BasketItem"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"BasketItem"> | Date | string + basket?: Prisma.XOR + category?: Prisma.XOR | null +} + +export type BasketItemOrderByWithRelationInput = { + id?: Prisma.SortOrder + basketId?: Prisma.SortOrder + name?: Prisma.SortOrder + quantity?: Prisma.SortOrder + price?: Prisma.SortOrderInput | Prisma.SortOrder + categoryId?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + addedBy?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + basket?: Prisma.BasketOrderByWithRelationInput + category?: Prisma.ItemCategoryOrderByWithRelationInput +} + +export type BasketItemWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.BasketItemWhereInput | Prisma.BasketItemWhereInput[] + OR?: Prisma.BasketItemWhereInput[] + NOT?: Prisma.BasketItemWhereInput | Prisma.BasketItemWhereInput[] + basketId?: Prisma.StringFilter<"BasketItem"> | string + name?: Prisma.StringFilter<"BasketItem"> | string + quantity?: Prisma.DecimalFilter<"BasketItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + price?: Prisma.DecimalNullableFilter<"BasketItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + categoryId?: Prisma.StringNullableFilter<"BasketItem"> | string | null + notes?: Prisma.StringNullableFilter<"BasketItem"> | string | null + addedBy?: Prisma.StringFilter<"BasketItem"> | string + createdAt?: Prisma.DateTimeFilter<"BasketItem"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"BasketItem"> | Date | string + basket?: Prisma.XOR + category?: Prisma.XOR | null +}, "id"> + +export type BasketItemOrderByWithAggregationInput = { + id?: Prisma.SortOrder + basketId?: Prisma.SortOrder + name?: Prisma.SortOrder + quantity?: Prisma.SortOrder + price?: Prisma.SortOrderInput | Prisma.SortOrder + categoryId?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + addedBy?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.BasketItemCountOrderByAggregateInput + _avg?: Prisma.BasketItemAvgOrderByAggregateInput + _max?: Prisma.BasketItemMaxOrderByAggregateInput + _min?: Prisma.BasketItemMinOrderByAggregateInput + _sum?: Prisma.BasketItemSumOrderByAggregateInput +} + +export type BasketItemScalarWhereWithAggregatesInput = { + AND?: Prisma.BasketItemScalarWhereWithAggregatesInput | Prisma.BasketItemScalarWhereWithAggregatesInput[] + OR?: Prisma.BasketItemScalarWhereWithAggregatesInput[] + NOT?: Prisma.BasketItemScalarWhereWithAggregatesInput | Prisma.BasketItemScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"BasketItem"> | string + basketId?: Prisma.StringWithAggregatesFilter<"BasketItem"> | string + name?: Prisma.StringWithAggregatesFilter<"BasketItem"> | string + quantity?: Prisma.DecimalWithAggregatesFilter<"BasketItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + price?: Prisma.DecimalNullableWithAggregatesFilter<"BasketItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + categoryId?: Prisma.StringNullableWithAggregatesFilter<"BasketItem"> | string | null + notes?: Prisma.StringNullableWithAggregatesFilter<"BasketItem"> | string | null + addedBy?: Prisma.StringWithAggregatesFilter<"BasketItem"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"BasketItem"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"BasketItem"> | Date | string +} + +export type BasketItemCreateInput = { + id?: string + name: string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + notes?: string | null + addedBy: string + createdAt?: Date | string + updatedAt?: Date | string + basket: Prisma.BasketCreateNestedOneWithoutItemsInput + category?: Prisma.ItemCategoryCreateNestedOneWithoutBasketItemsInput +} + +export type BasketItemUncheckedCreateInput = { + id?: string + basketId: string + name: string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + categoryId?: string | null + notes?: string | null + addedBy: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type BasketItemUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + addedBy?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + basket?: Prisma.BasketUpdateOneRequiredWithoutItemsNestedInput + category?: Prisma.ItemCategoryUpdateOneWithoutBasketItemsNestedInput +} + +export type BasketItemUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + basketId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + addedBy?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type BasketItemCreateManyInput = { + id?: string + basketId: string + name: string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + categoryId?: string | null + notes?: string | null + addedBy: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type BasketItemUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + addedBy?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type BasketItemUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + basketId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + addedBy?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type BasketItemListRelationFilter = { + every?: Prisma.BasketItemWhereInput + some?: Prisma.BasketItemWhereInput + none?: Prisma.BasketItemWhereInput +} + +export type BasketItemOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type BasketItemCountOrderByAggregateInput = { + id?: Prisma.SortOrder + basketId?: Prisma.SortOrder + name?: Prisma.SortOrder + quantity?: Prisma.SortOrder + price?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + notes?: Prisma.SortOrder + addedBy?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type BasketItemAvgOrderByAggregateInput = { + quantity?: Prisma.SortOrder + price?: Prisma.SortOrder +} + +export type BasketItemMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + basketId?: Prisma.SortOrder + name?: Prisma.SortOrder + quantity?: Prisma.SortOrder + price?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + notes?: Prisma.SortOrder + addedBy?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type BasketItemMinOrderByAggregateInput = { + id?: Prisma.SortOrder + basketId?: Prisma.SortOrder + name?: Prisma.SortOrder + quantity?: Prisma.SortOrder + price?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + notes?: Prisma.SortOrder + addedBy?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type BasketItemSumOrderByAggregateInput = { + quantity?: Prisma.SortOrder + price?: Prisma.SortOrder +} + +export type BasketItemCreateNestedManyWithoutBasketInput = { + create?: Prisma.XOR | Prisma.BasketItemCreateWithoutBasketInput[] | Prisma.BasketItemUncheckedCreateWithoutBasketInput[] + connectOrCreate?: Prisma.BasketItemCreateOrConnectWithoutBasketInput | Prisma.BasketItemCreateOrConnectWithoutBasketInput[] + createMany?: Prisma.BasketItemCreateManyBasketInputEnvelope + connect?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] +} + +export type BasketItemUncheckedCreateNestedManyWithoutBasketInput = { + create?: Prisma.XOR | Prisma.BasketItemCreateWithoutBasketInput[] | Prisma.BasketItemUncheckedCreateWithoutBasketInput[] + connectOrCreate?: Prisma.BasketItemCreateOrConnectWithoutBasketInput | Prisma.BasketItemCreateOrConnectWithoutBasketInput[] + createMany?: Prisma.BasketItemCreateManyBasketInputEnvelope + connect?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] +} + +export type BasketItemUpdateManyWithoutBasketNestedInput = { + create?: Prisma.XOR | Prisma.BasketItemCreateWithoutBasketInput[] | Prisma.BasketItemUncheckedCreateWithoutBasketInput[] + connectOrCreate?: Prisma.BasketItemCreateOrConnectWithoutBasketInput | Prisma.BasketItemCreateOrConnectWithoutBasketInput[] + upsert?: Prisma.BasketItemUpsertWithWhereUniqueWithoutBasketInput | Prisma.BasketItemUpsertWithWhereUniqueWithoutBasketInput[] + createMany?: Prisma.BasketItemCreateManyBasketInputEnvelope + set?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] + disconnect?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] + delete?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] + connect?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] + update?: Prisma.BasketItemUpdateWithWhereUniqueWithoutBasketInput | Prisma.BasketItemUpdateWithWhereUniqueWithoutBasketInput[] + updateMany?: Prisma.BasketItemUpdateManyWithWhereWithoutBasketInput | Prisma.BasketItemUpdateManyWithWhereWithoutBasketInput[] + deleteMany?: Prisma.BasketItemScalarWhereInput | Prisma.BasketItemScalarWhereInput[] +} + +export type BasketItemUncheckedUpdateManyWithoutBasketNestedInput = { + create?: Prisma.XOR | Prisma.BasketItemCreateWithoutBasketInput[] | Prisma.BasketItemUncheckedCreateWithoutBasketInput[] + connectOrCreate?: Prisma.BasketItemCreateOrConnectWithoutBasketInput | Prisma.BasketItemCreateOrConnectWithoutBasketInput[] + upsert?: Prisma.BasketItemUpsertWithWhereUniqueWithoutBasketInput | Prisma.BasketItemUpsertWithWhereUniqueWithoutBasketInput[] + createMany?: Prisma.BasketItemCreateManyBasketInputEnvelope + set?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] + disconnect?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] + delete?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] + connect?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] + update?: Prisma.BasketItemUpdateWithWhereUniqueWithoutBasketInput | Prisma.BasketItemUpdateWithWhereUniqueWithoutBasketInput[] + updateMany?: Prisma.BasketItemUpdateManyWithWhereWithoutBasketInput | Prisma.BasketItemUpdateManyWithWhereWithoutBasketInput[] + deleteMany?: Prisma.BasketItemScalarWhereInput | Prisma.BasketItemScalarWhereInput[] +} + +export type DecimalFieldUpdateOperationsInput = { + set?: runtime.Decimal | runtime.DecimalJsLike | number | string + increment?: runtime.Decimal | runtime.DecimalJsLike | number | string + decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string + multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string + divide?: runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type NullableDecimalFieldUpdateOperationsInput = { + set?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + increment?: runtime.Decimal | runtime.DecimalJsLike | number | string + decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string + multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string + divide?: runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type BasketItemCreateNestedManyWithoutCategoryInput = { + create?: Prisma.XOR | Prisma.BasketItemCreateWithoutCategoryInput[] | Prisma.BasketItemUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.BasketItemCreateOrConnectWithoutCategoryInput | Prisma.BasketItemCreateOrConnectWithoutCategoryInput[] + createMany?: Prisma.BasketItemCreateManyCategoryInputEnvelope + connect?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] +} + +export type BasketItemUncheckedCreateNestedManyWithoutCategoryInput = { + create?: Prisma.XOR | Prisma.BasketItemCreateWithoutCategoryInput[] | Prisma.BasketItemUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.BasketItemCreateOrConnectWithoutCategoryInput | Prisma.BasketItemCreateOrConnectWithoutCategoryInput[] + createMany?: Prisma.BasketItemCreateManyCategoryInputEnvelope + connect?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] +} + +export type BasketItemUpdateManyWithoutCategoryNestedInput = { + create?: Prisma.XOR | Prisma.BasketItemCreateWithoutCategoryInput[] | Prisma.BasketItemUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.BasketItemCreateOrConnectWithoutCategoryInput | Prisma.BasketItemCreateOrConnectWithoutCategoryInput[] + upsert?: Prisma.BasketItemUpsertWithWhereUniqueWithoutCategoryInput | Prisma.BasketItemUpsertWithWhereUniqueWithoutCategoryInput[] + createMany?: Prisma.BasketItemCreateManyCategoryInputEnvelope + set?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] + disconnect?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] + delete?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] + connect?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] + update?: Prisma.BasketItemUpdateWithWhereUniqueWithoutCategoryInput | Prisma.BasketItemUpdateWithWhereUniqueWithoutCategoryInput[] + updateMany?: Prisma.BasketItemUpdateManyWithWhereWithoutCategoryInput | Prisma.BasketItemUpdateManyWithWhereWithoutCategoryInput[] + deleteMany?: Prisma.BasketItemScalarWhereInput | Prisma.BasketItemScalarWhereInput[] +} + +export type BasketItemUncheckedUpdateManyWithoutCategoryNestedInput = { + create?: Prisma.XOR | Prisma.BasketItemCreateWithoutCategoryInput[] | Prisma.BasketItemUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.BasketItemCreateOrConnectWithoutCategoryInput | Prisma.BasketItemCreateOrConnectWithoutCategoryInput[] + upsert?: Prisma.BasketItemUpsertWithWhereUniqueWithoutCategoryInput | Prisma.BasketItemUpsertWithWhereUniqueWithoutCategoryInput[] + createMany?: Prisma.BasketItemCreateManyCategoryInputEnvelope + set?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] + disconnect?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] + delete?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] + connect?: Prisma.BasketItemWhereUniqueInput | Prisma.BasketItemWhereUniqueInput[] + update?: Prisma.BasketItemUpdateWithWhereUniqueWithoutCategoryInput | Prisma.BasketItemUpdateWithWhereUniqueWithoutCategoryInput[] + updateMany?: Prisma.BasketItemUpdateManyWithWhereWithoutCategoryInput | Prisma.BasketItemUpdateManyWithWhereWithoutCategoryInput[] + deleteMany?: Prisma.BasketItemScalarWhereInput | Prisma.BasketItemScalarWhereInput[] +} + +export type BasketItemCreateWithoutBasketInput = { + id?: string + name: string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + notes?: string | null + addedBy: string + createdAt?: Date | string + updatedAt?: Date | string + category?: Prisma.ItemCategoryCreateNestedOneWithoutBasketItemsInput +} + +export type BasketItemUncheckedCreateWithoutBasketInput = { + id?: string + name: string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + categoryId?: string | null + notes?: string | null + addedBy: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type BasketItemCreateOrConnectWithoutBasketInput = { + where: Prisma.BasketItemWhereUniqueInput + create: Prisma.XOR +} + +export type BasketItemCreateManyBasketInputEnvelope = { + data: Prisma.BasketItemCreateManyBasketInput | Prisma.BasketItemCreateManyBasketInput[] + skipDuplicates?: boolean +} + +export type BasketItemUpsertWithWhereUniqueWithoutBasketInput = { + where: Prisma.BasketItemWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type BasketItemUpdateWithWhereUniqueWithoutBasketInput = { + where: Prisma.BasketItemWhereUniqueInput + data: Prisma.XOR +} + +export type BasketItemUpdateManyWithWhereWithoutBasketInput = { + where: Prisma.BasketItemScalarWhereInput + data: Prisma.XOR +} + +export type BasketItemScalarWhereInput = { + AND?: Prisma.BasketItemScalarWhereInput | Prisma.BasketItemScalarWhereInput[] + OR?: Prisma.BasketItemScalarWhereInput[] + NOT?: Prisma.BasketItemScalarWhereInput | Prisma.BasketItemScalarWhereInput[] + id?: Prisma.StringFilter<"BasketItem"> | string + basketId?: Prisma.StringFilter<"BasketItem"> | string + name?: Prisma.StringFilter<"BasketItem"> | string + quantity?: Prisma.DecimalFilter<"BasketItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + price?: Prisma.DecimalNullableFilter<"BasketItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + categoryId?: Prisma.StringNullableFilter<"BasketItem"> | string | null + notes?: Prisma.StringNullableFilter<"BasketItem"> | string | null + addedBy?: Prisma.StringFilter<"BasketItem"> | string + createdAt?: Prisma.DateTimeFilter<"BasketItem"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"BasketItem"> | Date | string +} + +export type BasketItemCreateWithoutCategoryInput = { + id?: string + name: string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + notes?: string | null + addedBy: string + createdAt?: Date | string + updatedAt?: Date | string + basket: Prisma.BasketCreateNestedOneWithoutItemsInput +} + +export type BasketItemUncheckedCreateWithoutCategoryInput = { + id?: string + basketId: string + name: string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + notes?: string | null + addedBy: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type BasketItemCreateOrConnectWithoutCategoryInput = { + where: Prisma.BasketItemWhereUniqueInput + create: Prisma.XOR +} + +export type BasketItemCreateManyCategoryInputEnvelope = { + data: Prisma.BasketItemCreateManyCategoryInput | Prisma.BasketItemCreateManyCategoryInput[] + skipDuplicates?: boolean +} + +export type BasketItemUpsertWithWhereUniqueWithoutCategoryInput = { + where: Prisma.BasketItemWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type BasketItemUpdateWithWhereUniqueWithoutCategoryInput = { + where: Prisma.BasketItemWhereUniqueInput + data: Prisma.XOR +} + +export type BasketItemUpdateManyWithWhereWithoutCategoryInput = { + where: Prisma.BasketItemScalarWhereInput + data: Prisma.XOR +} + +export type BasketItemCreateManyBasketInput = { + id?: string + name: string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + categoryId?: string | null + notes?: string | null + addedBy: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type BasketItemUpdateWithoutBasketInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + addedBy?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.ItemCategoryUpdateOneWithoutBasketItemsNestedInput +} + +export type BasketItemUncheckedUpdateWithoutBasketInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + addedBy?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type BasketItemUncheckedUpdateManyWithoutBasketInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + addedBy?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type BasketItemCreateManyCategoryInput = { + id?: string + basketId: string + name: string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + notes?: string | null + addedBy: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type BasketItemUpdateWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + addedBy?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + basket?: Prisma.BasketUpdateOneRequiredWithoutItemsNestedInput +} + +export type BasketItemUncheckedUpdateWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + basketId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + addedBy?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type BasketItemUncheckedUpdateManyWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + basketId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + addedBy?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type BasketItemSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + basketId?: boolean + name?: boolean + quantity?: boolean + price?: boolean + categoryId?: boolean + notes?: boolean + addedBy?: boolean + createdAt?: boolean + updatedAt?: boolean + basket?: boolean | Prisma.BasketDefaultArgs + category?: boolean | Prisma.BasketItem$categoryArgs +}, ExtArgs["result"]["basketItem"]> + +export type BasketItemSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + basketId?: boolean + name?: boolean + quantity?: boolean + price?: boolean + categoryId?: boolean + notes?: boolean + addedBy?: boolean + createdAt?: boolean + updatedAt?: boolean + basket?: boolean | Prisma.BasketDefaultArgs + category?: boolean | Prisma.BasketItem$categoryArgs +}, ExtArgs["result"]["basketItem"]> + +export type BasketItemSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + basketId?: boolean + name?: boolean + quantity?: boolean + price?: boolean + categoryId?: boolean + notes?: boolean + addedBy?: boolean + createdAt?: boolean + updatedAt?: boolean + basket?: boolean | Prisma.BasketDefaultArgs + category?: boolean | Prisma.BasketItem$categoryArgs +}, ExtArgs["result"]["basketItem"]> + +export type BasketItemSelectScalar = { + id?: boolean + basketId?: boolean + name?: boolean + quantity?: boolean + price?: boolean + categoryId?: boolean + notes?: boolean + addedBy?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type BasketItemOmit = runtime.Types.Extensions.GetOmit<"id" | "basketId" | "name" | "quantity" | "price" | "categoryId" | "notes" | "addedBy" | "createdAt" | "updatedAt", ExtArgs["result"]["basketItem"]> +export type BasketItemInclude = { + basket?: boolean | Prisma.BasketDefaultArgs + category?: boolean | Prisma.BasketItem$categoryArgs +} +export type BasketItemIncludeCreateManyAndReturn = { + basket?: boolean | Prisma.BasketDefaultArgs + category?: boolean | Prisma.BasketItem$categoryArgs +} +export type BasketItemIncludeUpdateManyAndReturn = { + basket?: boolean | Prisma.BasketDefaultArgs + category?: boolean | Prisma.BasketItem$categoryArgs +} + +export type $BasketItemPayload = { + name: "BasketItem" + objects: { + basket: Prisma.$BasketPayload + category: Prisma.$ItemCategoryPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + basketId: string + name: string + quantity: runtime.Decimal + price: runtime.Decimal | null + categoryId: string | null + notes: string | null + addedBy: string + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["basketItem"]> + composites: {} +} + +export type BasketItemGetPayload = runtime.Types.Result.GetResult + +export type BasketItemCountArgs = + Omit & { + select?: BasketItemCountAggregateInputType | true + } + +export interface BasketItemDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['BasketItem'], meta: { name: 'BasketItem' } } + /** + * Find zero or one BasketItem that matches the filter. + * @param {BasketItemFindUniqueArgs} args - Arguments to find a BasketItem + * @example + * // Get one BasketItem + * const basketItem = await prisma.basketItem.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__BasketItemClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one BasketItem that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {BasketItemFindUniqueOrThrowArgs} args - Arguments to find a BasketItem + * @example + * // Get one BasketItem + * const basketItem = await prisma.basketItem.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__BasketItemClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first BasketItem 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 {BasketItemFindFirstArgs} args - Arguments to find a BasketItem + * @example + * // Get one BasketItem + * const basketItem = await prisma.basketItem.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__BasketItemClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first BasketItem 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 {BasketItemFindFirstOrThrowArgs} args - Arguments to find a BasketItem + * @example + * // Get one BasketItem + * const basketItem = await prisma.basketItem.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__BasketItemClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more BasketItems 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 {BasketItemFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all BasketItems + * const basketItems = await prisma.basketItem.findMany() + * + * // Get first 10 BasketItems + * const basketItems = await prisma.basketItem.findMany({ take: 10 }) + * + * // Only select the `id` + * const basketItemWithIdOnly = await prisma.basketItem.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a BasketItem. + * @param {BasketItemCreateArgs} args - Arguments to create a BasketItem. + * @example + * // Create one BasketItem + * const BasketItem = await prisma.basketItem.create({ + * data: { + * // ... data to create a BasketItem + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__BasketItemClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many BasketItems. + * @param {BasketItemCreateManyArgs} args - Arguments to create many BasketItems. + * @example + * // Create many BasketItems + * const basketItem = await prisma.basketItem.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many BasketItems and returns the data saved in the database. + * @param {BasketItemCreateManyAndReturnArgs} args - Arguments to create many BasketItems. + * @example + * // Create many BasketItems + * const basketItem = await prisma.basketItem.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many BasketItems and only return the `id` + * const basketItemWithIdOnly = await prisma.basketItem.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a BasketItem. + * @param {BasketItemDeleteArgs} args - Arguments to delete one BasketItem. + * @example + * // Delete one BasketItem + * const BasketItem = await prisma.basketItem.delete({ + * where: { + * // ... filter to delete one BasketItem + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__BasketItemClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one BasketItem. + * @param {BasketItemUpdateArgs} args - Arguments to update one BasketItem. + * @example + * // Update one BasketItem + * const basketItem = await prisma.basketItem.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__BasketItemClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more BasketItems. + * @param {BasketItemDeleteManyArgs} args - Arguments to filter BasketItems to delete. + * @example + * // Delete a few BasketItems + * const { count } = await prisma.basketItem.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more BasketItems. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {BasketItemUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many BasketItems + * const basketItem = await prisma.basketItem.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more BasketItems and returns the data updated in the database. + * @param {BasketItemUpdateManyAndReturnArgs} args - Arguments to update many BasketItems. + * @example + * // Update many BasketItems + * const basketItem = await prisma.basketItem.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more BasketItems and only return the `id` + * const basketItemWithIdOnly = await prisma.basketItem.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one BasketItem. + * @param {BasketItemUpsertArgs} args - Arguments to update or create a BasketItem. + * @example + * // Update or create a BasketItem + * const basketItem = await prisma.basketItem.upsert({ + * create: { + * // ... data to create a BasketItem + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the BasketItem we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__BasketItemClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of BasketItems. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {BasketItemCountArgs} args - Arguments to filter BasketItems to count. + * @example + * // Count the number of BasketItems + * const count = await prisma.basketItem.count({ + * where: { + * // ... the filter for the BasketItems we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a BasketItem. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {BasketItemAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by BasketItem. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {BasketItemGroupByArgs} 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 BasketItemGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: BasketItemGroupByArgs['orderBy'] } + : { orderBy?: BasketItemGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetBasketItemGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the BasketItem model + */ +readonly fields: BasketItemFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for BasketItem. + * 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__BasketItemClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + basket = {}>(args?: Prisma.Subset>): Prisma.Prisma__BasketClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + category = {}>(args?: Prisma.Subset>): Prisma.Prisma__ItemCategoryClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the BasketItem model + */ +export interface BasketItemFieldRefs { + readonly id: Prisma.FieldRef<"BasketItem", 'String'> + readonly basketId: Prisma.FieldRef<"BasketItem", 'String'> + readonly name: Prisma.FieldRef<"BasketItem", 'String'> + readonly quantity: Prisma.FieldRef<"BasketItem", 'Decimal'> + readonly price: Prisma.FieldRef<"BasketItem", 'Decimal'> + readonly categoryId: Prisma.FieldRef<"BasketItem", 'String'> + readonly notes: Prisma.FieldRef<"BasketItem", 'String'> + readonly addedBy: Prisma.FieldRef<"BasketItem", 'String'> + readonly createdAt: Prisma.FieldRef<"BasketItem", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"BasketItem", 'DateTime'> +} + + +// Custom InputTypes +/** + * BasketItem findUnique + */ +export type BasketItemFindUniqueArgs = { + /** + * Select specific fields to fetch from the BasketItem + */ + select?: Prisma.BasketItemSelect | null + /** + * Omit specific fields from the BasketItem + */ + omit?: Prisma.BasketItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketItemInclude | null + /** + * Filter, which BasketItem to fetch. + */ + where: Prisma.BasketItemWhereUniqueInput +} + +/** + * BasketItem findUniqueOrThrow + */ +export type BasketItemFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the BasketItem + */ + select?: Prisma.BasketItemSelect | null + /** + * Omit specific fields from the BasketItem + */ + omit?: Prisma.BasketItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketItemInclude | null + /** + * Filter, which BasketItem to fetch. + */ + where: Prisma.BasketItemWhereUniqueInput +} + +/** + * BasketItem findFirst + */ +export type BasketItemFindFirstArgs = { + /** + * Select specific fields to fetch from the BasketItem + */ + select?: Prisma.BasketItemSelect | null + /** + * Omit specific fields from the BasketItem + */ + omit?: Prisma.BasketItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketItemInclude | null + /** + * Filter, which BasketItem to fetch. + */ + where?: Prisma.BasketItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of BasketItems to fetch. + */ + orderBy?: Prisma.BasketItemOrderByWithRelationInput | Prisma.BasketItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for BasketItems. + */ + cursor?: Prisma.BasketItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` BasketItems 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` BasketItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of BasketItems. + */ + distinct?: Prisma.BasketItemScalarFieldEnum | Prisma.BasketItemScalarFieldEnum[] +} + +/** + * BasketItem findFirstOrThrow + */ +export type BasketItemFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the BasketItem + */ + select?: Prisma.BasketItemSelect | null + /** + * Omit specific fields from the BasketItem + */ + omit?: Prisma.BasketItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketItemInclude | null + /** + * Filter, which BasketItem to fetch. + */ + where?: Prisma.BasketItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of BasketItems to fetch. + */ + orderBy?: Prisma.BasketItemOrderByWithRelationInput | Prisma.BasketItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for BasketItems. + */ + cursor?: Prisma.BasketItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` BasketItems 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` BasketItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of BasketItems. + */ + distinct?: Prisma.BasketItemScalarFieldEnum | Prisma.BasketItemScalarFieldEnum[] +} + +/** + * BasketItem findMany + */ +export type BasketItemFindManyArgs = { + /** + * Select specific fields to fetch from the BasketItem + */ + select?: Prisma.BasketItemSelect | null + /** + * Omit specific fields from the BasketItem + */ + omit?: Prisma.BasketItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketItemInclude | null + /** + * Filter, which BasketItems to fetch. + */ + where?: Prisma.BasketItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of BasketItems to fetch. + */ + orderBy?: Prisma.BasketItemOrderByWithRelationInput | Prisma.BasketItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing BasketItems. + */ + cursor?: Prisma.BasketItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` BasketItems 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` BasketItems. + */ + skip?: number + distinct?: Prisma.BasketItemScalarFieldEnum | Prisma.BasketItemScalarFieldEnum[] +} + +/** + * BasketItem create + */ +export type BasketItemCreateArgs = { + /** + * Select specific fields to fetch from the BasketItem + */ + select?: Prisma.BasketItemSelect | null + /** + * Omit specific fields from the BasketItem + */ + omit?: Prisma.BasketItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketItemInclude | null + /** + * The data needed to create a BasketItem. + */ + data: Prisma.XOR +} + +/** + * BasketItem createMany + */ +export type BasketItemCreateManyArgs = { + /** + * The data used to create many BasketItems. + */ + data: Prisma.BasketItemCreateManyInput | Prisma.BasketItemCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * BasketItem createManyAndReturn + */ +export type BasketItemCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the BasketItem + */ + select?: Prisma.BasketItemSelectCreateManyAndReturn | null + /** + * Omit specific fields from the BasketItem + */ + omit?: Prisma.BasketItemOmit | null + /** + * The data used to create many BasketItems. + */ + data: Prisma.BasketItemCreateManyInput | Prisma.BasketItemCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketItemIncludeCreateManyAndReturn | null +} + +/** + * BasketItem update + */ +export type BasketItemUpdateArgs = { + /** + * Select specific fields to fetch from the BasketItem + */ + select?: Prisma.BasketItemSelect | null + /** + * Omit specific fields from the BasketItem + */ + omit?: Prisma.BasketItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketItemInclude | null + /** + * The data needed to update a BasketItem. + */ + data: Prisma.XOR + /** + * Choose, which BasketItem to update. + */ + where: Prisma.BasketItemWhereUniqueInput +} + +/** + * BasketItem updateMany + */ +export type BasketItemUpdateManyArgs = { + /** + * The data used to update BasketItems. + */ + data: Prisma.XOR + /** + * Filter which BasketItems to update + */ + where?: Prisma.BasketItemWhereInput + /** + * Limit how many BasketItems to update. + */ + limit?: number +} + +/** + * BasketItem updateManyAndReturn + */ +export type BasketItemUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the BasketItem + */ + select?: Prisma.BasketItemSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the BasketItem + */ + omit?: Prisma.BasketItemOmit | null + /** + * The data used to update BasketItems. + */ + data: Prisma.XOR + /** + * Filter which BasketItems to update + */ + where?: Prisma.BasketItemWhereInput + /** + * Limit how many BasketItems to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketItemIncludeUpdateManyAndReturn | null +} + +/** + * BasketItem upsert + */ +export type BasketItemUpsertArgs = { + /** + * Select specific fields to fetch from the BasketItem + */ + select?: Prisma.BasketItemSelect | null + /** + * Omit specific fields from the BasketItem + */ + omit?: Prisma.BasketItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketItemInclude | null + /** + * The filter to search for the BasketItem to update in case it exists. + */ + where: Prisma.BasketItemWhereUniqueInput + /** + * In case the BasketItem found by the `where` argument doesn't exist, create a new BasketItem with this data. + */ + create: Prisma.XOR + /** + * In case the BasketItem was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * BasketItem delete + */ +export type BasketItemDeleteArgs = { + /** + * Select specific fields to fetch from the BasketItem + */ + select?: Prisma.BasketItemSelect | null + /** + * Omit specific fields from the BasketItem + */ + omit?: Prisma.BasketItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketItemInclude | null + /** + * Filter which BasketItem to delete. + */ + where: Prisma.BasketItemWhereUniqueInput +} + +/** + * BasketItem deleteMany + */ +export type BasketItemDeleteManyArgs = { + /** + * Filter which BasketItems to delete + */ + where?: Prisma.BasketItemWhereInput + /** + * Limit how many BasketItems to delete. + */ + limit?: number +} + +/** + * BasketItem.category + */ +export type BasketItem$categoryArgs = { + /** + * Select specific fields to fetch from the ItemCategory + */ + select?: Prisma.ItemCategorySelect | null + /** + * Omit specific fields from the ItemCategory + */ + omit?: Prisma.ItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemCategoryInclude | null + where?: Prisma.ItemCategoryWhereInput +} + +/** + * BasketItem without action + */ +export type BasketItemDefaultArgs = { + /** + * Select specific fields to fetch from the BasketItem + */ + select?: Prisma.BasketItemSelect | null + /** + * Omit specific fields from the BasketItem + */ + omit?: Prisma.BasketItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketItemInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/DeviceToken.ts b/apps/backend/prisma/generated/generated/prisma/models/DeviceToken.ts new file mode 100644 index 00000000..0b1cba56 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/DeviceToken.ts @@ -0,0 +1,1515 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `DeviceToken` 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 DeviceToken + * + */ +export type DeviceTokenModel = runtime.Types.Result.DefaultSelection + +export type AggregateDeviceToken = { + _count: DeviceTokenCountAggregateOutputType | null + _min: DeviceTokenMinAggregateOutputType | null + _max: DeviceTokenMaxAggregateOutputType | null +} + +export type DeviceTokenMinAggregateOutputType = { + id: string | null + userId: string | null + expoPushToken: string | null + platform: string | null + deviceId: string | null + deviceName: string | null + isActive: boolean | null + lastUsed: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type DeviceTokenMaxAggregateOutputType = { + id: string | null + userId: string | null + expoPushToken: string | null + platform: string | null + deviceId: string | null + deviceName: string | null + isActive: boolean | null + lastUsed: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type DeviceTokenCountAggregateOutputType = { + id: number + userId: number + expoPushToken: number + platform: number + deviceId: number + deviceName: number + isActive: number + lastUsed: number + createdAt: number + updatedAt: number + _all: number +} + + +export type DeviceTokenMinAggregateInputType = { + id?: true + userId?: true + expoPushToken?: true + platform?: true + deviceId?: true + deviceName?: true + isActive?: true + lastUsed?: true + createdAt?: true + updatedAt?: true +} + +export type DeviceTokenMaxAggregateInputType = { + id?: true + userId?: true + expoPushToken?: true + platform?: true + deviceId?: true + deviceName?: true + isActive?: true + lastUsed?: true + createdAt?: true + updatedAt?: true +} + +export type DeviceTokenCountAggregateInputType = { + id?: true + userId?: true + expoPushToken?: true + platform?: true + deviceId?: true + deviceName?: true + isActive?: true + lastUsed?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type DeviceTokenAggregateArgs = { + /** + * Filter which DeviceToken to aggregate. + */ + where?: Prisma.DeviceTokenWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of DeviceTokens to fetch. + */ + orderBy?: Prisma.DeviceTokenOrderByWithRelationInput | Prisma.DeviceTokenOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.DeviceTokenWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` DeviceTokens 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` DeviceTokens. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned DeviceTokens + **/ + _count?: true | DeviceTokenCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: DeviceTokenMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: DeviceTokenMaxAggregateInputType +} + +export type GetDeviceTokenAggregateType = { + [P in keyof T & keyof AggregateDeviceToken]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type DeviceTokenGroupByArgs = { + where?: Prisma.DeviceTokenWhereInput + orderBy?: Prisma.DeviceTokenOrderByWithAggregationInput | Prisma.DeviceTokenOrderByWithAggregationInput[] + by: Prisma.DeviceTokenScalarFieldEnum[] | Prisma.DeviceTokenScalarFieldEnum + having?: Prisma.DeviceTokenScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: DeviceTokenCountAggregateInputType | true + _min?: DeviceTokenMinAggregateInputType + _max?: DeviceTokenMaxAggregateInputType +} + +export type DeviceTokenGroupByOutputType = { + id: string + userId: string + expoPushToken: string + platform: string | null + deviceId: string | null + deviceName: string | null + isActive: boolean + lastUsed: Date + createdAt: Date + updatedAt: Date + _count: DeviceTokenCountAggregateOutputType | null + _min: DeviceTokenMinAggregateOutputType | null + _max: DeviceTokenMaxAggregateOutputType | null +} + +type GetDeviceTokenGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof DeviceTokenGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type DeviceTokenWhereInput = { + AND?: Prisma.DeviceTokenWhereInput | Prisma.DeviceTokenWhereInput[] + OR?: Prisma.DeviceTokenWhereInput[] + NOT?: Prisma.DeviceTokenWhereInput | Prisma.DeviceTokenWhereInput[] + id?: Prisma.StringFilter<"DeviceToken"> | string + userId?: Prisma.StringFilter<"DeviceToken"> | string + expoPushToken?: Prisma.StringFilter<"DeviceToken"> | string + platform?: Prisma.StringNullableFilter<"DeviceToken"> | string | null + deviceId?: Prisma.StringNullableFilter<"DeviceToken"> | string | null + deviceName?: Prisma.StringNullableFilter<"DeviceToken"> | string | null + isActive?: Prisma.BoolFilter<"DeviceToken"> | boolean + lastUsed?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string + createdAt?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string + user?: Prisma.XOR +} + +export type DeviceTokenOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + expoPushToken?: Prisma.SortOrder + platform?: Prisma.SortOrderInput | Prisma.SortOrder + deviceId?: Prisma.SortOrderInput | Prisma.SortOrder + deviceName?: Prisma.SortOrderInput | Prisma.SortOrder + isActive?: Prisma.SortOrder + lastUsed?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput +} + +export type DeviceTokenWhereUniqueInput = Prisma.AtLeast<{ + id?: string + expoPushToken?: string + AND?: Prisma.DeviceTokenWhereInput | Prisma.DeviceTokenWhereInput[] + OR?: Prisma.DeviceTokenWhereInput[] + NOT?: Prisma.DeviceTokenWhereInput | Prisma.DeviceTokenWhereInput[] + userId?: Prisma.StringFilter<"DeviceToken"> | string + platform?: Prisma.StringNullableFilter<"DeviceToken"> | string | null + deviceId?: Prisma.StringNullableFilter<"DeviceToken"> | string | null + deviceName?: Prisma.StringNullableFilter<"DeviceToken"> | string | null + isActive?: Prisma.BoolFilter<"DeviceToken"> | boolean + lastUsed?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string + createdAt?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string + user?: Prisma.XOR +}, "id" | "expoPushToken"> + +export type DeviceTokenOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + expoPushToken?: Prisma.SortOrder + platform?: Prisma.SortOrderInput | Prisma.SortOrder + deviceId?: Prisma.SortOrderInput | Prisma.SortOrder + deviceName?: Prisma.SortOrderInput | Prisma.SortOrder + isActive?: Prisma.SortOrder + lastUsed?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.DeviceTokenCountOrderByAggregateInput + _max?: Prisma.DeviceTokenMaxOrderByAggregateInput + _min?: Prisma.DeviceTokenMinOrderByAggregateInput +} + +export type DeviceTokenScalarWhereWithAggregatesInput = { + AND?: Prisma.DeviceTokenScalarWhereWithAggregatesInput | Prisma.DeviceTokenScalarWhereWithAggregatesInput[] + OR?: Prisma.DeviceTokenScalarWhereWithAggregatesInput[] + NOT?: Prisma.DeviceTokenScalarWhereWithAggregatesInput | Prisma.DeviceTokenScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"DeviceToken"> | string + userId?: Prisma.StringWithAggregatesFilter<"DeviceToken"> | string + expoPushToken?: Prisma.StringWithAggregatesFilter<"DeviceToken"> | string + platform?: Prisma.StringNullableWithAggregatesFilter<"DeviceToken"> | string | null + deviceId?: Prisma.StringNullableWithAggregatesFilter<"DeviceToken"> | string | null + deviceName?: Prisma.StringNullableWithAggregatesFilter<"DeviceToken"> | string | null + isActive?: Prisma.BoolWithAggregatesFilter<"DeviceToken"> | boolean + lastUsed?: Prisma.DateTimeWithAggregatesFilter<"DeviceToken"> | Date | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"DeviceToken"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"DeviceToken"> | Date | string +} + +export type DeviceTokenCreateInput = { + id?: string + expoPushToken: string + platform?: string | null + deviceId?: string | null + deviceName?: string | null + isActive?: boolean + lastUsed?: Date | string + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutDeviceTokensInput +} + +export type DeviceTokenUncheckedCreateInput = { + id?: string + userId: string + expoPushToken: string + platform?: string | null + deviceId?: string | null + deviceName?: string | null + isActive?: boolean + lastUsed?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type DeviceTokenUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expoPushToken?: Prisma.StringFieldUpdateOperationsInput | string + platform?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deviceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean + lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutDeviceTokensNestedInput +} + +export type DeviceTokenUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + expoPushToken?: Prisma.StringFieldUpdateOperationsInput | string + platform?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deviceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean + lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type DeviceTokenCreateManyInput = { + id?: string + userId: string + expoPushToken: string + platform?: string | null + deviceId?: string | null + deviceName?: string | null + isActive?: boolean + lastUsed?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type DeviceTokenUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expoPushToken?: Prisma.StringFieldUpdateOperationsInput | string + platform?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deviceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean + lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type DeviceTokenUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + expoPushToken?: Prisma.StringFieldUpdateOperationsInput | string + platform?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deviceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean + lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type DeviceTokenCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + expoPushToken?: Prisma.SortOrder + platform?: Prisma.SortOrder + deviceId?: Prisma.SortOrder + deviceName?: Prisma.SortOrder + isActive?: Prisma.SortOrder + lastUsed?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type DeviceTokenMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + expoPushToken?: Prisma.SortOrder + platform?: Prisma.SortOrder + deviceId?: Prisma.SortOrder + deviceName?: Prisma.SortOrder + isActive?: Prisma.SortOrder + lastUsed?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type DeviceTokenMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + expoPushToken?: Prisma.SortOrder + platform?: Prisma.SortOrder + deviceId?: Prisma.SortOrder + deviceName?: Prisma.SortOrder + isActive?: Prisma.SortOrder + lastUsed?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type DeviceTokenListRelationFilter = { + every?: Prisma.DeviceTokenWhereInput + some?: Prisma.DeviceTokenWhereInput + none?: Prisma.DeviceTokenWhereInput +} + +export type DeviceTokenOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type DeviceTokenCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.DeviceTokenCreateWithoutUserInput[] | Prisma.DeviceTokenUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.DeviceTokenCreateOrConnectWithoutUserInput | Prisma.DeviceTokenCreateOrConnectWithoutUserInput[] + createMany?: Prisma.DeviceTokenCreateManyUserInputEnvelope + connect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] +} + +export type DeviceTokenUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.DeviceTokenCreateWithoutUserInput[] | Prisma.DeviceTokenUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.DeviceTokenCreateOrConnectWithoutUserInput | Prisma.DeviceTokenCreateOrConnectWithoutUserInput[] + createMany?: Prisma.DeviceTokenCreateManyUserInputEnvelope + connect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] +} + +export type DeviceTokenUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.DeviceTokenCreateWithoutUserInput[] | Prisma.DeviceTokenUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.DeviceTokenCreateOrConnectWithoutUserInput | Prisma.DeviceTokenCreateOrConnectWithoutUserInput[] + upsert?: Prisma.DeviceTokenUpsertWithWhereUniqueWithoutUserInput | Prisma.DeviceTokenUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.DeviceTokenCreateManyUserInputEnvelope + set?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] + disconnect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] + delete?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] + connect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] + update?: Prisma.DeviceTokenUpdateWithWhereUniqueWithoutUserInput | Prisma.DeviceTokenUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.DeviceTokenUpdateManyWithWhereWithoutUserInput | Prisma.DeviceTokenUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.DeviceTokenScalarWhereInput | Prisma.DeviceTokenScalarWhereInput[] +} + +export type DeviceTokenUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.DeviceTokenCreateWithoutUserInput[] | Prisma.DeviceTokenUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.DeviceTokenCreateOrConnectWithoutUserInput | Prisma.DeviceTokenCreateOrConnectWithoutUserInput[] + upsert?: Prisma.DeviceTokenUpsertWithWhereUniqueWithoutUserInput | Prisma.DeviceTokenUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.DeviceTokenCreateManyUserInputEnvelope + set?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] + disconnect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] + delete?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] + connect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] + update?: Prisma.DeviceTokenUpdateWithWhereUniqueWithoutUserInput | Prisma.DeviceTokenUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.DeviceTokenUpdateManyWithWhereWithoutUserInput | Prisma.DeviceTokenUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.DeviceTokenScalarWhereInput | Prisma.DeviceTokenScalarWhereInput[] +} + +export type DeviceTokenCreateWithoutUserInput = { + id?: string + expoPushToken: string + platform?: string | null + deviceId?: string | null + deviceName?: string | null + isActive?: boolean + lastUsed?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type DeviceTokenUncheckedCreateWithoutUserInput = { + id?: string + expoPushToken: string + platform?: string | null + deviceId?: string | null + deviceName?: string | null + isActive?: boolean + lastUsed?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type DeviceTokenCreateOrConnectWithoutUserInput = { + where: Prisma.DeviceTokenWhereUniqueInput + create: Prisma.XOR +} + +export type DeviceTokenCreateManyUserInputEnvelope = { + data: Prisma.DeviceTokenCreateManyUserInput | Prisma.DeviceTokenCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type DeviceTokenUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.DeviceTokenWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type DeviceTokenUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.DeviceTokenWhereUniqueInput + data: Prisma.XOR +} + +export type DeviceTokenUpdateManyWithWhereWithoutUserInput = { + where: Prisma.DeviceTokenScalarWhereInput + data: Prisma.XOR +} + +export type DeviceTokenScalarWhereInput = { + AND?: Prisma.DeviceTokenScalarWhereInput | Prisma.DeviceTokenScalarWhereInput[] + OR?: Prisma.DeviceTokenScalarWhereInput[] + NOT?: Prisma.DeviceTokenScalarWhereInput | Prisma.DeviceTokenScalarWhereInput[] + id?: Prisma.StringFilter<"DeviceToken"> | string + userId?: Prisma.StringFilter<"DeviceToken"> | string + expoPushToken?: Prisma.StringFilter<"DeviceToken"> | string + platform?: Prisma.StringNullableFilter<"DeviceToken"> | string | null + deviceId?: Prisma.StringNullableFilter<"DeviceToken"> | string | null + deviceName?: Prisma.StringNullableFilter<"DeviceToken"> | string | null + isActive?: Prisma.BoolFilter<"DeviceToken"> | boolean + lastUsed?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string + createdAt?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string +} + +export type DeviceTokenCreateManyUserInput = { + id?: string + expoPushToken: string + platform?: string | null + deviceId?: string | null + deviceName?: string | null + isActive?: boolean + lastUsed?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type DeviceTokenUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expoPushToken?: Prisma.StringFieldUpdateOperationsInput | string + platform?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deviceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean + lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type DeviceTokenUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expoPushToken?: Prisma.StringFieldUpdateOperationsInput | string + platform?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deviceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean + lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type DeviceTokenUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expoPushToken?: Prisma.StringFieldUpdateOperationsInput | string + platform?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deviceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean + lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type DeviceTokenSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + expoPushToken?: boolean + platform?: boolean + deviceId?: boolean + deviceName?: boolean + isActive?: boolean + lastUsed?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["deviceToken"]> + +export type DeviceTokenSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + expoPushToken?: boolean + platform?: boolean + deviceId?: boolean + deviceName?: boolean + isActive?: boolean + lastUsed?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["deviceToken"]> + +export type DeviceTokenSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + expoPushToken?: boolean + platform?: boolean + deviceId?: boolean + deviceName?: boolean + isActive?: boolean + lastUsed?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["deviceToken"]> + +export type DeviceTokenSelectScalar = { + id?: boolean + userId?: boolean + expoPushToken?: boolean + platform?: boolean + deviceId?: boolean + deviceName?: boolean + isActive?: boolean + lastUsed?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type DeviceTokenOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "expoPushToken" | "platform" | "deviceId" | "deviceName" | "isActive" | "lastUsed" | "createdAt" | "updatedAt", ExtArgs["result"]["deviceToken"]> +export type DeviceTokenInclude = { + user?: boolean | Prisma.UserDefaultArgs +} +export type DeviceTokenIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs +} +export type DeviceTokenIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs +} + +export type $DeviceTokenPayload = { + name: "DeviceToken" + objects: { + user: Prisma.$UserPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + userId: string + expoPushToken: string + platform: string | null + deviceId: string | null + deviceName: string | null + isActive: boolean + lastUsed: Date + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["deviceToken"]> + composites: {} +} + +export type DeviceTokenGetPayload = runtime.Types.Result.GetResult + +export type DeviceTokenCountArgs = + Omit & { + select?: DeviceTokenCountAggregateInputType | true + } + +export interface DeviceTokenDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['DeviceToken'], meta: { name: 'DeviceToken' } } + /** + * Find zero or one DeviceToken that matches the filter. + * @param {DeviceTokenFindUniqueArgs} args - Arguments to find a DeviceToken + * @example + * // Get one DeviceToken + * const deviceToken = await prisma.deviceToken.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceTokenClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one DeviceToken that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {DeviceTokenFindUniqueOrThrowArgs} args - Arguments to find a DeviceToken + * @example + * // Get one DeviceToken + * const deviceToken = await prisma.deviceToken.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceTokenClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first DeviceToken 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 {DeviceTokenFindFirstArgs} args - Arguments to find a DeviceToken + * @example + * // Get one DeviceToken + * const deviceToken = await prisma.deviceToken.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__DeviceTokenClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first DeviceToken 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 {DeviceTokenFindFirstOrThrowArgs} args - Arguments to find a DeviceToken + * @example + * // Get one DeviceToken + * const deviceToken = await prisma.deviceToken.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__DeviceTokenClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more DeviceTokens 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 {DeviceTokenFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all DeviceTokens + * const deviceTokens = await prisma.deviceToken.findMany() + * + * // Get first 10 DeviceTokens + * const deviceTokens = await prisma.deviceToken.findMany({ take: 10 }) + * + * // Only select the `id` + * const deviceTokenWithIdOnly = await prisma.deviceToken.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a DeviceToken. + * @param {DeviceTokenCreateArgs} args - Arguments to create a DeviceToken. + * @example + * // Create one DeviceToken + * const DeviceToken = await prisma.deviceToken.create({ + * data: { + * // ... data to create a DeviceToken + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceTokenClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many DeviceTokens. + * @param {DeviceTokenCreateManyArgs} args - Arguments to create many DeviceTokens. + * @example + * // Create many DeviceTokens + * const deviceToken = await prisma.deviceToken.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many DeviceTokens and returns the data saved in the database. + * @param {DeviceTokenCreateManyAndReturnArgs} args - Arguments to create many DeviceTokens. + * @example + * // Create many DeviceTokens + * const deviceToken = await prisma.deviceToken.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many DeviceTokens and only return the `id` + * const deviceTokenWithIdOnly = await prisma.deviceToken.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a DeviceToken. + * @param {DeviceTokenDeleteArgs} args - Arguments to delete one DeviceToken. + * @example + * // Delete one DeviceToken + * const DeviceToken = await prisma.deviceToken.delete({ + * where: { + * // ... filter to delete one DeviceToken + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceTokenClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one DeviceToken. + * @param {DeviceTokenUpdateArgs} args - Arguments to update one DeviceToken. + * @example + * // Update one DeviceToken + * const deviceToken = await prisma.deviceToken.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceTokenClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more DeviceTokens. + * @param {DeviceTokenDeleteManyArgs} args - Arguments to filter DeviceTokens to delete. + * @example + * // Delete a few DeviceTokens + * const { count } = await prisma.deviceToken.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more DeviceTokens. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {DeviceTokenUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many DeviceTokens + * const deviceToken = await prisma.deviceToken.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more DeviceTokens and returns the data updated in the database. + * @param {DeviceTokenUpdateManyAndReturnArgs} args - Arguments to update many DeviceTokens. + * @example + * // Update many DeviceTokens + * const deviceToken = await prisma.deviceToken.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more DeviceTokens and only return the `id` + * const deviceTokenWithIdOnly = await prisma.deviceToken.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one DeviceToken. + * @param {DeviceTokenUpsertArgs} args - Arguments to update or create a DeviceToken. + * @example + * // Update or create a DeviceToken + * const deviceToken = await prisma.deviceToken.upsert({ + * create: { + * // ... data to create a DeviceToken + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the DeviceToken we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceTokenClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of DeviceTokens. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {DeviceTokenCountArgs} args - Arguments to filter DeviceTokens to count. + * @example + * // Count the number of DeviceTokens + * const count = await prisma.deviceToken.count({ + * where: { + * // ... the filter for the DeviceTokens we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a DeviceToken. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {DeviceTokenAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by DeviceToken. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {DeviceTokenGroupByArgs} 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 DeviceTokenGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: DeviceTokenGroupByArgs['orderBy'] } + : { orderBy?: DeviceTokenGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetDeviceTokenGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the DeviceToken model + */ +readonly fields: DeviceTokenFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for DeviceToken. + * 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__DeviceTokenClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the DeviceToken model + */ +export interface DeviceTokenFieldRefs { + readonly id: Prisma.FieldRef<"DeviceToken", 'String'> + readonly userId: Prisma.FieldRef<"DeviceToken", 'String'> + readonly expoPushToken: Prisma.FieldRef<"DeviceToken", 'String'> + readonly platform: Prisma.FieldRef<"DeviceToken", 'String'> + readonly deviceId: Prisma.FieldRef<"DeviceToken", 'String'> + readonly deviceName: Prisma.FieldRef<"DeviceToken", 'String'> + readonly isActive: Prisma.FieldRef<"DeviceToken", 'Boolean'> + readonly lastUsed: Prisma.FieldRef<"DeviceToken", 'DateTime'> + readonly createdAt: Prisma.FieldRef<"DeviceToken", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"DeviceToken", 'DateTime'> +} + + +// Custom InputTypes +/** + * DeviceToken findUnique + */ +export type DeviceTokenFindUniqueArgs = { + /** + * Select specific fields to fetch from the DeviceToken + */ + select?: Prisma.DeviceTokenSelect | null + /** + * Omit specific fields from the DeviceToken + */ + omit?: Prisma.DeviceTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeviceTokenInclude | null + /** + * Filter, which DeviceToken to fetch. + */ + where: Prisma.DeviceTokenWhereUniqueInput +} + +/** + * DeviceToken findUniqueOrThrow + */ +export type DeviceTokenFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the DeviceToken + */ + select?: Prisma.DeviceTokenSelect | null + /** + * Omit specific fields from the DeviceToken + */ + omit?: Prisma.DeviceTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeviceTokenInclude | null + /** + * Filter, which DeviceToken to fetch. + */ + where: Prisma.DeviceTokenWhereUniqueInput +} + +/** + * DeviceToken findFirst + */ +export type DeviceTokenFindFirstArgs = { + /** + * Select specific fields to fetch from the DeviceToken + */ + select?: Prisma.DeviceTokenSelect | null + /** + * Omit specific fields from the DeviceToken + */ + omit?: Prisma.DeviceTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeviceTokenInclude | null + /** + * Filter, which DeviceToken to fetch. + */ + where?: Prisma.DeviceTokenWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of DeviceTokens to fetch. + */ + orderBy?: Prisma.DeviceTokenOrderByWithRelationInput | Prisma.DeviceTokenOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for DeviceTokens. + */ + cursor?: Prisma.DeviceTokenWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` DeviceTokens 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` DeviceTokens. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of DeviceTokens. + */ + distinct?: Prisma.DeviceTokenScalarFieldEnum | Prisma.DeviceTokenScalarFieldEnum[] +} + +/** + * DeviceToken findFirstOrThrow + */ +export type DeviceTokenFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the DeviceToken + */ + select?: Prisma.DeviceTokenSelect | null + /** + * Omit specific fields from the DeviceToken + */ + omit?: Prisma.DeviceTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeviceTokenInclude | null + /** + * Filter, which DeviceToken to fetch. + */ + where?: Prisma.DeviceTokenWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of DeviceTokens to fetch. + */ + orderBy?: Prisma.DeviceTokenOrderByWithRelationInput | Prisma.DeviceTokenOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for DeviceTokens. + */ + cursor?: Prisma.DeviceTokenWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` DeviceTokens 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` DeviceTokens. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of DeviceTokens. + */ + distinct?: Prisma.DeviceTokenScalarFieldEnum | Prisma.DeviceTokenScalarFieldEnum[] +} + +/** + * DeviceToken findMany + */ +export type DeviceTokenFindManyArgs = { + /** + * Select specific fields to fetch from the DeviceToken + */ + select?: Prisma.DeviceTokenSelect | null + /** + * Omit specific fields from the DeviceToken + */ + omit?: Prisma.DeviceTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeviceTokenInclude | null + /** + * Filter, which DeviceTokens to fetch. + */ + where?: Prisma.DeviceTokenWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of DeviceTokens to fetch. + */ + orderBy?: Prisma.DeviceTokenOrderByWithRelationInput | Prisma.DeviceTokenOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing DeviceTokens. + */ + cursor?: Prisma.DeviceTokenWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` DeviceTokens 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` DeviceTokens. + */ + skip?: number + distinct?: Prisma.DeviceTokenScalarFieldEnum | Prisma.DeviceTokenScalarFieldEnum[] +} + +/** + * DeviceToken create + */ +export type DeviceTokenCreateArgs = { + /** + * Select specific fields to fetch from the DeviceToken + */ + select?: Prisma.DeviceTokenSelect | null + /** + * Omit specific fields from the DeviceToken + */ + omit?: Prisma.DeviceTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeviceTokenInclude | null + /** + * The data needed to create a DeviceToken. + */ + data: Prisma.XOR +} + +/** + * DeviceToken createMany + */ +export type DeviceTokenCreateManyArgs = { + /** + * The data used to create many DeviceTokens. + */ + data: Prisma.DeviceTokenCreateManyInput | Prisma.DeviceTokenCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * DeviceToken createManyAndReturn + */ +export type DeviceTokenCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the DeviceToken + */ + select?: Prisma.DeviceTokenSelectCreateManyAndReturn | null + /** + * Omit specific fields from the DeviceToken + */ + omit?: Prisma.DeviceTokenOmit | null + /** + * The data used to create many DeviceTokens. + */ + data: Prisma.DeviceTokenCreateManyInput | Prisma.DeviceTokenCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeviceTokenIncludeCreateManyAndReturn | null +} + +/** + * DeviceToken update + */ +export type DeviceTokenUpdateArgs = { + /** + * Select specific fields to fetch from the DeviceToken + */ + select?: Prisma.DeviceTokenSelect | null + /** + * Omit specific fields from the DeviceToken + */ + omit?: Prisma.DeviceTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeviceTokenInclude | null + /** + * The data needed to update a DeviceToken. + */ + data: Prisma.XOR + /** + * Choose, which DeviceToken to update. + */ + where: Prisma.DeviceTokenWhereUniqueInput +} + +/** + * DeviceToken updateMany + */ +export type DeviceTokenUpdateManyArgs = { + /** + * The data used to update DeviceTokens. + */ + data: Prisma.XOR + /** + * Filter which DeviceTokens to update + */ + where?: Prisma.DeviceTokenWhereInput + /** + * Limit how many DeviceTokens to update. + */ + limit?: number +} + +/** + * DeviceToken updateManyAndReturn + */ +export type DeviceTokenUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the DeviceToken + */ + select?: Prisma.DeviceTokenSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the DeviceToken + */ + omit?: Prisma.DeviceTokenOmit | null + /** + * The data used to update DeviceTokens. + */ + data: Prisma.XOR + /** + * Filter which DeviceTokens to update + */ + where?: Prisma.DeviceTokenWhereInput + /** + * Limit how many DeviceTokens to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeviceTokenIncludeUpdateManyAndReturn | null +} + +/** + * DeviceToken upsert + */ +export type DeviceTokenUpsertArgs = { + /** + * Select specific fields to fetch from the DeviceToken + */ + select?: Prisma.DeviceTokenSelect | null + /** + * Omit specific fields from the DeviceToken + */ + omit?: Prisma.DeviceTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeviceTokenInclude | null + /** + * The filter to search for the DeviceToken to update in case it exists. + */ + where: Prisma.DeviceTokenWhereUniqueInput + /** + * In case the DeviceToken found by the `where` argument doesn't exist, create a new DeviceToken with this data. + */ + create: Prisma.XOR + /** + * In case the DeviceToken was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * DeviceToken delete + */ +export type DeviceTokenDeleteArgs = { + /** + * Select specific fields to fetch from the DeviceToken + */ + select?: Prisma.DeviceTokenSelect | null + /** + * Omit specific fields from the DeviceToken + */ + omit?: Prisma.DeviceTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeviceTokenInclude | null + /** + * Filter which DeviceToken to delete. + */ + where: Prisma.DeviceTokenWhereUniqueInput +} + +/** + * DeviceToken deleteMany + */ +export type DeviceTokenDeleteManyArgs = { + /** + * Filter which DeviceTokens to delete + */ + where?: Prisma.DeviceTokenWhereInput + /** + * Limit how many DeviceTokens to delete. + */ + limit?: number +} + +/** + * DeviceToken without action + */ +export type DeviceTokenDefaultArgs = { + /** + * Select specific fields to fetch from the DeviceToken + */ + select?: Prisma.DeviceTokenSelect | null + /** + * Omit specific fields from the DeviceToken + */ + omit?: Prisma.DeviceTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeviceTokenInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/Expense.ts b/apps/backend/prisma/generated/generated/prisma/models/Expense.ts new file mode 100644 index 00000000..6b9d1a6d --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/Expense.ts @@ -0,0 +1,1935 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Expense` 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 Expense + * + */ +export type ExpenseModel = runtime.Types.Result.DefaultSelection + +export type AggregateExpense = { + _count: ExpenseCountAggregateOutputType | null + _min: ExpenseMinAggregateOutputType | null + _max: ExpenseMaxAggregateOutputType | null +} + +export type ExpenseMinAggregateOutputType = { + id: string | null + transactionId: string | null + storeId: string | null + categoryId: string | null + description: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type ExpenseMaxAggregateOutputType = { + id: string | null + transactionId: string | null + storeId: string | null + categoryId: string | null + description: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type ExpenseCountAggregateOutputType = { + id: number + transactionId: number + storeId: number + categoryId: number + description: number + createdAt: number + updatedAt: number + _all: number +} + + +export type ExpenseMinAggregateInputType = { + id?: true + transactionId?: true + storeId?: true + categoryId?: true + description?: true + createdAt?: true + updatedAt?: true +} + +export type ExpenseMaxAggregateInputType = { + id?: true + transactionId?: true + storeId?: true + categoryId?: true + description?: true + createdAt?: true + updatedAt?: true +} + +export type ExpenseCountAggregateInputType = { + id?: true + transactionId?: true + storeId?: true + categoryId?: true + description?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type ExpenseAggregateArgs = { + /** + * Filter which Expense to aggregate. + */ + where?: Prisma.ExpenseWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Expenses to fetch. + */ + orderBy?: Prisma.ExpenseOrderByWithRelationInput | Prisma.ExpenseOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ExpenseWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Expenses 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` Expenses. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Expenses + **/ + _count?: true | ExpenseCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ExpenseMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ExpenseMaxAggregateInputType +} + +export type GetExpenseAggregateType = { + [P in keyof T & keyof AggregateExpense]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ExpenseGroupByArgs = { + where?: Prisma.ExpenseWhereInput + orderBy?: Prisma.ExpenseOrderByWithAggregationInput | Prisma.ExpenseOrderByWithAggregationInput[] + by: Prisma.ExpenseScalarFieldEnum[] | Prisma.ExpenseScalarFieldEnum + having?: Prisma.ExpenseScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ExpenseCountAggregateInputType | true + _min?: ExpenseMinAggregateInputType + _max?: ExpenseMaxAggregateInputType +} + +export type ExpenseGroupByOutputType = { + id: string + transactionId: string + storeId: string | null + categoryId: string + description: string | null + createdAt: Date + updatedAt: Date + _count: ExpenseCountAggregateOutputType | null + _min: ExpenseMinAggregateOutputType | null + _max: ExpenseMaxAggregateOutputType | null +} + +type GetExpenseGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ExpenseGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ExpenseWhereInput = { + AND?: Prisma.ExpenseWhereInput | Prisma.ExpenseWhereInput[] + OR?: Prisma.ExpenseWhereInput[] + NOT?: Prisma.ExpenseWhereInput | Prisma.ExpenseWhereInput[] + id?: Prisma.StringFilter<"Expense"> | string + transactionId?: Prisma.StringFilter<"Expense"> | string + storeId?: Prisma.StringNullableFilter<"Expense"> | string | null + categoryId?: Prisma.StringFilter<"Expense"> | string + description?: Prisma.StringNullableFilter<"Expense"> | string | null + createdAt?: Prisma.DateTimeFilter<"Expense"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Expense"> | Date | string + category?: Prisma.XOR + transaction?: Prisma.XOR + store?: Prisma.XOR | null + items?: Prisma.ExpenseItemListRelationFilter + receipt?: Prisma.XOR | null +} + +export type ExpenseOrderByWithRelationInput = { + id?: Prisma.SortOrder + transactionId?: Prisma.SortOrder + storeId?: Prisma.SortOrderInput | Prisma.SortOrder + categoryId?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + category?: Prisma.ExpenseCategoryOrderByWithRelationInput + transaction?: Prisma.TransactionOrderByWithRelationInput + store?: Prisma.StoreOrderByWithRelationInput + items?: Prisma.ExpenseItemOrderByRelationAggregateInput + receipt?: Prisma.ReceiptOrderByWithRelationInput +} + +export type ExpenseWhereUniqueInput = Prisma.AtLeast<{ + id?: string + transactionId?: string + AND?: Prisma.ExpenseWhereInput | Prisma.ExpenseWhereInput[] + OR?: Prisma.ExpenseWhereInput[] + NOT?: Prisma.ExpenseWhereInput | Prisma.ExpenseWhereInput[] + storeId?: Prisma.StringNullableFilter<"Expense"> | string | null + categoryId?: Prisma.StringFilter<"Expense"> | string + description?: Prisma.StringNullableFilter<"Expense"> | string | null + createdAt?: Prisma.DateTimeFilter<"Expense"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Expense"> | Date | string + category?: Prisma.XOR + transaction?: Prisma.XOR + store?: Prisma.XOR | null + items?: Prisma.ExpenseItemListRelationFilter + receipt?: Prisma.XOR | null +}, "id" | "transactionId"> + +export type ExpenseOrderByWithAggregationInput = { + id?: Prisma.SortOrder + transactionId?: Prisma.SortOrder + storeId?: Prisma.SortOrderInput | Prisma.SortOrder + categoryId?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.ExpenseCountOrderByAggregateInput + _max?: Prisma.ExpenseMaxOrderByAggregateInput + _min?: Prisma.ExpenseMinOrderByAggregateInput +} + +export type ExpenseScalarWhereWithAggregatesInput = { + AND?: Prisma.ExpenseScalarWhereWithAggregatesInput | Prisma.ExpenseScalarWhereWithAggregatesInput[] + OR?: Prisma.ExpenseScalarWhereWithAggregatesInput[] + NOT?: Prisma.ExpenseScalarWhereWithAggregatesInput | Prisma.ExpenseScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Expense"> | string + transactionId?: Prisma.StringWithAggregatesFilter<"Expense"> | string + storeId?: Prisma.StringNullableWithAggregatesFilter<"Expense"> | string | null + categoryId?: Prisma.StringWithAggregatesFilter<"Expense"> | string + description?: Prisma.StringNullableWithAggregatesFilter<"Expense"> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Expense"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Expense"> | Date | string +} + +export type ExpenseCreateInput = { + id: string + description?: string | null + createdAt?: Date | string + updatedAt?: Date | string + category: Prisma.ExpenseCategoryCreateNestedOneWithoutExpensesInput + transaction: Prisma.TransactionCreateNestedOneWithoutExpenseInput + store?: Prisma.StoreCreateNestedOneWithoutExpensesInput + items?: Prisma.ExpenseItemCreateNestedManyWithoutExpenseInput + receipt?: Prisma.ReceiptCreateNestedOneWithoutExpenseInput +} + +export type ExpenseUncheckedCreateInput = { + id: string + transactionId: string + storeId?: string | null + categoryId: string + description?: string | null + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.ExpenseItemUncheckedCreateNestedManyWithoutExpenseInput + receipt?: Prisma.ReceiptUncheckedCreateNestedOneWithoutExpenseInput +} + +export type ExpenseUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.ExpenseCategoryUpdateOneRequiredWithoutExpensesNestedInput + transaction?: Prisma.TransactionUpdateOneRequiredWithoutExpenseNestedInput + store?: Prisma.StoreUpdateOneWithoutExpensesNestedInput + items?: Prisma.ExpenseItemUpdateManyWithoutExpenseNestedInput + receipt?: Prisma.ReceiptUpdateOneWithoutExpenseNestedInput +} + +export type ExpenseUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + transactionId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.ExpenseItemUncheckedUpdateManyWithoutExpenseNestedInput + receipt?: Prisma.ReceiptUncheckedUpdateOneWithoutExpenseNestedInput +} + +export type ExpenseCreateManyInput = { + id: string + transactionId: string + storeId?: string | null + categoryId: string + description?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ExpenseUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ExpenseUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + transactionId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ExpenseScalarRelationFilter = { + is?: Prisma.ExpenseWhereInput + isNot?: Prisma.ExpenseWhereInput +} + +export type ExpenseCountOrderByAggregateInput = { + id?: Prisma.SortOrder + transactionId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + description?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ExpenseMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + transactionId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + description?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ExpenseMinOrderByAggregateInput = { + id?: Prisma.SortOrder + transactionId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + description?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ExpenseListRelationFilter = { + every?: Prisma.ExpenseWhereInput + some?: Prisma.ExpenseWhereInput + none?: Prisma.ExpenseWhereInput +} + +export type ExpenseOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ExpenseNullableScalarRelationFilter = { + is?: Prisma.ExpenseWhereInput | null + isNot?: Prisma.ExpenseWhereInput | null +} + +export type ExpenseCreateNestedOneWithoutItemsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutItemsInput + connect?: Prisma.ExpenseWhereUniqueInput +} + +export type ExpenseUpdateOneRequiredWithoutItemsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutItemsInput + upsert?: Prisma.ExpenseUpsertWithoutItemsInput + connect?: Prisma.ExpenseWhereUniqueInput + update?: Prisma.XOR, Prisma.ExpenseUncheckedUpdateWithoutItemsInput> +} + +export type ExpenseCreateNestedManyWithoutCategoryInput = { + create?: Prisma.XOR | Prisma.ExpenseCreateWithoutCategoryInput[] | Prisma.ExpenseUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutCategoryInput | Prisma.ExpenseCreateOrConnectWithoutCategoryInput[] + createMany?: Prisma.ExpenseCreateManyCategoryInputEnvelope + connect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] +} + +export type ExpenseUncheckedCreateNestedManyWithoutCategoryInput = { + create?: Prisma.XOR | Prisma.ExpenseCreateWithoutCategoryInput[] | Prisma.ExpenseUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutCategoryInput | Prisma.ExpenseCreateOrConnectWithoutCategoryInput[] + createMany?: Prisma.ExpenseCreateManyCategoryInputEnvelope + connect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] +} + +export type ExpenseUpdateManyWithoutCategoryNestedInput = { + create?: Prisma.XOR | Prisma.ExpenseCreateWithoutCategoryInput[] | Prisma.ExpenseUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutCategoryInput | Prisma.ExpenseCreateOrConnectWithoutCategoryInput[] + upsert?: Prisma.ExpenseUpsertWithWhereUniqueWithoutCategoryInput | Prisma.ExpenseUpsertWithWhereUniqueWithoutCategoryInput[] + createMany?: Prisma.ExpenseCreateManyCategoryInputEnvelope + set?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] + disconnect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] + delete?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] + connect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] + update?: Prisma.ExpenseUpdateWithWhereUniqueWithoutCategoryInput | Prisma.ExpenseUpdateWithWhereUniqueWithoutCategoryInput[] + updateMany?: Prisma.ExpenseUpdateManyWithWhereWithoutCategoryInput | Prisma.ExpenseUpdateManyWithWhereWithoutCategoryInput[] + deleteMany?: Prisma.ExpenseScalarWhereInput | Prisma.ExpenseScalarWhereInput[] +} + +export type ExpenseUncheckedUpdateManyWithoutCategoryNestedInput = { + create?: Prisma.XOR | Prisma.ExpenseCreateWithoutCategoryInput[] | Prisma.ExpenseUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutCategoryInput | Prisma.ExpenseCreateOrConnectWithoutCategoryInput[] + upsert?: Prisma.ExpenseUpsertWithWhereUniqueWithoutCategoryInput | Prisma.ExpenseUpsertWithWhereUniqueWithoutCategoryInput[] + createMany?: Prisma.ExpenseCreateManyCategoryInputEnvelope + set?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] + disconnect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] + delete?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] + connect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] + update?: Prisma.ExpenseUpdateWithWhereUniqueWithoutCategoryInput | Prisma.ExpenseUpdateWithWhereUniqueWithoutCategoryInput[] + updateMany?: Prisma.ExpenseUpdateManyWithWhereWithoutCategoryInput | Prisma.ExpenseUpdateManyWithWhereWithoutCategoryInput[] + deleteMany?: Prisma.ExpenseScalarWhereInput | Prisma.ExpenseScalarWhereInput[] +} + +export type ExpenseCreateNestedOneWithoutReceiptInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutReceiptInput + connect?: Prisma.ExpenseWhereUniqueInput +} + +export type ExpenseUpdateOneWithoutReceiptNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutReceiptInput + upsert?: Prisma.ExpenseUpsertWithoutReceiptInput + disconnect?: Prisma.ExpenseWhereInput | boolean + delete?: Prisma.ExpenseWhereInput | boolean + connect?: Prisma.ExpenseWhereUniqueInput + update?: Prisma.XOR, Prisma.ExpenseUncheckedUpdateWithoutReceiptInput> +} + +export type ExpenseCreateNestedManyWithoutStoreInput = { + create?: Prisma.XOR | Prisma.ExpenseCreateWithoutStoreInput[] | Prisma.ExpenseUncheckedCreateWithoutStoreInput[] + connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutStoreInput | Prisma.ExpenseCreateOrConnectWithoutStoreInput[] + createMany?: Prisma.ExpenseCreateManyStoreInputEnvelope + connect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] +} + +export type ExpenseUncheckedCreateNestedManyWithoutStoreInput = { + create?: Prisma.XOR | Prisma.ExpenseCreateWithoutStoreInput[] | Prisma.ExpenseUncheckedCreateWithoutStoreInput[] + connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutStoreInput | Prisma.ExpenseCreateOrConnectWithoutStoreInput[] + createMany?: Prisma.ExpenseCreateManyStoreInputEnvelope + connect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] +} + +export type ExpenseUpdateManyWithoutStoreNestedInput = { + create?: Prisma.XOR | Prisma.ExpenseCreateWithoutStoreInput[] | Prisma.ExpenseUncheckedCreateWithoutStoreInput[] + connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutStoreInput | Prisma.ExpenseCreateOrConnectWithoutStoreInput[] + upsert?: Prisma.ExpenseUpsertWithWhereUniqueWithoutStoreInput | Prisma.ExpenseUpsertWithWhereUniqueWithoutStoreInput[] + createMany?: Prisma.ExpenseCreateManyStoreInputEnvelope + set?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] + disconnect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] + delete?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] + connect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] + update?: Prisma.ExpenseUpdateWithWhereUniqueWithoutStoreInput | Prisma.ExpenseUpdateWithWhereUniqueWithoutStoreInput[] + updateMany?: Prisma.ExpenseUpdateManyWithWhereWithoutStoreInput | Prisma.ExpenseUpdateManyWithWhereWithoutStoreInput[] + deleteMany?: Prisma.ExpenseScalarWhereInput | Prisma.ExpenseScalarWhereInput[] +} + +export type ExpenseUncheckedUpdateManyWithoutStoreNestedInput = { + create?: Prisma.XOR | Prisma.ExpenseCreateWithoutStoreInput[] | Prisma.ExpenseUncheckedCreateWithoutStoreInput[] + connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutStoreInput | Prisma.ExpenseCreateOrConnectWithoutStoreInput[] + upsert?: Prisma.ExpenseUpsertWithWhereUniqueWithoutStoreInput | Prisma.ExpenseUpsertWithWhereUniqueWithoutStoreInput[] + createMany?: Prisma.ExpenseCreateManyStoreInputEnvelope + set?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] + disconnect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] + delete?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] + connect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[] + update?: Prisma.ExpenseUpdateWithWhereUniqueWithoutStoreInput | Prisma.ExpenseUpdateWithWhereUniqueWithoutStoreInput[] + updateMany?: Prisma.ExpenseUpdateManyWithWhereWithoutStoreInput | Prisma.ExpenseUpdateManyWithWhereWithoutStoreInput[] + deleteMany?: Prisma.ExpenseScalarWhereInput | Prisma.ExpenseScalarWhereInput[] +} + +export type ExpenseCreateNestedOneWithoutTransactionInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutTransactionInput + connect?: Prisma.ExpenseWhereUniqueInput +} + +export type ExpenseUncheckedCreateNestedOneWithoutTransactionInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutTransactionInput + connect?: Prisma.ExpenseWhereUniqueInput +} + +export type ExpenseUpdateOneWithoutTransactionNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutTransactionInput + upsert?: Prisma.ExpenseUpsertWithoutTransactionInput + disconnect?: Prisma.ExpenseWhereInput | boolean + delete?: Prisma.ExpenseWhereInput | boolean + connect?: Prisma.ExpenseWhereUniqueInput + update?: Prisma.XOR, Prisma.ExpenseUncheckedUpdateWithoutTransactionInput> +} + +export type ExpenseUncheckedUpdateOneWithoutTransactionNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutTransactionInput + upsert?: Prisma.ExpenseUpsertWithoutTransactionInput + disconnect?: Prisma.ExpenseWhereInput | boolean + delete?: Prisma.ExpenseWhereInput | boolean + connect?: Prisma.ExpenseWhereUniqueInput + update?: Prisma.XOR, Prisma.ExpenseUncheckedUpdateWithoutTransactionInput> +} + +export type ExpenseCreateWithoutItemsInput = { + id: string + description?: string | null + createdAt?: Date | string + updatedAt?: Date | string + category: Prisma.ExpenseCategoryCreateNestedOneWithoutExpensesInput + transaction: Prisma.TransactionCreateNestedOneWithoutExpenseInput + store?: Prisma.StoreCreateNestedOneWithoutExpensesInput + receipt?: Prisma.ReceiptCreateNestedOneWithoutExpenseInput +} + +export type ExpenseUncheckedCreateWithoutItemsInput = { + id: string + transactionId: string + storeId?: string | null + categoryId: string + description?: string | null + createdAt?: Date | string + updatedAt?: Date | string + receipt?: Prisma.ReceiptUncheckedCreateNestedOneWithoutExpenseInput +} + +export type ExpenseCreateOrConnectWithoutItemsInput = { + where: Prisma.ExpenseWhereUniqueInput + create: Prisma.XOR +} + +export type ExpenseUpsertWithoutItemsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ExpenseWhereInput +} + +export type ExpenseUpdateToOneWithWhereWithoutItemsInput = { + where?: Prisma.ExpenseWhereInput + data: Prisma.XOR +} + +export type ExpenseUpdateWithoutItemsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.ExpenseCategoryUpdateOneRequiredWithoutExpensesNestedInput + transaction?: Prisma.TransactionUpdateOneRequiredWithoutExpenseNestedInput + store?: Prisma.StoreUpdateOneWithoutExpensesNestedInput + receipt?: Prisma.ReceiptUpdateOneWithoutExpenseNestedInput +} + +export type ExpenseUncheckedUpdateWithoutItemsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + transactionId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + receipt?: Prisma.ReceiptUncheckedUpdateOneWithoutExpenseNestedInput +} + +export type ExpenseCreateWithoutCategoryInput = { + id: string + description?: string | null + createdAt?: Date | string + updatedAt?: Date | string + transaction: Prisma.TransactionCreateNestedOneWithoutExpenseInput + store?: Prisma.StoreCreateNestedOneWithoutExpensesInput + items?: Prisma.ExpenseItemCreateNestedManyWithoutExpenseInput + receipt?: Prisma.ReceiptCreateNestedOneWithoutExpenseInput +} + +export type ExpenseUncheckedCreateWithoutCategoryInput = { + id: string + transactionId: string + storeId?: string | null + description?: string | null + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.ExpenseItemUncheckedCreateNestedManyWithoutExpenseInput + receipt?: Prisma.ReceiptUncheckedCreateNestedOneWithoutExpenseInput +} + +export type ExpenseCreateOrConnectWithoutCategoryInput = { + where: Prisma.ExpenseWhereUniqueInput + create: Prisma.XOR +} + +export type ExpenseCreateManyCategoryInputEnvelope = { + data: Prisma.ExpenseCreateManyCategoryInput | Prisma.ExpenseCreateManyCategoryInput[] + skipDuplicates?: boolean +} + +export type ExpenseUpsertWithWhereUniqueWithoutCategoryInput = { + where: Prisma.ExpenseWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ExpenseUpdateWithWhereUniqueWithoutCategoryInput = { + where: Prisma.ExpenseWhereUniqueInput + data: Prisma.XOR +} + +export type ExpenseUpdateManyWithWhereWithoutCategoryInput = { + where: Prisma.ExpenseScalarWhereInput + data: Prisma.XOR +} + +export type ExpenseScalarWhereInput = { + AND?: Prisma.ExpenseScalarWhereInput | Prisma.ExpenseScalarWhereInput[] + OR?: Prisma.ExpenseScalarWhereInput[] + NOT?: Prisma.ExpenseScalarWhereInput | Prisma.ExpenseScalarWhereInput[] + id?: Prisma.StringFilter<"Expense"> | string + transactionId?: Prisma.StringFilter<"Expense"> | string + storeId?: Prisma.StringNullableFilter<"Expense"> | string | null + categoryId?: Prisma.StringFilter<"Expense"> | string + description?: Prisma.StringNullableFilter<"Expense"> | string | null + createdAt?: Prisma.DateTimeFilter<"Expense"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Expense"> | Date | string +} + +export type ExpenseCreateWithoutReceiptInput = { + id: string + description?: string | null + createdAt?: Date | string + updatedAt?: Date | string + category: Prisma.ExpenseCategoryCreateNestedOneWithoutExpensesInput + transaction: Prisma.TransactionCreateNestedOneWithoutExpenseInput + store?: Prisma.StoreCreateNestedOneWithoutExpensesInput + items?: Prisma.ExpenseItemCreateNestedManyWithoutExpenseInput +} + +export type ExpenseUncheckedCreateWithoutReceiptInput = { + id: string + transactionId: string + storeId?: string | null + categoryId: string + description?: string | null + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.ExpenseItemUncheckedCreateNestedManyWithoutExpenseInput +} + +export type ExpenseCreateOrConnectWithoutReceiptInput = { + where: Prisma.ExpenseWhereUniqueInput + create: Prisma.XOR +} + +export type ExpenseUpsertWithoutReceiptInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ExpenseWhereInput +} + +export type ExpenseUpdateToOneWithWhereWithoutReceiptInput = { + where?: Prisma.ExpenseWhereInput + data: Prisma.XOR +} + +export type ExpenseUpdateWithoutReceiptInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.ExpenseCategoryUpdateOneRequiredWithoutExpensesNestedInput + transaction?: Prisma.TransactionUpdateOneRequiredWithoutExpenseNestedInput + store?: Prisma.StoreUpdateOneWithoutExpensesNestedInput + items?: Prisma.ExpenseItemUpdateManyWithoutExpenseNestedInput +} + +export type ExpenseUncheckedUpdateWithoutReceiptInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + transactionId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.ExpenseItemUncheckedUpdateManyWithoutExpenseNestedInput +} + +export type ExpenseCreateWithoutStoreInput = { + id: string + description?: string | null + createdAt?: Date | string + updatedAt?: Date | string + category: Prisma.ExpenseCategoryCreateNestedOneWithoutExpensesInput + transaction: Prisma.TransactionCreateNestedOneWithoutExpenseInput + items?: Prisma.ExpenseItemCreateNestedManyWithoutExpenseInput + receipt?: Prisma.ReceiptCreateNestedOneWithoutExpenseInput +} + +export type ExpenseUncheckedCreateWithoutStoreInput = { + id: string + transactionId: string + categoryId: string + description?: string | null + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.ExpenseItemUncheckedCreateNestedManyWithoutExpenseInput + receipt?: Prisma.ReceiptUncheckedCreateNestedOneWithoutExpenseInput +} + +export type ExpenseCreateOrConnectWithoutStoreInput = { + where: Prisma.ExpenseWhereUniqueInput + create: Prisma.XOR +} + +export type ExpenseCreateManyStoreInputEnvelope = { + data: Prisma.ExpenseCreateManyStoreInput | Prisma.ExpenseCreateManyStoreInput[] + skipDuplicates?: boolean +} + +export type ExpenseUpsertWithWhereUniqueWithoutStoreInput = { + where: Prisma.ExpenseWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ExpenseUpdateWithWhereUniqueWithoutStoreInput = { + where: Prisma.ExpenseWhereUniqueInput + data: Prisma.XOR +} + +export type ExpenseUpdateManyWithWhereWithoutStoreInput = { + where: Prisma.ExpenseScalarWhereInput + data: Prisma.XOR +} + +export type ExpenseCreateWithoutTransactionInput = { + id: string + description?: string | null + createdAt?: Date | string + updatedAt?: Date | string + category: Prisma.ExpenseCategoryCreateNestedOneWithoutExpensesInput + store?: Prisma.StoreCreateNestedOneWithoutExpensesInput + items?: Prisma.ExpenseItemCreateNestedManyWithoutExpenseInput + receipt?: Prisma.ReceiptCreateNestedOneWithoutExpenseInput +} + +export type ExpenseUncheckedCreateWithoutTransactionInput = { + id: string + storeId?: string | null + categoryId: string + description?: string | null + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.ExpenseItemUncheckedCreateNestedManyWithoutExpenseInput + receipt?: Prisma.ReceiptUncheckedCreateNestedOneWithoutExpenseInput +} + +export type ExpenseCreateOrConnectWithoutTransactionInput = { + where: Prisma.ExpenseWhereUniqueInput + create: Prisma.XOR +} + +export type ExpenseUpsertWithoutTransactionInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ExpenseWhereInput +} + +export type ExpenseUpdateToOneWithWhereWithoutTransactionInput = { + where?: Prisma.ExpenseWhereInput + data: Prisma.XOR +} + +export type ExpenseUpdateWithoutTransactionInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.ExpenseCategoryUpdateOneRequiredWithoutExpensesNestedInput + store?: Prisma.StoreUpdateOneWithoutExpensesNestedInput + items?: Prisma.ExpenseItemUpdateManyWithoutExpenseNestedInput + receipt?: Prisma.ReceiptUpdateOneWithoutExpenseNestedInput +} + +export type ExpenseUncheckedUpdateWithoutTransactionInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.ExpenseItemUncheckedUpdateManyWithoutExpenseNestedInput + receipt?: Prisma.ReceiptUncheckedUpdateOneWithoutExpenseNestedInput +} + +export type ExpenseCreateManyCategoryInput = { + id: string + transactionId: string + storeId?: string | null + description?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ExpenseUpdateWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transaction?: Prisma.TransactionUpdateOneRequiredWithoutExpenseNestedInput + store?: Prisma.StoreUpdateOneWithoutExpensesNestedInput + items?: Prisma.ExpenseItemUpdateManyWithoutExpenseNestedInput + receipt?: Prisma.ReceiptUpdateOneWithoutExpenseNestedInput +} + +export type ExpenseUncheckedUpdateWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + transactionId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.ExpenseItemUncheckedUpdateManyWithoutExpenseNestedInput + receipt?: Prisma.ReceiptUncheckedUpdateOneWithoutExpenseNestedInput +} + +export type ExpenseUncheckedUpdateManyWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + transactionId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ExpenseCreateManyStoreInput = { + id: string + transactionId: string + categoryId: string + description?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ExpenseUpdateWithoutStoreInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.ExpenseCategoryUpdateOneRequiredWithoutExpensesNestedInput + transaction?: Prisma.TransactionUpdateOneRequiredWithoutExpenseNestedInput + items?: Prisma.ExpenseItemUpdateManyWithoutExpenseNestedInput + receipt?: Prisma.ReceiptUpdateOneWithoutExpenseNestedInput +} + +export type ExpenseUncheckedUpdateWithoutStoreInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + transactionId?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.ExpenseItemUncheckedUpdateManyWithoutExpenseNestedInput + receipt?: Prisma.ReceiptUncheckedUpdateOneWithoutExpenseNestedInput +} + +export type ExpenseUncheckedUpdateManyWithoutStoreInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + transactionId?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + +/** + * Count Type ExpenseCountOutputType + */ + +export type ExpenseCountOutputType = { + items: number +} + +export type ExpenseCountOutputTypeSelect = { + items?: boolean | ExpenseCountOutputTypeCountItemsArgs +} + +/** + * ExpenseCountOutputType without action + */ +export type ExpenseCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the ExpenseCountOutputType + */ + select?: Prisma.ExpenseCountOutputTypeSelect | null +} + +/** + * ExpenseCountOutputType without action + */ +export type ExpenseCountOutputTypeCountItemsArgs = { + where?: Prisma.ExpenseItemWhereInput +} + + +export type ExpenseSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + transactionId?: boolean + storeId?: boolean + categoryId?: boolean + description?: boolean + createdAt?: boolean + updatedAt?: boolean + category?: boolean | Prisma.ExpenseCategoryDefaultArgs + transaction?: boolean | Prisma.TransactionDefaultArgs + store?: boolean | Prisma.Expense$storeArgs + items?: boolean | Prisma.Expense$itemsArgs + receipt?: boolean | Prisma.Expense$receiptArgs + _count?: boolean | Prisma.ExpenseCountOutputTypeDefaultArgs +}, ExtArgs["result"]["expense"]> + +export type ExpenseSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + transactionId?: boolean + storeId?: boolean + categoryId?: boolean + description?: boolean + createdAt?: boolean + updatedAt?: boolean + category?: boolean | Prisma.ExpenseCategoryDefaultArgs + transaction?: boolean | Prisma.TransactionDefaultArgs + store?: boolean | Prisma.Expense$storeArgs +}, ExtArgs["result"]["expense"]> + +export type ExpenseSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + transactionId?: boolean + storeId?: boolean + categoryId?: boolean + description?: boolean + createdAt?: boolean + updatedAt?: boolean + category?: boolean | Prisma.ExpenseCategoryDefaultArgs + transaction?: boolean | Prisma.TransactionDefaultArgs + store?: boolean | Prisma.Expense$storeArgs +}, ExtArgs["result"]["expense"]> + +export type ExpenseSelectScalar = { + id?: boolean + transactionId?: boolean + storeId?: boolean + categoryId?: boolean + description?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type ExpenseOmit = runtime.Types.Extensions.GetOmit<"id" | "transactionId" | "storeId" | "categoryId" | "description" | "createdAt" | "updatedAt", ExtArgs["result"]["expense"]> +export type ExpenseInclude = { + category?: boolean | Prisma.ExpenseCategoryDefaultArgs + transaction?: boolean | Prisma.TransactionDefaultArgs + store?: boolean | Prisma.Expense$storeArgs + items?: boolean | Prisma.Expense$itemsArgs + receipt?: boolean | Prisma.Expense$receiptArgs + _count?: boolean | Prisma.ExpenseCountOutputTypeDefaultArgs +} +export type ExpenseIncludeCreateManyAndReturn = { + category?: boolean | Prisma.ExpenseCategoryDefaultArgs + transaction?: boolean | Prisma.TransactionDefaultArgs + store?: boolean | Prisma.Expense$storeArgs +} +export type ExpenseIncludeUpdateManyAndReturn = { + category?: boolean | Prisma.ExpenseCategoryDefaultArgs + transaction?: boolean | Prisma.TransactionDefaultArgs + store?: boolean | Prisma.Expense$storeArgs +} + +export type $ExpensePayload = { + name: "Expense" + objects: { + category: Prisma.$ExpenseCategoryPayload + transaction: Prisma.$TransactionPayload + store: Prisma.$StorePayload | null + items: Prisma.$ExpenseItemPayload[] + receipt: Prisma.$ReceiptPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + transactionId: string + storeId: string | null + categoryId: string + description: string | null + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["expense"]> + composites: {} +} + +export type ExpenseGetPayload = runtime.Types.Result.GetResult + +export type ExpenseCountArgs = + Omit & { + select?: ExpenseCountAggregateInputType | true + } + +export interface ExpenseDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Expense'], meta: { name: 'Expense' } } + /** + * Find zero or one Expense that matches the filter. + * @param {ExpenseFindUniqueArgs} args - Arguments to find a Expense + * @example + * // Get one Expense + * const expense = await prisma.expense.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Expense that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ExpenseFindUniqueOrThrowArgs} args - Arguments to find a Expense + * @example + * // Get one Expense + * const expense = await prisma.expense.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Expense 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 {ExpenseFindFirstArgs} args - Arguments to find a Expense + * @example + * // Get one Expense + * const expense = await prisma.expense.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ExpenseClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Expense 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 {ExpenseFindFirstOrThrowArgs} args - Arguments to find a Expense + * @example + * // Get one Expense + * const expense = await prisma.expense.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ExpenseClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Expenses 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 {ExpenseFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Expenses + * const expenses = await prisma.expense.findMany() + * + * // Get first 10 Expenses + * const expenses = await prisma.expense.findMany({ take: 10 }) + * + * // Only select the `id` + * const expenseWithIdOnly = await prisma.expense.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Expense. + * @param {ExpenseCreateArgs} args - Arguments to create a Expense. + * @example + * // Create one Expense + * const Expense = await prisma.expense.create({ + * data: { + * // ... data to create a Expense + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Expenses. + * @param {ExpenseCreateManyArgs} args - Arguments to create many Expenses. + * @example + * // Create many Expenses + * const expense = await prisma.expense.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Expenses and returns the data saved in the database. + * @param {ExpenseCreateManyAndReturnArgs} args - Arguments to create many Expenses. + * @example + * // Create many Expenses + * const expense = await prisma.expense.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Expenses and only return the `id` + * const expenseWithIdOnly = await prisma.expense.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Expense. + * @param {ExpenseDeleteArgs} args - Arguments to delete one Expense. + * @example + * // Delete one Expense + * const Expense = await prisma.expense.delete({ + * where: { + * // ... filter to delete one Expense + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Expense. + * @param {ExpenseUpdateArgs} args - Arguments to update one Expense. + * @example + * // Update one Expense + * const expense = await prisma.expense.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Expenses. + * @param {ExpenseDeleteManyArgs} args - Arguments to filter Expenses to delete. + * @example + * // Delete a few Expenses + * const { count } = await prisma.expense.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Expenses. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpenseUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Expenses + * const expense = await prisma.expense.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Expenses and returns the data updated in the database. + * @param {ExpenseUpdateManyAndReturnArgs} args - Arguments to update many Expenses. + * @example + * // Update many Expenses + * const expense = await prisma.expense.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Expenses and only return the `id` + * const expenseWithIdOnly = await prisma.expense.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Expense. + * @param {ExpenseUpsertArgs} args - Arguments to update or create a Expense. + * @example + * // Update or create a Expense + * const expense = await prisma.expense.upsert({ + * create: { + * // ... data to create a Expense + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Expense we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Expenses. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpenseCountArgs} args - Arguments to filter Expenses to count. + * @example + * // Count the number of Expenses + * const count = await prisma.expense.count({ + * where: { + * // ... the filter for the Expenses we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Expense. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpenseAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Expense. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpenseGroupByArgs} 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 ExpenseGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ExpenseGroupByArgs['orderBy'] } + : { orderBy?: ExpenseGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetExpenseGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Expense model + */ +readonly fields: ExpenseFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Expense. + * 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__ExpenseClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + category = {}>(args?: Prisma.Subset>): Prisma.Prisma__ExpenseCategoryClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + transaction = {}>(args?: Prisma.Subset>): Prisma.Prisma__TransactionClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + store = {}>(args?: Prisma.Subset>): Prisma.Prisma__StoreClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + items = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + receipt = {}>(args?: Prisma.Subset>): Prisma.Prisma__ReceiptClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the Expense model + */ +export interface ExpenseFieldRefs { + readonly id: Prisma.FieldRef<"Expense", 'String'> + readonly transactionId: Prisma.FieldRef<"Expense", 'String'> + readonly storeId: Prisma.FieldRef<"Expense", 'String'> + readonly categoryId: Prisma.FieldRef<"Expense", 'String'> + readonly description: Prisma.FieldRef<"Expense", 'String'> + readonly createdAt: Prisma.FieldRef<"Expense", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Expense", 'DateTime'> +} + + +// Custom InputTypes +/** + * Expense findUnique + */ +export type ExpenseFindUniqueArgs = { + /** + * Select specific fields to fetch from the Expense + */ + select?: Prisma.ExpenseSelect | null + /** + * Omit specific fields from the Expense + */ + omit?: Prisma.ExpenseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseInclude | null + /** + * Filter, which Expense to fetch. + */ + where: Prisma.ExpenseWhereUniqueInput +} + +/** + * Expense findUniqueOrThrow + */ +export type ExpenseFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Expense + */ + select?: Prisma.ExpenseSelect | null + /** + * Omit specific fields from the Expense + */ + omit?: Prisma.ExpenseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseInclude | null + /** + * Filter, which Expense to fetch. + */ + where: Prisma.ExpenseWhereUniqueInput +} + +/** + * Expense findFirst + */ +export type ExpenseFindFirstArgs = { + /** + * Select specific fields to fetch from the Expense + */ + select?: Prisma.ExpenseSelect | null + /** + * Omit specific fields from the Expense + */ + omit?: Prisma.ExpenseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseInclude | null + /** + * Filter, which Expense to fetch. + */ + where?: Prisma.ExpenseWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Expenses to fetch. + */ + orderBy?: Prisma.ExpenseOrderByWithRelationInput | Prisma.ExpenseOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Expenses. + */ + cursor?: Prisma.ExpenseWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Expenses 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` Expenses. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Expenses. + */ + distinct?: Prisma.ExpenseScalarFieldEnum | Prisma.ExpenseScalarFieldEnum[] +} + +/** + * Expense findFirstOrThrow + */ +export type ExpenseFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Expense + */ + select?: Prisma.ExpenseSelect | null + /** + * Omit specific fields from the Expense + */ + omit?: Prisma.ExpenseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseInclude | null + /** + * Filter, which Expense to fetch. + */ + where?: Prisma.ExpenseWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Expenses to fetch. + */ + orderBy?: Prisma.ExpenseOrderByWithRelationInput | Prisma.ExpenseOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Expenses. + */ + cursor?: Prisma.ExpenseWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Expenses 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` Expenses. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Expenses. + */ + distinct?: Prisma.ExpenseScalarFieldEnum | Prisma.ExpenseScalarFieldEnum[] +} + +/** + * Expense findMany + */ +export type ExpenseFindManyArgs = { + /** + * Select specific fields to fetch from the Expense + */ + select?: Prisma.ExpenseSelect | null + /** + * Omit specific fields from the Expense + */ + omit?: Prisma.ExpenseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseInclude | null + /** + * Filter, which Expenses to fetch. + */ + where?: Prisma.ExpenseWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Expenses to fetch. + */ + orderBy?: Prisma.ExpenseOrderByWithRelationInput | Prisma.ExpenseOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Expenses. + */ + cursor?: Prisma.ExpenseWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Expenses 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` Expenses. + */ + skip?: number + distinct?: Prisma.ExpenseScalarFieldEnum | Prisma.ExpenseScalarFieldEnum[] +} + +/** + * Expense create + */ +export type ExpenseCreateArgs = { + /** + * Select specific fields to fetch from the Expense + */ + select?: Prisma.ExpenseSelect | null + /** + * Omit specific fields from the Expense + */ + omit?: Prisma.ExpenseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseInclude | null + /** + * The data needed to create a Expense. + */ + data: Prisma.XOR +} + +/** + * Expense createMany + */ +export type ExpenseCreateManyArgs = { + /** + * The data used to create many Expenses. + */ + data: Prisma.ExpenseCreateManyInput | Prisma.ExpenseCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Expense createManyAndReturn + */ +export type ExpenseCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Expense + */ + select?: Prisma.ExpenseSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Expense + */ + omit?: Prisma.ExpenseOmit | null + /** + * The data used to create many Expenses. + */ + data: Prisma.ExpenseCreateManyInput | Prisma.ExpenseCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseIncludeCreateManyAndReturn | null +} + +/** + * Expense update + */ +export type ExpenseUpdateArgs = { + /** + * Select specific fields to fetch from the Expense + */ + select?: Prisma.ExpenseSelect | null + /** + * Omit specific fields from the Expense + */ + omit?: Prisma.ExpenseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseInclude | null + /** + * The data needed to update a Expense. + */ + data: Prisma.XOR + /** + * Choose, which Expense to update. + */ + where: Prisma.ExpenseWhereUniqueInput +} + +/** + * Expense updateMany + */ +export type ExpenseUpdateManyArgs = { + /** + * The data used to update Expenses. + */ + data: Prisma.XOR + /** + * Filter which Expenses to update + */ + where?: Prisma.ExpenseWhereInput + /** + * Limit how many Expenses to update. + */ + limit?: number +} + +/** + * Expense updateManyAndReturn + */ +export type ExpenseUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Expense + */ + select?: Prisma.ExpenseSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Expense + */ + omit?: Prisma.ExpenseOmit | null + /** + * The data used to update Expenses. + */ + data: Prisma.XOR + /** + * Filter which Expenses to update + */ + where?: Prisma.ExpenseWhereInput + /** + * Limit how many Expenses to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseIncludeUpdateManyAndReturn | null +} + +/** + * Expense upsert + */ +export type ExpenseUpsertArgs = { + /** + * Select specific fields to fetch from the Expense + */ + select?: Prisma.ExpenseSelect | null + /** + * Omit specific fields from the Expense + */ + omit?: Prisma.ExpenseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseInclude | null + /** + * The filter to search for the Expense to update in case it exists. + */ + where: Prisma.ExpenseWhereUniqueInput + /** + * In case the Expense found by the `where` argument doesn't exist, create a new Expense with this data. + */ + create: Prisma.XOR + /** + * In case the Expense was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Expense delete + */ +export type ExpenseDeleteArgs = { + /** + * Select specific fields to fetch from the Expense + */ + select?: Prisma.ExpenseSelect | null + /** + * Omit specific fields from the Expense + */ + omit?: Prisma.ExpenseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseInclude | null + /** + * Filter which Expense to delete. + */ + where: Prisma.ExpenseWhereUniqueInput +} + +/** + * Expense deleteMany + */ +export type ExpenseDeleteManyArgs = { + /** + * Filter which Expenses to delete + */ + where?: Prisma.ExpenseWhereInput + /** + * Limit how many Expenses to delete. + */ + limit?: number +} + +/** + * Expense.store + */ +export type Expense$storeArgs = { + /** + * Select specific fields to fetch from the Store + */ + select?: Prisma.StoreSelect | null + /** + * Omit specific fields from the Store + */ + omit?: Prisma.StoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreInclude | null + where?: Prisma.StoreWhereInput +} + +/** + * Expense.items + */ +export type Expense$itemsArgs = { + /** + * Select specific fields to fetch from the ExpenseItem + */ + select?: Prisma.ExpenseItemSelect | null + /** + * Omit specific fields from the ExpenseItem + */ + omit?: Prisma.ExpenseItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseItemInclude | null + where?: Prisma.ExpenseItemWhereInput + orderBy?: Prisma.ExpenseItemOrderByWithRelationInput | Prisma.ExpenseItemOrderByWithRelationInput[] + cursor?: Prisma.ExpenseItemWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ExpenseItemScalarFieldEnum | Prisma.ExpenseItemScalarFieldEnum[] +} + +/** + * Expense.receipt + */ +export type Expense$receiptArgs = { + /** + * Select specific fields to fetch from the Receipt + */ + select?: Prisma.ReceiptSelect | null + /** + * Omit specific fields from the Receipt + */ + omit?: Prisma.ReceiptOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ReceiptInclude | null + where?: Prisma.ReceiptWhereInput +} + +/** + * Expense without action + */ +export type ExpenseDefaultArgs = { + /** + * Select specific fields to fetch from the Expense + */ + select?: Prisma.ExpenseSelect | null + /** + * Omit specific fields from the Expense + */ + omit?: Prisma.ExpenseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/ExpenseCategory.ts b/apps/backend/prisma/generated/generated/prisma/models/ExpenseCategory.ts new file mode 100644 index 00000000..1adf8279 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/ExpenseCategory.ts @@ -0,0 +1,1798 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ExpenseCategory` 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 ExpenseCategory + * + */ +export type ExpenseCategoryModel = runtime.Types.Result.DefaultSelection + +export type AggregateExpenseCategory = { + _count: ExpenseCategoryCountAggregateOutputType | null + _min: ExpenseCategoryMinAggregateOutputType | null + _max: ExpenseCategoryMaxAggregateOutputType | null +} + +export type ExpenseCategoryMinAggregateOutputType = { + id: string | null + parentId: string | null + name: string | null + isConnectedToStore: boolean | null + createdAt: Date | null + updatedAt: Date | null +} + +export type ExpenseCategoryMaxAggregateOutputType = { + id: string | null + parentId: string | null + name: string | null + isConnectedToStore: boolean | null + createdAt: Date | null + updatedAt: Date | null +} + +export type ExpenseCategoryCountAggregateOutputType = { + id: number + parentId: number + name: number + isConnectedToStore: number + createdAt: number + updatedAt: number + _all: number +} + + +export type ExpenseCategoryMinAggregateInputType = { + id?: true + parentId?: true + name?: true + isConnectedToStore?: true + createdAt?: true + updatedAt?: true +} + +export type ExpenseCategoryMaxAggregateInputType = { + id?: true + parentId?: true + name?: true + isConnectedToStore?: true + createdAt?: true + updatedAt?: true +} + +export type ExpenseCategoryCountAggregateInputType = { + id?: true + parentId?: true + name?: true + isConnectedToStore?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type ExpenseCategoryAggregateArgs = { + /** + * Filter which ExpenseCategory to aggregate. + */ + where?: Prisma.ExpenseCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ExpenseCategories to fetch. + */ + orderBy?: Prisma.ExpenseCategoryOrderByWithRelationInput | Prisma.ExpenseCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ExpenseCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ExpenseCategories 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` ExpenseCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ExpenseCategories + **/ + _count?: true | ExpenseCategoryCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ExpenseCategoryMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ExpenseCategoryMaxAggregateInputType +} + +export type GetExpenseCategoryAggregateType = { + [P in keyof T & keyof AggregateExpenseCategory]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ExpenseCategoryGroupByArgs = { + where?: Prisma.ExpenseCategoryWhereInput + orderBy?: Prisma.ExpenseCategoryOrderByWithAggregationInput | Prisma.ExpenseCategoryOrderByWithAggregationInput[] + by: Prisma.ExpenseCategoryScalarFieldEnum[] | Prisma.ExpenseCategoryScalarFieldEnum + having?: Prisma.ExpenseCategoryScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ExpenseCategoryCountAggregateInputType | true + _min?: ExpenseCategoryMinAggregateInputType + _max?: ExpenseCategoryMaxAggregateInputType +} + +export type ExpenseCategoryGroupByOutputType = { + id: string + parentId: string | null + name: string + isConnectedToStore: boolean + createdAt: Date + updatedAt: Date + _count: ExpenseCategoryCountAggregateOutputType | null + _min: ExpenseCategoryMinAggregateOutputType | null + _max: ExpenseCategoryMaxAggregateOutputType | null +} + +type GetExpenseCategoryGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ExpenseCategoryGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ExpenseCategoryWhereInput = { + AND?: Prisma.ExpenseCategoryWhereInput | Prisma.ExpenseCategoryWhereInput[] + OR?: Prisma.ExpenseCategoryWhereInput[] + NOT?: Prisma.ExpenseCategoryWhereInput | Prisma.ExpenseCategoryWhereInput[] + id?: Prisma.StringFilter<"ExpenseCategory"> | string + parentId?: Prisma.StringNullableFilter<"ExpenseCategory"> | string | null + name?: Prisma.StringFilter<"ExpenseCategory"> | string + isConnectedToStore?: Prisma.BoolFilter<"ExpenseCategory"> | boolean + createdAt?: Prisma.DateTimeFilter<"ExpenseCategory"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"ExpenseCategory"> | Date | string + parent?: Prisma.XOR | null + children?: Prisma.ExpenseCategoryListRelationFilter + expenses?: Prisma.ExpenseListRelationFilter + users?: Prisma.UserExpenseCategoryListRelationFilter +} + +export type ExpenseCategoryOrderByWithRelationInput = { + id?: Prisma.SortOrder + parentId?: Prisma.SortOrderInput | Prisma.SortOrder + name?: Prisma.SortOrder + isConnectedToStore?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + parent?: Prisma.ExpenseCategoryOrderByWithRelationInput + children?: Prisma.ExpenseCategoryOrderByRelationAggregateInput + expenses?: Prisma.ExpenseOrderByRelationAggregateInput + users?: Prisma.UserExpenseCategoryOrderByRelationAggregateInput +} + +export type ExpenseCategoryWhereUniqueInput = Prisma.AtLeast<{ + id?: string + name?: string + AND?: Prisma.ExpenseCategoryWhereInput | Prisma.ExpenseCategoryWhereInput[] + OR?: Prisma.ExpenseCategoryWhereInput[] + NOT?: Prisma.ExpenseCategoryWhereInput | Prisma.ExpenseCategoryWhereInput[] + parentId?: Prisma.StringNullableFilter<"ExpenseCategory"> | string | null + isConnectedToStore?: Prisma.BoolFilter<"ExpenseCategory"> | boolean + createdAt?: Prisma.DateTimeFilter<"ExpenseCategory"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"ExpenseCategory"> | Date | string + parent?: Prisma.XOR | null + children?: Prisma.ExpenseCategoryListRelationFilter + expenses?: Prisma.ExpenseListRelationFilter + users?: Prisma.UserExpenseCategoryListRelationFilter +}, "id" | "name"> + +export type ExpenseCategoryOrderByWithAggregationInput = { + id?: Prisma.SortOrder + parentId?: Prisma.SortOrderInput | Prisma.SortOrder + name?: Prisma.SortOrder + isConnectedToStore?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.ExpenseCategoryCountOrderByAggregateInput + _max?: Prisma.ExpenseCategoryMaxOrderByAggregateInput + _min?: Prisma.ExpenseCategoryMinOrderByAggregateInput +} + +export type ExpenseCategoryScalarWhereWithAggregatesInput = { + AND?: Prisma.ExpenseCategoryScalarWhereWithAggregatesInput | Prisma.ExpenseCategoryScalarWhereWithAggregatesInput[] + OR?: Prisma.ExpenseCategoryScalarWhereWithAggregatesInput[] + NOT?: Prisma.ExpenseCategoryScalarWhereWithAggregatesInput | Prisma.ExpenseCategoryScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"ExpenseCategory"> | string + parentId?: Prisma.StringNullableWithAggregatesFilter<"ExpenseCategory"> | string | null + name?: Prisma.StringWithAggregatesFilter<"ExpenseCategory"> | string + isConnectedToStore?: Prisma.BoolWithAggregatesFilter<"ExpenseCategory"> | boolean + createdAt?: Prisma.DateTimeWithAggregatesFilter<"ExpenseCategory"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ExpenseCategory"> | Date | string +} + +export type ExpenseCategoryCreateInput = { + id?: string + name: string + isConnectedToStore?: boolean + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.ExpenseCategoryCreateNestedOneWithoutChildrenInput + children?: Prisma.ExpenseCategoryCreateNestedManyWithoutParentInput + expenses?: Prisma.ExpenseCreateNestedManyWithoutCategoryInput + users?: Prisma.UserExpenseCategoryCreateNestedManyWithoutCategoryInput +} + +export type ExpenseCategoryUncheckedCreateInput = { + id?: string + parentId?: string | null + name: string + isConnectedToStore?: boolean + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.ExpenseCategoryUncheckedCreateNestedManyWithoutParentInput + expenses?: Prisma.ExpenseUncheckedCreateNestedManyWithoutCategoryInput + users?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutCategoryInput +} + +export type ExpenseCategoryUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isConnectedToStore?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.ExpenseCategoryUpdateOneWithoutChildrenNestedInput + children?: Prisma.ExpenseCategoryUpdateManyWithoutParentNestedInput + expenses?: Prisma.ExpenseUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserExpenseCategoryUpdateManyWithoutCategoryNestedInput +} + +export type ExpenseCategoryUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.StringFieldUpdateOperationsInput | string + isConnectedToStore?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.ExpenseCategoryUncheckedUpdateManyWithoutParentNestedInput + expenses?: Prisma.ExpenseUncheckedUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type ExpenseCategoryCreateManyInput = { + id?: string + parentId?: string | null + name: string + isConnectedToStore?: boolean + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ExpenseCategoryUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isConnectedToStore?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ExpenseCategoryUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.StringFieldUpdateOperationsInput | string + isConnectedToStore?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ExpenseCategoryScalarRelationFilter = { + is?: Prisma.ExpenseCategoryWhereInput + isNot?: Prisma.ExpenseCategoryWhereInput +} + +export type ExpenseCategoryNullableScalarRelationFilter = { + is?: Prisma.ExpenseCategoryWhereInput | null + isNot?: Prisma.ExpenseCategoryWhereInput | null +} + +export type ExpenseCategoryListRelationFilter = { + every?: Prisma.ExpenseCategoryWhereInput + some?: Prisma.ExpenseCategoryWhereInput + none?: Prisma.ExpenseCategoryWhereInput +} + +export type ExpenseCategoryOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ExpenseCategoryCountOrderByAggregateInput = { + id?: Prisma.SortOrder + parentId?: Prisma.SortOrder + name?: Prisma.SortOrder + isConnectedToStore?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ExpenseCategoryMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + parentId?: Prisma.SortOrder + name?: Prisma.SortOrder + isConnectedToStore?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ExpenseCategoryMinOrderByAggregateInput = { + id?: Prisma.SortOrder + parentId?: Prisma.SortOrder + name?: Prisma.SortOrder + isConnectedToStore?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ExpenseCategoryCreateNestedOneWithoutExpensesInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExpenseCategoryCreateOrConnectWithoutExpensesInput + connect?: Prisma.ExpenseCategoryWhereUniqueInput +} + +export type ExpenseCategoryUpdateOneRequiredWithoutExpensesNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExpenseCategoryCreateOrConnectWithoutExpensesInput + upsert?: Prisma.ExpenseCategoryUpsertWithoutExpensesInput + connect?: Prisma.ExpenseCategoryWhereUniqueInput + update?: Prisma.XOR, Prisma.ExpenseCategoryUncheckedUpdateWithoutExpensesInput> +} + +export type ExpenseCategoryCreateNestedOneWithoutChildrenInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExpenseCategoryCreateOrConnectWithoutChildrenInput + connect?: Prisma.ExpenseCategoryWhereUniqueInput +} + +export type ExpenseCategoryCreateNestedManyWithoutParentInput = { + create?: Prisma.XOR | Prisma.ExpenseCategoryCreateWithoutParentInput[] | Prisma.ExpenseCategoryUncheckedCreateWithoutParentInput[] + connectOrCreate?: Prisma.ExpenseCategoryCreateOrConnectWithoutParentInput | Prisma.ExpenseCategoryCreateOrConnectWithoutParentInput[] + createMany?: Prisma.ExpenseCategoryCreateManyParentInputEnvelope + connect?: Prisma.ExpenseCategoryWhereUniqueInput | Prisma.ExpenseCategoryWhereUniqueInput[] +} + +export type ExpenseCategoryUncheckedCreateNestedManyWithoutParentInput = { + create?: Prisma.XOR | Prisma.ExpenseCategoryCreateWithoutParentInput[] | Prisma.ExpenseCategoryUncheckedCreateWithoutParentInput[] + connectOrCreate?: Prisma.ExpenseCategoryCreateOrConnectWithoutParentInput | Prisma.ExpenseCategoryCreateOrConnectWithoutParentInput[] + createMany?: Prisma.ExpenseCategoryCreateManyParentInputEnvelope + connect?: Prisma.ExpenseCategoryWhereUniqueInput | Prisma.ExpenseCategoryWhereUniqueInput[] +} + +export type BoolFieldUpdateOperationsInput = { + set?: boolean +} + +export type ExpenseCategoryUpdateOneWithoutChildrenNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExpenseCategoryCreateOrConnectWithoutChildrenInput + upsert?: Prisma.ExpenseCategoryUpsertWithoutChildrenInput + disconnect?: Prisma.ExpenseCategoryWhereInput | boolean + delete?: Prisma.ExpenseCategoryWhereInput | boolean + connect?: Prisma.ExpenseCategoryWhereUniqueInput + update?: Prisma.XOR, Prisma.ExpenseCategoryUncheckedUpdateWithoutChildrenInput> +} + +export type ExpenseCategoryUpdateManyWithoutParentNestedInput = { + create?: Prisma.XOR | Prisma.ExpenseCategoryCreateWithoutParentInput[] | Prisma.ExpenseCategoryUncheckedCreateWithoutParentInput[] + connectOrCreate?: Prisma.ExpenseCategoryCreateOrConnectWithoutParentInput | Prisma.ExpenseCategoryCreateOrConnectWithoutParentInput[] + upsert?: Prisma.ExpenseCategoryUpsertWithWhereUniqueWithoutParentInput | Prisma.ExpenseCategoryUpsertWithWhereUniqueWithoutParentInput[] + createMany?: Prisma.ExpenseCategoryCreateManyParentInputEnvelope + set?: Prisma.ExpenseCategoryWhereUniqueInput | Prisma.ExpenseCategoryWhereUniqueInput[] + disconnect?: Prisma.ExpenseCategoryWhereUniqueInput | Prisma.ExpenseCategoryWhereUniqueInput[] + delete?: Prisma.ExpenseCategoryWhereUniqueInput | Prisma.ExpenseCategoryWhereUniqueInput[] + connect?: Prisma.ExpenseCategoryWhereUniqueInput | Prisma.ExpenseCategoryWhereUniqueInput[] + update?: Prisma.ExpenseCategoryUpdateWithWhereUniqueWithoutParentInput | Prisma.ExpenseCategoryUpdateWithWhereUniqueWithoutParentInput[] + updateMany?: Prisma.ExpenseCategoryUpdateManyWithWhereWithoutParentInput | Prisma.ExpenseCategoryUpdateManyWithWhereWithoutParentInput[] + deleteMany?: Prisma.ExpenseCategoryScalarWhereInput | Prisma.ExpenseCategoryScalarWhereInput[] +} + +export type ExpenseCategoryUncheckedUpdateManyWithoutParentNestedInput = { + create?: Prisma.XOR | Prisma.ExpenseCategoryCreateWithoutParentInput[] | Prisma.ExpenseCategoryUncheckedCreateWithoutParentInput[] + connectOrCreate?: Prisma.ExpenseCategoryCreateOrConnectWithoutParentInput | Prisma.ExpenseCategoryCreateOrConnectWithoutParentInput[] + upsert?: Prisma.ExpenseCategoryUpsertWithWhereUniqueWithoutParentInput | Prisma.ExpenseCategoryUpsertWithWhereUniqueWithoutParentInput[] + createMany?: Prisma.ExpenseCategoryCreateManyParentInputEnvelope + set?: Prisma.ExpenseCategoryWhereUniqueInput | Prisma.ExpenseCategoryWhereUniqueInput[] + disconnect?: Prisma.ExpenseCategoryWhereUniqueInput | Prisma.ExpenseCategoryWhereUniqueInput[] + delete?: Prisma.ExpenseCategoryWhereUniqueInput | Prisma.ExpenseCategoryWhereUniqueInput[] + connect?: Prisma.ExpenseCategoryWhereUniqueInput | Prisma.ExpenseCategoryWhereUniqueInput[] + update?: Prisma.ExpenseCategoryUpdateWithWhereUniqueWithoutParentInput | Prisma.ExpenseCategoryUpdateWithWhereUniqueWithoutParentInput[] + updateMany?: Prisma.ExpenseCategoryUpdateManyWithWhereWithoutParentInput | Prisma.ExpenseCategoryUpdateManyWithWhereWithoutParentInput[] + deleteMany?: Prisma.ExpenseCategoryScalarWhereInput | Prisma.ExpenseCategoryScalarWhereInput[] +} + +export type ExpenseCategoryCreateNestedOneWithoutUsersInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExpenseCategoryCreateOrConnectWithoutUsersInput + connect?: Prisma.ExpenseCategoryWhereUniqueInput +} + +export type ExpenseCategoryUpdateOneRequiredWithoutUsersNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExpenseCategoryCreateOrConnectWithoutUsersInput + upsert?: Prisma.ExpenseCategoryUpsertWithoutUsersInput + connect?: Prisma.ExpenseCategoryWhereUniqueInput + update?: Prisma.XOR, Prisma.ExpenseCategoryUncheckedUpdateWithoutUsersInput> +} + +export type ExpenseCategoryCreateWithoutExpensesInput = { + id?: string + name: string + isConnectedToStore?: boolean + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.ExpenseCategoryCreateNestedOneWithoutChildrenInput + children?: Prisma.ExpenseCategoryCreateNestedManyWithoutParentInput + users?: Prisma.UserExpenseCategoryCreateNestedManyWithoutCategoryInput +} + +export type ExpenseCategoryUncheckedCreateWithoutExpensesInput = { + id?: string + parentId?: string | null + name: string + isConnectedToStore?: boolean + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.ExpenseCategoryUncheckedCreateNestedManyWithoutParentInput + users?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutCategoryInput +} + +export type ExpenseCategoryCreateOrConnectWithoutExpensesInput = { + where: Prisma.ExpenseCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type ExpenseCategoryUpsertWithoutExpensesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ExpenseCategoryWhereInput +} + +export type ExpenseCategoryUpdateToOneWithWhereWithoutExpensesInput = { + where?: Prisma.ExpenseCategoryWhereInput + data: Prisma.XOR +} + +export type ExpenseCategoryUpdateWithoutExpensesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isConnectedToStore?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.ExpenseCategoryUpdateOneWithoutChildrenNestedInput + children?: Prisma.ExpenseCategoryUpdateManyWithoutParentNestedInput + users?: Prisma.UserExpenseCategoryUpdateManyWithoutCategoryNestedInput +} + +export type ExpenseCategoryUncheckedUpdateWithoutExpensesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.StringFieldUpdateOperationsInput | string + isConnectedToStore?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.ExpenseCategoryUncheckedUpdateManyWithoutParentNestedInput + users?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type ExpenseCategoryCreateWithoutChildrenInput = { + id?: string + name: string + isConnectedToStore?: boolean + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.ExpenseCategoryCreateNestedOneWithoutChildrenInput + expenses?: Prisma.ExpenseCreateNestedManyWithoutCategoryInput + users?: Prisma.UserExpenseCategoryCreateNestedManyWithoutCategoryInput +} + +export type ExpenseCategoryUncheckedCreateWithoutChildrenInput = { + id?: string + parentId?: string | null + name: string + isConnectedToStore?: boolean + createdAt?: Date | string + updatedAt?: Date | string + expenses?: Prisma.ExpenseUncheckedCreateNestedManyWithoutCategoryInput + users?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutCategoryInput +} + +export type ExpenseCategoryCreateOrConnectWithoutChildrenInput = { + where: Prisma.ExpenseCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type ExpenseCategoryCreateWithoutParentInput = { + id?: string + name: string + isConnectedToStore?: boolean + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.ExpenseCategoryCreateNestedManyWithoutParentInput + expenses?: Prisma.ExpenseCreateNestedManyWithoutCategoryInput + users?: Prisma.UserExpenseCategoryCreateNestedManyWithoutCategoryInput +} + +export type ExpenseCategoryUncheckedCreateWithoutParentInput = { + id?: string + name: string + isConnectedToStore?: boolean + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.ExpenseCategoryUncheckedCreateNestedManyWithoutParentInput + expenses?: Prisma.ExpenseUncheckedCreateNestedManyWithoutCategoryInput + users?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutCategoryInput +} + +export type ExpenseCategoryCreateOrConnectWithoutParentInput = { + where: Prisma.ExpenseCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type ExpenseCategoryCreateManyParentInputEnvelope = { + data: Prisma.ExpenseCategoryCreateManyParentInput | Prisma.ExpenseCategoryCreateManyParentInput[] + skipDuplicates?: boolean +} + +export type ExpenseCategoryUpsertWithoutChildrenInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ExpenseCategoryWhereInput +} + +export type ExpenseCategoryUpdateToOneWithWhereWithoutChildrenInput = { + where?: Prisma.ExpenseCategoryWhereInput + data: Prisma.XOR +} + +export type ExpenseCategoryUpdateWithoutChildrenInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isConnectedToStore?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.ExpenseCategoryUpdateOneWithoutChildrenNestedInput + expenses?: Prisma.ExpenseUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserExpenseCategoryUpdateManyWithoutCategoryNestedInput +} + +export type ExpenseCategoryUncheckedUpdateWithoutChildrenInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.StringFieldUpdateOperationsInput | string + isConnectedToStore?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expenses?: Prisma.ExpenseUncheckedUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type ExpenseCategoryUpsertWithWhereUniqueWithoutParentInput = { + where: Prisma.ExpenseCategoryWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ExpenseCategoryUpdateWithWhereUniqueWithoutParentInput = { + where: Prisma.ExpenseCategoryWhereUniqueInput + data: Prisma.XOR +} + +export type ExpenseCategoryUpdateManyWithWhereWithoutParentInput = { + where: Prisma.ExpenseCategoryScalarWhereInput + data: Prisma.XOR +} + +export type ExpenseCategoryScalarWhereInput = { + AND?: Prisma.ExpenseCategoryScalarWhereInput | Prisma.ExpenseCategoryScalarWhereInput[] + OR?: Prisma.ExpenseCategoryScalarWhereInput[] + NOT?: Prisma.ExpenseCategoryScalarWhereInput | Prisma.ExpenseCategoryScalarWhereInput[] + id?: Prisma.StringFilter<"ExpenseCategory"> | string + parentId?: Prisma.StringNullableFilter<"ExpenseCategory"> | string | null + name?: Prisma.StringFilter<"ExpenseCategory"> | string + isConnectedToStore?: Prisma.BoolFilter<"ExpenseCategory"> | boolean + createdAt?: Prisma.DateTimeFilter<"ExpenseCategory"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"ExpenseCategory"> | Date | string +} + +export type ExpenseCategoryCreateWithoutUsersInput = { + id?: string + name: string + isConnectedToStore?: boolean + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.ExpenseCategoryCreateNestedOneWithoutChildrenInput + children?: Prisma.ExpenseCategoryCreateNestedManyWithoutParentInput + expenses?: Prisma.ExpenseCreateNestedManyWithoutCategoryInput +} + +export type ExpenseCategoryUncheckedCreateWithoutUsersInput = { + id?: string + parentId?: string | null + name: string + isConnectedToStore?: boolean + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.ExpenseCategoryUncheckedCreateNestedManyWithoutParentInput + expenses?: Prisma.ExpenseUncheckedCreateNestedManyWithoutCategoryInput +} + +export type ExpenseCategoryCreateOrConnectWithoutUsersInput = { + where: Prisma.ExpenseCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type ExpenseCategoryUpsertWithoutUsersInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ExpenseCategoryWhereInput +} + +export type ExpenseCategoryUpdateToOneWithWhereWithoutUsersInput = { + where?: Prisma.ExpenseCategoryWhereInput + data: Prisma.XOR +} + +export type ExpenseCategoryUpdateWithoutUsersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isConnectedToStore?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.ExpenseCategoryUpdateOneWithoutChildrenNestedInput + children?: Prisma.ExpenseCategoryUpdateManyWithoutParentNestedInput + expenses?: Prisma.ExpenseUpdateManyWithoutCategoryNestedInput +} + +export type ExpenseCategoryUncheckedUpdateWithoutUsersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.StringFieldUpdateOperationsInput | string + isConnectedToStore?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.ExpenseCategoryUncheckedUpdateManyWithoutParentNestedInput + expenses?: Prisma.ExpenseUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type ExpenseCategoryCreateManyParentInput = { + id?: string + name: string + isConnectedToStore?: boolean + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ExpenseCategoryUpdateWithoutParentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isConnectedToStore?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.ExpenseCategoryUpdateManyWithoutParentNestedInput + expenses?: Prisma.ExpenseUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserExpenseCategoryUpdateManyWithoutCategoryNestedInput +} + +export type ExpenseCategoryUncheckedUpdateWithoutParentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isConnectedToStore?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.ExpenseCategoryUncheckedUpdateManyWithoutParentNestedInput + expenses?: Prisma.ExpenseUncheckedUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type ExpenseCategoryUncheckedUpdateManyWithoutParentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isConnectedToStore?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + +/** + * Count Type ExpenseCategoryCountOutputType + */ + +export type ExpenseCategoryCountOutputType = { + children: number + expenses: number + users: number +} + +export type ExpenseCategoryCountOutputTypeSelect = { + children?: boolean | ExpenseCategoryCountOutputTypeCountChildrenArgs + expenses?: boolean | ExpenseCategoryCountOutputTypeCountExpensesArgs + users?: boolean | ExpenseCategoryCountOutputTypeCountUsersArgs +} + +/** + * ExpenseCategoryCountOutputType without action + */ +export type ExpenseCategoryCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the ExpenseCategoryCountOutputType + */ + select?: Prisma.ExpenseCategoryCountOutputTypeSelect | null +} + +/** + * ExpenseCategoryCountOutputType without action + */ +export type ExpenseCategoryCountOutputTypeCountChildrenArgs = { + where?: Prisma.ExpenseCategoryWhereInput +} + +/** + * ExpenseCategoryCountOutputType without action + */ +export type ExpenseCategoryCountOutputTypeCountExpensesArgs = { + where?: Prisma.ExpenseWhereInput +} + +/** + * ExpenseCategoryCountOutputType without action + */ +export type ExpenseCategoryCountOutputTypeCountUsersArgs = { + where?: Prisma.UserExpenseCategoryWhereInput +} + + +export type ExpenseCategorySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + parentId?: boolean + name?: boolean + isConnectedToStore?: boolean + createdAt?: boolean + updatedAt?: boolean + parent?: boolean | Prisma.ExpenseCategory$parentArgs + children?: boolean | Prisma.ExpenseCategory$childrenArgs + expenses?: boolean | Prisma.ExpenseCategory$expensesArgs + users?: boolean | Prisma.ExpenseCategory$usersArgs + _count?: boolean | Prisma.ExpenseCategoryCountOutputTypeDefaultArgs +}, ExtArgs["result"]["expenseCategory"]> + +export type ExpenseCategorySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + parentId?: boolean + name?: boolean + isConnectedToStore?: boolean + createdAt?: boolean + updatedAt?: boolean + parent?: boolean | Prisma.ExpenseCategory$parentArgs +}, ExtArgs["result"]["expenseCategory"]> + +export type ExpenseCategorySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + parentId?: boolean + name?: boolean + isConnectedToStore?: boolean + createdAt?: boolean + updatedAt?: boolean + parent?: boolean | Prisma.ExpenseCategory$parentArgs +}, ExtArgs["result"]["expenseCategory"]> + +export type ExpenseCategorySelectScalar = { + id?: boolean + parentId?: boolean + name?: boolean + isConnectedToStore?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type ExpenseCategoryOmit = runtime.Types.Extensions.GetOmit<"id" | "parentId" | "name" | "isConnectedToStore" | "createdAt" | "updatedAt", ExtArgs["result"]["expenseCategory"]> +export type ExpenseCategoryInclude = { + parent?: boolean | Prisma.ExpenseCategory$parentArgs + children?: boolean | Prisma.ExpenseCategory$childrenArgs + expenses?: boolean | Prisma.ExpenseCategory$expensesArgs + users?: boolean | Prisma.ExpenseCategory$usersArgs + _count?: boolean | Prisma.ExpenseCategoryCountOutputTypeDefaultArgs +} +export type ExpenseCategoryIncludeCreateManyAndReturn = { + parent?: boolean | Prisma.ExpenseCategory$parentArgs +} +export type ExpenseCategoryIncludeUpdateManyAndReturn = { + parent?: boolean | Prisma.ExpenseCategory$parentArgs +} + +export type $ExpenseCategoryPayload = { + name: "ExpenseCategory" + objects: { + parent: Prisma.$ExpenseCategoryPayload | null + children: Prisma.$ExpenseCategoryPayload[] + expenses: Prisma.$ExpensePayload[] + users: Prisma.$UserExpenseCategoryPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + parentId: string | null + name: string + isConnectedToStore: boolean + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["expenseCategory"]> + composites: {} +} + +export type ExpenseCategoryGetPayload = runtime.Types.Result.GetResult + +export type ExpenseCategoryCountArgs = + Omit & { + select?: ExpenseCategoryCountAggregateInputType | true + } + +export interface ExpenseCategoryDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ExpenseCategory'], meta: { name: 'ExpenseCategory' } } + /** + * Find zero or one ExpenseCategory that matches the filter. + * @param {ExpenseCategoryFindUniqueArgs} args - Arguments to find a ExpenseCategory + * @example + * // Get one ExpenseCategory + * const expenseCategory = await prisma.expenseCategory.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseCategoryClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one ExpenseCategory that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ExpenseCategoryFindUniqueOrThrowArgs} args - Arguments to find a ExpenseCategory + * @example + * // Get one ExpenseCategory + * const expenseCategory = await prisma.expenseCategory.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseCategoryClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first ExpenseCategory 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 {ExpenseCategoryFindFirstArgs} args - Arguments to find a ExpenseCategory + * @example + * // Get one ExpenseCategory + * const expenseCategory = await prisma.expenseCategory.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ExpenseCategoryClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first ExpenseCategory 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 {ExpenseCategoryFindFirstOrThrowArgs} args - Arguments to find a ExpenseCategory + * @example + * // Get one ExpenseCategory + * const expenseCategory = await prisma.expenseCategory.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ExpenseCategoryClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more ExpenseCategories 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 {ExpenseCategoryFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all ExpenseCategories + * const expenseCategories = await prisma.expenseCategory.findMany() + * + * // Get first 10 ExpenseCategories + * const expenseCategories = await prisma.expenseCategory.findMany({ take: 10 }) + * + * // Only select the `id` + * const expenseCategoryWithIdOnly = await prisma.expenseCategory.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a ExpenseCategory. + * @param {ExpenseCategoryCreateArgs} args - Arguments to create a ExpenseCategory. + * @example + * // Create one ExpenseCategory + * const ExpenseCategory = await prisma.expenseCategory.create({ + * data: { + * // ... data to create a ExpenseCategory + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseCategoryClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many ExpenseCategories. + * @param {ExpenseCategoryCreateManyArgs} args - Arguments to create many ExpenseCategories. + * @example + * // Create many ExpenseCategories + * const expenseCategory = await prisma.expenseCategory.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many ExpenseCategories and returns the data saved in the database. + * @param {ExpenseCategoryCreateManyAndReturnArgs} args - Arguments to create many ExpenseCategories. + * @example + * // Create many ExpenseCategories + * const expenseCategory = await prisma.expenseCategory.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many ExpenseCategories and only return the `id` + * const expenseCategoryWithIdOnly = await prisma.expenseCategory.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a ExpenseCategory. + * @param {ExpenseCategoryDeleteArgs} args - Arguments to delete one ExpenseCategory. + * @example + * // Delete one ExpenseCategory + * const ExpenseCategory = await prisma.expenseCategory.delete({ + * where: { + * // ... filter to delete one ExpenseCategory + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseCategoryClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one ExpenseCategory. + * @param {ExpenseCategoryUpdateArgs} args - Arguments to update one ExpenseCategory. + * @example + * // Update one ExpenseCategory + * const expenseCategory = await prisma.expenseCategory.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseCategoryClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more ExpenseCategories. + * @param {ExpenseCategoryDeleteManyArgs} args - Arguments to filter ExpenseCategories to delete. + * @example + * // Delete a few ExpenseCategories + * const { count } = await prisma.expenseCategory.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more ExpenseCategories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpenseCategoryUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many ExpenseCategories + * const expenseCategory = await prisma.expenseCategory.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more ExpenseCategories and returns the data updated in the database. + * @param {ExpenseCategoryUpdateManyAndReturnArgs} args - Arguments to update many ExpenseCategories. + * @example + * // Update many ExpenseCategories + * const expenseCategory = await prisma.expenseCategory.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more ExpenseCategories and only return the `id` + * const expenseCategoryWithIdOnly = await prisma.expenseCategory.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one ExpenseCategory. + * @param {ExpenseCategoryUpsertArgs} args - Arguments to update or create a ExpenseCategory. + * @example + * // Update or create a ExpenseCategory + * const expenseCategory = await prisma.expenseCategory.upsert({ + * create: { + * // ... data to create a ExpenseCategory + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the ExpenseCategory we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseCategoryClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of ExpenseCategories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpenseCategoryCountArgs} args - Arguments to filter ExpenseCategories to count. + * @example + * // Count the number of ExpenseCategories + * const count = await prisma.expenseCategory.count({ + * where: { + * // ... the filter for the ExpenseCategories we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a ExpenseCategory. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpenseCategoryAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by ExpenseCategory. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpenseCategoryGroupByArgs} 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 ExpenseCategoryGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ExpenseCategoryGroupByArgs['orderBy'] } + : { orderBy?: ExpenseCategoryGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetExpenseCategoryGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ExpenseCategory model + */ +readonly fields: ExpenseCategoryFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ExpenseCategory. + * 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__ExpenseCategoryClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + parent = {}>(args?: Prisma.Subset>): Prisma.Prisma__ExpenseCategoryClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + children = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + expenses = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + users = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + /** + * 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the ExpenseCategory model + */ +export interface ExpenseCategoryFieldRefs { + readonly id: Prisma.FieldRef<"ExpenseCategory", 'String'> + readonly parentId: Prisma.FieldRef<"ExpenseCategory", 'String'> + readonly name: Prisma.FieldRef<"ExpenseCategory", 'String'> + readonly isConnectedToStore: Prisma.FieldRef<"ExpenseCategory", 'Boolean'> + readonly createdAt: Prisma.FieldRef<"ExpenseCategory", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"ExpenseCategory", 'DateTime'> +} + + +// Custom InputTypes +/** + * ExpenseCategory findUnique + */ +export type ExpenseCategoryFindUniqueArgs = { + /** + * Select specific fields to fetch from the ExpenseCategory + */ + select?: Prisma.ExpenseCategorySelect | null + /** + * Omit specific fields from the ExpenseCategory + */ + omit?: Prisma.ExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseCategoryInclude | null + /** + * Filter, which ExpenseCategory to fetch. + */ + where: Prisma.ExpenseCategoryWhereUniqueInput +} + +/** + * ExpenseCategory findUniqueOrThrow + */ +export type ExpenseCategoryFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ExpenseCategory + */ + select?: Prisma.ExpenseCategorySelect | null + /** + * Omit specific fields from the ExpenseCategory + */ + omit?: Prisma.ExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseCategoryInclude | null + /** + * Filter, which ExpenseCategory to fetch. + */ + where: Prisma.ExpenseCategoryWhereUniqueInput +} + +/** + * ExpenseCategory findFirst + */ +export type ExpenseCategoryFindFirstArgs = { + /** + * Select specific fields to fetch from the ExpenseCategory + */ + select?: Prisma.ExpenseCategorySelect | null + /** + * Omit specific fields from the ExpenseCategory + */ + omit?: Prisma.ExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseCategoryInclude | null + /** + * Filter, which ExpenseCategory to fetch. + */ + where?: Prisma.ExpenseCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ExpenseCategories to fetch. + */ + orderBy?: Prisma.ExpenseCategoryOrderByWithRelationInput | Prisma.ExpenseCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ExpenseCategories. + */ + cursor?: Prisma.ExpenseCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ExpenseCategories 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` ExpenseCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ExpenseCategories. + */ + distinct?: Prisma.ExpenseCategoryScalarFieldEnum | Prisma.ExpenseCategoryScalarFieldEnum[] +} + +/** + * ExpenseCategory findFirstOrThrow + */ +export type ExpenseCategoryFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ExpenseCategory + */ + select?: Prisma.ExpenseCategorySelect | null + /** + * Omit specific fields from the ExpenseCategory + */ + omit?: Prisma.ExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseCategoryInclude | null + /** + * Filter, which ExpenseCategory to fetch. + */ + where?: Prisma.ExpenseCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ExpenseCategories to fetch. + */ + orderBy?: Prisma.ExpenseCategoryOrderByWithRelationInput | Prisma.ExpenseCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ExpenseCategories. + */ + cursor?: Prisma.ExpenseCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ExpenseCategories 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` ExpenseCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ExpenseCategories. + */ + distinct?: Prisma.ExpenseCategoryScalarFieldEnum | Prisma.ExpenseCategoryScalarFieldEnum[] +} + +/** + * ExpenseCategory findMany + */ +export type ExpenseCategoryFindManyArgs = { + /** + * Select specific fields to fetch from the ExpenseCategory + */ + select?: Prisma.ExpenseCategorySelect | null + /** + * Omit specific fields from the ExpenseCategory + */ + omit?: Prisma.ExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseCategoryInclude | null + /** + * Filter, which ExpenseCategories to fetch. + */ + where?: Prisma.ExpenseCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ExpenseCategories to fetch. + */ + orderBy?: Prisma.ExpenseCategoryOrderByWithRelationInput | Prisma.ExpenseCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ExpenseCategories. + */ + cursor?: Prisma.ExpenseCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ExpenseCategories 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` ExpenseCategories. + */ + skip?: number + distinct?: Prisma.ExpenseCategoryScalarFieldEnum | Prisma.ExpenseCategoryScalarFieldEnum[] +} + +/** + * ExpenseCategory create + */ +export type ExpenseCategoryCreateArgs = { + /** + * Select specific fields to fetch from the ExpenseCategory + */ + select?: Prisma.ExpenseCategorySelect | null + /** + * Omit specific fields from the ExpenseCategory + */ + omit?: Prisma.ExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseCategoryInclude | null + /** + * The data needed to create a ExpenseCategory. + */ + data: Prisma.XOR +} + +/** + * ExpenseCategory createMany + */ +export type ExpenseCategoryCreateManyArgs = { + /** + * The data used to create many ExpenseCategories. + */ + data: Prisma.ExpenseCategoryCreateManyInput | Prisma.ExpenseCategoryCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ExpenseCategory createManyAndReturn + */ +export type ExpenseCategoryCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the ExpenseCategory + */ + select?: Prisma.ExpenseCategorySelectCreateManyAndReturn | null + /** + * Omit specific fields from the ExpenseCategory + */ + omit?: Prisma.ExpenseCategoryOmit | null + /** + * The data used to create many ExpenseCategories. + */ + data: Prisma.ExpenseCategoryCreateManyInput | Prisma.ExpenseCategoryCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseCategoryIncludeCreateManyAndReturn | null +} + +/** + * ExpenseCategory update + */ +export type ExpenseCategoryUpdateArgs = { + /** + * Select specific fields to fetch from the ExpenseCategory + */ + select?: Prisma.ExpenseCategorySelect | null + /** + * Omit specific fields from the ExpenseCategory + */ + omit?: Prisma.ExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseCategoryInclude | null + /** + * The data needed to update a ExpenseCategory. + */ + data: Prisma.XOR + /** + * Choose, which ExpenseCategory to update. + */ + where: Prisma.ExpenseCategoryWhereUniqueInput +} + +/** + * ExpenseCategory updateMany + */ +export type ExpenseCategoryUpdateManyArgs = { + /** + * The data used to update ExpenseCategories. + */ + data: Prisma.XOR + /** + * Filter which ExpenseCategories to update + */ + where?: Prisma.ExpenseCategoryWhereInput + /** + * Limit how many ExpenseCategories to update. + */ + limit?: number +} + +/** + * ExpenseCategory updateManyAndReturn + */ +export type ExpenseCategoryUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the ExpenseCategory + */ + select?: Prisma.ExpenseCategorySelectUpdateManyAndReturn | null + /** + * Omit specific fields from the ExpenseCategory + */ + omit?: Prisma.ExpenseCategoryOmit | null + /** + * The data used to update ExpenseCategories. + */ + data: Prisma.XOR + /** + * Filter which ExpenseCategories to update + */ + where?: Prisma.ExpenseCategoryWhereInput + /** + * Limit how many ExpenseCategories to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseCategoryIncludeUpdateManyAndReturn | null +} + +/** + * ExpenseCategory upsert + */ +export type ExpenseCategoryUpsertArgs = { + /** + * Select specific fields to fetch from the ExpenseCategory + */ + select?: Prisma.ExpenseCategorySelect | null + /** + * Omit specific fields from the ExpenseCategory + */ + omit?: Prisma.ExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseCategoryInclude | null + /** + * The filter to search for the ExpenseCategory to update in case it exists. + */ + where: Prisma.ExpenseCategoryWhereUniqueInput + /** + * In case the ExpenseCategory found by the `where` argument doesn't exist, create a new ExpenseCategory with this data. + */ + create: Prisma.XOR + /** + * In case the ExpenseCategory was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ExpenseCategory delete + */ +export type ExpenseCategoryDeleteArgs = { + /** + * Select specific fields to fetch from the ExpenseCategory + */ + select?: Prisma.ExpenseCategorySelect | null + /** + * Omit specific fields from the ExpenseCategory + */ + omit?: Prisma.ExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseCategoryInclude | null + /** + * Filter which ExpenseCategory to delete. + */ + where: Prisma.ExpenseCategoryWhereUniqueInput +} + +/** + * ExpenseCategory deleteMany + */ +export type ExpenseCategoryDeleteManyArgs = { + /** + * Filter which ExpenseCategories to delete + */ + where?: Prisma.ExpenseCategoryWhereInput + /** + * Limit how many ExpenseCategories to delete. + */ + limit?: number +} + +/** + * ExpenseCategory.parent + */ +export type ExpenseCategory$parentArgs = { + /** + * Select specific fields to fetch from the ExpenseCategory + */ + select?: Prisma.ExpenseCategorySelect | null + /** + * Omit specific fields from the ExpenseCategory + */ + omit?: Prisma.ExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseCategoryInclude | null + where?: Prisma.ExpenseCategoryWhereInput +} + +/** + * ExpenseCategory.children + */ +export type ExpenseCategory$childrenArgs = { + /** + * Select specific fields to fetch from the ExpenseCategory + */ + select?: Prisma.ExpenseCategorySelect | null + /** + * Omit specific fields from the ExpenseCategory + */ + omit?: Prisma.ExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseCategoryInclude | null + where?: Prisma.ExpenseCategoryWhereInput + orderBy?: Prisma.ExpenseCategoryOrderByWithRelationInput | Prisma.ExpenseCategoryOrderByWithRelationInput[] + cursor?: Prisma.ExpenseCategoryWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ExpenseCategoryScalarFieldEnum | Prisma.ExpenseCategoryScalarFieldEnum[] +} + +/** + * ExpenseCategory.expenses + */ +export type ExpenseCategory$expensesArgs = { + /** + * Select specific fields to fetch from the Expense + */ + select?: Prisma.ExpenseSelect | null + /** + * Omit specific fields from the Expense + */ + omit?: Prisma.ExpenseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseInclude | null + where?: Prisma.ExpenseWhereInput + orderBy?: Prisma.ExpenseOrderByWithRelationInput | Prisma.ExpenseOrderByWithRelationInput[] + cursor?: Prisma.ExpenseWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ExpenseScalarFieldEnum | Prisma.ExpenseScalarFieldEnum[] +} + +/** + * ExpenseCategory.users + */ +export type ExpenseCategory$usersArgs = { + /** + * Select specific fields to fetch from the UserExpenseCategory + */ + select?: Prisma.UserExpenseCategorySelect | null + /** + * Omit specific fields from the UserExpenseCategory + */ + omit?: Prisma.UserExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserExpenseCategoryInclude | null + where?: Prisma.UserExpenseCategoryWhereInput + orderBy?: Prisma.UserExpenseCategoryOrderByWithRelationInput | Prisma.UserExpenseCategoryOrderByWithRelationInput[] + cursor?: Prisma.UserExpenseCategoryWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.UserExpenseCategoryScalarFieldEnum | Prisma.UserExpenseCategoryScalarFieldEnum[] +} + +/** + * ExpenseCategory without action + */ +export type ExpenseCategoryDefaultArgs = { + /** + * Select specific fields to fetch from the ExpenseCategory + */ + select?: Prisma.ExpenseCategorySelect | null + /** + * Omit specific fields from the ExpenseCategory + */ + omit?: Prisma.ExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseCategoryInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/ExpenseItem.ts b/apps/backend/prisma/generated/generated/prisma/models/ExpenseItem.ts new file mode 100644 index 00000000..f3834f8c --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/ExpenseItem.ts @@ -0,0 +1,1639 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ExpenseItem` 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 ExpenseItem + * + */ +export type ExpenseItemModel = runtime.Types.Result.DefaultSelection + +export type AggregateExpenseItem = { + _count: ExpenseItemCountAggregateOutputType | null + _avg: ExpenseItemAvgAggregateOutputType | null + _sum: ExpenseItemSumAggregateOutputType | null + _min: ExpenseItemMinAggregateOutputType | null + _max: ExpenseItemMaxAggregateOutputType | null +} + +export type ExpenseItemAvgAggregateOutputType = { + price: runtime.Decimal | null + discount: runtime.Decimal | null + quantity: runtime.Decimal | null +} + +export type ExpenseItemSumAggregateOutputType = { + price: runtime.Decimal | null + discount: runtime.Decimal | null + quantity: runtime.Decimal | null +} + +export type ExpenseItemMinAggregateOutputType = { + id: string | null + itemId: string | null + expenseId: string | null + price: runtime.Decimal | null + discount: runtime.Decimal | null + quantity: runtime.Decimal | null + createdAt: Date | null + updatedAt: Date | null +} + +export type ExpenseItemMaxAggregateOutputType = { + id: string | null + itemId: string | null + expenseId: string | null + price: runtime.Decimal | null + discount: runtime.Decimal | null + quantity: runtime.Decimal | null + createdAt: Date | null + updatedAt: Date | null +} + +export type ExpenseItemCountAggregateOutputType = { + id: number + itemId: number + expenseId: number + price: number + discount: number + quantity: number + createdAt: number + updatedAt: number + _all: number +} + + +export type ExpenseItemAvgAggregateInputType = { + price?: true + discount?: true + quantity?: true +} + +export type ExpenseItemSumAggregateInputType = { + price?: true + discount?: true + quantity?: true +} + +export type ExpenseItemMinAggregateInputType = { + id?: true + itemId?: true + expenseId?: true + price?: true + discount?: true + quantity?: true + createdAt?: true + updatedAt?: true +} + +export type ExpenseItemMaxAggregateInputType = { + id?: true + itemId?: true + expenseId?: true + price?: true + discount?: true + quantity?: true + createdAt?: true + updatedAt?: true +} + +export type ExpenseItemCountAggregateInputType = { + id?: true + itemId?: true + expenseId?: true + price?: true + discount?: true + quantity?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type ExpenseItemAggregateArgs = { + /** + * Filter which ExpenseItem to aggregate. + */ + where?: Prisma.ExpenseItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ExpenseItems to fetch. + */ + orderBy?: Prisma.ExpenseItemOrderByWithRelationInput | Prisma.ExpenseItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ExpenseItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ExpenseItems 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` ExpenseItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ExpenseItems + **/ + _count?: true | ExpenseItemCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ExpenseItemAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: ExpenseItemSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ExpenseItemMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ExpenseItemMaxAggregateInputType +} + +export type GetExpenseItemAggregateType = { + [P in keyof T & keyof AggregateExpenseItem]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ExpenseItemGroupByArgs = { + where?: Prisma.ExpenseItemWhereInput + orderBy?: Prisma.ExpenseItemOrderByWithAggregationInput | Prisma.ExpenseItemOrderByWithAggregationInput[] + by: Prisma.ExpenseItemScalarFieldEnum[] | Prisma.ExpenseItemScalarFieldEnum + having?: Prisma.ExpenseItemScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ExpenseItemCountAggregateInputType | true + _avg?: ExpenseItemAvgAggregateInputType + _sum?: ExpenseItemSumAggregateInputType + _min?: ExpenseItemMinAggregateInputType + _max?: ExpenseItemMaxAggregateInputType +} + +export type ExpenseItemGroupByOutputType = { + id: string + itemId: string + expenseId: string + price: runtime.Decimal + discount: runtime.Decimal + quantity: runtime.Decimal + createdAt: Date + updatedAt: Date + _count: ExpenseItemCountAggregateOutputType | null + _avg: ExpenseItemAvgAggregateOutputType | null + _sum: ExpenseItemSumAggregateOutputType | null + _min: ExpenseItemMinAggregateOutputType | null + _max: ExpenseItemMaxAggregateOutputType | null +} + +type GetExpenseItemGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ExpenseItemGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ExpenseItemWhereInput = { + AND?: Prisma.ExpenseItemWhereInput | Prisma.ExpenseItemWhereInput[] + OR?: Prisma.ExpenseItemWhereInput[] + NOT?: Prisma.ExpenseItemWhereInput | Prisma.ExpenseItemWhereInput[] + id?: Prisma.StringFilter<"ExpenseItem"> | string + itemId?: Prisma.StringFilter<"ExpenseItem"> | string + expenseId?: Prisma.StringFilter<"ExpenseItem"> | string + price?: Prisma.DecimalFilter<"ExpenseItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + discount?: Prisma.DecimalFilter<"ExpenseItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: Prisma.DecimalFilter<"ExpenseItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFilter<"ExpenseItem"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"ExpenseItem"> | Date | string + item?: Prisma.XOR + expense?: Prisma.XOR +} + +export type ExpenseItemOrderByWithRelationInput = { + id?: Prisma.SortOrder + itemId?: Prisma.SortOrder + expenseId?: Prisma.SortOrder + price?: Prisma.SortOrder + discount?: Prisma.SortOrder + quantity?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + item?: Prisma.StoreItemOrderByWithRelationInput + expense?: Prisma.ExpenseOrderByWithRelationInput +} + +export type ExpenseItemWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.ExpenseItemWhereInput | Prisma.ExpenseItemWhereInput[] + OR?: Prisma.ExpenseItemWhereInput[] + NOT?: Prisma.ExpenseItemWhereInput | Prisma.ExpenseItemWhereInput[] + itemId?: Prisma.StringFilter<"ExpenseItem"> | string + expenseId?: Prisma.StringFilter<"ExpenseItem"> | string + price?: Prisma.DecimalFilter<"ExpenseItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + discount?: Prisma.DecimalFilter<"ExpenseItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: Prisma.DecimalFilter<"ExpenseItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFilter<"ExpenseItem"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"ExpenseItem"> | Date | string + item?: Prisma.XOR + expense?: Prisma.XOR +}, "id"> + +export type ExpenseItemOrderByWithAggregationInput = { + id?: Prisma.SortOrder + itemId?: Prisma.SortOrder + expenseId?: Prisma.SortOrder + price?: Prisma.SortOrder + discount?: Prisma.SortOrder + quantity?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.ExpenseItemCountOrderByAggregateInput + _avg?: Prisma.ExpenseItemAvgOrderByAggregateInput + _max?: Prisma.ExpenseItemMaxOrderByAggregateInput + _min?: Prisma.ExpenseItemMinOrderByAggregateInput + _sum?: Prisma.ExpenseItemSumOrderByAggregateInput +} + +export type ExpenseItemScalarWhereWithAggregatesInput = { + AND?: Prisma.ExpenseItemScalarWhereWithAggregatesInput | Prisma.ExpenseItemScalarWhereWithAggregatesInput[] + OR?: Prisma.ExpenseItemScalarWhereWithAggregatesInput[] + NOT?: Prisma.ExpenseItemScalarWhereWithAggregatesInput | Prisma.ExpenseItemScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"ExpenseItem"> | string + itemId?: Prisma.StringWithAggregatesFilter<"ExpenseItem"> | string + expenseId?: Prisma.StringWithAggregatesFilter<"ExpenseItem"> | string + price?: Prisma.DecimalWithAggregatesFilter<"ExpenseItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + discount?: Prisma.DecimalWithAggregatesFilter<"ExpenseItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: Prisma.DecimalWithAggregatesFilter<"ExpenseItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"ExpenseItem"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ExpenseItem"> | Date | string +} + +export type ExpenseItemCreateInput = { + id?: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + discount: runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + item: Prisma.StoreItemCreateNestedOneWithoutExpensesInput + expense: Prisma.ExpenseCreateNestedOneWithoutItemsInput +} + +export type ExpenseItemUncheckedCreateInput = { + id?: string + itemId: string + expenseId: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + discount: runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ExpenseItemUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + item?: Prisma.StoreItemUpdateOneRequiredWithoutExpensesNestedInput + expense?: Prisma.ExpenseUpdateOneRequiredWithoutItemsNestedInput +} + +export type ExpenseItemUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + expenseId?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ExpenseItemCreateManyInput = { + id?: string + itemId: string + expenseId: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + discount: runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ExpenseItemUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ExpenseItemUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + expenseId?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ExpenseItemCountOrderByAggregateInput = { + id?: Prisma.SortOrder + itemId?: Prisma.SortOrder + expenseId?: Prisma.SortOrder + price?: Prisma.SortOrder + discount?: Prisma.SortOrder + quantity?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ExpenseItemAvgOrderByAggregateInput = { + price?: Prisma.SortOrder + discount?: Prisma.SortOrder + quantity?: Prisma.SortOrder +} + +export type ExpenseItemMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + itemId?: Prisma.SortOrder + expenseId?: Prisma.SortOrder + price?: Prisma.SortOrder + discount?: Prisma.SortOrder + quantity?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ExpenseItemMinOrderByAggregateInput = { + id?: Prisma.SortOrder + itemId?: Prisma.SortOrder + expenseId?: Prisma.SortOrder + price?: Prisma.SortOrder + discount?: Prisma.SortOrder + quantity?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ExpenseItemSumOrderByAggregateInput = { + price?: Prisma.SortOrder + discount?: Prisma.SortOrder + quantity?: Prisma.SortOrder +} + +export type ExpenseItemListRelationFilter = { + every?: Prisma.ExpenseItemWhereInput + some?: Prisma.ExpenseItemWhereInput + none?: Prisma.ExpenseItemWhereInput +} + +export type ExpenseItemOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ExpenseItemCreateNestedManyWithoutExpenseInput = { + create?: Prisma.XOR | Prisma.ExpenseItemCreateWithoutExpenseInput[] | Prisma.ExpenseItemUncheckedCreateWithoutExpenseInput[] + connectOrCreate?: Prisma.ExpenseItemCreateOrConnectWithoutExpenseInput | Prisma.ExpenseItemCreateOrConnectWithoutExpenseInput[] + createMany?: Prisma.ExpenseItemCreateManyExpenseInputEnvelope + connect?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] +} + +export type ExpenseItemUncheckedCreateNestedManyWithoutExpenseInput = { + create?: Prisma.XOR | Prisma.ExpenseItemCreateWithoutExpenseInput[] | Prisma.ExpenseItemUncheckedCreateWithoutExpenseInput[] + connectOrCreate?: Prisma.ExpenseItemCreateOrConnectWithoutExpenseInput | Prisma.ExpenseItemCreateOrConnectWithoutExpenseInput[] + createMany?: Prisma.ExpenseItemCreateManyExpenseInputEnvelope + connect?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] +} + +export type ExpenseItemUpdateManyWithoutExpenseNestedInput = { + create?: Prisma.XOR | Prisma.ExpenseItemCreateWithoutExpenseInput[] | Prisma.ExpenseItemUncheckedCreateWithoutExpenseInput[] + connectOrCreate?: Prisma.ExpenseItemCreateOrConnectWithoutExpenseInput | Prisma.ExpenseItemCreateOrConnectWithoutExpenseInput[] + upsert?: Prisma.ExpenseItemUpsertWithWhereUniqueWithoutExpenseInput | Prisma.ExpenseItemUpsertWithWhereUniqueWithoutExpenseInput[] + createMany?: Prisma.ExpenseItemCreateManyExpenseInputEnvelope + set?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] + disconnect?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] + delete?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] + connect?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] + update?: Prisma.ExpenseItemUpdateWithWhereUniqueWithoutExpenseInput | Prisma.ExpenseItemUpdateWithWhereUniqueWithoutExpenseInput[] + updateMany?: Prisma.ExpenseItemUpdateManyWithWhereWithoutExpenseInput | Prisma.ExpenseItemUpdateManyWithWhereWithoutExpenseInput[] + deleteMany?: Prisma.ExpenseItemScalarWhereInput | Prisma.ExpenseItemScalarWhereInput[] +} + +export type ExpenseItemUncheckedUpdateManyWithoutExpenseNestedInput = { + create?: Prisma.XOR | Prisma.ExpenseItemCreateWithoutExpenseInput[] | Prisma.ExpenseItemUncheckedCreateWithoutExpenseInput[] + connectOrCreate?: Prisma.ExpenseItemCreateOrConnectWithoutExpenseInput | Prisma.ExpenseItemCreateOrConnectWithoutExpenseInput[] + upsert?: Prisma.ExpenseItemUpsertWithWhereUniqueWithoutExpenseInput | Prisma.ExpenseItemUpsertWithWhereUniqueWithoutExpenseInput[] + createMany?: Prisma.ExpenseItemCreateManyExpenseInputEnvelope + set?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] + disconnect?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] + delete?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] + connect?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] + update?: Prisma.ExpenseItemUpdateWithWhereUniqueWithoutExpenseInput | Prisma.ExpenseItemUpdateWithWhereUniqueWithoutExpenseInput[] + updateMany?: Prisma.ExpenseItemUpdateManyWithWhereWithoutExpenseInput | Prisma.ExpenseItemUpdateManyWithWhereWithoutExpenseInput[] + deleteMany?: Prisma.ExpenseItemScalarWhereInput | Prisma.ExpenseItemScalarWhereInput[] +} + +export type ExpenseItemCreateNestedManyWithoutItemInput = { + create?: Prisma.XOR | Prisma.ExpenseItemCreateWithoutItemInput[] | Prisma.ExpenseItemUncheckedCreateWithoutItemInput[] + connectOrCreate?: Prisma.ExpenseItemCreateOrConnectWithoutItemInput | Prisma.ExpenseItemCreateOrConnectWithoutItemInput[] + createMany?: Prisma.ExpenseItemCreateManyItemInputEnvelope + connect?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] +} + +export type ExpenseItemUncheckedCreateNestedManyWithoutItemInput = { + create?: Prisma.XOR | Prisma.ExpenseItemCreateWithoutItemInput[] | Prisma.ExpenseItemUncheckedCreateWithoutItemInput[] + connectOrCreate?: Prisma.ExpenseItemCreateOrConnectWithoutItemInput | Prisma.ExpenseItemCreateOrConnectWithoutItemInput[] + createMany?: Prisma.ExpenseItemCreateManyItemInputEnvelope + connect?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] +} + +export type ExpenseItemUpdateManyWithoutItemNestedInput = { + create?: Prisma.XOR | Prisma.ExpenseItemCreateWithoutItemInput[] | Prisma.ExpenseItemUncheckedCreateWithoutItemInput[] + connectOrCreate?: Prisma.ExpenseItemCreateOrConnectWithoutItemInput | Prisma.ExpenseItemCreateOrConnectWithoutItemInput[] + upsert?: Prisma.ExpenseItemUpsertWithWhereUniqueWithoutItemInput | Prisma.ExpenseItemUpsertWithWhereUniqueWithoutItemInput[] + createMany?: Prisma.ExpenseItemCreateManyItemInputEnvelope + set?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] + disconnect?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] + delete?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] + connect?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] + update?: Prisma.ExpenseItemUpdateWithWhereUniqueWithoutItemInput | Prisma.ExpenseItemUpdateWithWhereUniqueWithoutItemInput[] + updateMany?: Prisma.ExpenseItemUpdateManyWithWhereWithoutItemInput | Prisma.ExpenseItemUpdateManyWithWhereWithoutItemInput[] + deleteMany?: Prisma.ExpenseItemScalarWhereInput | Prisma.ExpenseItemScalarWhereInput[] +} + +export type ExpenseItemUncheckedUpdateManyWithoutItemNestedInput = { + create?: Prisma.XOR | Prisma.ExpenseItemCreateWithoutItemInput[] | Prisma.ExpenseItemUncheckedCreateWithoutItemInput[] + connectOrCreate?: Prisma.ExpenseItemCreateOrConnectWithoutItemInput | Prisma.ExpenseItemCreateOrConnectWithoutItemInput[] + upsert?: Prisma.ExpenseItemUpsertWithWhereUniqueWithoutItemInput | Prisma.ExpenseItemUpsertWithWhereUniqueWithoutItemInput[] + createMany?: Prisma.ExpenseItemCreateManyItemInputEnvelope + set?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] + disconnect?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] + delete?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] + connect?: Prisma.ExpenseItemWhereUniqueInput | Prisma.ExpenseItemWhereUniqueInput[] + update?: Prisma.ExpenseItemUpdateWithWhereUniqueWithoutItemInput | Prisma.ExpenseItemUpdateWithWhereUniqueWithoutItemInput[] + updateMany?: Prisma.ExpenseItemUpdateManyWithWhereWithoutItemInput | Prisma.ExpenseItemUpdateManyWithWhereWithoutItemInput[] + deleteMany?: Prisma.ExpenseItemScalarWhereInput | Prisma.ExpenseItemScalarWhereInput[] +} + +export type ExpenseItemCreateWithoutExpenseInput = { + id?: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + discount: runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + item: Prisma.StoreItemCreateNestedOneWithoutExpensesInput +} + +export type ExpenseItemUncheckedCreateWithoutExpenseInput = { + id?: string + itemId: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + discount: runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ExpenseItemCreateOrConnectWithoutExpenseInput = { + where: Prisma.ExpenseItemWhereUniqueInput + create: Prisma.XOR +} + +export type ExpenseItemCreateManyExpenseInputEnvelope = { + data: Prisma.ExpenseItemCreateManyExpenseInput | Prisma.ExpenseItemCreateManyExpenseInput[] + skipDuplicates?: boolean +} + +export type ExpenseItemUpsertWithWhereUniqueWithoutExpenseInput = { + where: Prisma.ExpenseItemWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ExpenseItemUpdateWithWhereUniqueWithoutExpenseInput = { + where: Prisma.ExpenseItemWhereUniqueInput + data: Prisma.XOR +} + +export type ExpenseItemUpdateManyWithWhereWithoutExpenseInput = { + where: Prisma.ExpenseItemScalarWhereInput + data: Prisma.XOR +} + +export type ExpenseItemScalarWhereInput = { + AND?: Prisma.ExpenseItemScalarWhereInput | Prisma.ExpenseItemScalarWhereInput[] + OR?: Prisma.ExpenseItemScalarWhereInput[] + NOT?: Prisma.ExpenseItemScalarWhereInput | Prisma.ExpenseItemScalarWhereInput[] + id?: Prisma.StringFilter<"ExpenseItem"> | string + itemId?: Prisma.StringFilter<"ExpenseItem"> | string + expenseId?: Prisma.StringFilter<"ExpenseItem"> | string + price?: Prisma.DecimalFilter<"ExpenseItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + discount?: Prisma.DecimalFilter<"ExpenseItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: Prisma.DecimalFilter<"ExpenseItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFilter<"ExpenseItem"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"ExpenseItem"> | Date | string +} + +export type ExpenseItemCreateWithoutItemInput = { + id?: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + discount: runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + expense: Prisma.ExpenseCreateNestedOneWithoutItemsInput +} + +export type ExpenseItemUncheckedCreateWithoutItemInput = { + id?: string + expenseId: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + discount: runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ExpenseItemCreateOrConnectWithoutItemInput = { + where: Prisma.ExpenseItemWhereUniqueInput + create: Prisma.XOR +} + +export type ExpenseItemCreateManyItemInputEnvelope = { + data: Prisma.ExpenseItemCreateManyItemInput | Prisma.ExpenseItemCreateManyItemInput[] + skipDuplicates?: boolean +} + +export type ExpenseItemUpsertWithWhereUniqueWithoutItemInput = { + where: Prisma.ExpenseItemWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ExpenseItemUpdateWithWhereUniqueWithoutItemInput = { + where: Prisma.ExpenseItemWhereUniqueInput + data: Prisma.XOR +} + +export type ExpenseItemUpdateManyWithWhereWithoutItemInput = { + where: Prisma.ExpenseItemScalarWhereInput + data: Prisma.XOR +} + +export type ExpenseItemCreateManyExpenseInput = { + id?: string + itemId: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + discount: runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ExpenseItemUpdateWithoutExpenseInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + item?: Prisma.StoreItemUpdateOneRequiredWithoutExpensesNestedInput +} + +export type ExpenseItemUncheckedUpdateWithoutExpenseInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ExpenseItemUncheckedUpdateManyWithoutExpenseInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ExpenseItemCreateManyItemInput = { + id?: string + expenseId: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + discount: runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ExpenseItemUpdateWithoutItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expense?: Prisma.ExpenseUpdateOneRequiredWithoutItemsNestedInput +} + +export type ExpenseItemUncheckedUpdateWithoutItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expenseId?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ExpenseItemUncheckedUpdateManyWithoutItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expenseId?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type ExpenseItemSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + itemId?: boolean + expenseId?: boolean + price?: boolean + discount?: boolean + quantity?: boolean + createdAt?: boolean + updatedAt?: boolean + item?: boolean | Prisma.StoreItemDefaultArgs + expense?: boolean | Prisma.ExpenseDefaultArgs +}, ExtArgs["result"]["expenseItem"]> + +export type ExpenseItemSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + itemId?: boolean + expenseId?: boolean + price?: boolean + discount?: boolean + quantity?: boolean + createdAt?: boolean + updatedAt?: boolean + item?: boolean | Prisma.StoreItemDefaultArgs + expense?: boolean | Prisma.ExpenseDefaultArgs +}, ExtArgs["result"]["expenseItem"]> + +export type ExpenseItemSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + itemId?: boolean + expenseId?: boolean + price?: boolean + discount?: boolean + quantity?: boolean + createdAt?: boolean + updatedAt?: boolean + item?: boolean | Prisma.StoreItemDefaultArgs + expense?: boolean | Prisma.ExpenseDefaultArgs +}, ExtArgs["result"]["expenseItem"]> + +export type ExpenseItemSelectScalar = { + id?: boolean + itemId?: boolean + expenseId?: boolean + price?: boolean + discount?: boolean + quantity?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type ExpenseItemOmit = runtime.Types.Extensions.GetOmit<"id" | "itemId" | "expenseId" | "price" | "discount" | "quantity" | "createdAt" | "updatedAt", ExtArgs["result"]["expenseItem"]> +export type ExpenseItemInclude = { + item?: boolean | Prisma.StoreItemDefaultArgs + expense?: boolean | Prisma.ExpenseDefaultArgs +} +export type ExpenseItemIncludeCreateManyAndReturn = { + item?: boolean | Prisma.StoreItemDefaultArgs + expense?: boolean | Prisma.ExpenseDefaultArgs +} +export type ExpenseItemIncludeUpdateManyAndReturn = { + item?: boolean | Prisma.StoreItemDefaultArgs + expense?: boolean | Prisma.ExpenseDefaultArgs +} + +export type $ExpenseItemPayload = { + name: "ExpenseItem" + objects: { + item: Prisma.$StoreItemPayload + expense: Prisma.$ExpensePayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + itemId: string + expenseId: string + price: runtime.Decimal + discount: runtime.Decimal + quantity: runtime.Decimal + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["expenseItem"]> + composites: {} +} + +export type ExpenseItemGetPayload = runtime.Types.Result.GetResult + +export type ExpenseItemCountArgs = + Omit & { + select?: ExpenseItemCountAggregateInputType | true + } + +export interface ExpenseItemDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ExpenseItem'], meta: { name: 'ExpenseItem' } } + /** + * Find zero or one ExpenseItem that matches the filter. + * @param {ExpenseItemFindUniqueArgs} args - Arguments to find a ExpenseItem + * @example + * // Get one ExpenseItem + * const expenseItem = await prisma.expenseItem.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseItemClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one ExpenseItem that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ExpenseItemFindUniqueOrThrowArgs} args - Arguments to find a ExpenseItem + * @example + * // Get one ExpenseItem + * const expenseItem = await prisma.expenseItem.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseItemClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first ExpenseItem 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 {ExpenseItemFindFirstArgs} args - Arguments to find a ExpenseItem + * @example + * // Get one ExpenseItem + * const expenseItem = await prisma.expenseItem.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ExpenseItemClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first ExpenseItem 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 {ExpenseItemFindFirstOrThrowArgs} args - Arguments to find a ExpenseItem + * @example + * // Get one ExpenseItem + * const expenseItem = await prisma.expenseItem.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ExpenseItemClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more ExpenseItems 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 {ExpenseItemFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all ExpenseItems + * const expenseItems = await prisma.expenseItem.findMany() + * + * // Get first 10 ExpenseItems + * const expenseItems = await prisma.expenseItem.findMany({ take: 10 }) + * + * // Only select the `id` + * const expenseItemWithIdOnly = await prisma.expenseItem.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a ExpenseItem. + * @param {ExpenseItemCreateArgs} args - Arguments to create a ExpenseItem. + * @example + * // Create one ExpenseItem + * const ExpenseItem = await prisma.expenseItem.create({ + * data: { + * // ... data to create a ExpenseItem + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseItemClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many ExpenseItems. + * @param {ExpenseItemCreateManyArgs} args - Arguments to create many ExpenseItems. + * @example + * // Create many ExpenseItems + * const expenseItem = await prisma.expenseItem.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many ExpenseItems and returns the data saved in the database. + * @param {ExpenseItemCreateManyAndReturnArgs} args - Arguments to create many ExpenseItems. + * @example + * // Create many ExpenseItems + * const expenseItem = await prisma.expenseItem.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many ExpenseItems and only return the `id` + * const expenseItemWithIdOnly = await prisma.expenseItem.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a ExpenseItem. + * @param {ExpenseItemDeleteArgs} args - Arguments to delete one ExpenseItem. + * @example + * // Delete one ExpenseItem + * const ExpenseItem = await prisma.expenseItem.delete({ + * where: { + * // ... filter to delete one ExpenseItem + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseItemClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one ExpenseItem. + * @param {ExpenseItemUpdateArgs} args - Arguments to update one ExpenseItem. + * @example + * // Update one ExpenseItem + * const expenseItem = await prisma.expenseItem.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseItemClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more ExpenseItems. + * @param {ExpenseItemDeleteManyArgs} args - Arguments to filter ExpenseItems to delete. + * @example + * // Delete a few ExpenseItems + * const { count } = await prisma.expenseItem.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more ExpenseItems. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpenseItemUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many ExpenseItems + * const expenseItem = await prisma.expenseItem.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more ExpenseItems and returns the data updated in the database. + * @param {ExpenseItemUpdateManyAndReturnArgs} args - Arguments to update many ExpenseItems. + * @example + * // Update many ExpenseItems + * const expenseItem = await prisma.expenseItem.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more ExpenseItems and only return the `id` + * const expenseItemWithIdOnly = await prisma.expenseItem.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one ExpenseItem. + * @param {ExpenseItemUpsertArgs} args - Arguments to update or create a ExpenseItem. + * @example + * // Update or create a ExpenseItem + * const expenseItem = await prisma.expenseItem.upsert({ + * create: { + * // ... data to create a ExpenseItem + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the ExpenseItem we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ExpenseItemClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of ExpenseItems. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpenseItemCountArgs} args - Arguments to filter ExpenseItems to count. + * @example + * // Count the number of ExpenseItems + * const count = await prisma.expenseItem.count({ + * where: { + * // ... the filter for the ExpenseItems we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a ExpenseItem. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpenseItemAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by ExpenseItem. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpenseItemGroupByArgs} 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 ExpenseItemGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ExpenseItemGroupByArgs['orderBy'] } + : { orderBy?: ExpenseItemGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetExpenseItemGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ExpenseItem model + */ +readonly fields: ExpenseItemFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ExpenseItem. + * 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__ExpenseItemClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + item = {}>(args?: Prisma.Subset>): Prisma.Prisma__StoreItemClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + expense = {}>(args?: Prisma.Subset>): Prisma.Prisma__ExpenseClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the ExpenseItem model + */ +export interface ExpenseItemFieldRefs { + readonly id: Prisma.FieldRef<"ExpenseItem", 'String'> + readonly itemId: Prisma.FieldRef<"ExpenseItem", 'String'> + readonly expenseId: Prisma.FieldRef<"ExpenseItem", 'String'> + readonly price: Prisma.FieldRef<"ExpenseItem", 'Decimal'> + readonly discount: Prisma.FieldRef<"ExpenseItem", 'Decimal'> + readonly quantity: Prisma.FieldRef<"ExpenseItem", 'Decimal'> + readonly createdAt: Prisma.FieldRef<"ExpenseItem", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"ExpenseItem", 'DateTime'> +} + + +// Custom InputTypes +/** + * ExpenseItem findUnique + */ +export type ExpenseItemFindUniqueArgs = { + /** + * Select specific fields to fetch from the ExpenseItem + */ + select?: Prisma.ExpenseItemSelect | null + /** + * Omit specific fields from the ExpenseItem + */ + omit?: Prisma.ExpenseItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseItemInclude | null + /** + * Filter, which ExpenseItem to fetch. + */ + where: Prisma.ExpenseItemWhereUniqueInput +} + +/** + * ExpenseItem findUniqueOrThrow + */ +export type ExpenseItemFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ExpenseItem + */ + select?: Prisma.ExpenseItemSelect | null + /** + * Omit specific fields from the ExpenseItem + */ + omit?: Prisma.ExpenseItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseItemInclude | null + /** + * Filter, which ExpenseItem to fetch. + */ + where: Prisma.ExpenseItemWhereUniqueInput +} + +/** + * ExpenseItem findFirst + */ +export type ExpenseItemFindFirstArgs = { + /** + * Select specific fields to fetch from the ExpenseItem + */ + select?: Prisma.ExpenseItemSelect | null + /** + * Omit specific fields from the ExpenseItem + */ + omit?: Prisma.ExpenseItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseItemInclude | null + /** + * Filter, which ExpenseItem to fetch. + */ + where?: Prisma.ExpenseItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ExpenseItems to fetch. + */ + orderBy?: Prisma.ExpenseItemOrderByWithRelationInput | Prisma.ExpenseItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ExpenseItems. + */ + cursor?: Prisma.ExpenseItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ExpenseItems 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` ExpenseItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ExpenseItems. + */ + distinct?: Prisma.ExpenseItemScalarFieldEnum | Prisma.ExpenseItemScalarFieldEnum[] +} + +/** + * ExpenseItem findFirstOrThrow + */ +export type ExpenseItemFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ExpenseItem + */ + select?: Prisma.ExpenseItemSelect | null + /** + * Omit specific fields from the ExpenseItem + */ + omit?: Prisma.ExpenseItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseItemInclude | null + /** + * Filter, which ExpenseItem to fetch. + */ + where?: Prisma.ExpenseItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ExpenseItems to fetch. + */ + orderBy?: Prisma.ExpenseItemOrderByWithRelationInput | Prisma.ExpenseItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ExpenseItems. + */ + cursor?: Prisma.ExpenseItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ExpenseItems 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` ExpenseItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ExpenseItems. + */ + distinct?: Prisma.ExpenseItemScalarFieldEnum | Prisma.ExpenseItemScalarFieldEnum[] +} + +/** + * ExpenseItem findMany + */ +export type ExpenseItemFindManyArgs = { + /** + * Select specific fields to fetch from the ExpenseItem + */ + select?: Prisma.ExpenseItemSelect | null + /** + * Omit specific fields from the ExpenseItem + */ + omit?: Prisma.ExpenseItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseItemInclude | null + /** + * Filter, which ExpenseItems to fetch. + */ + where?: Prisma.ExpenseItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ExpenseItems to fetch. + */ + orderBy?: Prisma.ExpenseItemOrderByWithRelationInput | Prisma.ExpenseItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ExpenseItems. + */ + cursor?: Prisma.ExpenseItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ExpenseItems 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` ExpenseItems. + */ + skip?: number + distinct?: Prisma.ExpenseItemScalarFieldEnum | Prisma.ExpenseItemScalarFieldEnum[] +} + +/** + * ExpenseItem create + */ +export type ExpenseItemCreateArgs = { + /** + * Select specific fields to fetch from the ExpenseItem + */ + select?: Prisma.ExpenseItemSelect | null + /** + * Omit specific fields from the ExpenseItem + */ + omit?: Prisma.ExpenseItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseItemInclude | null + /** + * The data needed to create a ExpenseItem. + */ + data: Prisma.XOR +} + +/** + * ExpenseItem createMany + */ +export type ExpenseItemCreateManyArgs = { + /** + * The data used to create many ExpenseItems. + */ + data: Prisma.ExpenseItemCreateManyInput | Prisma.ExpenseItemCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ExpenseItem createManyAndReturn + */ +export type ExpenseItemCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the ExpenseItem + */ + select?: Prisma.ExpenseItemSelectCreateManyAndReturn | null + /** + * Omit specific fields from the ExpenseItem + */ + omit?: Prisma.ExpenseItemOmit | null + /** + * The data used to create many ExpenseItems. + */ + data: Prisma.ExpenseItemCreateManyInput | Prisma.ExpenseItemCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseItemIncludeCreateManyAndReturn | null +} + +/** + * ExpenseItem update + */ +export type ExpenseItemUpdateArgs = { + /** + * Select specific fields to fetch from the ExpenseItem + */ + select?: Prisma.ExpenseItemSelect | null + /** + * Omit specific fields from the ExpenseItem + */ + omit?: Prisma.ExpenseItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseItemInclude | null + /** + * The data needed to update a ExpenseItem. + */ + data: Prisma.XOR + /** + * Choose, which ExpenseItem to update. + */ + where: Prisma.ExpenseItemWhereUniqueInput +} + +/** + * ExpenseItem updateMany + */ +export type ExpenseItemUpdateManyArgs = { + /** + * The data used to update ExpenseItems. + */ + data: Prisma.XOR + /** + * Filter which ExpenseItems to update + */ + where?: Prisma.ExpenseItemWhereInput + /** + * Limit how many ExpenseItems to update. + */ + limit?: number +} + +/** + * ExpenseItem updateManyAndReturn + */ +export type ExpenseItemUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the ExpenseItem + */ + select?: Prisma.ExpenseItemSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the ExpenseItem + */ + omit?: Prisma.ExpenseItemOmit | null + /** + * The data used to update ExpenseItems. + */ + data: Prisma.XOR + /** + * Filter which ExpenseItems to update + */ + where?: Prisma.ExpenseItemWhereInput + /** + * Limit how many ExpenseItems to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseItemIncludeUpdateManyAndReturn | null +} + +/** + * ExpenseItem upsert + */ +export type ExpenseItemUpsertArgs = { + /** + * Select specific fields to fetch from the ExpenseItem + */ + select?: Prisma.ExpenseItemSelect | null + /** + * Omit specific fields from the ExpenseItem + */ + omit?: Prisma.ExpenseItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseItemInclude | null + /** + * The filter to search for the ExpenseItem to update in case it exists. + */ + where: Prisma.ExpenseItemWhereUniqueInput + /** + * In case the ExpenseItem found by the `where` argument doesn't exist, create a new ExpenseItem with this data. + */ + create: Prisma.XOR + /** + * In case the ExpenseItem was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ExpenseItem delete + */ +export type ExpenseItemDeleteArgs = { + /** + * Select specific fields to fetch from the ExpenseItem + */ + select?: Prisma.ExpenseItemSelect | null + /** + * Omit specific fields from the ExpenseItem + */ + omit?: Prisma.ExpenseItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseItemInclude | null + /** + * Filter which ExpenseItem to delete. + */ + where: Prisma.ExpenseItemWhereUniqueInput +} + +/** + * ExpenseItem deleteMany + */ +export type ExpenseItemDeleteManyArgs = { + /** + * Filter which ExpenseItems to delete + */ + where?: Prisma.ExpenseItemWhereInput + /** + * Limit how many ExpenseItems to delete. + */ + limit?: number +} + +/** + * ExpenseItem without action + */ +export type ExpenseItemDefaultArgs = { + /** + * Select specific fields to fetch from the ExpenseItem + */ + select?: Prisma.ExpenseItemSelect | null + /** + * Omit specific fields from the ExpenseItem + */ + omit?: Prisma.ExpenseItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseItemInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/Family.ts b/apps/backend/prisma/generated/generated/prisma/models/Family.ts new file mode 100644 index 00000000..d36b47a7 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/Family.ts @@ -0,0 +1,2029 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Family` 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 Family + * + */ +export type FamilyModel = runtime.Types.Result.DefaultSelection + +export type AggregateFamily = { + _count: FamilyCountAggregateOutputType | null + _avg: FamilyAvgAggregateOutputType | null + _sum: FamilySumAggregateOutputType | null + _min: FamilyMinAggregateOutputType | null + _max: FamilyMaxAggregateOutputType | null +} + +export type FamilyAvgAggregateOutputType = { + balance: runtime.Decimal | null +} + +export type FamilySumAggregateOutputType = { + balance: runtime.Decimal | null +} + +export type FamilyMinAggregateOutputType = { + id: string | null + name: string | null + balance: runtime.Decimal | null + createdAt: Date | null + updatedAt: Date | null +} + +export type FamilyMaxAggregateOutputType = { + id: string | null + name: string | null + balance: runtime.Decimal | null + createdAt: Date | null + updatedAt: Date | null +} + +export type FamilyCountAggregateOutputType = { + id: number + name: number + balance: number + createdAt: number + updatedAt: number + _all: number +} + + +export type FamilyAvgAggregateInputType = { + balance?: true +} + +export type FamilySumAggregateInputType = { + balance?: true +} + +export type FamilyMinAggregateInputType = { + id?: true + name?: true + balance?: true + createdAt?: true + updatedAt?: true +} + +export type FamilyMaxAggregateInputType = { + id?: true + name?: true + balance?: true + createdAt?: true + updatedAt?: true +} + +export type FamilyCountAggregateInputType = { + id?: true + name?: true + balance?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type FamilyAggregateArgs = { + /** + * Filter which Family to aggregate. + */ + where?: Prisma.FamilyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Families to fetch. + */ + orderBy?: Prisma.FamilyOrderByWithRelationInput | Prisma.FamilyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.FamilyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Families 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` Families. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Families + **/ + _count?: true | FamilyCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: FamilyAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: FamilySumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: FamilyMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: FamilyMaxAggregateInputType +} + +export type GetFamilyAggregateType = { + [P in keyof T & keyof AggregateFamily]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type FamilyGroupByArgs = { + where?: Prisma.FamilyWhereInput + orderBy?: Prisma.FamilyOrderByWithAggregationInput | Prisma.FamilyOrderByWithAggregationInput[] + by: Prisma.FamilyScalarFieldEnum[] | Prisma.FamilyScalarFieldEnum + having?: Prisma.FamilyScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: FamilyCountAggregateInputType | true + _avg?: FamilyAvgAggregateInputType + _sum?: FamilySumAggregateInputType + _min?: FamilyMinAggregateInputType + _max?: FamilyMaxAggregateInputType +} + +export type FamilyGroupByOutputType = { + id: string + name: string + balance: runtime.Decimal + createdAt: Date + updatedAt: Date + _count: FamilyCountAggregateOutputType | null + _avg: FamilyAvgAggregateOutputType | null + _sum: FamilySumAggregateOutputType | null + _min: FamilyMinAggregateOutputType | null + _max: FamilyMaxAggregateOutputType | null +} + +type GetFamilyGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof FamilyGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type FamilyWhereInput = { + AND?: Prisma.FamilyWhereInput | Prisma.FamilyWhereInput[] + OR?: Prisma.FamilyWhereInput[] + NOT?: Prisma.FamilyWhereInput | Prisma.FamilyWhereInput[] + id?: Prisma.StringFilter<"Family"> | string + name?: Prisma.StringFilter<"Family"> | string + balance?: Prisma.DecimalFilter<"Family"> | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFilter<"Family"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Family"> | Date | string + members?: Prisma.FamilyMemberListRelationFilter + invitations?: Prisma.FamilyInvitationListRelationFilter + transactions?: Prisma.TransactionListRelationFilter + notifications?: Prisma.NotificationListRelationFilter + baskets?: Prisma.BasketListRelationFilter + receipts?: Prisma.ReceiptListRelationFilter +} + +export type FamilyOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + balance?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + members?: Prisma.FamilyMemberOrderByRelationAggregateInput + invitations?: Prisma.FamilyInvitationOrderByRelationAggregateInput + transactions?: Prisma.TransactionOrderByRelationAggregateInput + notifications?: Prisma.NotificationOrderByRelationAggregateInput + baskets?: Prisma.BasketOrderByRelationAggregateInput + receipts?: Prisma.ReceiptOrderByRelationAggregateInput +} + +export type FamilyWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.FamilyWhereInput | Prisma.FamilyWhereInput[] + OR?: Prisma.FamilyWhereInput[] + NOT?: Prisma.FamilyWhereInput | Prisma.FamilyWhereInput[] + name?: Prisma.StringFilter<"Family"> | string + balance?: Prisma.DecimalFilter<"Family"> | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFilter<"Family"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Family"> | Date | string + members?: Prisma.FamilyMemberListRelationFilter + invitations?: Prisma.FamilyInvitationListRelationFilter + transactions?: Prisma.TransactionListRelationFilter + notifications?: Prisma.NotificationListRelationFilter + baskets?: Prisma.BasketListRelationFilter + receipts?: Prisma.ReceiptListRelationFilter +}, "id"> + +export type FamilyOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + balance?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.FamilyCountOrderByAggregateInput + _avg?: Prisma.FamilyAvgOrderByAggregateInput + _max?: Prisma.FamilyMaxOrderByAggregateInput + _min?: Prisma.FamilyMinOrderByAggregateInput + _sum?: Prisma.FamilySumOrderByAggregateInput +} + +export type FamilyScalarWhereWithAggregatesInput = { + AND?: Prisma.FamilyScalarWhereWithAggregatesInput | Prisma.FamilyScalarWhereWithAggregatesInput[] + OR?: Prisma.FamilyScalarWhereWithAggregatesInput[] + NOT?: Prisma.FamilyScalarWhereWithAggregatesInput | Prisma.FamilyScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Family"> | string + name?: Prisma.StringWithAggregatesFilter<"Family"> | string + balance?: Prisma.DecimalWithAggregatesFilter<"Family"> | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Family"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Family"> | Date | string +} + +export type FamilyCreateInput = { + id?: string + name: string + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + members?: Prisma.FamilyMemberCreateNestedManyWithoutFamilyInput + invitations?: Prisma.FamilyInvitationCreateNestedManyWithoutFamilyInput + transactions?: Prisma.TransactionCreateNestedManyWithoutFamilyInput + notifications?: Prisma.NotificationCreateNestedManyWithoutFamilyInput + baskets?: Prisma.BasketCreateNestedManyWithoutFamilyInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutFamilyInput +} + +export type FamilyUncheckedCreateInput = { + id?: string + name: string + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + members?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutFamilyInput + invitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutFamilyInput + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutFamilyInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutFamilyInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutFamilyInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutFamilyInput +} + +export type FamilyUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + members?: Prisma.FamilyMemberUpdateManyWithoutFamilyNestedInput + invitations?: Prisma.FamilyInvitationUpdateManyWithoutFamilyNestedInput + transactions?: Prisma.TransactionUpdateManyWithoutFamilyNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutFamilyNestedInput + baskets?: Prisma.BasketUpdateManyWithoutFamilyNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutFamilyNestedInput +} + +export type FamilyUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + members?: Prisma.FamilyMemberUncheckedUpdateManyWithoutFamilyNestedInput + invitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutFamilyNestedInput + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutFamilyNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutFamilyNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutFamilyNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutFamilyNestedInput +} + +export type FamilyCreateManyInput = { + id?: string + name: string + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type FamilyUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FamilyUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FamilyNullableScalarRelationFilter = { + is?: Prisma.FamilyWhereInput | null + isNot?: Prisma.FamilyWhereInput | null +} + +export type FamilyCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + balance?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type FamilyAvgOrderByAggregateInput = { + balance?: Prisma.SortOrder +} + +export type FamilyMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + balance?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type FamilyMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + balance?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type FamilySumOrderByAggregateInput = { + balance?: Prisma.SortOrder +} + +export type FamilyScalarRelationFilter = { + is?: Prisma.FamilyWhereInput + isNot?: Prisma.FamilyWhereInput +} + +export type FamilyCreateNestedOneWithoutBasketsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.FamilyCreateOrConnectWithoutBasketsInput + connect?: Prisma.FamilyWhereUniqueInput +} + +export type FamilyUpdateOneWithoutBasketsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.FamilyCreateOrConnectWithoutBasketsInput + upsert?: Prisma.FamilyUpsertWithoutBasketsInput + disconnect?: Prisma.FamilyWhereInput | boolean + delete?: Prisma.FamilyWhereInput | boolean + connect?: Prisma.FamilyWhereUniqueInput + update?: Prisma.XOR, Prisma.FamilyUncheckedUpdateWithoutBasketsInput> +} + +export type FamilyCreateNestedOneWithoutMembersInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.FamilyCreateOrConnectWithoutMembersInput + connect?: Prisma.FamilyWhereUniqueInput +} + +export type FamilyUpdateOneRequiredWithoutMembersNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.FamilyCreateOrConnectWithoutMembersInput + upsert?: Prisma.FamilyUpsertWithoutMembersInput + connect?: Prisma.FamilyWhereUniqueInput + update?: Prisma.XOR, Prisma.FamilyUncheckedUpdateWithoutMembersInput> +} + +export type FamilyCreateNestedOneWithoutInvitationsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.FamilyCreateOrConnectWithoutInvitationsInput + connect?: Prisma.FamilyWhereUniqueInput +} + +export type FamilyUpdateOneRequiredWithoutInvitationsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.FamilyCreateOrConnectWithoutInvitationsInput + upsert?: Prisma.FamilyUpsertWithoutInvitationsInput + connect?: Prisma.FamilyWhereUniqueInput + update?: Prisma.XOR, Prisma.FamilyUncheckedUpdateWithoutInvitationsInput> +} + +export type FamilyCreateNestedOneWithoutNotificationsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.FamilyCreateOrConnectWithoutNotificationsInput + connect?: Prisma.FamilyWhereUniqueInput +} + +export type FamilyUpdateOneWithoutNotificationsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.FamilyCreateOrConnectWithoutNotificationsInput + upsert?: Prisma.FamilyUpsertWithoutNotificationsInput + disconnect?: Prisma.FamilyWhereInput | boolean + delete?: Prisma.FamilyWhereInput | boolean + connect?: Prisma.FamilyWhereUniqueInput + update?: Prisma.XOR, Prisma.FamilyUncheckedUpdateWithoutNotificationsInput> +} + +export type FamilyCreateNestedOneWithoutReceiptsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.FamilyCreateOrConnectWithoutReceiptsInput + connect?: Prisma.FamilyWhereUniqueInput +} + +export type FamilyUpdateOneWithoutReceiptsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.FamilyCreateOrConnectWithoutReceiptsInput + upsert?: Prisma.FamilyUpsertWithoutReceiptsInput + disconnect?: Prisma.FamilyWhereInput | boolean + delete?: Prisma.FamilyWhereInput | boolean + connect?: Prisma.FamilyWhereUniqueInput + update?: Prisma.XOR, Prisma.FamilyUncheckedUpdateWithoutReceiptsInput> +} + +export type FamilyCreateNestedOneWithoutTransactionsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.FamilyCreateOrConnectWithoutTransactionsInput + connect?: Prisma.FamilyWhereUniqueInput +} + +export type FamilyUpdateOneWithoutTransactionsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.FamilyCreateOrConnectWithoutTransactionsInput + upsert?: Prisma.FamilyUpsertWithoutTransactionsInput + disconnect?: Prisma.FamilyWhereInput | boolean + delete?: Prisma.FamilyWhereInput | boolean + connect?: Prisma.FamilyWhereUniqueInput + update?: Prisma.XOR, Prisma.FamilyUncheckedUpdateWithoutTransactionsInput> +} + +export type FamilyCreateWithoutBasketsInput = { + id?: string + name: string + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + members?: Prisma.FamilyMemberCreateNestedManyWithoutFamilyInput + invitations?: Prisma.FamilyInvitationCreateNestedManyWithoutFamilyInput + transactions?: Prisma.TransactionCreateNestedManyWithoutFamilyInput + notifications?: Prisma.NotificationCreateNestedManyWithoutFamilyInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutFamilyInput +} + +export type FamilyUncheckedCreateWithoutBasketsInput = { + id?: string + name: string + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + members?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutFamilyInput + invitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutFamilyInput + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutFamilyInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutFamilyInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutFamilyInput +} + +export type FamilyCreateOrConnectWithoutBasketsInput = { + where: Prisma.FamilyWhereUniqueInput + create: Prisma.XOR +} + +export type FamilyUpsertWithoutBasketsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.FamilyWhereInput +} + +export type FamilyUpdateToOneWithWhereWithoutBasketsInput = { + where?: Prisma.FamilyWhereInput + data: Prisma.XOR +} + +export type FamilyUpdateWithoutBasketsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + members?: Prisma.FamilyMemberUpdateManyWithoutFamilyNestedInput + invitations?: Prisma.FamilyInvitationUpdateManyWithoutFamilyNestedInput + transactions?: Prisma.TransactionUpdateManyWithoutFamilyNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutFamilyNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutFamilyNestedInput +} + +export type FamilyUncheckedUpdateWithoutBasketsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + members?: Prisma.FamilyMemberUncheckedUpdateManyWithoutFamilyNestedInput + invitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutFamilyNestedInput + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutFamilyNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutFamilyNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutFamilyNestedInput +} + +export type FamilyCreateWithoutMembersInput = { + id?: string + name: string + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + invitations?: Prisma.FamilyInvitationCreateNestedManyWithoutFamilyInput + transactions?: Prisma.TransactionCreateNestedManyWithoutFamilyInput + notifications?: Prisma.NotificationCreateNestedManyWithoutFamilyInput + baskets?: Prisma.BasketCreateNestedManyWithoutFamilyInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutFamilyInput +} + +export type FamilyUncheckedCreateWithoutMembersInput = { + id?: string + name: string + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + invitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutFamilyInput + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutFamilyInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutFamilyInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutFamilyInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutFamilyInput +} + +export type FamilyCreateOrConnectWithoutMembersInput = { + where: Prisma.FamilyWhereUniqueInput + create: Prisma.XOR +} + +export type FamilyUpsertWithoutMembersInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.FamilyWhereInput +} + +export type FamilyUpdateToOneWithWhereWithoutMembersInput = { + where?: Prisma.FamilyWhereInput + data: Prisma.XOR +} + +export type FamilyUpdateWithoutMembersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + invitations?: Prisma.FamilyInvitationUpdateManyWithoutFamilyNestedInput + transactions?: Prisma.TransactionUpdateManyWithoutFamilyNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutFamilyNestedInput + baskets?: Prisma.BasketUpdateManyWithoutFamilyNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutFamilyNestedInput +} + +export type FamilyUncheckedUpdateWithoutMembersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + invitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutFamilyNestedInput + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutFamilyNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutFamilyNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutFamilyNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutFamilyNestedInput +} + +export type FamilyCreateWithoutInvitationsInput = { + id?: string + name: string + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + members?: Prisma.FamilyMemberCreateNestedManyWithoutFamilyInput + transactions?: Prisma.TransactionCreateNestedManyWithoutFamilyInput + notifications?: Prisma.NotificationCreateNestedManyWithoutFamilyInput + baskets?: Prisma.BasketCreateNestedManyWithoutFamilyInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutFamilyInput +} + +export type FamilyUncheckedCreateWithoutInvitationsInput = { + id?: string + name: string + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + members?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutFamilyInput + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutFamilyInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutFamilyInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutFamilyInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutFamilyInput +} + +export type FamilyCreateOrConnectWithoutInvitationsInput = { + where: Prisma.FamilyWhereUniqueInput + create: Prisma.XOR +} + +export type FamilyUpsertWithoutInvitationsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.FamilyWhereInput +} + +export type FamilyUpdateToOneWithWhereWithoutInvitationsInput = { + where?: Prisma.FamilyWhereInput + data: Prisma.XOR +} + +export type FamilyUpdateWithoutInvitationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + members?: Prisma.FamilyMemberUpdateManyWithoutFamilyNestedInput + transactions?: Prisma.TransactionUpdateManyWithoutFamilyNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutFamilyNestedInput + baskets?: Prisma.BasketUpdateManyWithoutFamilyNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutFamilyNestedInput +} + +export type FamilyUncheckedUpdateWithoutInvitationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + members?: Prisma.FamilyMemberUncheckedUpdateManyWithoutFamilyNestedInput + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutFamilyNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutFamilyNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutFamilyNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutFamilyNestedInput +} + +export type FamilyCreateWithoutNotificationsInput = { + id?: string + name: string + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + members?: Prisma.FamilyMemberCreateNestedManyWithoutFamilyInput + invitations?: Prisma.FamilyInvitationCreateNestedManyWithoutFamilyInput + transactions?: Prisma.TransactionCreateNestedManyWithoutFamilyInput + baskets?: Prisma.BasketCreateNestedManyWithoutFamilyInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutFamilyInput +} + +export type FamilyUncheckedCreateWithoutNotificationsInput = { + id?: string + name: string + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + members?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutFamilyInput + invitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutFamilyInput + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutFamilyInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutFamilyInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutFamilyInput +} + +export type FamilyCreateOrConnectWithoutNotificationsInput = { + where: Prisma.FamilyWhereUniqueInput + create: Prisma.XOR +} + +export type FamilyUpsertWithoutNotificationsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.FamilyWhereInput +} + +export type FamilyUpdateToOneWithWhereWithoutNotificationsInput = { + where?: Prisma.FamilyWhereInput + data: Prisma.XOR +} + +export type FamilyUpdateWithoutNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + members?: Prisma.FamilyMemberUpdateManyWithoutFamilyNestedInput + invitations?: Prisma.FamilyInvitationUpdateManyWithoutFamilyNestedInput + transactions?: Prisma.TransactionUpdateManyWithoutFamilyNestedInput + baskets?: Prisma.BasketUpdateManyWithoutFamilyNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutFamilyNestedInput +} + +export type FamilyUncheckedUpdateWithoutNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + members?: Prisma.FamilyMemberUncheckedUpdateManyWithoutFamilyNestedInput + invitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutFamilyNestedInput + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutFamilyNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutFamilyNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutFamilyNestedInput +} + +export type FamilyCreateWithoutReceiptsInput = { + id?: string + name: string + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + members?: Prisma.FamilyMemberCreateNestedManyWithoutFamilyInput + invitations?: Prisma.FamilyInvitationCreateNestedManyWithoutFamilyInput + transactions?: Prisma.TransactionCreateNestedManyWithoutFamilyInput + notifications?: Prisma.NotificationCreateNestedManyWithoutFamilyInput + baskets?: Prisma.BasketCreateNestedManyWithoutFamilyInput +} + +export type FamilyUncheckedCreateWithoutReceiptsInput = { + id?: string + name: string + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + members?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutFamilyInput + invitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutFamilyInput + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutFamilyInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutFamilyInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutFamilyInput +} + +export type FamilyCreateOrConnectWithoutReceiptsInput = { + where: Prisma.FamilyWhereUniqueInput + create: Prisma.XOR +} + +export type FamilyUpsertWithoutReceiptsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.FamilyWhereInput +} + +export type FamilyUpdateToOneWithWhereWithoutReceiptsInput = { + where?: Prisma.FamilyWhereInput + data: Prisma.XOR +} + +export type FamilyUpdateWithoutReceiptsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + members?: Prisma.FamilyMemberUpdateManyWithoutFamilyNestedInput + invitations?: Prisma.FamilyInvitationUpdateManyWithoutFamilyNestedInput + transactions?: Prisma.TransactionUpdateManyWithoutFamilyNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutFamilyNestedInput + baskets?: Prisma.BasketUpdateManyWithoutFamilyNestedInput +} + +export type FamilyUncheckedUpdateWithoutReceiptsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + members?: Prisma.FamilyMemberUncheckedUpdateManyWithoutFamilyNestedInput + invitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutFamilyNestedInput + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutFamilyNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutFamilyNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutFamilyNestedInput +} + +export type FamilyCreateWithoutTransactionsInput = { + id?: string + name: string + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + members?: Prisma.FamilyMemberCreateNestedManyWithoutFamilyInput + invitations?: Prisma.FamilyInvitationCreateNestedManyWithoutFamilyInput + notifications?: Prisma.NotificationCreateNestedManyWithoutFamilyInput + baskets?: Prisma.BasketCreateNestedManyWithoutFamilyInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutFamilyInput +} + +export type FamilyUncheckedCreateWithoutTransactionsInput = { + id?: string + name: string + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + members?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutFamilyInput + invitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutFamilyInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutFamilyInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutFamilyInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutFamilyInput +} + +export type FamilyCreateOrConnectWithoutTransactionsInput = { + where: Prisma.FamilyWhereUniqueInput + create: Prisma.XOR +} + +export type FamilyUpsertWithoutTransactionsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.FamilyWhereInput +} + +export type FamilyUpdateToOneWithWhereWithoutTransactionsInput = { + where?: Prisma.FamilyWhereInput + data: Prisma.XOR +} + +export type FamilyUpdateWithoutTransactionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + members?: Prisma.FamilyMemberUpdateManyWithoutFamilyNestedInput + invitations?: Prisma.FamilyInvitationUpdateManyWithoutFamilyNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutFamilyNestedInput + baskets?: Prisma.BasketUpdateManyWithoutFamilyNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutFamilyNestedInput +} + +export type FamilyUncheckedUpdateWithoutTransactionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + members?: Prisma.FamilyMemberUncheckedUpdateManyWithoutFamilyNestedInput + invitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutFamilyNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutFamilyNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutFamilyNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutFamilyNestedInput +} + + +/** + * Count Type FamilyCountOutputType + */ + +export type FamilyCountOutputType = { + members: number + invitations: number + transactions: number + notifications: number + baskets: number + receipts: number +} + +export type FamilyCountOutputTypeSelect = { + members?: boolean | FamilyCountOutputTypeCountMembersArgs + invitations?: boolean | FamilyCountOutputTypeCountInvitationsArgs + transactions?: boolean | FamilyCountOutputTypeCountTransactionsArgs + notifications?: boolean | FamilyCountOutputTypeCountNotificationsArgs + baskets?: boolean | FamilyCountOutputTypeCountBasketsArgs + receipts?: boolean | FamilyCountOutputTypeCountReceiptsArgs +} + +/** + * FamilyCountOutputType without action + */ +export type FamilyCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the FamilyCountOutputType + */ + select?: Prisma.FamilyCountOutputTypeSelect | null +} + +/** + * FamilyCountOutputType without action + */ +export type FamilyCountOutputTypeCountMembersArgs = { + where?: Prisma.FamilyMemberWhereInput +} + +/** + * FamilyCountOutputType without action + */ +export type FamilyCountOutputTypeCountInvitationsArgs = { + where?: Prisma.FamilyInvitationWhereInput +} + +/** + * FamilyCountOutputType without action + */ +export type FamilyCountOutputTypeCountTransactionsArgs = { + where?: Prisma.TransactionWhereInput +} + +/** + * FamilyCountOutputType without action + */ +export type FamilyCountOutputTypeCountNotificationsArgs = { + where?: Prisma.NotificationWhereInput +} + +/** + * FamilyCountOutputType without action + */ +export type FamilyCountOutputTypeCountBasketsArgs = { + where?: Prisma.BasketWhereInput +} + +/** + * FamilyCountOutputType without action + */ +export type FamilyCountOutputTypeCountReceiptsArgs = { + where?: Prisma.ReceiptWhereInput +} + + +export type FamilySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + balance?: boolean + createdAt?: boolean + updatedAt?: boolean + members?: boolean | Prisma.Family$membersArgs + invitations?: boolean | Prisma.Family$invitationsArgs + transactions?: boolean | Prisma.Family$transactionsArgs + notifications?: boolean | Prisma.Family$notificationsArgs + baskets?: boolean | Prisma.Family$basketsArgs + receipts?: boolean | Prisma.Family$receiptsArgs + _count?: boolean | Prisma.FamilyCountOutputTypeDefaultArgs +}, ExtArgs["result"]["family"]> + +export type FamilySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + balance?: boolean + createdAt?: boolean + updatedAt?: boolean +}, ExtArgs["result"]["family"]> + +export type FamilySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + balance?: boolean + createdAt?: boolean + updatedAt?: boolean +}, ExtArgs["result"]["family"]> + +export type FamilySelectScalar = { + id?: boolean + name?: boolean + balance?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type FamilyOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "balance" | "createdAt" | "updatedAt", ExtArgs["result"]["family"]> +export type FamilyInclude = { + members?: boolean | Prisma.Family$membersArgs + invitations?: boolean | Prisma.Family$invitationsArgs + transactions?: boolean | Prisma.Family$transactionsArgs + notifications?: boolean | Prisma.Family$notificationsArgs + baskets?: boolean | Prisma.Family$basketsArgs + receipts?: boolean | Prisma.Family$receiptsArgs + _count?: boolean | Prisma.FamilyCountOutputTypeDefaultArgs +} +export type FamilyIncludeCreateManyAndReturn = {} +export type FamilyIncludeUpdateManyAndReturn = {} + +export type $FamilyPayload = { + name: "Family" + objects: { + members: Prisma.$FamilyMemberPayload[] + invitations: Prisma.$FamilyInvitationPayload[] + transactions: Prisma.$TransactionPayload[] + notifications: Prisma.$NotificationPayload[] + baskets: Prisma.$BasketPayload[] + receipts: Prisma.$ReceiptPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + name: string + balance: runtime.Decimal + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["family"]> + composites: {} +} + +export type FamilyGetPayload = runtime.Types.Result.GetResult + +export type FamilyCountArgs = + Omit & { + select?: FamilyCountAggregateInputType | true + } + +export interface FamilyDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Family'], meta: { name: 'Family' } } + /** + * Find zero or one Family that matches the filter. + * @param {FamilyFindUniqueArgs} args - Arguments to find a Family + * @example + * // Get one Family + * const family = await prisma.family.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Family that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {FamilyFindUniqueOrThrowArgs} args - Arguments to find a Family + * @example + * // Get one Family + * const family = await prisma.family.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Family 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 {FamilyFindFirstArgs} args - Arguments to find a Family + * @example + * // Get one Family + * const family = await prisma.family.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__FamilyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Family 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 {FamilyFindFirstOrThrowArgs} args - Arguments to find a Family + * @example + * // Get one Family + * const family = await prisma.family.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__FamilyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Families 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 {FamilyFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Families + * const families = await prisma.family.findMany() + * + * // Get first 10 Families + * const families = await prisma.family.findMany({ take: 10 }) + * + * // Only select the `id` + * const familyWithIdOnly = await prisma.family.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Family. + * @param {FamilyCreateArgs} args - Arguments to create a Family. + * @example + * // Create one Family + * const Family = await prisma.family.create({ + * data: { + * // ... data to create a Family + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Families. + * @param {FamilyCreateManyArgs} args - Arguments to create many Families. + * @example + * // Create many Families + * const family = await prisma.family.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Families and returns the data saved in the database. + * @param {FamilyCreateManyAndReturnArgs} args - Arguments to create many Families. + * @example + * // Create many Families + * const family = await prisma.family.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Families and only return the `id` + * const familyWithIdOnly = await prisma.family.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Family. + * @param {FamilyDeleteArgs} args - Arguments to delete one Family. + * @example + * // Delete one Family + * const Family = await prisma.family.delete({ + * where: { + * // ... filter to delete one Family + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Family. + * @param {FamilyUpdateArgs} args - Arguments to update one Family. + * @example + * // Update one Family + * const family = await prisma.family.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Families. + * @param {FamilyDeleteManyArgs} args - Arguments to filter Families to delete. + * @example + * // Delete a few Families + * const { count } = await prisma.family.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Families. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FamilyUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Families + * const family = await prisma.family.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Families and returns the data updated in the database. + * @param {FamilyUpdateManyAndReturnArgs} args - Arguments to update many Families. + * @example + * // Update many Families + * const family = await prisma.family.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Families and only return the `id` + * const familyWithIdOnly = await prisma.family.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Family. + * @param {FamilyUpsertArgs} args - Arguments to update or create a Family. + * @example + * // Update or create a Family + * const family = await prisma.family.upsert({ + * create: { + * // ... data to create a Family + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Family we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Families. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FamilyCountArgs} args - Arguments to filter Families to count. + * @example + * // Count the number of Families + * const count = await prisma.family.count({ + * where: { + * // ... the filter for the Families we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Family. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FamilyAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Family. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FamilyGroupByArgs} 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 FamilyGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: FamilyGroupByArgs['orderBy'] } + : { orderBy?: FamilyGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetFamilyGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Family model + */ +readonly fields: FamilyFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Family. + * 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__FamilyClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + members = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + invitations = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + transactions = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + notifications = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + baskets = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + receipts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + /** + * 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the Family model + */ +export interface FamilyFieldRefs { + readonly id: Prisma.FieldRef<"Family", 'String'> + readonly name: Prisma.FieldRef<"Family", 'String'> + readonly balance: Prisma.FieldRef<"Family", 'Decimal'> + readonly createdAt: Prisma.FieldRef<"Family", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Family", 'DateTime'> +} + + +// Custom InputTypes +/** + * Family findUnique + */ +export type FamilyFindUniqueArgs = { + /** + * Select specific fields to fetch from the Family + */ + select?: Prisma.FamilySelect | null + /** + * Omit specific fields from the Family + */ + omit?: Prisma.FamilyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInclude | null + /** + * Filter, which Family to fetch. + */ + where: Prisma.FamilyWhereUniqueInput +} + +/** + * Family findUniqueOrThrow + */ +export type FamilyFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Family + */ + select?: Prisma.FamilySelect | null + /** + * Omit specific fields from the Family + */ + omit?: Prisma.FamilyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInclude | null + /** + * Filter, which Family to fetch. + */ + where: Prisma.FamilyWhereUniqueInput +} + +/** + * Family findFirst + */ +export type FamilyFindFirstArgs = { + /** + * Select specific fields to fetch from the Family + */ + select?: Prisma.FamilySelect | null + /** + * Omit specific fields from the Family + */ + omit?: Prisma.FamilyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInclude | null + /** + * Filter, which Family to fetch. + */ + where?: Prisma.FamilyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Families to fetch. + */ + orderBy?: Prisma.FamilyOrderByWithRelationInput | Prisma.FamilyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Families. + */ + cursor?: Prisma.FamilyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Families 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` Families. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Families. + */ + distinct?: Prisma.FamilyScalarFieldEnum | Prisma.FamilyScalarFieldEnum[] +} + +/** + * Family findFirstOrThrow + */ +export type FamilyFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Family + */ + select?: Prisma.FamilySelect | null + /** + * Omit specific fields from the Family + */ + omit?: Prisma.FamilyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInclude | null + /** + * Filter, which Family to fetch. + */ + where?: Prisma.FamilyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Families to fetch. + */ + orderBy?: Prisma.FamilyOrderByWithRelationInput | Prisma.FamilyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Families. + */ + cursor?: Prisma.FamilyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Families 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` Families. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Families. + */ + distinct?: Prisma.FamilyScalarFieldEnum | Prisma.FamilyScalarFieldEnum[] +} + +/** + * Family findMany + */ +export type FamilyFindManyArgs = { + /** + * Select specific fields to fetch from the Family + */ + select?: Prisma.FamilySelect | null + /** + * Omit specific fields from the Family + */ + omit?: Prisma.FamilyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInclude | null + /** + * Filter, which Families to fetch. + */ + where?: Prisma.FamilyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Families to fetch. + */ + orderBy?: Prisma.FamilyOrderByWithRelationInput | Prisma.FamilyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Families. + */ + cursor?: Prisma.FamilyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Families 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` Families. + */ + skip?: number + distinct?: Prisma.FamilyScalarFieldEnum | Prisma.FamilyScalarFieldEnum[] +} + +/** + * Family create + */ +export type FamilyCreateArgs = { + /** + * Select specific fields to fetch from the Family + */ + select?: Prisma.FamilySelect | null + /** + * Omit specific fields from the Family + */ + omit?: Prisma.FamilyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInclude | null + /** + * The data needed to create a Family. + */ + data: Prisma.XOR +} + +/** + * Family createMany + */ +export type FamilyCreateManyArgs = { + /** + * The data used to create many Families. + */ + data: Prisma.FamilyCreateManyInput | Prisma.FamilyCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Family createManyAndReturn + */ +export type FamilyCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Family + */ + select?: Prisma.FamilySelectCreateManyAndReturn | null + /** + * Omit specific fields from the Family + */ + omit?: Prisma.FamilyOmit | null + /** + * The data used to create many Families. + */ + data: Prisma.FamilyCreateManyInput | Prisma.FamilyCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Family update + */ +export type FamilyUpdateArgs = { + /** + * Select specific fields to fetch from the Family + */ + select?: Prisma.FamilySelect | null + /** + * Omit specific fields from the Family + */ + omit?: Prisma.FamilyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInclude | null + /** + * The data needed to update a Family. + */ + data: Prisma.XOR + /** + * Choose, which Family to update. + */ + where: Prisma.FamilyWhereUniqueInput +} + +/** + * Family updateMany + */ +export type FamilyUpdateManyArgs = { + /** + * The data used to update Families. + */ + data: Prisma.XOR + /** + * Filter which Families to update + */ + where?: Prisma.FamilyWhereInput + /** + * Limit how many Families to update. + */ + limit?: number +} + +/** + * Family updateManyAndReturn + */ +export type FamilyUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Family + */ + select?: Prisma.FamilySelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Family + */ + omit?: Prisma.FamilyOmit | null + /** + * The data used to update Families. + */ + data: Prisma.XOR + /** + * Filter which Families to update + */ + where?: Prisma.FamilyWhereInput + /** + * Limit how many Families to update. + */ + limit?: number +} + +/** + * Family upsert + */ +export type FamilyUpsertArgs = { + /** + * Select specific fields to fetch from the Family + */ + select?: Prisma.FamilySelect | null + /** + * Omit specific fields from the Family + */ + omit?: Prisma.FamilyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInclude | null + /** + * The filter to search for the Family to update in case it exists. + */ + where: Prisma.FamilyWhereUniqueInput + /** + * In case the Family found by the `where` argument doesn't exist, create a new Family with this data. + */ + create: Prisma.XOR + /** + * In case the Family was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Family delete + */ +export type FamilyDeleteArgs = { + /** + * Select specific fields to fetch from the Family + */ + select?: Prisma.FamilySelect | null + /** + * Omit specific fields from the Family + */ + omit?: Prisma.FamilyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInclude | null + /** + * Filter which Family to delete. + */ + where: Prisma.FamilyWhereUniqueInput +} + +/** + * Family deleteMany + */ +export type FamilyDeleteManyArgs = { + /** + * Filter which Families to delete + */ + where?: Prisma.FamilyWhereInput + /** + * Limit how many Families to delete. + */ + limit?: number +} + +/** + * Family.members + */ +export type Family$membersArgs = { + /** + * Select specific fields to fetch from the FamilyMember + */ + select?: Prisma.FamilyMemberSelect | null + /** + * Omit specific fields from the FamilyMember + */ + omit?: Prisma.FamilyMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyMemberInclude | null + where?: Prisma.FamilyMemberWhereInput + orderBy?: Prisma.FamilyMemberOrderByWithRelationInput | Prisma.FamilyMemberOrderByWithRelationInput[] + cursor?: Prisma.FamilyMemberWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.FamilyMemberScalarFieldEnum | Prisma.FamilyMemberScalarFieldEnum[] +} + +/** + * Family.invitations + */ +export type Family$invitationsArgs = { + /** + * Select specific fields to fetch from the FamilyInvitation + */ + select?: Prisma.FamilyInvitationSelect | null + /** + * Omit specific fields from the FamilyInvitation + */ + omit?: Prisma.FamilyInvitationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInvitationInclude | null + where?: Prisma.FamilyInvitationWhereInput + orderBy?: Prisma.FamilyInvitationOrderByWithRelationInput | Prisma.FamilyInvitationOrderByWithRelationInput[] + cursor?: Prisma.FamilyInvitationWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.FamilyInvitationScalarFieldEnum | Prisma.FamilyInvitationScalarFieldEnum[] +} + +/** + * Family.transactions + */ +export type Family$transactionsArgs = { + /** + * Select specific fields to fetch from the Transaction + */ + select?: Prisma.TransactionSelect | null + /** + * Omit specific fields from the Transaction + */ + omit?: Prisma.TransactionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TransactionInclude | null + where?: Prisma.TransactionWhereInput + orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[] + cursor?: Prisma.TransactionWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[] +} + +/** + * Family.notifications + */ +export type Family$notificationsArgs = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + where?: Prisma.NotificationWhereInput + orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[] + cursor?: Prisma.NotificationWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * Family.baskets + */ +export type Family$basketsArgs = { + /** + * Select specific fields to fetch from the Basket + */ + select?: Prisma.BasketSelect | null + /** + * Omit specific fields from the Basket + */ + omit?: Prisma.BasketOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketInclude | null + where?: Prisma.BasketWhereInput + orderBy?: Prisma.BasketOrderByWithRelationInput | Prisma.BasketOrderByWithRelationInput[] + cursor?: Prisma.BasketWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.BasketScalarFieldEnum | Prisma.BasketScalarFieldEnum[] +} + +/** + * Family.receipts + */ +export type Family$receiptsArgs = { + /** + * Select specific fields to fetch from the Receipt + */ + select?: Prisma.ReceiptSelect | null + /** + * Omit specific fields from the Receipt + */ + omit?: Prisma.ReceiptOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ReceiptInclude | null + where?: Prisma.ReceiptWhereInput + orderBy?: Prisma.ReceiptOrderByWithRelationInput | Prisma.ReceiptOrderByWithRelationInput[] + cursor?: Prisma.ReceiptWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ReceiptScalarFieldEnum | Prisma.ReceiptScalarFieldEnum[] +} + +/** + * Family without action + */ +export type FamilyDefaultArgs = { + /** + * Select specific fields to fetch from the Family + */ + select?: Prisma.FamilySelect | null + /** + * Omit specific fields from the Family + */ + omit?: Prisma.FamilyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/FamilyInvitation.ts b/apps/backend/prisma/generated/generated/prisma/models/FamilyInvitation.ts new file mode 100644 index 00000000..70c943d2 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/FamilyInvitation.ts @@ -0,0 +1,1791 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `FamilyInvitation` 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 FamilyInvitation + * + */ +export type FamilyInvitationModel = runtime.Types.Result.DefaultSelection + +export type AggregateFamilyInvitation = { + _count: FamilyInvitationCountAggregateOutputType | null + _min: FamilyInvitationMinAggregateOutputType | null + _max: FamilyInvitationMaxAggregateOutputType | null +} + +export type FamilyInvitationMinAggregateOutputType = { + id: string | null + familyId: string | null + inviterId: string | null + inviteeId: string | null + inviteeEmail: string | null + status: $Enums.FamilyInvitationStatus | null + expiresAt: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type FamilyInvitationMaxAggregateOutputType = { + id: string | null + familyId: string | null + inviterId: string | null + inviteeId: string | null + inviteeEmail: string | null + status: $Enums.FamilyInvitationStatus | null + expiresAt: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type FamilyInvitationCountAggregateOutputType = { + id: number + familyId: number + inviterId: number + inviteeId: number + inviteeEmail: number + status: number + expiresAt: number + createdAt: number + updatedAt: number + _all: number +} + + +export type FamilyInvitationMinAggregateInputType = { + id?: true + familyId?: true + inviterId?: true + inviteeId?: true + inviteeEmail?: true + status?: true + expiresAt?: true + createdAt?: true + updatedAt?: true +} + +export type FamilyInvitationMaxAggregateInputType = { + id?: true + familyId?: true + inviterId?: true + inviteeId?: true + inviteeEmail?: true + status?: true + expiresAt?: true + createdAt?: true + updatedAt?: true +} + +export type FamilyInvitationCountAggregateInputType = { + id?: true + familyId?: true + inviterId?: true + inviteeId?: true + inviteeEmail?: true + status?: true + expiresAt?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type FamilyInvitationAggregateArgs = { + /** + * Filter which FamilyInvitation to aggregate. + */ + where?: Prisma.FamilyInvitationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of FamilyInvitations to fetch. + */ + orderBy?: Prisma.FamilyInvitationOrderByWithRelationInput | Prisma.FamilyInvitationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.FamilyInvitationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` FamilyInvitations 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` FamilyInvitations. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned FamilyInvitations + **/ + _count?: true | FamilyInvitationCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: FamilyInvitationMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: FamilyInvitationMaxAggregateInputType +} + +export type GetFamilyInvitationAggregateType = { + [P in keyof T & keyof AggregateFamilyInvitation]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type FamilyInvitationGroupByArgs = { + where?: Prisma.FamilyInvitationWhereInput + orderBy?: Prisma.FamilyInvitationOrderByWithAggregationInput | Prisma.FamilyInvitationOrderByWithAggregationInput[] + by: Prisma.FamilyInvitationScalarFieldEnum[] | Prisma.FamilyInvitationScalarFieldEnum + having?: Prisma.FamilyInvitationScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: FamilyInvitationCountAggregateInputType | true + _min?: FamilyInvitationMinAggregateInputType + _max?: FamilyInvitationMaxAggregateInputType +} + +export type FamilyInvitationGroupByOutputType = { + id: string + familyId: string + inviterId: string + inviteeId: string | null + inviteeEmail: string + status: $Enums.FamilyInvitationStatus + expiresAt: Date + createdAt: Date + updatedAt: Date + _count: FamilyInvitationCountAggregateOutputType | null + _min: FamilyInvitationMinAggregateOutputType | null + _max: FamilyInvitationMaxAggregateOutputType | null +} + +type GetFamilyInvitationGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof FamilyInvitationGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type FamilyInvitationWhereInput = { + AND?: Prisma.FamilyInvitationWhereInput | Prisma.FamilyInvitationWhereInput[] + OR?: Prisma.FamilyInvitationWhereInput[] + NOT?: Prisma.FamilyInvitationWhereInput | Prisma.FamilyInvitationWhereInput[] + id?: Prisma.StringFilter<"FamilyInvitation"> | string + familyId?: Prisma.StringFilter<"FamilyInvitation"> | string + inviterId?: Prisma.StringFilter<"FamilyInvitation"> | string + inviteeId?: Prisma.StringNullableFilter<"FamilyInvitation"> | string | null + inviteeEmail?: Prisma.StringFilter<"FamilyInvitation"> | string + status?: Prisma.EnumFamilyInvitationStatusFilter<"FamilyInvitation"> | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeFilter<"FamilyInvitation"> | Date | string + createdAt?: Prisma.DateTimeFilter<"FamilyInvitation"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"FamilyInvitation"> | Date | string + family?: Prisma.XOR + inviter?: Prisma.XOR + invitee?: Prisma.XOR | null +} + +export type FamilyInvitationOrderByWithRelationInput = { + id?: Prisma.SortOrder + familyId?: Prisma.SortOrder + inviterId?: Prisma.SortOrder + inviteeId?: Prisma.SortOrderInput | Prisma.SortOrder + inviteeEmail?: Prisma.SortOrder + status?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + family?: Prisma.FamilyOrderByWithRelationInput + inviter?: Prisma.UserOrderByWithRelationInput + invitee?: Prisma.UserOrderByWithRelationInput +} + +export type FamilyInvitationWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.FamilyInvitationWhereInput | Prisma.FamilyInvitationWhereInput[] + OR?: Prisma.FamilyInvitationWhereInput[] + NOT?: Prisma.FamilyInvitationWhereInput | Prisma.FamilyInvitationWhereInput[] + familyId?: Prisma.StringFilter<"FamilyInvitation"> | string + inviterId?: Prisma.StringFilter<"FamilyInvitation"> | string + inviteeId?: Prisma.StringNullableFilter<"FamilyInvitation"> | string | null + inviteeEmail?: Prisma.StringFilter<"FamilyInvitation"> | string + status?: Prisma.EnumFamilyInvitationStatusFilter<"FamilyInvitation"> | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeFilter<"FamilyInvitation"> | Date | string + createdAt?: Prisma.DateTimeFilter<"FamilyInvitation"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"FamilyInvitation"> | Date | string + family?: Prisma.XOR + inviter?: Prisma.XOR + invitee?: Prisma.XOR | null +}, "id"> + +export type FamilyInvitationOrderByWithAggregationInput = { + id?: Prisma.SortOrder + familyId?: Prisma.SortOrder + inviterId?: Prisma.SortOrder + inviteeId?: Prisma.SortOrderInput | Prisma.SortOrder + inviteeEmail?: Prisma.SortOrder + status?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.FamilyInvitationCountOrderByAggregateInput + _max?: Prisma.FamilyInvitationMaxOrderByAggregateInput + _min?: Prisma.FamilyInvitationMinOrderByAggregateInput +} + +export type FamilyInvitationScalarWhereWithAggregatesInput = { + AND?: Prisma.FamilyInvitationScalarWhereWithAggregatesInput | Prisma.FamilyInvitationScalarWhereWithAggregatesInput[] + OR?: Prisma.FamilyInvitationScalarWhereWithAggregatesInput[] + NOT?: Prisma.FamilyInvitationScalarWhereWithAggregatesInput | Prisma.FamilyInvitationScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"FamilyInvitation"> | string + familyId?: Prisma.StringWithAggregatesFilter<"FamilyInvitation"> | string + inviterId?: Prisma.StringWithAggregatesFilter<"FamilyInvitation"> | string + inviteeId?: Prisma.StringNullableWithAggregatesFilter<"FamilyInvitation"> | string | null + inviteeEmail?: Prisma.StringWithAggregatesFilter<"FamilyInvitation"> | string + status?: Prisma.EnumFamilyInvitationStatusWithAggregatesFilter<"FamilyInvitation"> | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeWithAggregatesFilter<"FamilyInvitation"> | Date | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"FamilyInvitation"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"FamilyInvitation"> | Date | string +} + +export type FamilyInvitationCreateInput = { + id?: string + inviteeEmail: string + status?: $Enums.FamilyInvitationStatus + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string + family: Prisma.FamilyCreateNestedOneWithoutInvitationsInput + inviter: Prisma.UserCreateNestedOneWithoutSentInvitationsInput + invitee?: Prisma.UserCreateNestedOneWithoutReceivedInvitationsInput +} + +export type FamilyInvitationUncheckedCreateInput = { + id?: string + familyId: string + inviterId: string + inviteeId?: string | null + inviteeEmail: string + status?: $Enums.FamilyInvitationStatus + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type FamilyInvitationUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + inviteeEmail?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumFamilyInvitationStatusFieldUpdateOperationsInput | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + family?: Prisma.FamilyUpdateOneRequiredWithoutInvitationsNestedInput + inviter?: Prisma.UserUpdateOneRequiredWithoutSentInvitationsNestedInput + invitee?: Prisma.UserUpdateOneWithoutReceivedInvitationsNestedInput +} + +export type FamilyInvitationUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.StringFieldUpdateOperationsInput | string + inviterId?: Prisma.StringFieldUpdateOperationsInput | string + inviteeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + inviteeEmail?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumFamilyInvitationStatusFieldUpdateOperationsInput | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FamilyInvitationCreateManyInput = { + id?: string + familyId: string + inviterId: string + inviteeId?: string | null + inviteeEmail: string + status?: $Enums.FamilyInvitationStatus + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type FamilyInvitationUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + inviteeEmail?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumFamilyInvitationStatusFieldUpdateOperationsInput | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FamilyInvitationUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.StringFieldUpdateOperationsInput | string + inviterId?: Prisma.StringFieldUpdateOperationsInput | string + inviteeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + inviteeEmail?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumFamilyInvitationStatusFieldUpdateOperationsInput | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FamilyInvitationListRelationFilter = { + every?: Prisma.FamilyInvitationWhereInput + some?: Prisma.FamilyInvitationWhereInput + none?: Prisma.FamilyInvitationWhereInput +} + +export type FamilyInvitationOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type FamilyInvitationCountOrderByAggregateInput = { + id?: Prisma.SortOrder + familyId?: Prisma.SortOrder + inviterId?: Prisma.SortOrder + inviteeId?: Prisma.SortOrder + inviteeEmail?: Prisma.SortOrder + status?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type FamilyInvitationMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + familyId?: Prisma.SortOrder + inviterId?: Prisma.SortOrder + inviteeId?: Prisma.SortOrder + inviteeEmail?: Prisma.SortOrder + status?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type FamilyInvitationMinOrderByAggregateInput = { + id?: Prisma.SortOrder + familyId?: Prisma.SortOrder + inviterId?: Prisma.SortOrder + inviteeId?: Prisma.SortOrder + inviteeEmail?: Prisma.SortOrder + status?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type FamilyInvitationCreateNestedManyWithoutFamilyInput = { + create?: Prisma.XOR | Prisma.FamilyInvitationCreateWithoutFamilyInput[] | Prisma.FamilyInvitationUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.FamilyInvitationCreateOrConnectWithoutFamilyInput | Prisma.FamilyInvitationCreateOrConnectWithoutFamilyInput[] + createMany?: Prisma.FamilyInvitationCreateManyFamilyInputEnvelope + connect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] +} + +export type FamilyInvitationUncheckedCreateNestedManyWithoutFamilyInput = { + create?: Prisma.XOR | Prisma.FamilyInvitationCreateWithoutFamilyInput[] | Prisma.FamilyInvitationUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.FamilyInvitationCreateOrConnectWithoutFamilyInput | Prisma.FamilyInvitationCreateOrConnectWithoutFamilyInput[] + createMany?: Prisma.FamilyInvitationCreateManyFamilyInputEnvelope + connect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] +} + +export type FamilyInvitationUpdateManyWithoutFamilyNestedInput = { + create?: Prisma.XOR | Prisma.FamilyInvitationCreateWithoutFamilyInput[] | Prisma.FamilyInvitationUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.FamilyInvitationCreateOrConnectWithoutFamilyInput | Prisma.FamilyInvitationCreateOrConnectWithoutFamilyInput[] + upsert?: Prisma.FamilyInvitationUpsertWithWhereUniqueWithoutFamilyInput | Prisma.FamilyInvitationUpsertWithWhereUniqueWithoutFamilyInput[] + createMany?: Prisma.FamilyInvitationCreateManyFamilyInputEnvelope + set?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + disconnect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + delete?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + connect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + update?: Prisma.FamilyInvitationUpdateWithWhereUniqueWithoutFamilyInput | Prisma.FamilyInvitationUpdateWithWhereUniqueWithoutFamilyInput[] + updateMany?: Prisma.FamilyInvitationUpdateManyWithWhereWithoutFamilyInput | Prisma.FamilyInvitationUpdateManyWithWhereWithoutFamilyInput[] + deleteMany?: Prisma.FamilyInvitationScalarWhereInput | Prisma.FamilyInvitationScalarWhereInput[] +} + +export type FamilyInvitationUncheckedUpdateManyWithoutFamilyNestedInput = { + create?: Prisma.XOR | Prisma.FamilyInvitationCreateWithoutFamilyInput[] | Prisma.FamilyInvitationUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.FamilyInvitationCreateOrConnectWithoutFamilyInput | Prisma.FamilyInvitationCreateOrConnectWithoutFamilyInput[] + upsert?: Prisma.FamilyInvitationUpsertWithWhereUniqueWithoutFamilyInput | Prisma.FamilyInvitationUpsertWithWhereUniqueWithoutFamilyInput[] + createMany?: Prisma.FamilyInvitationCreateManyFamilyInputEnvelope + set?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + disconnect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + delete?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + connect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + update?: Prisma.FamilyInvitationUpdateWithWhereUniqueWithoutFamilyInput | Prisma.FamilyInvitationUpdateWithWhereUniqueWithoutFamilyInput[] + updateMany?: Prisma.FamilyInvitationUpdateManyWithWhereWithoutFamilyInput | Prisma.FamilyInvitationUpdateManyWithWhereWithoutFamilyInput[] + deleteMany?: Prisma.FamilyInvitationScalarWhereInput | Prisma.FamilyInvitationScalarWhereInput[] +} + +export type EnumFamilyInvitationStatusFieldUpdateOperationsInput = { + set?: $Enums.FamilyInvitationStatus +} + +export type FamilyInvitationCreateNestedManyWithoutInviterInput = { + create?: Prisma.XOR | Prisma.FamilyInvitationCreateWithoutInviterInput[] | Prisma.FamilyInvitationUncheckedCreateWithoutInviterInput[] + connectOrCreate?: Prisma.FamilyInvitationCreateOrConnectWithoutInviterInput | Prisma.FamilyInvitationCreateOrConnectWithoutInviterInput[] + createMany?: Prisma.FamilyInvitationCreateManyInviterInputEnvelope + connect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] +} + +export type FamilyInvitationCreateNestedManyWithoutInviteeInput = { + create?: Prisma.XOR | Prisma.FamilyInvitationCreateWithoutInviteeInput[] | Prisma.FamilyInvitationUncheckedCreateWithoutInviteeInput[] + connectOrCreate?: Prisma.FamilyInvitationCreateOrConnectWithoutInviteeInput | Prisma.FamilyInvitationCreateOrConnectWithoutInviteeInput[] + createMany?: Prisma.FamilyInvitationCreateManyInviteeInputEnvelope + connect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] +} + +export type FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput = { + create?: Prisma.XOR | Prisma.FamilyInvitationCreateWithoutInviterInput[] | Prisma.FamilyInvitationUncheckedCreateWithoutInviterInput[] + connectOrCreate?: Prisma.FamilyInvitationCreateOrConnectWithoutInviterInput | Prisma.FamilyInvitationCreateOrConnectWithoutInviterInput[] + createMany?: Prisma.FamilyInvitationCreateManyInviterInputEnvelope + connect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] +} + +export type FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput = { + create?: Prisma.XOR | Prisma.FamilyInvitationCreateWithoutInviteeInput[] | Prisma.FamilyInvitationUncheckedCreateWithoutInviteeInput[] + connectOrCreate?: Prisma.FamilyInvitationCreateOrConnectWithoutInviteeInput | Prisma.FamilyInvitationCreateOrConnectWithoutInviteeInput[] + createMany?: Prisma.FamilyInvitationCreateManyInviteeInputEnvelope + connect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] +} + +export type FamilyInvitationUpdateManyWithoutInviterNestedInput = { + create?: Prisma.XOR | Prisma.FamilyInvitationCreateWithoutInviterInput[] | Prisma.FamilyInvitationUncheckedCreateWithoutInviterInput[] + connectOrCreate?: Prisma.FamilyInvitationCreateOrConnectWithoutInviterInput | Prisma.FamilyInvitationCreateOrConnectWithoutInviterInput[] + upsert?: Prisma.FamilyInvitationUpsertWithWhereUniqueWithoutInviterInput | Prisma.FamilyInvitationUpsertWithWhereUniqueWithoutInviterInput[] + createMany?: Prisma.FamilyInvitationCreateManyInviterInputEnvelope + set?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + disconnect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + delete?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + connect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + update?: Prisma.FamilyInvitationUpdateWithWhereUniqueWithoutInviterInput | Prisma.FamilyInvitationUpdateWithWhereUniqueWithoutInviterInput[] + updateMany?: Prisma.FamilyInvitationUpdateManyWithWhereWithoutInviterInput | Prisma.FamilyInvitationUpdateManyWithWhereWithoutInviterInput[] + deleteMany?: Prisma.FamilyInvitationScalarWhereInput | Prisma.FamilyInvitationScalarWhereInput[] +} + +export type FamilyInvitationUpdateManyWithoutInviteeNestedInput = { + create?: Prisma.XOR | Prisma.FamilyInvitationCreateWithoutInviteeInput[] | Prisma.FamilyInvitationUncheckedCreateWithoutInviteeInput[] + connectOrCreate?: Prisma.FamilyInvitationCreateOrConnectWithoutInviteeInput | Prisma.FamilyInvitationCreateOrConnectWithoutInviteeInput[] + upsert?: Prisma.FamilyInvitationUpsertWithWhereUniqueWithoutInviteeInput | Prisma.FamilyInvitationUpsertWithWhereUniqueWithoutInviteeInput[] + createMany?: Prisma.FamilyInvitationCreateManyInviteeInputEnvelope + set?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + disconnect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + delete?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + connect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + update?: Prisma.FamilyInvitationUpdateWithWhereUniqueWithoutInviteeInput | Prisma.FamilyInvitationUpdateWithWhereUniqueWithoutInviteeInput[] + updateMany?: Prisma.FamilyInvitationUpdateManyWithWhereWithoutInviteeInput | Prisma.FamilyInvitationUpdateManyWithWhereWithoutInviteeInput[] + deleteMany?: Prisma.FamilyInvitationScalarWhereInput | Prisma.FamilyInvitationScalarWhereInput[] +} + +export type FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput = { + create?: Prisma.XOR | Prisma.FamilyInvitationCreateWithoutInviterInput[] | Prisma.FamilyInvitationUncheckedCreateWithoutInviterInput[] + connectOrCreate?: Prisma.FamilyInvitationCreateOrConnectWithoutInviterInput | Prisma.FamilyInvitationCreateOrConnectWithoutInviterInput[] + upsert?: Prisma.FamilyInvitationUpsertWithWhereUniqueWithoutInviterInput | Prisma.FamilyInvitationUpsertWithWhereUniqueWithoutInviterInput[] + createMany?: Prisma.FamilyInvitationCreateManyInviterInputEnvelope + set?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + disconnect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + delete?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + connect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + update?: Prisma.FamilyInvitationUpdateWithWhereUniqueWithoutInviterInput | Prisma.FamilyInvitationUpdateWithWhereUniqueWithoutInviterInput[] + updateMany?: Prisma.FamilyInvitationUpdateManyWithWhereWithoutInviterInput | Prisma.FamilyInvitationUpdateManyWithWhereWithoutInviterInput[] + deleteMany?: Prisma.FamilyInvitationScalarWhereInput | Prisma.FamilyInvitationScalarWhereInput[] +} + +export type FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput = { + create?: Prisma.XOR | Prisma.FamilyInvitationCreateWithoutInviteeInput[] | Prisma.FamilyInvitationUncheckedCreateWithoutInviteeInput[] + connectOrCreate?: Prisma.FamilyInvitationCreateOrConnectWithoutInviteeInput | Prisma.FamilyInvitationCreateOrConnectWithoutInviteeInput[] + upsert?: Prisma.FamilyInvitationUpsertWithWhereUniqueWithoutInviteeInput | Prisma.FamilyInvitationUpsertWithWhereUniqueWithoutInviteeInput[] + createMany?: Prisma.FamilyInvitationCreateManyInviteeInputEnvelope + set?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + disconnect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + delete?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + connect?: Prisma.FamilyInvitationWhereUniqueInput | Prisma.FamilyInvitationWhereUniqueInput[] + update?: Prisma.FamilyInvitationUpdateWithWhereUniqueWithoutInviteeInput | Prisma.FamilyInvitationUpdateWithWhereUniqueWithoutInviteeInput[] + updateMany?: Prisma.FamilyInvitationUpdateManyWithWhereWithoutInviteeInput | Prisma.FamilyInvitationUpdateManyWithWhereWithoutInviteeInput[] + deleteMany?: Prisma.FamilyInvitationScalarWhereInput | Prisma.FamilyInvitationScalarWhereInput[] +} + +export type FamilyInvitationCreateWithoutFamilyInput = { + id?: string + inviteeEmail: string + status?: $Enums.FamilyInvitationStatus + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string + inviter: Prisma.UserCreateNestedOneWithoutSentInvitationsInput + invitee?: Prisma.UserCreateNestedOneWithoutReceivedInvitationsInput +} + +export type FamilyInvitationUncheckedCreateWithoutFamilyInput = { + id?: string + inviterId: string + inviteeId?: string | null + inviteeEmail: string + status?: $Enums.FamilyInvitationStatus + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type FamilyInvitationCreateOrConnectWithoutFamilyInput = { + where: Prisma.FamilyInvitationWhereUniqueInput + create: Prisma.XOR +} + +export type FamilyInvitationCreateManyFamilyInputEnvelope = { + data: Prisma.FamilyInvitationCreateManyFamilyInput | Prisma.FamilyInvitationCreateManyFamilyInput[] + skipDuplicates?: boolean +} + +export type FamilyInvitationUpsertWithWhereUniqueWithoutFamilyInput = { + where: Prisma.FamilyInvitationWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type FamilyInvitationUpdateWithWhereUniqueWithoutFamilyInput = { + where: Prisma.FamilyInvitationWhereUniqueInput + data: Prisma.XOR +} + +export type FamilyInvitationUpdateManyWithWhereWithoutFamilyInput = { + where: Prisma.FamilyInvitationScalarWhereInput + data: Prisma.XOR +} + +export type FamilyInvitationScalarWhereInput = { + AND?: Prisma.FamilyInvitationScalarWhereInput | Prisma.FamilyInvitationScalarWhereInput[] + OR?: Prisma.FamilyInvitationScalarWhereInput[] + NOT?: Prisma.FamilyInvitationScalarWhereInput | Prisma.FamilyInvitationScalarWhereInput[] + id?: Prisma.StringFilter<"FamilyInvitation"> | string + familyId?: Prisma.StringFilter<"FamilyInvitation"> | string + inviterId?: Prisma.StringFilter<"FamilyInvitation"> | string + inviteeId?: Prisma.StringNullableFilter<"FamilyInvitation"> | string | null + inviteeEmail?: Prisma.StringFilter<"FamilyInvitation"> | string + status?: Prisma.EnumFamilyInvitationStatusFilter<"FamilyInvitation"> | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeFilter<"FamilyInvitation"> | Date | string + createdAt?: Prisma.DateTimeFilter<"FamilyInvitation"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"FamilyInvitation"> | Date | string +} + +export type FamilyInvitationCreateWithoutInviterInput = { + id?: string + inviteeEmail: string + status?: $Enums.FamilyInvitationStatus + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string + family: Prisma.FamilyCreateNestedOneWithoutInvitationsInput + invitee?: Prisma.UserCreateNestedOneWithoutReceivedInvitationsInput +} + +export type FamilyInvitationUncheckedCreateWithoutInviterInput = { + id?: string + familyId: string + inviteeId?: string | null + inviteeEmail: string + status?: $Enums.FamilyInvitationStatus + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type FamilyInvitationCreateOrConnectWithoutInviterInput = { + where: Prisma.FamilyInvitationWhereUniqueInput + create: Prisma.XOR +} + +export type FamilyInvitationCreateManyInviterInputEnvelope = { + data: Prisma.FamilyInvitationCreateManyInviterInput | Prisma.FamilyInvitationCreateManyInviterInput[] + skipDuplicates?: boolean +} + +export type FamilyInvitationCreateWithoutInviteeInput = { + id?: string + inviteeEmail: string + status?: $Enums.FamilyInvitationStatus + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string + family: Prisma.FamilyCreateNestedOneWithoutInvitationsInput + inviter: Prisma.UserCreateNestedOneWithoutSentInvitationsInput +} + +export type FamilyInvitationUncheckedCreateWithoutInviteeInput = { + id?: string + familyId: string + inviterId: string + inviteeEmail: string + status?: $Enums.FamilyInvitationStatus + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type FamilyInvitationCreateOrConnectWithoutInviteeInput = { + where: Prisma.FamilyInvitationWhereUniqueInput + create: Prisma.XOR +} + +export type FamilyInvitationCreateManyInviteeInputEnvelope = { + data: Prisma.FamilyInvitationCreateManyInviteeInput | Prisma.FamilyInvitationCreateManyInviteeInput[] + skipDuplicates?: boolean +} + +export type FamilyInvitationUpsertWithWhereUniqueWithoutInviterInput = { + where: Prisma.FamilyInvitationWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type FamilyInvitationUpdateWithWhereUniqueWithoutInviterInput = { + where: Prisma.FamilyInvitationWhereUniqueInput + data: Prisma.XOR +} + +export type FamilyInvitationUpdateManyWithWhereWithoutInviterInput = { + where: Prisma.FamilyInvitationScalarWhereInput + data: Prisma.XOR +} + +export type FamilyInvitationUpsertWithWhereUniqueWithoutInviteeInput = { + where: Prisma.FamilyInvitationWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type FamilyInvitationUpdateWithWhereUniqueWithoutInviteeInput = { + where: Prisma.FamilyInvitationWhereUniqueInput + data: Prisma.XOR +} + +export type FamilyInvitationUpdateManyWithWhereWithoutInviteeInput = { + where: Prisma.FamilyInvitationScalarWhereInput + data: Prisma.XOR +} + +export type FamilyInvitationCreateManyFamilyInput = { + id?: string + inviterId: string + inviteeId?: string | null + inviteeEmail: string + status?: $Enums.FamilyInvitationStatus + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type FamilyInvitationUpdateWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + inviteeEmail?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumFamilyInvitationStatusFieldUpdateOperationsInput | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + inviter?: Prisma.UserUpdateOneRequiredWithoutSentInvitationsNestedInput + invitee?: Prisma.UserUpdateOneWithoutReceivedInvitationsNestedInput +} + +export type FamilyInvitationUncheckedUpdateWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + inviterId?: Prisma.StringFieldUpdateOperationsInput | string + inviteeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + inviteeEmail?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumFamilyInvitationStatusFieldUpdateOperationsInput | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FamilyInvitationUncheckedUpdateManyWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + inviterId?: Prisma.StringFieldUpdateOperationsInput | string + inviteeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + inviteeEmail?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumFamilyInvitationStatusFieldUpdateOperationsInput | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FamilyInvitationCreateManyInviterInput = { + id?: string + familyId: string + inviteeId?: string | null + inviteeEmail: string + status?: $Enums.FamilyInvitationStatus + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type FamilyInvitationCreateManyInviteeInput = { + id?: string + familyId: string + inviterId: string + inviteeEmail: string + status?: $Enums.FamilyInvitationStatus + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type FamilyInvitationUpdateWithoutInviterInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + inviteeEmail?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumFamilyInvitationStatusFieldUpdateOperationsInput | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + family?: Prisma.FamilyUpdateOneRequiredWithoutInvitationsNestedInput + invitee?: Prisma.UserUpdateOneWithoutReceivedInvitationsNestedInput +} + +export type FamilyInvitationUncheckedUpdateWithoutInviterInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.StringFieldUpdateOperationsInput | string + inviteeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + inviteeEmail?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumFamilyInvitationStatusFieldUpdateOperationsInput | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FamilyInvitationUncheckedUpdateManyWithoutInviterInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.StringFieldUpdateOperationsInput | string + inviteeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + inviteeEmail?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumFamilyInvitationStatusFieldUpdateOperationsInput | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FamilyInvitationUpdateWithoutInviteeInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + inviteeEmail?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumFamilyInvitationStatusFieldUpdateOperationsInput | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + family?: Prisma.FamilyUpdateOneRequiredWithoutInvitationsNestedInput + inviter?: Prisma.UserUpdateOneRequiredWithoutSentInvitationsNestedInput +} + +export type FamilyInvitationUncheckedUpdateWithoutInviteeInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.StringFieldUpdateOperationsInput | string + inviterId?: Prisma.StringFieldUpdateOperationsInput | string + inviteeEmail?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumFamilyInvitationStatusFieldUpdateOperationsInput | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FamilyInvitationUncheckedUpdateManyWithoutInviteeInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.StringFieldUpdateOperationsInput | string + inviterId?: Prisma.StringFieldUpdateOperationsInput | string + inviteeEmail?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumFamilyInvitationStatusFieldUpdateOperationsInput | $Enums.FamilyInvitationStatus + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type FamilyInvitationSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + familyId?: boolean + inviterId?: boolean + inviteeId?: boolean + inviteeEmail?: boolean + status?: boolean + expiresAt?: boolean + createdAt?: boolean + updatedAt?: boolean + family?: boolean | Prisma.FamilyDefaultArgs + inviter?: boolean | Prisma.UserDefaultArgs + invitee?: boolean | Prisma.FamilyInvitation$inviteeArgs +}, ExtArgs["result"]["familyInvitation"]> + +export type FamilyInvitationSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + familyId?: boolean + inviterId?: boolean + inviteeId?: boolean + inviteeEmail?: boolean + status?: boolean + expiresAt?: boolean + createdAt?: boolean + updatedAt?: boolean + family?: boolean | Prisma.FamilyDefaultArgs + inviter?: boolean | Prisma.UserDefaultArgs + invitee?: boolean | Prisma.FamilyInvitation$inviteeArgs +}, ExtArgs["result"]["familyInvitation"]> + +export type FamilyInvitationSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + familyId?: boolean + inviterId?: boolean + inviteeId?: boolean + inviteeEmail?: boolean + status?: boolean + expiresAt?: boolean + createdAt?: boolean + updatedAt?: boolean + family?: boolean | Prisma.FamilyDefaultArgs + inviter?: boolean | Prisma.UserDefaultArgs + invitee?: boolean | Prisma.FamilyInvitation$inviteeArgs +}, ExtArgs["result"]["familyInvitation"]> + +export type FamilyInvitationSelectScalar = { + id?: boolean + familyId?: boolean + inviterId?: boolean + inviteeId?: boolean + inviteeEmail?: boolean + status?: boolean + expiresAt?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type FamilyInvitationOmit = runtime.Types.Extensions.GetOmit<"id" | "familyId" | "inviterId" | "inviteeId" | "inviteeEmail" | "status" | "expiresAt" | "createdAt" | "updatedAt", ExtArgs["result"]["familyInvitation"]> +export type FamilyInvitationInclude = { + family?: boolean | Prisma.FamilyDefaultArgs + inviter?: boolean | Prisma.UserDefaultArgs + invitee?: boolean | Prisma.FamilyInvitation$inviteeArgs +} +export type FamilyInvitationIncludeCreateManyAndReturn = { + family?: boolean | Prisma.FamilyDefaultArgs + inviter?: boolean | Prisma.UserDefaultArgs + invitee?: boolean | Prisma.FamilyInvitation$inviteeArgs +} +export type FamilyInvitationIncludeUpdateManyAndReturn = { + family?: boolean | Prisma.FamilyDefaultArgs + inviter?: boolean | Prisma.UserDefaultArgs + invitee?: boolean | Prisma.FamilyInvitation$inviteeArgs +} + +export type $FamilyInvitationPayload = { + name: "FamilyInvitation" + objects: { + family: Prisma.$FamilyPayload + inviter: Prisma.$UserPayload + invitee: Prisma.$UserPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + familyId: string + inviterId: string + inviteeId: string | null + inviteeEmail: string + status: $Enums.FamilyInvitationStatus + expiresAt: Date + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["familyInvitation"]> + composites: {} +} + +export type FamilyInvitationGetPayload = runtime.Types.Result.GetResult + +export type FamilyInvitationCountArgs = + Omit & { + select?: FamilyInvitationCountAggregateInputType | true + } + +export interface FamilyInvitationDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['FamilyInvitation'], meta: { name: 'FamilyInvitation' } } + /** + * Find zero or one FamilyInvitation that matches the filter. + * @param {FamilyInvitationFindUniqueArgs} args - Arguments to find a FamilyInvitation + * @example + * // Get one FamilyInvitation + * const familyInvitation = await prisma.familyInvitation.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyInvitationClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one FamilyInvitation that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {FamilyInvitationFindUniqueOrThrowArgs} args - Arguments to find a FamilyInvitation + * @example + * // Get one FamilyInvitation + * const familyInvitation = await prisma.familyInvitation.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyInvitationClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first FamilyInvitation 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 {FamilyInvitationFindFirstArgs} args - Arguments to find a FamilyInvitation + * @example + * // Get one FamilyInvitation + * const familyInvitation = await prisma.familyInvitation.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__FamilyInvitationClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first FamilyInvitation 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 {FamilyInvitationFindFirstOrThrowArgs} args - Arguments to find a FamilyInvitation + * @example + * // Get one FamilyInvitation + * const familyInvitation = await prisma.familyInvitation.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__FamilyInvitationClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more FamilyInvitations 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 {FamilyInvitationFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all FamilyInvitations + * const familyInvitations = await prisma.familyInvitation.findMany() + * + * // Get first 10 FamilyInvitations + * const familyInvitations = await prisma.familyInvitation.findMany({ take: 10 }) + * + * // Only select the `id` + * const familyInvitationWithIdOnly = await prisma.familyInvitation.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a FamilyInvitation. + * @param {FamilyInvitationCreateArgs} args - Arguments to create a FamilyInvitation. + * @example + * // Create one FamilyInvitation + * const FamilyInvitation = await prisma.familyInvitation.create({ + * data: { + * // ... data to create a FamilyInvitation + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyInvitationClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many FamilyInvitations. + * @param {FamilyInvitationCreateManyArgs} args - Arguments to create many FamilyInvitations. + * @example + * // Create many FamilyInvitations + * const familyInvitation = await prisma.familyInvitation.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many FamilyInvitations and returns the data saved in the database. + * @param {FamilyInvitationCreateManyAndReturnArgs} args - Arguments to create many FamilyInvitations. + * @example + * // Create many FamilyInvitations + * const familyInvitation = await prisma.familyInvitation.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many FamilyInvitations and only return the `id` + * const familyInvitationWithIdOnly = await prisma.familyInvitation.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a FamilyInvitation. + * @param {FamilyInvitationDeleteArgs} args - Arguments to delete one FamilyInvitation. + * @example + * // Delete one FamilyInvitation + * const FamilyInvitation = await prisma.familyInvitation.delete({ + * where: { + * // ... filter to delete one FamilyInvitation + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyInvitationClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one FamilyInvitation. + * @param {FamilyInvitationUpdateArgs} args - Arguments to update one FamilyInvitation. + * @example + * // Update one FamilyInvitation + * const familyInvitation = await prisma.familyInvitation.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyInvitationClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more FamilyInvitations. + * @param {FamilyInvitationDeleteManyArgs} args - Arguments to filter FamilyInvitations to delete. + * @example + * // Delete a few FamilyInvitations + * const { count } = await prisma.familyInvitation.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more FamilyInvitations. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FamilyInvitationUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many FamilyInvitations + * const familyInvitation = await prisma.familyInvitation.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more FamilyInvitations and returns the data updated in the database. + * @param {FamilyInvitationUpdateManyAndReturnArgs} args - Arguments to update many FamilyInvitations. + * @example + * // Update many FamilyInvitations + * const familyInvitation = await prisma.familyInvitation.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more FamilyInvitations and only return the `id` + * const familyInvitationWithIdOnly = await prisma.familyInvitation.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one FamilyInvitation. + * @param {FamilyInvitationUpsertArgs} args - Arguments to update or create a FamilyInvitation. + * @example + * // Update or create a FamilyInvitation + * const familyInvitation = await prisma.familyInvitation.upsert({ + * create: { + * // ... data to create a FamilyInvitation + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the FamilyInvitation we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyInvitationClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of FamilyInvitations. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FamilyInvitationCountArgs} args - Arguments to filter FamilyInvitations to count. + * @example + * // Count the number of FamilyInvitations + * const count = await prisma.familyInvitation.count({ + * where: { + * // ... the filter for the FamilyInvitations we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a FamilyInvitation. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FamilyInvitationAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by FamilyInvitation. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FamilyInvitationGroupByArgs} 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 FamilyInvitationGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: FamilyInvitationGroupByArgs['orderBy'] } + : { orderBy?: FamilyInvitationGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetFamilyInvitationGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the FamilyInvitation model + */ +readonly fields: FamilyInvitationFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for FamilyInvitation. + * 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__FamilyInvitationClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + family = {}>(args?: Prisma.Subset>): Prisma.Prisma__FamilyClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + inviter = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + invitee = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the FamilyInvitation model + */ +export interface FamilyInvitationFieldRefs { + readonly id: Prisma.FieldRef<"FamilyInvitation", 'String'> + readonly familyId: Prisma.FieldRef<"FamilyInvitation", 'String'> + readonly inviterId: Prisma.FieldRef<"FamilyInvitation", 'String'> + readonly inviteeId: Prisma.FieldRef<"FamilyInvitation", 'String'> + readonly inviteeEmail: Prisma.FieldRef<"FamilyInvitation", 'String'> + readonly status: Prisma.FieldRef<"FamilyInvitation", 'FamilyInvitationStatus'> + readonly expiresAt: Prisma.FieldRef<"FamilyInvitation", 'DateTime'> + readonly createdAt: Prisma.FieldRef<"FamilyInvitation", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"FamilyInvitation", 'DateTime'> +} + + +// Custom InputTypes +/** + * FamilyInvitation findUnique + */ +export type FamilyInvitationFindUniqueArgs = { + /** + * Select specific fields to fetch from the FamilyInvitation + */ + select?: Prisma.FamilyInvitationSelect | null + /** + * Omit specific fields from the FamilyInvitation + */ + omit?: Prisma.FamilyInvitationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInvitationInclude | null + /** + * Filter, which FamilyInvitation to fetch. + */ + where: Prisma.FamilyInvitationWhereUniqueInput +} + +/** + * FamilyInvitation findUniqueOrThrow + */ +export type FamilyInvitationFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the FamilyInvitation + */ + select?: Prisma.FamilyInvitationSelect | null + /** + * Omit specific fields from the FamilyInvitation + */ + omit?: Prisma.FamilyInvitationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInvitationInclude | null + /** + * Filter, which FamilyInvitation to fetch. + */ + where: Prisma.FamilyInvitationWhereUniqueInput +} + +/** + * FamilyInvitation findFirst + */ +export type FamilyInvitationFindFirstArgs = { + /** + * Select specific fields to fetch from the FamilyInvitation + */ + select?: Prisma.FamilyInvitationSelect | null + /** + * Omit specific fields from the FamilyInvitation + */ + omit?: Prisma.FamilyInvitationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInvitationInclude | null + /** + * Filter, which FamilyInvitation to fetch. + */ + where?: Prisma.FamilyInvitationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of FamilyInvitations to fetch. + */ + orderBy?: Prisma.FamilyInvitationOrderByWithRelationInput | Prisma.FamilyInvitationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for FamilyInvitations. + */ + cursor?: Prisma.FamilyInvitationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` FamilyInvitations 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` FamilyInvitations. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of FamilyInvitations. + */ + distinct?: Prisma.FamilyInvitationScalarFieldEnum | Prisma.FamilyInvitationScalarFieldEnum[] +} + +/** + * FamilyInvitation findFirstOrThrow + */ +export type FamilyInvitationFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the FamilyInvitation + */ + select?: Prisma.FamilyInvitationSelect | null + /** + * Omit specific fields from the FamilyInvitation + */ + omit?: Prisma.FamilyInvitationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInvitationInclude | null + /** + * Filter, which FamilyInvitation to fetch. + */ + where?: Prisma.FamilyInvitationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of FamilyInvitations to fetch. + */ + orderBy?: Prisma.FamilyInvitationOrderByWithRelationInput | Prisma.FamilyInvitationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for FamilyInvitations. + */ + cursor?: Prisma.FamilyInvitationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` FamilyInvitations 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` FamilyInvitations. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of FamilyInvitations. + */ + distinct?: Prisma.FamilyInvitationScalarFieldEnum | Prisma.FamilyInvitationScalarFieldEnum[] +} + +/** + * FamilyInvitation findMany + */ +export type FamilyInvitationFindManyArgs = { + /** + * Select specific fields to fetch from the FamilyInvitation + */ + select?: Prisma.FamilyInvitationSelect | null + /** + * Omit specific fields from the FamilyInvitation + */ + omit?: Prisma.FamilyInvitationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInvitationInclude | null + /** + * Filter, which FamilyInvitations to fetch. + */ + where?: Prisma.FamilyInvitationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of FamilyInvitations to fetch. + */ + orderBy?: Prisma.FamilyInvitationOrderByWithRelationInput | Prisma.FamilyInvitationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing FamilyInvitations. + */ + cursor?: Prisma.FamilyInvitationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` FamilyInvitations 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` FamilyInvitations. + */ + skip?: number + distinct?: Prisma.FamilyInvitationScalarFieldEnum | Prisma.FamilyInvitationScalarFieldEnum[] +} + +/** + * FamilyInvitation create + */ +export type FamilyInvitationCreateArgs = { + /** + * Select specific fields to fetch from the FamilyInvitation + */ + select?: Prisma.FamilyInvitationSelect | null + /** + * Omit specific fields from the FamilyInvitation + */ + omit?: Prisma.FamilyInvitationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInvitationInclude | null + /** + * The data needed to create a FamilyInvitation. + */ + data: Prisma.XOR +} + +/** + * FamilyInvitation createMany + */ +export type FamilyInvitationCreateManyArgs = { + /** + * The data used to create many FamilyInvitations. + */ + data: Prisma.FamilyInvitationCreateManyInput | Prisma.FamilyInvitationCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * FamilyInvitation createManyAndReturn + */ +export type FamilyInvitationCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the FamilyInvitation + */ + select?: Prisma.FamilyInvitationSelectCreateManyAndReturn | null + /** + * Omit specific fields from the FamilyInvitation + */ + omit?: Prisma.FamilyInvitationOmit | null + /** + * The data used to create many FamilyInvitations. + */ + data: Prisma.FamilyInvitationCreateManyInput | Prisma.FamilyInvitationCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInvitationIncludeCreateManyAndReturn | null +} + +/** + * FamilyInvitation update + */ +export type FamilyInvitationUpdateArgs = { + /** + * Select specific fields to fetch from the FamilyInvitation + */ + select?: Prisma.FamilyInvitationSelect | null + /** + * Omit specific fields from the FamilyInvitation + */ + omit?: Prisma.FamilyInvitationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInvitationInclude | null + /** + * The data needed to update a FamilyInvitation. + */ + data: Prisma.XOR + /** + * Choose, which FamilyInvitation to update. + */ + where: Prisma.FamilyInvitationWhereUniqueInput +} + +/** + * FamilyInvitation updateMany + */ +export type FamilyInvitationUpdateManyArgs = { + /** + * The data used to update FamilyInvitations. + */ + data: Prisma.XOR + /** + * Filter which FamilyInvitations to update + */ + where?: Prisma.FamilyInvitationWhereInput + /** + * Limit how many FamilyInvitations to update. + */ + limit?: number +} + +/** + * FamilyInvitation updateManyAndReturn + */ +export type FamilyInvitationUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the FamilyInvitation + */ + select?: Prisma.FamilyInvitationSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the FamilyInvitation + */ + omit?: Prisma.FamilyInvitationOmit | null + /** + * The data used to update FamilyInvitations. + */ + data: Prisma.XOR + /** + * Filter which FamilyInvitations to update + */ + where?: Prisma.FamilyInvitationWhereInput + /** + * Limit how many FamilyInvitations to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInvitationIncludeUpdateManyAndReturn | null +} + +/** + * FamilyInvitation upsert + */ +export type FamilyInvitationUpsertArgs = { + /** + * Select specific fields to fetch from the FamilyInvitation + */ + select?: Prisma.FamilyInvitationSelect | null + /** + * Omit specific fields from the FamilyInvitation + */ + omit?: Prisma.FamilyInvitationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInvitationInclude | null + /** + * The filter to search for the FamilyInvitation to update in case it exists. + */ + where: Prisma.FamilyInvitationWhereUniqueInput + /** + * In case the FamilyInvitation found by the `where` argument doesn't exist, create a new FamilyInvitation with this data. + */ + create: Prisma.XOR + /** + * In case the FamilyInvitation was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * FamilyInvitation delete + */ +export type FamilyInvitationDeleteArgs = { + /** + * Select specific fields to fetch from the FamilyInvitation + */ + select?: Prisma.FamilyInvitationSelect | null + /** + * Omit specific fields from the FamilyInvitation + */ + omit?: Prisma.FamilyInvitationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInvitationInclude | null + /** + * Filter which FamilyInvitation to delete. + */ + where: Prisma.FamilyInvitationWhereUniqueInput +} + +/** + * FamilyInvitation deleteMany + */ +export type FamilyInvitationDeleteManyArgs = { + /** + * Filter which FamilyInvitations to delete + */ + where?: Prisma.FamilyInvitationWhereInput + /** + * Limit how many FamilyInvitations to delete. + */ + limit?: number +} + +/** + * FamilyInvitation.invitee + */ +export type FamilyInvitation$inviteeArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + where?: Prisma.UserWhereInput +} + +/** + * FamilyInvitation without action + */ +export type FamilyInvitationDefaultArgs = { + /** + * Select specific fields to fetch from the FamilyInvitation + */ + select?: Prisma.FamilyInvitationSelect | null + /** + * Omit specific fields from the FamilyInvitation + */ + omit?: Prisma.FamilyInvitationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInvitationInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/FamilyMember.ts b/apps/backend/prisma/generated/generated/prisma/models/FamilyMember.ts new file mode 100644 index 00000000..3c674b31 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/FamilyMember.ts @@ -0,0 +1,1637 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `FamilyMember` 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 FamilyMember + * + */ +export type FamilyMemberModel = runtime.Types.Result.DefaultSelection + +export type AggregateFamilyMember = { + _count: FamilyMemberCountAggregateOutputType | null + _avg: FamilyMemberAvgAggregateOutputType | null + _sum: FamilyMemberSumAggregateOutputType | null + _min: FamilyMemberMinAggregateOutputType | null + _max: FamilyMemberMaxAggregateOutputType | null +} + +export type FamilyMemberAvgAggregateOutputType = { + balance: runtime.Decimal | null +} + +export type FamilyMemberSumAggregateOutputType = { + balance: runtime.Decimal | null +} + +export type FamilyMemberMinAggregateOutputType = { + id: string | null + familyId: string | null + userId: string | null + role: $Enums.FamilyMemberRole | null + balance: runtime.Decimal | null + joinedAt: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type FamilyMemberMaxAggregateOutputType = { + id: string | null + familyId: string | null + userId: string | null + role: $Enums.FamilyMemberRole | null + balance: runtime.Decimal | null + joinedAt: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type FamilyMemberCountAggregateOutputType = { + id: number + familyId: number + userId: number + role: number + balance: number + joinedAt: number + createdAt: number + updatedAt: number + _all: number +} + + +export type FamilyMemberAvgAggregateInputType = { + balance?: true +} + +export type FamilyMemberSumAggregateInputType = { + balance?: true +} + +export type FamilyMemberMinAggregateInputType = { + id?: true + familyId?: true + userId?: true + role?: true + balance?: true + joinedAt?: true + createdAt?: true + updatedAt?: true +} + +export type FamilyMemberMaxAggregateInputType = { + id?: true + familyId?: true + userId?: true + role?: true + balance?: true + joinedAt?: true + createdAt?: true + updatedAt?: true +} + +export type FamilyMemberCountAggregateInputType = { + id?: true + familyId?: true + userId?: true + role?: true + balance?: true + joinedAt?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type FamilyMemberAggregateArgs = { + /** + * Filter which FamilyMember to aggregate. + */ + where?: Prisma.FamilyMemberWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of FamilyMembers to fetch. + */ + orderBy?: Prisma.FamilyMemberOrderByWithRelationInput | Prisma.FamilyMemberOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.FamilyMemberWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` FamilyMembers 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` FamilyMembers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned FamilyMembers + **/ + _count?: true | FamilyMemberCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: FamilyMemberAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: FamilyMemberSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: FamilyMemberMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: FamilyMemberMaxAggregateInputType +} + +export type GetFamilyMemberAggregateType = { + [P in keyof T & keyof AggregateFamilyMember]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type FamilyMemberGroupByArgs = { + where?: Prisma.FamilyMemberWhereInput + orderBy?: Prisma.FamilyMemberOrderByWithAggregationInput | Prisma.FamilyMemberOrderByWithAggregationInput[] + by: Prisma.FamilyMemberScalarFieldEnum[] | Prisma.FamilyMemberScalarFieldEnum + having?: Prisma.FamilyMemberScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: FamilyMemberCountAggregateInputType | true + _avg?: FamilyMemberAvgAggregateInputType + _sum?: FamilyMemberSumAggregateInputType + _min?: FamilyMemberMinAggregateInputType + _max?: FamilyMemberMaxAggregateInputType +} + +export type FamilyMemberGroupByOutputType = { + id: string + familyId: string + userId: string + role: $Enums.FamilyMemberRole + balance: runtime.Decimal + joinedAt: Date + createdAt: Date + updatedAt: Date + _count: FamilyMemberCountAggregateOutputType | null + _avg: FamilyMemberAvgAggregateOutputType | null + _sum: FamilyMemberSumAggregateOutputType | null + _min: FamilyMemberMinAggregateOutputType | null + _max: FamilyMemberMaxAggregateOutputType | null +} + +type GetFamilyMemberGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof FamilyMemberGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type FamilyMemberWhereInput = { + AND?: Prisma.FamilyMemberWhereInput | Prisma.FamilyMemberWhereInput[] + OR?: Prisma.FamilyMemberWhereInput[] + NOT?: Prisma.FamilyMemberWhereInput | Prisma.FamilyMemberWhereInput[] + id?: Prisma.StringFilter<"FamilyMember"> | string + familyId?: Prisma.StringFilter<"FamilyMember"> | string + userId?: Prisma.StringFilter<"FamilyMember"> | string + role?: Prisma.EnumFamilyMemberRoleFilter<"FamilyMember"> | $Enums.FamilyMemberRole + balance?: Prisma.DecimalFilter<"FamilyMember"> | runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Prisma.DateTimeFilter<"FamilyMember"> | Date | string + createdAt?: Prisma.DateTimeFilter<"FamilyMember"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"FamilyMember"> | Date | string + family?: Prisma.XOR + user?: Prisma.XOR +} + +export type FamilyMemberOrderByWithRelationInput = { + id?: Prisma.SortOrder + familyId?: Prisma.SortOrder + userId?: Prisma.SortOrder + role?: Prisma.SortOrder + balance?: Prisma.SortOrder + joinedAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + family?: Prisma.FamilyOrderByWithRelationInput + user?: Prisma.UserOrderByWithRelationInput +} + +export type FamilyMemberWhereUniqueInput = Prisma.AtLeast<{ + id?: string + familyId_userId?: Prisma.FamilyMemberFamilyIdUserIdCompoundUniqueInput + AND?: Prisma.FamilyMemberWhereInput | Prisma.FamilyMemberWhereInput[] + OR?: Prisma.FamilyMemberWhereInput[] + NOT?: Prisma.FamilyMemberWhereInput | Prisma.FamilyMemberWhereInput[] + familyId?: Prisma.StringFilter<"FamilyMember"> | string + userId?: Prisma.StringFilter<"FamilyMember"> | string + role?: Prisma.EnumFamilyMemberRoleFilter<"FamilyMember"> | $Enums.FamilyMemberRole + balance?: Prisma.DecimalFilter<"FamilyMember"> | runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Prisma.DateTimeFilter<"FamilyMember"> | Date | string + createdAt?: Prisma.DateTimeFilter<"FamilyMember"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"FamilyMember"> | Date | string + family?: Prisma.XOR + user?: Prisma.XOR +}, "id" | "familyId_userId"> + +export type FamilyMemberOrderByWithAggregationInput = { + id?: Prisma.SortOrder + familyId?: Prisma.SortOrder + userId?: Prisma.SortOrder + role?: Prisma.SortOrder + balance?: Prisma.SortOrder + joinedAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.FamilyMemberCountOrderByAggregateInput + _avg?: Prisma.FamilyMemberAvgOrderByAggregateInput + _max?: Prisma.FamilyMemberMaxOrderByAggregateInput + _min?: Prisma.FamilyMemberMinOrderByAggregateInput + _sum?: Prisma.FamilyMemberSumOrderByAggregateInput +} + +export type FamilyMemberScalarWhereWithAggregatesInput = { + AND?: Prisma.FamilyMemberScalarWhereWithAggregatesInput | Prisma.FamilyMemberScalarWhereWithAggregatesInput[] + OR?: Prisma.FamilyMemberScalarWhereWithAggregatesInput[] + NOT?: Prisma.FamilyMemberScalarWhereWithAggregatesInput | Prisma.FamilyMemberScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"FamilyMember"> | string + familyId?: Prisma.StringWithAggregatesFilter<"FamilyMember"> | string + userId?: Prisma.StringWithAggregatesFilter<"FamilyMember"> | string + role?: Prisma.EnumFamilyMemberRoleWithAggregatesFilter<"FamilyMember"> | $Enums.FamilyMemberRole + balance?: Prisma.DecimalWithAggregatesFilter<"FamilyMember"> | runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Prisma.DateTimeWithAggregatesFilter<"FamilyMember"> | Date | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"FamilyMember"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"FamilyMember"> | Date | string +} + +export type FamilyMemberCreateInput = { + id?: string + role?: $Enums.FamilyMemberRole + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string + family: Prisma.FamilyCreateNestedOneWithoutMembersInput + user: Prisma.UserCreateNestedOneWithoutFamilyMembershipsInput +} + +export type FamilyMemberUncheckedCreateInput = { + id?: string + familyId: string + userId: string + role?: $Enums.FamilyMemberRole + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type FamilyMemberUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumFamilyMemberRoleFieldUpdateOperationsInput | $Enums.FamilyMemberRole + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + family?: Prisma.FamilyUpdateOneRequiredWithoutMembersNestedInput + user?: Prisma.UserUpdateOneRequiredWithoutFamilyMembershipsNestedInput +} + +export type FamilyMemberUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumFamilyMemberRoleFieldUpdateOperationsInput | $Enums.FamilyMemberRole + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FamilyMemberCreateManyInput = { + id?: string + familyId: string + userId: string + role?: $Enums.FamilyMemberRole + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type FamilyMemberUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumFamilyMemberRoleFieldUpdateOperationsInput | $Enums.FamilyMemberRole + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FamilyMemberUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumFamilyMemberRoleFieldUpdateOperationsInput | $Enums.FamilyMemberRole + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FamilyMemberListRelationFilter = { + every?: Prisma.FamilyMemberWhereInput + some?: Prisma.FamilyMemberWhereInput + none?: Prisma.FamilyMemberWhereInput +} + +export type FamilyMemberOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type FamilyMemberFamilyIdUserIdCompoundUniqueInput = { + familyId: string + userId: string +} + +export type FamilyMemberCountOrderByAggregateInput = { + id?: Prisma.SortOrder + familyId?: Prisma.SortOrder + userId?: Prisma.SortOrder + role?: Prisma.SortOrder + balance?: Prisma.SortOrder + joinedAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type FamilyMemberAvgOrderByAggregateInput = { + balance?: Prisma.SortOrder +} + +export type FamilyMemberMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + familyId?: Prisma.SortOrder + userId?: Prisma.SortOrder + role?: Prisma.SortOrder + balance?: Prisma.SortOrder + joinedAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type FamilyMemberMinOrderByAggregateInput = { + id?: Prisma.SortOrder + familyId?: Prisma.SortOrder + userId?: Prisma.SortOrder + role?: Prisma.SortOrder + balance?: Prisma.SortOrder + joinedAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type FamilyMemberSumOrderByAggregateInput = { + balance?: Prisma.SortOrder +} + +export type FamilyMemberCreateNestedManyWithoutFamilyInput = { + create?: Prisma.XOR | Prisma.FamilyMemberCreateWithoutFamilyInput[] | Prisma.FamilyMemberUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.FamilyMemberCreateOrConnectWithoutFamilyInput | Prisma.FamilyMemberCreateOrConnectWithoutFamilyInput[] + createMany?: Prisma.FamilyMemberCreateManyFamilyInputEnvelope + connect?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] +} + +export type FamilyMemberUncheckedCreateNestedManyWithoutFamilyInput = { + create?: Prisma.XOR | Prisma.FamilyMemberCreateWithoutFamilyInput[] | Prisma.FamilyMemberUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.FamilyMemberCreateOrConnectWithoutFamilyInput | Prisma.FamilyMemberCreateOrConnectWithoutFamilyInput[] + createMany?: Prisma.FamilyMemberCreateManyFamilyInputEnvelope + connect?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] +} + +export type FamilyMemberUpdateManyWithoutFamilyNestedInput = { + create?: Prisma.XOR | Prisma.FamilyMemberCreateWithoutFamilyInput[] | Prisma.FamilyMemberUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.FamilyMemberCreateOrConnectWithoutFamilyInput | Prisma.FamilyMemberCreateOrConnectWithoutFamilyInput[] + upsert?: Prisma.FamilyMemberUpsertWithWhereUniqueWithoutFamilyInput | Prisma.FamilyMemberUpsertWithWhereUniqueWithoutFamilyInput[] + createMany?: Prisma.FamilyMemberCreateManyFamilyInputEnvelope + set?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] + disconnect?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] + delete?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] + connect?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] + update?: Prisma.FamilyMemberUpdateWithWhereUniqueWithoutFamilyInput | Prisma.FamilyMemberUpdateWithWhereUniqueWithoutFamilyInput[] + updateMany?: Prisma.FamilyMemberUpdateManyWithWhereWithoutFamilyInput | Prisma.FamilyMemberUpdateManyWithWhereWithoutFamilyInput[] + deleteMany?: Prisma.FamilyMemberScalarWhereInput | Prisma.FamilyMemberScalarWhereInput[] +} + +export type FamilyMemberUncheckedUpdateManyWithoutFamilyNestedInput = { + create?: Prisma.XOR | Prisma.FamilyMemberCreateWithoutFamilyInput[] | Prisma.FamilyMemberUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.FamilyMemberCreateOrConnectWithoutFamilyInput | Prisma.FamilyMemberCreateOrConnectWithoutFamilyInput[] + upsert?: Prisma.FamilyMemberUpsertWithWhereUniqueWithoutFamilyInput | Prisma.FamilyMemberUpsertWithWhereUniqueWithoutFamilyInput[] + createMany?: Prisma.FamilyMemberCreateManyFamilyInputEnvelope + set?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] + disconnect?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] + delete?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] + connect?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] + update?: Prisma.FamilyMemberUpdateWithWhereUniqueWithoutFamilyInput | Prisma.FamilyMemberUpdateWithWhereUniqueWithoutFamilyInput[] + updateMany?: Prisma.FamilyMemberUpdateManyWithWhereWithoutFamilyInput | Prisma.FamilyMemberUpdateManyWithWhereWithoutFamilyInput[] + deleteMany?: Prisma.FamilyMemberScalarWhereInput | Prisma.FamilyMemberScalarWhereInput[] +} + +export type EnumFamilyMemberRoleFieldUpdateOperationsInput = { + set?: $Enums.FamilyMemberRole +} + +export type FamilyMemberCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.FamilyMemberCreateWithoutUserInput[] | Prisma.FamilyMemberUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.FamilyMemberCreateOrConnectWithoutUserInput | Prisma.FamilyMemberCreateOrConnectWithoutUserInput[] + createMany?: Prisma.FamilyMemberCreateManyUserInputEnvelope + connect?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] +} + +export type FamilyMemberUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.FamilyMemberCreateWithoutUserInput[] | Prisma.FamilyMemberUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.FamilyMemberCreateOrConnectWithoutUserInput | Prisma.FamilyMemberCreateOrConnectWithoutUserInput[] + createMany?: Prisma.FamilyMemberCreateManyUserInputEnvelope + connect?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] +} + +export type FamilyMemberUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.FamilyMemberCreateWithoutUserInput[] | Prisma.FamilyMemberUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.FamilyMemberCreateOrConnectWithoutUserInput | Prisma.FamilyMemberCreateOrConnectWithoutUserInput[] + upsert?: Prisma.FamilyMemberUpsertWithWhereUniqueWithoutUserInput | Prisma.FamilyMemberUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.FamilyMemberCreateManyUserInputEnvelope + set?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] + disconnect?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] + delete?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] + connect?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] + update?: Prisma.FamilyMemberUpdateWithWhereUniqueWithoutUserInput | Prisma.FamilyMemberUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.FamilyMemberUpdateManyWithWhereWithoutUserInput | Prisma.FamilyMemberUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.FamilyMemberScalarWhereInput | Prisma.FamilyMemberScalarWhereInput[] +} + +export type FamilyMemberUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.FamilyMemberCreateWithoutUserInput[] | Prisma.FamilyMemberUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.FamilyMemberCreateOrConnectWithoutUserInput | Prisma.FamilyMemberCreateOrConnectWithoutUserInput[] + upsert?: Prisma.FamilyMemberUpsertWithWhereUniqueWithoutUserInput | Prisma.FamilyMemberUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.FamilyMemberCreateManyUserInputEnvelope + set?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] + disconnect?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] + delete?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] + connect?: Prisma.FamilyMemberWhereUniqueInput | Prisma.FamilyMemberWhereUniqueInput[] + update?: Prisma.FamilyMemberUpdateWithWhereUniqueWithoutUserInput | Prisma.FamilyMemberUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.FamilyMemberUpdateManyWithWhereWithoutUserInput | Prisma.FamilyMemberUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.FamilyMemberScalarWhereInput | Prisma.FamilyMemberScalarWhereInput[] +} + +export type FamilyMemberCreateWithoutFamilyInput = { + id?: string + role?: $Enums.FamilyMemberRole + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutFamilyMembershipsInput +} + +export type FamilyMemberUncheckedCreateWithoutFamilyInput = { + id?: string + userId: string + role?: $Enums.FamilyMemberRole + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type FamilyMemberCreateOrConnectWithoutFamilyInput = { + where: Prisma.FamilyMemberWhereUniqueInput + create: Prisma.XOR +} + +export type FamilyMemberCreateManyFamilyInputEnvelope = { + data: Prisma.FamilyMemberCreateManyFamilyInput | Prisma.FamilyMemberCreateManyFamilyInput[] + skipDuplicates?: boolean +} + +export type FamilyMemberUpsertWithWhereUniqueWithoutFamilyInput = { + where: Prisma.FamilyMemberWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type FamilyMemberUpdateWithWhereUniqueWithoutFamilyInput = { + where: Prisma.FamilyMemberWhereUniqueInput + data: Prisma.XOR +} + +export type FamilyMemberUpdateManyWithWhereWithoutFamilyInput = { + where: Prisma.FamilyMemberScalarWhereInput + data: Prisma.XOR +} + +export type FamilyMemberScalarWhereInput = { + AND?: Prisma.FamilyMemberScalarWhereInput | Prisma.FamilyMemberScalarWhereInput[] + OR?: Prisma.FamilyMemberScalarWhereInput[] + NOT?: Prisma.FamilyMemberScalarWhereInput | Prisma.FamilyMemberScalarWhereInput[] + id?: Prisma.StringFilter<"FamilyMember"> | string + familyId?: Prisma.StringFilter<"FamilyMember"> | string + userId?: Prisma.StringFilter<"FamilyMember"> | string + role?: Prisma.EnumFamilyMemberRoleFilter<"FamilyMember"> | $Enums.FamilyMemberRole + balance?: Prisma.DecimalFilter<"FamilyMember"> | runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Prisma.DateTimeFilter<"FamilyMember"> | Date | string + createdAt?: Prisma.DateTimeFilter<"FamilyMember"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"FamilyMember"> | Date | string +} + +export type FamilyMemberCreateWithoutUserInput = { + id?: string + role?: $Enums.FamilyMemberRole + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string + family: Prisma.FamilyCreateNestedOneWithoutMembersInput +} + +export type FamilyMemberUncheckedCreateWithoutUserInput = { + id?: string + familyId: string + role?: $Enums.FamilyMemberRole + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type FamilyMemberCreateOrConnectWithoutUserInput = { + where: Prisma.FamilyMemberWhereUniqueInput + create: Prisma.XOR +} + +export type FamilyMemberCreateManyUserInputEnvelope = { + data: Prisma.FamilyMemberCreateManyUserInput | Prisma.FamilyMemberCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type FamilyMemberUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.FamilyMemberWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type FamilyMemberUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.FamilyMemberWhereUniqueInput + data: Prisma.XOR +} + +export type FamilyMemberUpdateManyWithWhereWithoutUserInput = { + where: Prisma.FamilyMemberScalarWhereInput + data: Prisma.XOR +} + +export type FamilyMemberCreateManyFamilyInput = { + id?: string + userId: string + role?: $Enums.FamilyMemberRole + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type FamilyMemberUpdateWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumFamilyMemberRoleFieldUpdateOperationsInput | $Enums.FamilyMemberRole + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutFamilyMembershipsNestedInput +} + +export type FamilyMemberUncheckedUpdateWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumFamilyMemberRoleFieldUpdateOperationsInput | $Enums.FamilyMemberRole + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FamilyMemberUncheckedUpdateManyWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumFamilyMemberRoleFieldUpdateOperationsInput | $Enums.FamilyMemberRole + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FamilyMemberCreateManyUserInput = { + id?: string + familyId: string + role?: $Enums.FamilyMemberRole + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type FamilyMemberUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumFamilyMemberRoleFieldUpdateOperationsInput | $Enums.FamilyMemberRole + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + family?: Prisma.FamilyUpdateOneRequiredWithoutMembersNestedInput +} + +export type FamilyMemberUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumFamilyMemberRoleFieldUpdateOperationsInput | $Enums.FamilyMemberRole + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FamilyMemberUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumFamilyMemberRoleFieldUpdateOperationsInput | $Enums.FamilyMemberRole + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + joinedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type FamilyMemberSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + familyId?: boolean + userId?: boolean + role?: boolean + balance?: boolean + joinedAt?: boolean + createdAt?: boolean + updatedAt?: boolean + family?: boolean | Prisma.FamilyDefaultArgs + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["familyMember"]> + +export type FamilyMemberSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + familyId?: boolean + userId?: boolean + role?: boolean + balance?: boolean + joinedAt?: boolean + createdAt?: boolean + updatedAt?: boolean + family?: boolean | Prisma.FamilyDefaultArgs + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["familyMember"]> + +export type FamilyMemberSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + familyId?: boolean + userId?: boolean + role?: boolean + balance?: boolean + joinedAt?: boolean + createdAt?: boolean + updatedAt?: boolean + family?: boolean | Prisma.FamilyDefaultArgs + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["familyMember"]> + +export type FamilyMemberSelectScalar = { + id?: boolean + familyId?: boolean + userId?: boolean + role?: boolean + balance?: boolean + joinedAt?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type FamilyMemberOmit = runtime.Types.Extensions.GetOmit<"id" | "familyId" | "userId" | "role" | "balance" | "joinedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["familyMember"]> +export type FamilyMemberInclude = { + family?: boolean | Prisma.FamilyDefaultArgs + user?: boolean | Prisma.UserDefaultArgs +} +export type FamilyMemberIncludeCreateManyAndReturn = { + family?: boolean | Prisma.FamilyDefaultArgs + user?: boolean | Prisma.UserDefaultArgs +} +export type FamilyMemberIncludeUpdateManyAndReturn = { + family?: boolean | Prisma.FamilyDefaultArgs + user?: boolean | Prisma.UserDefaultArgs +} + +export type $FamilyMemberPayload = { + name: "FamilyMember" + objects: { + family: Prisma.$FamilyPayload + user: Prisma.$UserPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + familyId: string + userId: string + role: $Enums.FamilyMemberRole + balance: runtime.Decimal + joinedAt: Date + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["familyMember"]> + composites: {} +} + +export type FamilyMemberGetPayload = runtime.Types.Result.GetResult + +export type FamilyMemberCountArgs = + Omit & { + select?: FamilyMemberCountAggregateInputType | true + } + +export interface FamilyMemberDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['FamilyMember'], meta: { name: 'FamilyMember' } } + /** + * Find zero or one FamilyMember that matches the filter. + * @param {FamilyMemberFindUniqueArgs} args - Arguments to find a FamilyMember + * @example + * // Get one FamilyMember + * const familyMember = await prisma.familyMember.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyMemberClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one FamilyMember that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {FamilyMemberFindUniqueOrThrowArgs} args - Arguments to find a FamilyMember + * @example + * // Get one FamilyMember + * const familyMember = await prisma.familyMember.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyMemberClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first FamilyMember 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 {FamilyMemberFindFirstArgs} args - Arguments to find a FamilyMember + * @example + * // Get one FamilyMember + * const familyMember = await prisma.familyMember.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__FamilyMemberClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first FamilyMember 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 {FamilyMemberFindFirstOrThrowArgs} args - Arguments to find a FamilyMember + * @example + * // Get one FamilyMember + * const familyMember = await prisma.familyMember.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__FamilyMemberClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more FamilyMembers 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 {FamilyMemberFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all FamilyMembers + * const familyMembers = await prisma.familyMember.findMany() + * + * // Get first 10 FamilyMembers + * const familyMembers = await prisma.familyMember.findMany({ take: 10 }) + * + * // Only select the `id` + * const familyMemberWithIdOnly = await prisma.familyMember.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a FamilyMember. + * @param {FamilyMemberCreateArgs} args - Arguments to create a FamilyMember. + * @example + * // Create one FamilyMember + * const FamilyMember = await prisma.familyMember.create({ + * data: { + * // ... data to create a FamilyMember + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyMemberClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many FamilyMembers. + * @param {FamilyMemberCreateManyArgs} args - Arguments to create many FamilyMembers. + * @example + * // Create many FamilyMembers + * const familyMember = await prisma.familyMember.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many FamilyMembers and returns the data saved in the database. + * @param {FamilyMemberCreateManyAndReturnArgs} args - Arguments to create many FamilyMembers. + * @example + * // Create many FamilyMembers + * const familyMember = await prisma.familyMember.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many FamilyMembers and only return the `id` + * const familyMemberWithIdOnly = await prisma.familyMember.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a FamilyMember. + * @param {FamilyMemberDeleteArgs} args - Arguments to delete one FamilyMember. + * @example + * // Delete one FamilyMember + * const FamilyMember = await prisma.familyMember.delete({ + * where: { + * // ... filter to delete one FamilyMember + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyMemberClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one FamilyMember. + * @param {FamilyMemberUpdateArgs} args - Arguments to update one FamilyMember. + * @example + * // Update one FamilyMember + * const familyMember = await prisma.familyMember.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyMemberClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more FamilyMembers. + * @param {FamilyMemberDeleteManyArgs} args - Arguments to filter FamilyMembers to delete. + * @example + * // Delete a few FamilyMembers + * const { count } = await prisma.familyMember.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more FamilyMembers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FamilyMemberUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many FamilyMembers + * const familyMember = await prisma.familyMember.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more FamilyMembers and returns the data updated in the database. + * @param {FamilyMemberUpdateManyAndReturnArgs} args - Arguments to update many FamilyMembers. + * @example + * // Update many FamilyMembers + * const familyMember = await prisma.familyMember.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more FamilyMembers and only return the `id` + * const familyMemberWithIdOnly = await prisma.familyMember.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one FamilyMember. + * @param {FamilyMemberUpsertArgs} args - Arguments to update or create a FamilyMember. + * @example + * // Update or create a FamilyMember + * const familyMember = await prisma.familyMember.upsert({ + * create: { + * // ... data to create a FamilyMember + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the FamilyMember we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__FamilyMemberClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of FamilyMembers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FamilyMemberCountArgs} args - Arguments to filter FamilyMembers to count. + * @example + * // Count the number of FamilyMembers + * const count = await prisma.familyMember.count({ + * where: { + * // ... the filter for the FamilyMembers we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a FamilyMember. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FamilyMemberAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by FamilyMember. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FamilyMemberGroupByArgs} 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 FamilyMemberGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: FamilyMemberGroupByArgs['orderBy'] } + : { orderBy?: FamilyMemberGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetFamilyMemberGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the FamilyMember model + */ +readonly fields: FamilyMemberFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for FamilyMember. + * 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__FamilyMemberClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + family = {}>(args?: Prisma.Subset>): Prisma.Prisma__FamilyClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the FamilyMember model + */ +export interface FamilyMemberFieldRefs { + readonly id: Prisma.FieldRef<"FamilyMember", 'String'> + readonly familyId: Prisma.FieldRef<"FamilyMember", 'String'> + readonly userId: Prisma.FieldRef<"FamilyMember", 'String'> + readonly role: Prisma.FieldRef<"FamilyMember", 'FamilyMemberRole'> + readonly balance: Prisma.FieldRef<"FamilyMember", 'Decimal'> + readonly joinedAt: Prisma.FieldRef<"FamilyMember", 'DateTime'> + readonly createdAt: Prisma.FieldRef<"FamilyMember", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"FamilyMember", 'DateTime'> +} + + +// Custom InputTypes +/** + * FamilyMember findUnique + */ +export type FamilyMemberFindUniqueArgs = { + /** + * Select specific fields to fetch from the FamilyMember + */ + select?: Prisma.FamilyMemberSelect | null + /** + * Omit specific fields from the FamilyMember + */ + omit?: Prisma.FamilyMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyMemberInclude | null + /** + * Filter, which FamilyMember to fetch. + */ + where: Prisma.FamilyMemberWhereUniqueInput +} + +/** + * FamilyMember findUniqueOrThrow + */ +export type FamilyMemberFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the FamilyMember + */ + select?: Prisma.FamilyMemberSelect | null + /** + * Omit specific fields from the FamilyMember + */ + omit?: Prisma.FamilyMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyMemberInclude | null + /** + * Filter, which FamilyMember to fetch. + */ + where: Prisma.FamilyMemberWhereUniqueInput +} + +/** + * FamilyMember findFirst + */ +export type FamilyMemberFindFirstArgs = { + /** + * Select specific fields to fetch from the FamilyMember + */ + select?: Prisma.FamilyMemberSelect | null + /** + * Omit specific fields from the FamilyMember + */ + omit?: Prisma.FamilyMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyMemberInclude | null + /** + * Filter, which FamilyMember to fetch. + */ + where?: Prisma.FamilyMemberWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of FamilyMembers to fetch. + */ + orderBy?: Prisma.FamilyMemberOrderByWithRelationInput | Prisma.FamilyMemberOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for FamilyMembers. + */ + cursor?: Prisma.FamilyMemberWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` FamilyMembers 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` FamilyMembers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of FamilyMembers. + */ + distinct?: Prisma.FamilyMemberScalarFieldEnum | Prisma.FamilyMemberScalarFieldEnum[] +} + +/** + * FamilyMember findFirstOrThrow + */ +export type FamilyMemberFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the FamilyMember + */ + select?: Prisma.FamilyMemberSelect | null + /** + * Omit specific fields from the FamilyMember + */ + omit?: Prisma.FamilyMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyMemberInclude | null + /** + * Filter, which FamilyMember to fetch. + */ + where?: Prisma.FamilyMemberWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of FamilyMembers to fetch. + */ + orderBy?: Prisma.FamilyMemberOrderByWithRelationInput | Prisma.FamilyMemberOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for FamilyMembers. + */ + cursor?: Prisma.FamilyMemberWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` FamilyMembers 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` FamilyMembers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of FamilyMembers. + */ + distinct?: Prisma.FamilyMemberScalarFieldEnum | Prisma.FamilyMemberScalarFieldEnum[] +} + +/** + * FamilyMember findMany + */ +export type FamilyMemberFindManyArgs = { + /** + * Select specific fields to fetch from the FamilyMember + */ + select?: Prisma.FamilyMemberSelect | null + /** + * Omit specific fields from the FamilyMember + */ + omit?: Prisma.FamilyMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyMemberInclude | null + /** + * Filter, which FamilyMembers to fetch. + */ + where?: Prisma.FamilyMemberWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of FamilyMembers to fetch. + */ + orderBy?: Prisma.FamilyMemberOrderByWithRelationInput | Prisma.FamilyMemberOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing FamilyMembers. + */ + cursor?: Prisma.FamilyMemberWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` FamilyMembers 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` FamilyMembers. + */ + skip?: number + distinct?: Prisma.FamilyMemberScalarFieldEnum | Prisma.FamilyMemberScalarFieldEnum[] +} + +/** + * FamilyMember create + */ +export type FamilyMemberCreateArgs = { + /** + * Select specific fields to fetch from the FamilyMember + */ + select?: Prisma.FamilyMemberSelect | null + /** + * Omit specific fields from the FamilyMember + */ + omit?: Prisma.FamilyMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyMemberInclude | null + /** + * The data needed to create a FamilyMember. + */ + data: Prisma.XOR +} + +/** + * FamilyMember createMany + */ +export type FamilyMemberCreateManyArgs = { + /** + * The data used to create many FamilyMembers. + */ + data: Prisma.FamilyMemberCreateManyInput | Prisma.FamilyMemberCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * FamilyMember createManyAndReturn + */ +export type FamilyMemberCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the FamilyMember + */ + select?: Prisma.FamilyMemberSelectCreateManyAndReturn | null + /** + * Omit specific fields from the FamilyMember + */ + omit?: Prisma.FamilyMemberOmit | null + /** + * The data used to create many FamilyMembers. + */ + data: Prisma.FamilyMemberCreateManyInput | Prisma.FamilyMemberCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyMemberIncludeCreateManyAndReturn | null +} + +/** + * FamilyMember update + */ +export type FamilyMemberUpdateArgs = { + /** + * Select specific fields to fetch from the FamilyMember + */ + select?: Prisma.FamilyMemberSelect | null + /** + * Omit specific fields from the FamilyMember + */ + omit?: Prisma.FamilyMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyMemberInclude | null + /** + * The data needed to update a FamilyMember. + */ + data: Prisma.XOR + /** + * Choose, which FamilyMember to update. + */ + where: Prisma.FamilyMemberWhereUniqueInput +} + +/** + * FamilyMember updateMany + */ +export type FamilyMemberUpdateManyArgs = { + /** + * The data used to update FamilyMembers. + */ + data: Prisma.XOR + /** + * Filter which FamilyMembers to update + */ + where?: Prisma.FamilyMemberWhereInput + /** + * Limit how many FamilyMembers to update. + */ + limit?: number +} + +/** + * FamilyMember updateManyAndReturn + */ +export type FamilyMemberUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the FamilyMember + */ + select?: Prisma.FamilyMemberSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the FamilyMember + */ + omit?: Prisma.FamilyMemberOmit | null + /** + * The data used to update FamilyMembers. + */ + data: Prisma.XOR + /** + * Filter which FamilyMembers to update + */ + where?: Prisma.FamilyMemberWhereInput + /** + * Limit how many FamilyMembers to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyMemberIncludeUpdateManyAndReturn | null +} + +/** + * FamilyMember upsert + */ +export type FamilyMemberUpsertArgs = { + /** + * Select specific fields to fetch from the FamilyMember + */ + select?: Prisma.FamilyMemberSelect | null + /** + * Omit specific fields from the FamilyMember + */ + omit?: Prisma.FamilyMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyMemberInclude | null + /** + * The filter to search for the FamilyMember to update in case it exists. + */ + where: Prisma.FamilyMemberWhereUniqueInput + /** + * In case the FamilyMember found by the `where` argument doesn't exist, create a new FamilyMember with this data. + */ + create: Prisma.XOR + /** + * In case the FamilyMember was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * FamilyMember delete + */ +export type FamilyMemberDeleteArgs = { + /** + * Select specific fields to fetch from the FamilyMember + */ + select?: Prisma.FamilyMemberSelect | null + /** + * Omit specific fields from the FamilyMember + */ + omit?: Prisma.FamilyMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyMemberInclude | null + /** + * Filter which FamilyMember to delete. + */ + where: Prisma.FamilyMemberWhereUniqueInput +} + +/** + * FamilyMember deleteMany + */ +export type FamilyMemberDeleteManyArgs = { + /** + * Filter which FamilyMembers to delete + */ + where?: Prisma.FamilyMemberWhereInput + /** + * Limit how many FamilyMembers to delete. + */ + limit?: number +} + +/** + * FamilyMember without action + */ +export type FamilyMemberDefaultArgs = { + /** + * Select specific fields to fetch from the FamilyMember + */ + select?: Prisma.FamilyMemberSelect | null + /** + * Omit specific fields from the FamilyMember + */ + omit?: Prisma.FamilyMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyMemberInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/Income.ts b/apps/backend/prisma/generated/generated/prisma/models/Income.ts new file mode 100644 index 00000000..36b85de4 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/Income.ts @@ -0,0 +1,1470 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Income` 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 Income + * + */ +export type IncomeModel = runtime.Types.Result.DefaultSelection + +export type AggregateIncome = { + _count: IncomeCountAggregateOutputType | null + _min: IncomeMinAggregateOutputType | null + _max: IncomeMaxAggregateOutputType | null +} + +export type IncomeMinAggregateOutputType = { + id: string | null + transactionId: string | null + storeId: string | null + categoryId: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type IncomeMaxAggregateOutputType = { + id: string | null + transactionId: string | null + storeId: string | null + categoryId: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type IncomeCountAggregateOutputType = { + id: number + transactionId: number + storeId: number + categoryId: number + createdAt: number + updatedAt: number + _all: number +} + + +export type IncomeMinAggregateInputType = { + id?: true + transactionId?: true + storeId?: true + categoryId?: true + createdAt?: true + updatedAt?: true +} + +export type IncomeMaxAggregateInputType = { + id?: true + transactionId?: true + storeId?: true + categoryId?: true + createdAt?: true + updatedAt?: true +} + +export type IncomeCountAggregateInputType = { + id?: true + transactionId?: true + storeId?: true + categoryId?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type IncomeAggregateArgs = { + /** + * Filter which Income to aggregate. + */ + where?: Prisma.IncomeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Incomes to fetch. + */ + orderBy?: Prisma.IncomeOrderByWithRelationInput | Prisma.IncomeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.IncomeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Incomes 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` Incomes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Incomes + **/ + _count?: true | IncomeCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: IncomeMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: IncomeMaxAggregateInputType +} + +export type GetIncomeAggregateType = { + [P in keyof T & keyof AggregateIncome]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type IncomeGroupByArgs = { + where?: Prisma.IncomeWhereInput + orderBy?: Prisma.IncomeOrderByWithAggregationInput | Prisma.IncomeOrderByWithAggregationInput[] + by: Prisma.IncomeScalarFieldEnum[] | Prisma.IncomeScalarFieldEnum + having?: Prisma.IncomeScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: IncomeCountAggregateInputType | true + _min?: IncomeMinAggregateInputType + _max?: IncomeMaxAggregateInputType +} + +export type IncomeGroupByOutputType = { + id: string + transactionId: string + storeId: string + categoryId: string + createdAt: Date + updatedAt: Date + _count: IncomeCountAggregateOutputType | null + _min: IncomeMinAggregateOutputType | null + _max: IncomeMaxAggregateOutputType | null +} + +type GetIncomeGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof IncomeGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type IncomeWhereInput = { + AND?: Prisma.IncomeWhereInput | Prisma.IncomeWhereInput[] + OR?: Prisma.IncomeWhereInput[] + NOT?: Prisma.IncomeWhereInput | Prisma.IncomeWhereInput[] + id?: Prisma.StringFilter<"Income"> | string + transactionId?: Prisma.StringFilter<"Income"> | string + storeId?: Prisma.StringFilter<"Income"> | string + categoryId?: Prisma.StringFilter<"Income"> | string + createdAt?: Prisma.DateTimeFilter<"Income"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Income"> | Date | string + category?: Prisma.XOR + transaction?: Prisma.XOR +} + +export type IncomeOrderByWithRelationInput = { + id?: Prisma.SortOrder + transactionId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + category?: Prisma.IncomeCategoryOrderByWithRelationInput + transaction?: Prisma.TransactionOrderByWithRelationInput +} + +export type IncomeWhereUniqueInput = Prisma.AtLeast<{ + id?: string + transactionId?: string + AND?: Prisma.IncomeWhereInput | Prisma.IncomeWhereInput[] + OR?: Prisma.IncomeWhereInput[] + NOT?: Prisma.IncomeWhereInput | Prisma.IncomeWhereInput[] + storeId?: Prisma.StringFilter<"Income"> | string + categoryId?: Prisma.StringFilter<"Income"> | string + createdAt?: Prisma.DateTimeFilter<"Income"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Income"> | Date | string + category?: Prisma.XOR + transaction?: Prisma.XOR +}, "id" | "transactionId"> + +export type IncomeOrderByWithAggregationInput = { + id?: Prisma.SortOrder + transactionId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.IncomeCountOrderByAggregateInput + _max?: Prisma.IncomeMaxOrderByAggregateInput + _min?: Prisma.IncomeMinOrderByAggregateInput +} + +export type IncomeScalarWhereWithAggregatesInput = { + AND?: Prisma.IncomeScalarWhereWithAggregatesInput | Prisma.IncomeScalarWhereWithAggregatesInput[] + OR?: Prisma.IncomeScalarWhereWithAggregatesInput[] + NOT?: Prisma.IncomeScalarWhereWithAggregatesInput | Prisma.IncomeScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Income"> | string + transactionId?: Prisma.StringWithAggregatesFilter<"Income"> | string + storeId?: Prisma.StringWithAggregatesFilter<"Income"> | string + categoryId?: Prisma.StringWithAggregatesFilter<"Income"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Income"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Income"> | Date | string +} + +export type IncomeCreateInput = { + id: string + storeId: string + createdAt?: Date | string + updatedAt?: Date | string + category: Prisma.IncomeCategoryCreateNestedOneWithoutIncomesInput + transaction: Prisma.TransactionCreateNestedOneWithoutIncomeInput +} + +export type IncomeUncheckedCreateInput = { + id: string + transactionId: string + storeId: string + categoryId: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type IncomeUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.IncomeCategoryUpdateOneRequiredWithoutIncomesNestedInput + transaction?: Prisma.TransactionUpdateOneRequiredWithoutIncomeNestedInput +} + +export type IncomeUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + transactionId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type IncomeCreateManyInput = { + id: string + transactionId: string + storeId: string + categoryId: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type IncomeUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type IncomeUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + transactionId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type IncomeCountOrderByAggregateInput = { + id?: Prisma.SortOrder + transactionId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type IncomeMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + transactionId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type IncomeMinOrderByAggregateInput = { + id?: Prisma.SortOrder + transactionId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type IncomeListRelationFilter = { + every?: Prisma.IncomeWhereInput + some?: Prisma.IncomeWhereInput + none?: Prisma.IncomeWhereInput +} + +export type IncomeOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type IncomeNullableScalarRelationFilter = { + is?: Prisma.IncomeWhereInput | null + isNot?: Prisma.IncomeWhereInput | null +} + +export type IncomeCreateNestedManyWithoutCategoryInput = { + create?: Prisma.XOR | Prisma.IncomeCreateWithoutCategoryInput[] | Prisma.IncomeUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.IncomeCreateOrConnectWithoutCategoryInput | Prisma.IncomeCreateOrConnectWithoutCategoryInput[] + createMany?: Prisma.IncomeCreateManyCategoryInputEnvelope + connect?: Prisma.IncomeWhereUniqueInput | Prisma.IncomeWhereUniqueInput[] +} + +export type IncomeUncheckedCreateNestedManyWithoutCategoryInput = { + create?: Prisma.XOR | Prisma.IncomeCreateWithoutCategoryInput[] | Prisma.IncomeUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.IncomeCreateOrConnectWithoutCategoryInput | Prisma.IncomeCreateOrConnectWithoutCategoryInput[] + createMany?: Prisma.IncomeCreateManyCategoryInputEnvelope + connect?: Prisma.IncomeWhereUniqueInput | Prisma.IncomeWhereUniqueInput[] +} + +export type IncomeUpdateManyWithoutCategoryNestedInput = { + create?: Prisma.XOR | Prisma.IncomeCreateWithoutCategoryInput[] | Prisma.IncomeUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.IncomeCreateOrConnectWithoutCategoryInput | Prisma.IncomeCreateOrConnectWithoutCategoryInput[] + upsert?: Prisma.IncomeUpsertWithWhereUniqueWithoutCategoryInput | Prisma.IncomeUpsertWithWhereUniqueWithoutCategoryInput[] + createMany?: Prisma.IncomeCreateManyCategoryInputEnvelope + set?: Prisma.IncomeWhereUniqueInput | Prisma.IncomeWhereUniqueInput[] + disconnect?: Prisma.IncomeWhereUniqueInput | Prisma.IncomeWhereUniqueInput[] + delete?: Prisma.IncomeWhereUniqueInput | Prisma.IncomeWhereUniqueInput[] + connect?: Prisma.IncomeWhereUniqueInput | Prisma.IncomeWhereUniqueInput[] + update?: Prisma.IncomeUpdateWithWhereUniqueWithoutCategoryInput | Prisma.IncomeUpdateWithWhereUniqueWithoutCategoryInput[] + updateMany?: Prisma.IncomeUpdateManyWithWhereWithoutCategoryInput | Prisma.IncomeUpdateManyWithWhereWithoutCategoryInput[] + deleteMany?: Prisma.IncomeScalarWhereInput | Prisma.IncomeScalarWhereInput[] +} + +export type IncomeUncheckedUpdateManyWithoutCategoryNestedInput = { + create?: Prisma.XOR | Prisma.IncomeCreateWithoutCategoryInput[] | Prisma.IncomeUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.IncomeCreateOrConnectWithoutCategoryInput | Prisma.IncomeCreateOrConnectWithoutCategoryInput[] + upsert?: Prisma.IncomeUpsertWithWhereUniqueWithoutCategoryInput | Prisma.IncomeUpsertWithWhereUniqueWithoutCategoryInput[] + createMany?: Prisma.IncomeCreateManyCategoryInputEnvelope + set?: Prisma.IncomeWhereUniqueInput | Prisma.IncomeWhereUniqueInput[] + disconnect?: Prisma.IncomeWhereUniqueInput | Prisma.IncomeWhereUniqueInput[] + delete?: Prisma.IncomeWhereUniqueInput | Prisma.IncomeWhereUniqueInput[] + connect?: Prisma.IncomeWhereUniqueInput | Prisma.IncomeWhereUniqueInput[] + update?: Prisma.IncomeUpdateWithWhereUniqueWithoutCategoryInput | Prisma.IncomeUpdateWithWhereUniqueWithoutCategoryInput[] + updateMany?: Prisma.IncomeUpdateManyWithWhereWithoutCategoryInput | Prisma.IncomeUpdateManyWithWhereWithoutCategoryInput[] + deleteMany?: Prisma.IncomeScalarWhereInput | Prisma.IncomeScalarWhereInput[] +} + +export type IncomeCreateNestedOneWithoutTransactionInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.IncomeCreateOrConnectWithoutTransactionInput + connect?: Prisma.IncomeWhereUniqueInput +} + +export type IncomeUncheckedCreateNestedOneWithoutTransactionInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.IncomeCreateOrConnectWithoutTransactionInput + connect?: Prisma.IncomeWhereUniqueInput +} + +export type IncomeUpdateOneWithoutTransactionNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.IncomeCreateOrConnectWithoutTransactionInput + upsert?: Prisma.IncomeUpsertWithoutTransactionInput + disconnect?: Prisma.IncomeWhereInput | boolean + delete?: Prisma.IncomeWhereInput | boolean + connect?: Prisma.IncomeWhereUniqueInput + update?: Prisma.XOR, Prisma.IncomeUncheckedUpdateWithoutTransactionInput> +} + +export type IncomeUncheckedUpdateOneWithoutTransactionNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.IncomeCreateOrConnectWithoutTransactionInput + upsert?: Prisma.IncomeUpsertWithoutTransactionInput + disconnect?: Prisma.IncomeWhereInput | boolean + delete?: Prisma.IncomeWhereInput | boolean + connect?: Prisma.IncomeWhereUniqueInput + update?: Prisma.XOR, Prisma.IncomeUncheckedUpdateWithoutTransactionInput> +} + +export type IncomeCreateWithoutCategoryInput = { + id: string + storeId: string + createdAt?: Date | string + updatedAt?: Date | string + transaction: Prisma.TransactionCreateNestedOneWithoutIncomeInput +} + +export type IncomeUncheckedCreateWithoutCategoryInput = { + id: string + transactionId: string + storeId: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type IncomeCreateOrConnectWithoutCategoryInput = { + where: Prisma.IncomeWhereUniqueInput + create: Prisma.XOR +} + +export type IncomeCreateManyCategoryInputEnvelope = { + data: Prisma.IncomeCreateManyCategoryInput | Prisma.IncomeCreateManyCategoryInput[] + skipDuplicates?: boolean +} + +export type IncomeUpsertWithWhereUniqueWithoutCategoryInput = { + where: Prisma.IncomeWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type IncomeUpdateWithWhereUniqueWithoutCategoryInput = { + where: Prisma.IncomeWhereUniqueInput + data: Prisma.XOR +} + +export type IncomeUpdateManyWithWhereWithoutCategoryInput = { + where: Prisma.IncomeScalarWhereInput + data: Prisma.XOR +} + +export type IncomeScalarWhereInput = { + AND?: Prisma.IncomeScalarWhereInput | Prisma.IncomeScalarWhereInput[] + OR?: Prisma.IncomeScalarWhereInput[] + NOT?: Prisma.IncomeScalarWhereInput | Prisma.IncomeScalarWhereInput[] + id?: Prisma.StringFilter<"Income"> | string + transactionId?: Prisma.StringFilter<"Income"> | string + storeId?: Prisma.StringFilter<"Income"> | string + categoryId?: Prisma.StringFilter<"Income"> | string + createdAt?: Prisma.DateTimeFilter<"Income"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Income"> | Date | string +} + +export type IncomeCreateWithoutTransactionInput = { + id: string + storeId: string + createdAt?: Date | string + updatedAt?: Date | string + category: Prisma.IncomeCategoryCreateNestedOneWithoutIncomesInput +} + +export type IncomeUncheckedCreateWithoutTransactionInput = { + id: string + storeId: string + categoryId: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type IncomeCreateOrConnectWithoutTransactionInput = { + where: Prisma.IncomeWhereUniqueInput + create: Prisma.XOR +} + +export type IncomeUpsertWithoutTransactionInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.IncomeWhereInput +} + +export type IncomeUpdateToOneWithWhereWithoutTransactionInput = { + where?: Prisma.IncomeWhereInput + data: Prisma.XOR +} + +export type IncomeUpdateWithoutTransactionInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.IncomeCategoryUpdateOneRequiredWithoutIncomesNestedInput +} + +export type IncomeUncheckedUpdateWithoutTransactionInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type IncomeCreateManyCategoryInput = { + id: string + transactionId: string + storeId: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type IncomeUpdateWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transaction?: Prisma.TransactionUpdateOneRequiredWithoutIncomeNestedInput +} + +export type IncomeUncheckedUpdateWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + transactionId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type IncomeUncheckedUpdateManyWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + transactionId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type IncomeSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + transactionId?: boolean + storeId?: boolean + categoryId?: boolean + createdAt?: boolean + updatedAt?: boolean + category?: boolean | Prisma.IncomeCategoryDefaultArgs + transaction?: boolean | Prisma.TransactionDefaultArgs +}, ExtArgs["result"]["income"]> + +export type IncomeSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + transactionId?: boolean + storeId?: boolean + categoryId?: boolean + createdAt?: boolean + updatedAt?: boolean + category?: boolean | Prisma.IncomeCategoryDefaultArgs + transaction?: boolean | Prisma.TransactionDefaultArgs +}, ExtArgs["result"]["income"]> + +export type IncomeSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + transactionId?: boolean + storeId?: boolean + categoryId?: boolean + createdAt?: boolean + updatedAt?: boolean + category?: boolean | Prisma.IncomeCategoryDefaultArgs + transaction?: boolean | Prisma.TransactionDefaultArgs +}, ExtArgs["result"]["income"]> + +export type IncomeSelectScalar = { + id?: boolean + transactionId?: boolean + storeId?: boolean + categoryId?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type IncomeOmit = runtime.Types.Extensions.GetOmit<"id" | "transactionId" | "storeId" | "categoryId" | "createdAt" | "updatedAt", ExtArgs["result"]["income"]> +export type IncomeInclude = { + category?: boolean | Prisma.IncomeCategoryDefaultArgs + transaction?: boolean | Prisma.TransactionDefaultArgs +} +export type IncomeIncludeCreateManyAndReturn = { + category?: boolean | Prisma.IncomeCategoryDefaultArgs + transaction?: boolean | Prisma.TransactionDefaultArgs +} +export type IncomeIncludeUpdateManyAndReturn = { + category?: boolean | Prisma.IncomeCategoryDefaultArgs + transaction?: boolean | Prisma.TransactionDefaultArgs +} + +export type $IncomePayload = { + name: "Income" + objects: { + category: Prisma.$IncomeCategoryPayload + transaction: Prisma.$TransactionPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + transactionId: string + storeId: string + categoryId: string + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["income"]> + composites: {} +} + +export type IncomeGetPayload = runtime.Types.Result.GetResult + +export type IncomeCountArgs = + Omit & { + select?: IncomeCountAggregateInputType | true + } + +export interface IncomeDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Income'], meta: { name: 'Income' } } + /** + * Find zero or one Income that matches the filter. + * @param {IncomeFindUniqueArgs} args - Arguments to find a Income + * @example + * // Get one Income + * const income = await prisma.income.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__IncomeClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Income that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {IncomeFindUniqueOrThrowArgs} args - Arguments to find a Income + * @example + * // Get one Income + * const income = await prisma.income.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__IncomeClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Income 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 {IncomeFindFirstArgs} args - Arguments to find a Income + * @example + * // Get one Income + * const income = await prisma.income.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__IncomeClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Income 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 {IncomeFindFirstOrThrowArgs} args - Arguments to find a Income + * @example + * // Get one Income + * const income = await prisma.income.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__IncomeClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Incomes 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 {IncomeFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Incomes + * const incomes = await prisma.income.findMany() + * + * // Get first 10 Incomes + * const incomes = await prisma.income.findMany({ take: 10 }) + * + * // Only select the `id` + * const incomeWithIdOnly = await prisma.income.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Income. + * @param {IncomeCreateArgs} args - Arguments to create a Income. + * @example + * // Create one Income + * const Income = await prisma.income.create({ + * data: { + * // ... data to create a Income + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__IncomeClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Incomes. + * @param {IncomeCreateManyArgs} args - Arguments to create many Incomes. + * @example + * // Create many Incomes + * const income = await prisma.income.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Incomes and returns the data saved in the database. + * @param {IncomeCreateManyAndReturnArgs} args - Arguments to create many Incomes. + * @example + * // Create many Incomes + * const income = await prisma.income.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Incomes and only return the `id` + * const incomeWithIdOnly = await prisma.income.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Income. + * @param {IncomeDeleteArgs} args - Arguments to delete one Income. + * @example + * // Delete one Income + * const Income = await prisma.income.delete({ + * where: { + * // ... filter to delete one Income + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__IncomeClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Income. + * @param {IncomeUpdateArgs} args - Arguments to update one Income. + * @example + * // Update one Income + * const income = await prisma.income.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__IncomeClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Incomes. + * @param {IncomeDeleteManyArgs} args - Arguments to filter Incomes to delete. + * @example + * // Delete a few Incomes + * const { count } = await prisma.income.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Incomes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {IncomeUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Incomes + * const income = await prisma.income.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Incomes and returns the data updated in the database. + * @param {IncomeUpdateManyAndReturnArgs} args - Arguments to update many Incomes. + * @example + * // Update many Incomes + * const income = await prisma.income.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Incomes and only return the `id` + * const incomeWithIdOnly = await prisma.income.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Income. + * @param {IncomeUpsertArgs} args - Arguments to update or create a Income. + * @example + * // Update or create a Income + * const income = await prisma.income.upsert({ + * create: { + * // ... data to create a Income + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Income we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__IncomeClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Incomes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {IncomeCountArgs} args - Arguments to filter Incomes to count. + * @example + * // Count the number of Incomes + * const count = await prisma.income.count({ + * where: { + * // ... the filter for the Incomes we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Income. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {IncomeAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Income. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {IncomeGroupByArgs} 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 IncomeGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: IncomeGroupByArgs['orderBy'] } + : { orderBy?: IncomeGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetIncomeGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Income model + */ +readonly fields: IncomeFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Income. + * 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__IncomeClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + category = {}>(args?: Prisma.Subset>): Prisma.Prisma__IncomeCategoryClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + transaction = {}>(args?: Prisma.Subset>): Prisma.Prisma__TransactionClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the Income model + */ +export interface IncomeFieldRefs { + readonly id: Prisma.FieldRef<"Income", 'String'> + readonly transactionId: Prisma.FieldRef<"Income", 'String'> + readonly storeId: Prisma.FieldRef<"Income", 'String'> + readonly categoryId: Prisma.FieldRef<"Income", 'String'> + readonly createdAt: Prisma.FieldRef<"Income", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Income", 'DateTime'> +} + + +// Custom InputTypes +/** + * Income findUnique + */ +export type IncomeFindUniqueArgs = { + /** + * Select specific fields to fetch from the Income + */ + select?: Prisma.IncomeSelect | null + /** + * Omit specific fields from the Income + */ + omit?: Prisma.IncomeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeInclude | null + /** + * Filter, which Income to fetch. + */ + where: Prisma.IncomeWhereUniqueInput +} + +/** + * Income findUniqueOrThrow + */ +export type IncomeFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Income + */ + select?: Prisma.IncomeSelect | null + /** + * Omit specific fields from the Income + */ + omit?: Prisma.IncomeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeInclude | null + /** + * Filter, which Income to fetch. + */ + where: Prisma.IncomeWhereUniqueInput +} + +/** + * Income findFirst + */ +export type IncomeFindFirstArgs = { + /** + * Select specific fields to fetch from the Income + */ + select?: Prisma.IncomeSelect | null + /** + * Omit specific fields from the Income + */ + omit?: Prisma.IncomeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeInclude | null + /** + * Filter, which Income to fetch. + */ + where?: Prisma.IncomeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Incomes to fetch. + */ + orderBy?: Prisma.IncomeOrderByWithRelationInput | Prisma.IncomeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Incomes. + */ + cursor?: Prisma.IncomeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Incomes 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` Incomes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Incomes. + */ + distinct?: Prisma.IncomeScalarFieldEnum | Prisma.IncomeScalarFieldEnum[] +} + +/** + * Income findFirstOrThrow + */ +export type IncomeFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Income + */ + select?: Prisma.IncomeSelect | null + /** + * Omit specific fields from the Income + */ + omit?: Prisma.IncomeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeInclude | null + /** + * Filter, which Income to fetch. + */ + where?: Prisma.IncomeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Incomes to fetch. + */ + orderBy?: Prisma.IncomeOrderByWithRelationInput | Prisma.IncomeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Incomes. + */ + cursor?: Prisma.IncomeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Incomes 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` Incomes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Incomes. + */ + distinct?: Prisma.IncomeScalarFieldEnum | Prisma.IncomeScalarFieldEnum[] +} + +/** + * Income findMany + */ +export type IncomeFindManyArgs = { + /** + * Select specific fields to fetch from the Income + */ + select?: Prisma.IncomeSelect | null + /** + * Omit specific fields from the Income + */ + omit?: Prisma.IncomeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeInclude | null + /** + * Filter, which Incomes to fetch. + */ + where?: Prisma.IncomeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Incomes to fetch. + */ + orderBy?: Prisma.IncomeOrderByWithRelationInput | Prisma.IncomeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Incomes. + */ + cursor?: Prisma.IncomeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Incomes 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` Incomes. + */ + skip?: number + distinct?: Prisma.IncomeScalarFieldEnum | Prisma.IncomeScalarFieldEnum[] +} + +/** + * Income create + */ +export type IncomeCreateArgs = { + /** + * Select specific fields to fetch from the Income + */ + select?: Prisma.IncomeSelect | null + /** + * Omit specific fields from the Income + */ + omit?: Prisma.IncomeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeInclude | null + /** + * The data needed to create a Income. + */ + data: Prisma.XOR +} + +/** + * Income createMany + */ +export type IncomeCreateManyArgs = { + /** + * The data used to create many Incomes. + */ + data: Prisma.IncomeCreateManyInput | Prisma.IncomeCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Income createManyAndReturn + */ +export type IncomeCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Income + */ + select?: Prisma.IncomeSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Income + */ + omit?: Prisma.IncomeOmit | null + /** + * The data used to create many Incomes. + */ + data: Prisma.IncomeCreateManyInput | Prisma.IncomeCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeIncludeCreateManyAndReturn | null +} + +/** + * Income update + */ +export type IncomeUpdateArgs = { + /** + * Select specific fields to fetch from the Income + */ + select?: Prisma.IncomeSelect | null + /** + * Omit specific fields from the Income + */ + omit?: Prisma.IncomeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeInclude | null + /** + * The data needed to update a Income. + */ + data: Prisma.XOR + /** + * Choose, which Income to update. + */ + where: Prisma.IncomeWhereUniqueInput +} + +/** + * Income updateMany + */ +export type IncomeUpdateManyArgs = { + /** + * The data used to update Incomes. + */ + data: Prisma.XOR + /** + * Filter which Incomes to update + */ + where?: Prisma.IncomeWhereInput + /** + * Limit how many Incomes to update. + */ + limit?: number +} + +/** + * Income updateManyAndReturn + */ +export type IncomeUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Income + */ + select?: Prisma.IncomeSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Income + */ + omit?: Prisma.IncomeOmit | null + /** + * The data used to update Incomes. + */ + data: Prisma.XOR + /** + * Filter which Incomes to update + */ + where?: Prisma.IncomeWhereInput + /** + * Limit how many Incomes to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeIncludeUpdateManyAndReturn | null +} + +/** + * Income upsert + */ +export type IncomeUpsertArgs = { + /** + * Select specific fields to fetch from the Income + */ + select?: Prisma.IncomeSelect | null + /** + * Omit specific fields from the Income + */ + omit?: Prisma.IncomeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeInclude | null + /** + * The filter to search for the Income to update in case it exists. + */ + where: Prisma.IncomeWhereUniqueInput + /** + * In case the Income found by the `where` argument doesn't exist, create a new Income with this data. + */ + create: Prisma.XOR + /** + * In case the Income was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Income delete + */ +export type IncomeDeleteArgs = { + /** + * Select specific fields to fetch from the Income + */ + select?: Prisma.IncomeSelect | null + /** + * Omit specific fields from the Income + */ + omit?: Prisma.IncomeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeInclude | null + /** + * Filter which Income to delete. + */ + where: Prisma.IncomeWhereUniqueInput +} + +/** + * Income deleteMany + */ +export type IncomeDeleteManyArgs = { + /** + * Filter which Incomes to delete + */ + where?: Prisma.IncomeWhereInput + /** + * Limit how many Incomes to delete. + */ + limit?: number +} + +/** + * Income without action + */ +export type IncomeDefaultArgs = { + /** + * Select specific fields to fetch from the Income + */ + select?: Prisma.IncomeSelect | null + /** + * Omit specific fields from the Income + */ + omit?: Prisma.IncomeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/IncomeCategory.ts b/apps/backend/prisma/generated/generated/prisma/models/IncomeCategory.ts new file mode 100644 index 00000000..d3544d1e --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/IncomeCategory.ts @@ -0,0 +1,1747 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `IncomeCategory` 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 IncomeCategory + * + */ +export type IncomeCategoryModel = runtime.Types.Result.DefaultSelection + +export type AggregateIncomeCategory = { + _count: IncomeCategoryCountAggregateOutputType | null + _min: IncomeCategoryMinAggregateOutputType | null + _max: IncomeCategoryMaxAggregateOutputType | null +} + +export type IncomeCategoryMinAggregateOutputType = { + id: string | null + parentId: string | null + name: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type IncomeCategoryMaxAggregateOutputType = { + id: string | null + parentId: string | null + name: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type IncomeCategoryCountAggregateOutputType = { + id: number + parentId: number + name: number + createdAt: number + updatedAt: number + _all: number +} + + +export type IncomeCategoryMinAggregateInputType = { + id?: true + parentId?: true + name?: true + createdAt?: true + updatedAt?: true +} + +export type IncomeCategoryMaxAggregateInputType = { + id?: true + parentId?: true + name?: true + createdAt?: true + updatedAt?: true +} + +export type IncomeCategoryCountAggregateInputType = { + id?: true + parentId?: true + name?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type IncomeCategoryAggregateArgs = { + /** + * Filter which IncomeCategory to aggregate. + */ + where?: Prisma.IncomeCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of IncomeCategories to fetch. + */ + orderBy?: Prisma.IncomeCategoryOrderByWithRelationInput | Prisma.IncomeCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.IncomeCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` IncomeCategories 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` IncomeCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned IncomeCategories + **/ + _count?: true | IncomeCategoryCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: IncomeCategoryMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: IncomeCategoryMaxAggregateInputType +} + +export type GetIncomeCategoryAggregateType = { + [P in keyof T & keyof AggregateIncomeCategory]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type IncomeCategoryGroupByArgs = { + where?: Prisma.IncomeCategoryWhereInput + orderBy?: Prisma.IncomeCategoryOrderByWithAggregationInput | Prisma.IncomeCategoryOrderByWithAggregationInput[] + by: Prisma.IncomeCategoryScalarFieldEnum[] | Prisma.IncomeCategoryScalarFieldEnum + having?: Prisma.IncomeCategoryScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: IncomeCategoryCountAggregateInputType | true + _min?: IncomeCategoryMinAggregateInputType + _max?: IncomeCategoryMaxAggregateInputType +} + +export type IncomeCategoryGroupByOutputType = { + id: string + parentId: string | null + name: string + createdAt: Date + updatedAt: Date + _count: IncomeCategoryCountAggregateOutputType | null + _min: IncomeCategoryMinAggregateOutputType | null + _max: IncomeCategoryMaxAggregateOutputType | null +} + +type GetIncomeCategoryGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof IncomeCategoryGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type IncomeCategoryWhereInput = { + AND?: Prisma.IncomeCategoryWhereInput | Prisma.IncomeCategoryWhereInput[] + OR?: Prisma.IncomeCategoryWhereInput[] + NOT?: Prisma.IncomeCategoryWhereInput | Prisma.IncomeCategoryWhereInput[] + id?: Prisma.StringFilter<"IncomeCategory"> | string + parentId?: Prisma.StringNullableFilter<"IncomeCategory"> | string | null + name?: Prisma.StringFilter<"IncomeCategory"> | string + createdAt?: Prisma.DateTimeFilter<"IncomeCategory"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"IncomeCategory"> | Date | string + parent?: Prisma.XOR | null + children?: Prisma.IncomeCategoryListRelationFilter + incomes?: Prisma.IncomeListRelationFilter + users?: Prisma.UserIncomeCategoryListRelationFilter +} + +export type IncomeCategoryOrderByWithRelationInput = { + id?: Prisma.SortOrder + parentId?: Prisma.SortOrderInput | Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + parent?: Prisma.IncomeCategoryOrderByWithRelationInput + children?: Prisma.IncomeCategoryOrderByRelationAggregateInput + incomes?: Prisma.IncomeOrderByRelationAggregateInput + users?: Prisma.UserIncomeCategoryOrderByRelationAggregateInput +} + +export type IncomeCategoryWhereUniqueInput = Prisma.AtLeast<{ + id?: string + name?: string + AND?: Prisma.IncomeCategoryWhereInput | Prisma.IncomeCategoryWhereInput[] + OR?: Prisma.IncomeCategoryWhereInput[] + NOT?: Prisma.IncomeCategoryWhereInput | Prisma.IncomeCategoryWhereInput[] + parentId?: Prisma.StringNullableFilter<"IncomeCategory"> | string | null + createdAt?: Prisma.DateTimeFilter<"IncomeCategory"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"IncomeCategory"> | Date | string + parent?: Prisma.XOR | null + children?: Prisma.IncomeCategoryListRelationFilter + incomes?: Prisma.IncomeListRelationFilter + users?: Prisma.UserIncomeCategoryListRelationFilter +}, "id" | "name"> + +export type IncomeCategoryOrderByWithAggregationInput = { + id?: Prisma.SortOrder + parentId?: Prisma.SortOrderInput | Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.IncomeCategoryCountOrderByAggregateInput + _max?: Prisma.IncomeCategoryMaxOrderByAggregateInput + _min?: Prisma.IncomeCategoryMinOrderByAggregateInput +} + +export type IncomeCategoryScalarWhereWithAggregatesInput = { + AND?: Prisma.IncomeCategoryScalarWhereWithAggregatesInput | Prisma.IncomeCategoryScalarWhereWithAggregatesInput[] + OR?: Prisma.IncomeCategoryScalarWhereWithAggregatesInput[] + NOT?: Prisma.IncomeCategoryScalarWhereWithAggregatesInput | Prisma.IncomeCategoryScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"IncomeCategory"> | string + parentId?: Prisma.StringNullableWithAggregatesFilter<"IncomeCategory"> | string | null + name?: Prisma.StringWithAggregatesFilter<"IncomeCategory"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"IncomeCategory"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"IncomeCategory"> | Date | string +} + +export type IncomeCategoryCreateInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.IncomeCategoryCreateNestedOneWithoutChildrenInput + children?: Prisma.IncomeCategoryCreateNestedManyWithoutParentInput + incomes?: Prisma.IncomeCreateNestedManyWithoutCategoryInput + users?: Prisma.UserIncomeCategoryCreateNestedManyWithoutCategoryInput +} + +export type IncomeCategoryUncheckedCreateInput = { + id?: string + parentId?: string | null + name: string + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.IncomeCategoryUncheckedCreateNestedManyWithoutParentInput + incomes?: Prisma.IncomeUncheckedCreateNestedManyWithoutCategoryInput + users?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutCategoryInput +} + +export type IncomeCategoryUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.IncomeCategoryUpdateOneWithoutChildrenNestedInput + children?: Prisma.IncomeCategoryUpdateManyWithoutParentNestedInput + incomes?: Prisma.IncomeUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserIncomeCategoryUpdateManyWithoutCategoryNestedInput +} + +export type IncomeCategoryUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.IncomeCategoryUncheckedUpdateManyWithoutParentNestedInput + incomes?: Prisma.IncomeUncheckedUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type IncomeCategoryCreateManyInput = { + id?: string + parentId?: string | null + name: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type IncomeCategoryUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type IncomeCategoryUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type IncomeCategoryScalarRelationFilter = { + is?: Prisma.IncomeCategoryWhereInput + isNot?: Prisma.IncomeCategoryWhereInput +} + +export type IncomeCategoryNullableScalarRelationFilter = { + is?: Prisma.IncomeCategoryWhereInput | null + isNot?: Prisma.IncomeCategoryWhereInput | null +} + +export type IncomeCategoryListRelationFilter = { + every?: Prisma.IncomeCategoryWhereInput + some?: Prisma.IncomeCategoryWhereInput + none?: Prisma.IncomeCategoryWhereInput +} + +export type IncomeCategoryOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type IncomeCategoryCountOrderByAggregateInput = { + id?: Prisma.SortOrder + parentId?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type IncomeCategoryMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + parentId?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type IncomeCategoryMinOrderByAggregateInput = { + id?: Prisma.SortOrder + parentId?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type IncomeCategoryCreateNestedOneWithoutIncomesInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.IncomeCategoryCreateOrConnectWithoutIncomesInput + connect?: Prisma.IncomeCategoryWhereUniqueInput +} + +export type IncomeCategoryUpdateOneRequiredWithoutIncomesNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.IncomeCategoryCreateOrConnectWithoutIncomesInput + upsert?: Prisma.IncomeCategoryUpsertWithoutIncomesInput + connect?: Prisma.IncomeCategoryWhereUniqueInput + update?: Prisma.XOR, Prisma.IncomeCategoryUncheckedUpdateWithoutIncomesInput> +} + +export type IncomeCategoryCreateNestedOneWithoutChildrenInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.IncomeCategoryCreateOrConnectWithoutChildrenInput + connect?: Prisma.IncomeCategoryWhereUniqueInput +} + +export type IncomeCategoryCreateNestedManyWithoutParentInput = { + create?: Prisma.XOR | Prisma.IncomeCategoryCreateWithoutParentInput[] | Prisma.IncomeCategoryUncheckedCreateWithoutParentInput[] + connectOrCreate?: Prisma.IncomeCategoryCreateOrConnectWithoutParentInput | Prisma.IncomeCategoryCreateOrConnectWithoutParentInput[] + createMany?: Prisma.IncomeCategoryCreateManyParentInputEnvelope + connect?: Prisma.IncomeCategoryWhereUniqueInput | Prisma.IncomeCategoryWhereUniqueInput[] +} + +export type IncomeCategoryUncheckedCreateNestedManyWithoutParentInput = { + create?: Prisma.XOR | Prisma.IncomeCategoryCreateWithoutParentInput[] | Prisma.IncomeCategoryUncheckedCreateWithoutParentInput[] + connectOrCreate?: Prisma.IncomeCategoryCreateOrConnectWithoutParentInput | Prisma.IncomeCategoryCreateOrConnectWithoutParentInput[] + createMany?: Prisma.IncomeCategoryCreateManyParentInputEnvelope + connect?: Prisma.IncomeCategoryWhereUniqueInput | Prisma.IncomeCategoryWhereUniqueInput[] +} + +export type IncomeCategoryUpdateOneWithoutChildrenNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.IncomeCategoryCreateOrConnectWithoutChildrenInput + upsert?: Prisma.IncomeCategoryUpsertWithoutChildrenInput + disconnect?: Prisma.IncomeCategoryWhereInput | boolean + delete?: Prisma.IncomeCategoryWhereInput | boolean + connect?: Prisma.IncomeCategoryWhereUniqueInput + update?: Prisma.XOR, Prisma.IncomeCategoryUncheckedUpdateWithoutChildrenInput> +} + +export type IncomeCategoryUpdateManyWithoutParentNestedInput = { + create?: Prisma.XOR | Prisma.IncomeCategoryCreateWithoutParentInput[] | Prisma.IncomeCategoryUncheckedCreateWithoutParentInput[] + connectOrCreate?: Prisma.IncomeCategoryCreateOrConnectWithoutParentInput | Prisma.IncomeCategoryCreateOrConnectWithoutParentInput[] + upsert?: Prisma.IncomeCategoryUpsertWithWhereUniqueWithoutParentInput | Prisma.IncomeCategoryUpsertWithWhereUniqueWithoutParentInput[] + createMany?: Prisma.IncomeCategoryCreateManyParentInputEnvelope + set?: Prisma.IncomeCategoryWhereUniqueInput | Prisma.IncomeCategoryWhereUniqueInput[] + disconnect?: Prisma.IncomeCategoryWhereUniqueInput | Prisma.IncomeCategoryWhereUniqueInput[] + delete?: Prisma.IncomeCategoryWhereUniqueInput | Prisma.IncomeCategoryWhereUniqueInput[] + connect?: Prisma.IncomeCategoryWhereUniqueInput | Prisma.IncomeCategoryWhereUniqueInput[] + update?: Prisma.IncomeCategoryUpdateWithWhereUniqueWithoutParentInput | Prisma.IncomeCategoryUpdateWithWhereUniqueWithoutParentInput[] + updateMany?: Prisma.IncomeCategoryUpdateManyWithWhereWithoutParentInput | Prisma.IncomeCategoryUpdateManyWithWhereWithoutParentInput[] + deleteMany?: Prisma.IncomeCategoryScalarWhereInput | Prisma.IncomeCategoryScalarWhereInput[] +} + +export type IncomeCategoryUncheckedUpdateManyWithoutParentNestedInput = { + create?: Prisma.XOR | Prisma.IncomeCategoryCreateWithoutParentInput[] | Prisma.IncomeCategoryUncheckedCreateWithoutParentInput[] + connectOrCreate?: Prisma.IncomeCategoryCreateOrConnectWithoutParentInput | Prisma.IncomeCategoryCreateOrConnectWithoutParentInput[] + upsert?: Prisma.IncomeCategoryUpsertWithWhereUniqueWithoutParentInput | Prisma.IncomeCategoryUpsertWithWhereUniqueWithoutParentInput[] + createMany?: Prisma.IncomeCategoryCreateManyParentInputEnvelope + set?: Prisma.IncomeCategoryWhereUniqueInput | Prisma.IncomeCategoryWhereUniqueInput[] + disconnect?: Prisma.IncomeCategoryWhereUniqueInput | Prisma.IncomeCategoryWhereUniqueInput[] + delete?: Prisma.IncomeCategoryWhereUniqueInput | Prisma.IncomeCategoryWhereUniqueInput[] + connect?: Prisma.IncomeCategoryWhereUniqueInput | Prisma.IncomeCategoryWhereUniqueInput[] + update?: Prisma.IncomeCategoryUpdateWithWhereUniqueWithoutParentInput | Prisma.IncomeCategoryUpdateWithWhereUniqueWithoutParentInput[] + updateMany?: Prisma.IncomeCategoryUpdateManyWithWhereWithoutParentInput | Prisma.IncomeCategoryUpdateManyWithWhereWithoutParentInput[] + deleteMany?: Prisma.IncomeCategoryScalarWhereInput | Prisma.IncomeCategoryScalarWhereInput[] +} + +export type IncomeCategoryCreateNestedOneWithoutUsersInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.IncomeCategoryCreateOrConnectWithoutUsersInput + connect?: Prisma.IncomeCategoryWhereUniqueInput +} + +export type IncomeCategoryUpdateOneRequiredWithoutUsersNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.IncomeCategoryCreateOrConnectWithoutUsersInput + upsert?: Prisma.IncomeCategoryUpsertWithoutUsersInput + connect?: Prisma.IncomeCategoryWhereUniqueInput + update?: Prisma.XOR, Prisma.IncomeCategoryUncheckedUpdateWithoutUsersInput> +} + +export type IncomeCategoryCreateWithoutIncomesInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.IncomeCategoryCreateNestedOneWithoutChildrenInput + children?: Prisma.IncomeCategoryCreateNestedManyWithoutParentInput + users?: Prisma.UserIncomeCategoryCreateNestedManyWithoutCategoryInput +} + +export type IncomeCategoryUncheckedCreateWithoutIncomesInput = { + id?: string + parentId?: string | null + name: string + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.IncomeCategoryUncheckedCreateNestedManyWithoutParentInput + users?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutCategoryInput +} + +export type IncomeCategoryCreateOrConnectWithoutIncomesInput = { + where: Prisma.IncomeCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type IncomeCategoryUpsertWithoutIncomesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.IncomeCategoryWhereInput +} + +export type IncomeCategoryUpdateToOneWithWhereWithoutIncomesInput = { + where?: Prisma.IncomeCategoryWhereInput + data: Prisma.XOR +} + +export type IncomeCategoryUpdateWithoutIncomesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.IncomeCategoryUpdateOneWithoutChildrenNestedInput + children?: Prisma.IncomeCategoryUpdateManyWithoutParentNestedInput + users?: Prisma.UserIncomeCategoryUpdateManyWithoutCategoryNestedInput +} + +export type IncomeCategoryUncheckedUpdateWithoutIncomesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.IncomeCategoryUncheckedUpdateManyWithoutParentNestedInput + users?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type IncomeCategoryCreateWithoutChildrenInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.IncomeCategoryCreateNestedOneWithoutChildrenInput + incomes?: Prisma.IncomeCreateNestedManyWithoutCategoryInput + users?: Prisma.UserIncomeCategoryCreateNestedManyWithoutCategoryInput +} + +export type IncomeCategoryUncheckedCreateWithoutChildrenInput = { + id?: string + parentId?: string | null + name: string + createdAt?: Date | string + updatedAt?: Date | string + incomes?: Prisma.IncomeUncheckedCreateNestedManyWithoutCategoryInput + users?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutCategoryInput +} + +export type IncomeCategoryCreateOrConnectWithoutChildrenInput = { + where: Prisma.IncomeCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type IncomeCategoryCreateWithoutParentInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.IncomeCategoryCreateNestedManyWithoutParentInput + incomes?: Prisma.IncomeCreateNestedManyWithoutCategoryInput + users?: Prisma.UserIncomeCategoryCreateNestedManyWithoutCategoryInput +} + +export type IncomeCategoryUncheckedCreateWithoutParentInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.IncomeCategoryUncheckedCreateNestedManyWithoutParentInput + incomes?: Prisma.IncomeUncheckedCreateNestedManyWithoutCategoryInput + users?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutCategoryInput +} + +export type IncomeCategoryCreateOrConnectWithoutParentInput = { + where: Prisma.IncomeCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type IncomeCategoryCreateManyParentInputEnvelope = { + data: Prisma.IncomeCategoryCreateManyParentInput | Prisma.IncomeCategoryCreateManyParentInput[] + skipDuplicates?: boolean +} + +export type IncomeCategoryUpsertWithoutChildrenInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.IncomeCategoryWhereInput +} + +export type IncomeCategoryUpdateToOneWithWhereWithoutChildrenInput = { + where?: Prisma.IncomeCategoryWhereInput + data: Prisma.XOR +} + +export type IncomeCategoryUpdateWithoutChildrenInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.IncomeCategoryUpdateOneWithoutChildrenNestedInput + incomes?: Prisma.IncomeUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserIncomeCategoryUpdateManyWithoutCategoryNestedInput +} + +export type IncomeCategoryUncheckedUpdateWithoutChildrenInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + incomes?: Prisma.IncomeUncheckedUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type IncomeCategoryUpsertWithWhereUniqueWithoutParentInput = { + where: Prisma.IncomeCategoryWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type IncomeCategoryUpdateWithWhereUniqueWithoutParentInput = { + where: Prisma.IncomeCategoryWhereUniqueInput + data: Prisma.XOR +} + +export type IncomeCategoryUpdateManyWithWhereWithoutParentInput = { + where: Prisma.IncomeCategoryScalarWhereInput + data: Prisma.XOR +} + +export type IncomeCategoryScalarWhereInput = { + AND?: Prisma.IncomeCategoryScalarWhereInput | Prisma.IncomeCategoryScalarWhereInput[] + OR?: Prisma.IncomeCategoryScalarWhereInput[] + NOT?: Prisma.IncomeCategoryScalarWhereInput | Prisma.IncomeCategoryScalarWhereInput[] + id?: Prisma.StringFilter<"IncomeCategory"> | string + parentId?: Prisma.StringNullableFilter<"IncomeCategory"> | string | null + name?: Prisma.StringFilter<"IncomeCategory"> | string + createdAt?: Prisma.DateTimeFilter<"IncomeCategory"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"IncomeCategory"> | Date | string +} + +export type IncomeCategoryCreateWithoutUsersInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.IncomeCategoryCreateNestedOneWithoutChildrenInput + children?: Prisma.IncomeCategoryCreateNestedManyWithoutParentInput + incomes?: Prisma.IncomeCreateNestedManyWithoutCategoryInput +} + +export type IncomeCategoryUncheckedCreateWithoutUsersInput = { + id?: string + parentId?: string | null + name: string + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.IncomeCategoryUncheckedCreateNestedManyWithoutParentInput + incomes?: Prisma.IncomeUncheckedCreateNestedManyWithoutCategoryInput +} + +export type IncomeCategoryCreateOrConnectWithoutUsersInput = { + where: Prisma.IncomeCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type IncomeCategoryUpsertWithoutUsersInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.IncomeCategoryWhereInput +} + +export type IncomeCategoryUpdateToOneWithWhereWithoutUsersInput = { + where?: Prisma.IncomeCategoryWhereInput + data: Prisma.XOR +} + +export type IncomeCategoryUpdateWithoutUsersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.IncomeCategoryUpdateOneWithoutChildrenNestedInput + children?: Prisma.IncomeCategoryUpdateManyWithoutParentNestedInput + incomes?: Prisma.IncomeUpdateManyWithoutCategoryNestedInput +} + +export type IncomeCategoryUncheckedUpdateWithoutUsersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.IncomeCategoryUncheckedUpdateManyWithoutParentNestedInput + incomes?: Prisma.IncomeUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type IncomeCategoryCreateManyParentInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type IncomeCategoryUpdateWithoutParentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.IncomeCategoryUpdateManyWithoutParentNestedInput + incomes?: Prisma.IncomeUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserIncomeCategoryUpdateManyWithoutCategoryNestedInput +} + +export type IncomeCategoryUncheckedUpdateWithoutParentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.IncomeCategoryUncheckedUpdateManyWithoutParentNestedInput + incomes?: Prisma.IncomeUncheckedUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type IncomeCategoryUncheckedUpdateManyWithoutParentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + +/** + * Count Type IncomeCategoryCountOutputType + */ + +export type IncomeCategoryCountOutputType = { + children: number + incomes: number + users: number +} + +export type IncomeCategoryCountOutputTypeSelect = { + children?: boolean | IncomeCategoryCountOutputTypeCountChildrenArgs + incomes?: boolean | IncomeCategoryCountOutputTypeCountIncomesArgs + users?: boolean | IncomeCategoryCountOutputTypeCountUsersArgs +} + +/** + * IncomeCategoryCountOutputType without action + */ +export type IncomeCategoryCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the IncomeCategoryCountOutputType + */ + select?: Prisma.IncomeCategoryCountOutputTypeSelect | null +} + +/** + * IncomeCategoryCountOutputType without action + */ +export type IncomeCategoryCountOutputTypeCountChildrenArgs = { + where?: Prisma.IncomeCategoryWhereInput +} + +/** + * IncomeCategoryCountOutputType without action + */ +export type IncomeCategoryCountOutputTypeCountIncomesArgs = { + where?: Prisma.IncomeWhereInput +} + +/** + * IncomeCategoryCountOutputType without action + */ +export type IncomeCategoryCountOutputTypeCountUsersArgs = { + where?: Prisma.UserIncomeCategoryWhereInput +} + + +export type IncomeCategorySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + parentId?: boolean + name?: boolean + createdAt?: boolean + updatedAt?: boolean + parent?: boolean | Prisma.IncomeCategory$parentArgs + children?: boolean | Prisma.IncomeCategory$childrenArgs + incomes?: boolean | Prisma.IncomeCategory$incomesArgs + users?: boolean | Prisma.IncomeCategory$usersArgs + _count?: boolean | Prisma.IncomeCategoryCountOutputTypeDefaultArgs +}, ExtArgs["result"]["incomeCategory"]> + +export type IncomeCategorySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + parentId?: boolean + name?: boolean + createdAt?: boolean + updatedAt?: boolean + parent?: boolean | Prisma.IncomeCategory$parentArgs +}, ExtArgs["result"]["incomeCategory"]> + +export type IncomeCategorySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + parentId?: boolean + name?: boolean + createdAt?: boolean + updatedAt?: boolean + parent?: boolean | Prisma.IncomeCategory$parentArgs +}, ExtArgs["result"]["incomeCategory"]> + +export type IncomeCategorySelectScalar = { + id?: boolean + parentId?: boolean + name?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type IncomeCategoryOmit = runtime.Types.Extensions.GetOmit<"id" | "parentId" | "name" | "createdAt" | "updatedAt", ExtArgs["result"]["incomeCategory"]> +export type IncomeCategoryInclude = { + parent?: boolean | Prisma.IncomeCategory$parentArgs + children?: boolean | Prisma.IncomeCategory$childrenArgs + incomes?: boolean | Prisma.IncomeCategory$incomesArgs + users?: boolean | Prisma.IncomeCategory$usersArgs + _count?: boolean | Prisma.IncomeCategoryCountOutputTypeDefaultArgs +} +export type IncomeCategoryIncludeCreateManyAndReturn = { + parent?: boolean | Prisma.IncomeCategory$parentArgs +} +export type IncomeCategoryIncludeUpdateManyAndReturn = { + parent?: boolean | Prisma.IncomeCategory$parentArgs +} + +export type $IncomeCategoryPayload = { + name: "IncomeCategory" + objects: { + parent: Prisma.$IncomeCategoryPayload | null + children: Prisma.$IncomeCategoryPayload[] + incomes: Prisma.$IncomePayload[] + users: Prisma.$UserIncomeCategoryPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + parentId: string | null + name: string + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["incomeCategory"]> + composites: {} +} + +export type IncomeCategoryGetPayload = runtime.Types.Result.GetResult + +export type IncomeCategoryCountArgs = + Omit & { + select?: IncomeCategoryCountAggregateInputType | true + } + +export interface IncomeCategoryDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['IncomeCategory'], meta: { name: 'IncomeCategory' } } + /** + * Find zero or one IncomeCategory that matches the filter. + * @param {IncomeCategoryFindUniqueArgs} args - Arguments to find a IncomeCategory + * @example + * // Get one IncomeCategory + * const incomeCategory = await prisma.incomeCategory.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__IncomeCategoryClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one IncomeCategory that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {IncomeCategoryFindUniqueOrThrowArgs} args - Arguments to find a IncomeCategory + * @example + * // Get one IncomeCategory + * const incomeCategory = await prisma.incomeCategory.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__IncomeCategoryClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first IncomeCategory 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 {IncomeCategoryFindFirstArgs} args - Arguments to find a IncomeCategory + * @example + * // Get one IncomeCategory + * const incomeCategory = await prisma.incomeCategory.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__IncomeCategoryClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first IncomeCategory 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 {IncomeCategoryFindFirstOrThrowArgs} args - Arguments to find a IncomeCategory + * @example + * // Get one IncomeCategory + * const incomeCategory = await prisma.incomeCategory.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__IncomeCategoryClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more IncomeCategories 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 {IncomeCategoryFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all IncomeCategories + * const incomeCategories = await prisma.incomeCategory.findMany() + * + * // Get first 10 IncomeCategories + * const incomeCategories = await prisma.incomeCategory.findMany({ take: 10 }) + * + * // Only select the `id` + * const incomeCategoryWithIdOnly = await prisma.incomeCategory.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a IncomeCategory. + * @param {IncomeCategoryCreateArgs} args - Arguments to create a IncomeCategory. + * @example + * // Create one IncomeCategory + * const IncomeCategory = await prisma.incomeCategory.create({ + * data: { + * // ... data to create a IncomeCategory + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__IncomeCategoryClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many IncomeCategories. + * @param {IncomeCategoryCreateManyArgs} args - Arguments to create many IncomeCategories. + * @example + * // Create many IncomeCategories + * const incomeCategory = await prisma.incomeCategory.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many IncomeCategories and returns the data saved in the database. + * @param {IncomeCategoryCreateManyAndReturnArgs} args - Arguments to create many IncomeCategories. + * @example + * // Create many IncomeCategories + * const incomeCategory = await prisma.incomeCategory.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many IncomeCategories and only return the `id` + * const incomeCategoryWithIdOnly = await prisma.incomeCategory.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a IncomeCategory. + * @param {IncomeCategoryDeleteArgs} args - Arguments to delete one IncomeCategory. + * @example + * // Delete one IncomeCategory + * const IncomeCategory = await prisma.incomeCategory.delete({ + * where: { + * // ... filter to delete one IncomeCategory + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__IncomeCategoryClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one IncomeCategory. + * @param {IncomeCategoryUpdateArgs} args - Arguments to update one IncomeCategory. + * @example + * // Update one IncomeCategory + * const incomeCategory = await prisma.incomeCategory.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__IncomeCategoryClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more IncomeCategories. + * @param {IncomeCategoryDeleteManyArgs} args - Arguments to filter IncomeCategories to delete. + * @example + * // Delete a few IncomeCategories + * const { count } = await prisma.incomeCategory.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more IncomeCategories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {IncomeCategoryUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many IncomeCategories + * const incomeCategory = await prisma.incomeCategory.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more IncomeCategories and returns the data updated in the database. + * @param {IncomeCategoryUpdateManyAndReturnArgs} args - Arguments to update many IncomeCategories. + * @example + * // Update many IncomeCategories + * const incomeCategory = await prisma.incomeCategory.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more IncomeCategories and only return the `id` + * const incomeCategoryWithIdOnly = await prisma.incomeCategory.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one IncomeCategory. + * @param {IncomeCategoryUpsertArgs} args - Arguments to update or create a IncomeCategory. + * @example + * // Update or create a IncomeCategory + * const incomeCategory = await prisma.incomeCategory.upsert({ + * create: { + * // ... data to create a IncomeCategory + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the IncomeCategory we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__IncomeCategoryClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of IncomeCategories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {IncomeCategoryCountArgs} args - Arguments to filter IncomeCategories to count. + * @example + * // Count the number of IncomeCategories + * const count = await prisma.incomeCategory.count({ + * where: { + * // ... the filter for the IncomeCategories we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a IncomeCategory. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {IncomeCategoryAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by IncomeCategory. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {IncomeCategoryGroupByArgs} 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 IncomeCategoryGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: IncomeCategoryGroupByArgs['orderBy'] } + : { orderBy?: IncomeCategoryGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetIncomeCategoryGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the IncomeCategory model + */ +readonly fields: IncomeCategoryFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for IncomeCategory. + * 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__IncomeCategoryClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + parent = {}>(args?: Prisma.Subset>): Prisma.Prisma__IncomeCategoryClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + children = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + incomes = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + users = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + /** + * 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the IncomeCategory model + */ +export interface IncomeCategoryFieldRefs { + readonly id: Prisma.FieldRef<"IncomeCategory", 'String'> + readonly parentId: Prisma.FieldRef<"IncomeCategory", 'String'> + readonly name: Prisma.FieldRef<"IncomeCategory", 'String'> + readonly createdAt: Prisma.FieldRef<"IncomeCategory", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"IncomeCategory", 'DateTime'> +} + + +// Custom InputTypes +/** + * IncomeCategory findUnique + */ +export type IncomeCategoryFindUniqueArgs = { + /** + * Select specific fields to fetch from the IncomeCategory + */ + select?: Prisma.IncomeCategorySelect | null + /** + * Omit specific fields from the IncomeCategory + */ + omit?: Prisma.IncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeCategoryInclude | null + /** + * Filter, which IncomeCategory to fetch. + */ + where: Prisma.IncomeCategoryWhereUniqueInput +} + +/** + * IncomeCategory findUniqueOrThrow + */ +export type IncomeCategoryFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the IncomeCategory + */ + select?: Prisma.IncomeCategorySelect | null + /** + * Omit specific fields from the IncomeCategory + */ + omit?: Prisma.IncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeCategoryInclude | null + /** + * Filter, which IncomeCategory to fetch. + */ + where: Prisma.IncomeCategoryWhereUniqueInput +} + +/** + * IncomeCategory findFirst + */ +export type IncomeCategoryFindFirstArgs = { + /** + * Select specific fields to fetch from the IncomeCategory + */ + select?: Prisma.IncomeCategorySelect | null + /** + * Omit specific fields from the IncomeCategory + */ + omit?: Prisma.IncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeCategoryInclude | null + /** + * Filter, which IncomeCategory to fetch. + */ + where?: Prisma.IncomeCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of IncomeCategories to fetch. + */ + orderBy?: Prisma.IncomeCategoryOrderByWithRelationInput | Prisma.IncomeCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for IncomeCategories. + */ + cursor?: Prisma.IncomeCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` IncomeCategories 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` IncomeCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of IncomeCategories. + */ + distinct?: Prisma.IncomeCategoryScalarFieldEnum | Prisma.IncomeCategoryScalarFieldEnum[] +} + +/** + * IncomeCategory findFirstOrThrow + */ +export type IncomeCategoryFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the IncomeCategory + */ + select?: Prisma.IncomeCategorySelect | null + /** + * Omit specific fields from the IncomeCategory + */ + omit?: Prisma.IncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeCategoryInclude | null + /** + * Filter, which IncomeCategory to fetch. + */ + where?: Prisma.IncomeCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of IncomeCategories to fetch. + */ + orderBy?: Prisma.IncomeCategoryOrderByWithRelationInput | Prisma.IncomeCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for IncomeCategories. + */ + cursor?: Prisma.IncomeCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` IncomeCategories 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` IncomeCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of IncomeCategories. + */ + distinct?: Prisma.IncomeCategoryScalarFieldEnum | Prisma.IncomeCategoryScalarFieldEnum[] +} + +/** + * IncomeCategory findMany + */ +export type IncomeCategoryFindManyArgs = { + /** + * Select specific fields to fetch from the IncomeCategory + */ + select?: Prisma.IncomeCategorySelect | null + /** + * Omit specific fields from the IncomeCategory + */ + omit?: Prisma.IncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeCategoryInclude | null + /** + * Filter, which IncomeCategories to fetch. + */ + where?: Prisma.IncomeCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of IncomeCategories to fetch. + */ + orderBy?: Prisma.IncomeCategoryOrderByWithRelationInput | Prisma.IncomeCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing IncomeCategories. + */ + cursor?: Prisma.IncomeCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` IncomeCategories 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` IncomeCategories. + */ + skip?: number + distinct?: Prisma.IncomeCategoryScalarFieldEnum | Prisma.IncomeCategoryScalarFieldEnum[] +} + +/** + * IncomeCategory create + */ +export type IncomeCategoryCreateArgs = { + /** + * Select specific fields to fetch from the IncomeCategory + */ + select?: Prisma.IncomeCategorySelect | null + /** + * Omit specific fields from the IncomeCategory + */ + omit?: Prisma.IncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeCategoryInclude | null + /** + * The data needed to create a IncomeCategory. + */ + data: Prisma.XOR +} + +/** + * IncomeCategory createMany + */ +export type IncomeCategoryCreateManyArgs = { + /** + * The data used to create many IncomeCategories. + */ + data: Prisma.IncomeCategoryCreateManyInput | Prisma.IncomeCategoryCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * IncomeCategory createManyAndReturn + */ +export type IncomeCategoryCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the IncomeCategory + */ + select?: Prisma.IncomeCategorySelectCreateManyAndReturn | null + /** + * Omit specific fields from the IncomeCategory + */ + omit?: Prisma.IncomeCategoryOmit | null + /** + * The data used to create many IncomeCategories. + */ + data: Prisma.IncomeCategoryCreateManyInput | Prisma.IncomeCategoryCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeCategoryIncludeCreateManyAndReturn | null +} + +/** + * IncomeCategory update + */ +export type IncomeCategoryUpdateArgs = { + /** + * Select specific fields to fetch from the IncomeCategory + */ + select?: Prisma.IncomeCategorySelect | null + /** + * Omit specific fields from the IncomeCategory + */ + omit?: Prisma.IncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeCategoryInclude | null + /** + * The data needed to update a IncomeCategory. + */ + data: Prisma.XOR + /** + * Choose, which IncomeCategory to update. + */ + where: Prisma.IncomeCategoryWhereUniqueInput +} + +/** + * IncomeCategory updateMany + */ +export type IncomeCategoryUpdateManyArgs = { + /** + * The data used to update IncomeCategories. + */ + data: Prisma.XOR + /** + * Filter which IncomeCategories to update + */ + where?: Prisma.IncomeCategoryWhereInput + /** + * Limit how many IncomeCategories to update. + */ + limit?: number +} + +/** + * IncomeCategory updateManyAndReturn + */ +export type IncomeCategoryUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the IncomeCategory + */ + select?: Prisma.IncomeCategorySelectUpdateManyAndReturn | null + /** + * Omit specific fields from the IncomeCategory + */ + omit?: Prisma.IncomeCategoryOmit | null + /** + * The data used to update IncomeCategories. + */ + data: Prisma.XOR + /** + * Filter which IncomeCategories to update + */ + where?: Prisma.IncomeCategoryWhereInput + /** + * Limit how many IncomeCategories to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeCategoryIncludeUpdateManyAndReturn | null +} + +/** + * IncomeCategory upsert + */ +export type IncomeCategoryUpsertArgs = { + /** + * Select specific fields to fetch from the IncomeCategory + */ + select?: Prisma.IncomeCategorySelect | null + /** + * Omit specific fields from the IncomeCategory + */ + omit?: Prisma.IncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeCategoryInclude | null + /** + * The filter to search for the IncomeCategory to update in case it exists. + */ + where: Prisma.IncomeCategoryWhereUniqueInput + /** + * In case the IncomeCategory found by the `where` argument doesn't exist, create a new IncomeCategory with this data. + */ + create: Prisma.XOR + /** + * In case the IncomeCategory was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * IncomeCategory delete + */ +export type IncomeCategoryDeleteArgs = { + /** + * Select specific fields to fetch from the IncomeCategory + */ + select?: Prisma.IncomeCategorySelect | null + /** + * Omit specific fields from the IncomeCategory + */ + omit?: Prisma.IncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeCategoryInclude | null + /** + * Filter which IncomeCategory to delete. + */ + where: Prisma.IncomeCategoryWhereUniqueInput +} + +/** + * IncomeCategory deleteMany + */ +export type IncomeCategoryDeleteManyArgs = { + /** + * Filter which IncomeCategories to delete + */ + where?: Prisma.IncomeCategoryWhereInput + /** + * Limit how many IncomeCategories to delete. + */ + limit?: number +} + +/** + * IncomeCategory.parent + */ +export type IncomeCategory$parentArgs = { + /** + * Select specific fields to fetch from the IncomeCategory + */ + select?: Prisma.IncomeCategorySelect | null + /** + * Omit specific fields from the IncomeCategory + */ + omit?: Prisma.IncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeCategoryInclude | null + where?: Prisma.IncomeCategoryWhereInput +} + +/** + * IncomeCategory.children + */ +export type IncomeCategory$childrenArgs = { + /** + * Select specific fields to fetch from the IncomeCategory + */ + select?: Prisma.IncomeCategorySelect | null + /** + * Omit specific fields from the IncomeCategory + */ + omit?: Prisma.IncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeCategoryInclude | null + where?: Prisma.IncomeCategoryWhereInput + orderBy?: Prisma.IncomeCategoryOrderByWithRelationInput | Prisma.IncomeCategoryOrderByWithRelationInput[] + cursor?: Prisma.IncomeCategoryWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.IncomeCategoryScalarFieldEnum | Prisma.IncomeCategoryScalarFieldEnum[] +} + +/** + * IncomeCategory.incomes + */ +export type IncomeCategory$incomesArgs = { + /** + * Select specific fields to fetch from the Income + */ + select?: Prisma.IncomeSelect | null + /** + * Omit specific fields from the Income + */ + omit?: Prisma.IncomeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeInclude | null + where?: Prisma.IncomeWhereInput + orderBy?: Prisma.IncomeOrderByWithRelationInput | Prisma.IncomeOrderByWithRelationInput[] + cursor?: Prisma.IncomeWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.IncomeScalarFieldEnum | Prisma.IncomeScalarFieldEnum[] +} + +/** + * IncomeCategory.users + */ +export type IncomeCategory$usersArgs = { + /** + * Select specific fields to fetch from the UserIncomeCategory + */ + select?: Prisma.UserIncomeCategorySelect | null + /** + * Omit specific fields from the UserIncomeCategory + */ + omit?: Prisma.UserIncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserIncomeCategoryInclude | null + where?: Prisma.UserIncomeCategoryWhereInput + orderBy?: Prisma.UserIncomeCategoryOrderByWithRelationInput | Prisma.UserIncomeCategoryOrderByWithRelationInput[] + cursor?: Prisma.UserIncomeCategoryWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.UserIncomeCategoryScalarFieldEnum | Prisma.UserIncomeCategoryScalarFieldEnum[] +} + +/** + * IncomeCategory without action + */ +export type IncomeCategoryDefaultArgs = { + /** + * Select specific fields to fetch from the IncomeCategory + */ + select?: Prisma.IncomeCategorySelect | null + /** + * Omit specific fields from the IncomeCategory + */ + omit?: Prisma.IncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeCategoryInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/Item.ts b/apps/backend/prisma/generated/generated/prisma/models/Item.ts new file mode 100644 index 00000000..bbe50a44 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/Item.ts @@ -0,0 +1,1768 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Item` 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 Item + * + */ +export type ItemModel = runtime.Types.Result.DefaultSelection + +export type AggregateItem = { + _count: ItemCountAggregateOutputType | null + _min: ItemMinAggregateOutputType | null + _max: ItemMaxAggregateOutputType | null +} + +export type ItemMinAggregateOutputType = { + id: string | null + categoryId: string | null + name: string | null + nameEn: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type ItemMaxAggregateOutputType = { + id: string | null + categoryId: string | null + name: string | null + nameEn: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type ItemCountAggregateOutputType = { + id: number + categoryId: number + name: number + nameEn: number + createdAt: number + updatedAt: number + _all: number +} + + +export type ItemMinAggregateInputType = { + id?: true + categoryId?: true + name?: true + nameEn?: true + createdAt?: true + updatedAt?: true +} + +export type ItemMaxAggregateInputType = { + id?: true + categoryId?: true + name?: true + nameEn?: true + createdAt?: true + updatedAt?: true +} + +export type ItemCountAggregateInputType = { + id?: true + categoryId?: true + name?: true + nameEn?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type ItemAggregateArgs = { + /** + * Filter which Item to aggregate. + */ + where?: Prisma.ItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Items to fetch. + */ + orderBy?: Prisma.ItemOrderByWithRelationInput | Prisma.ItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Items 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` Items. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Items + **/ + _count?: true | ItemCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ItemMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ItemMaxAggregateInputType +} + +export type GetItemAggregateType = { + [P in keyof T & keyof AggregateItem]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ItemGroupByArgs = { + where?: Prisma.ItemWhereInput + orderBy?: Prisma.ItemOrderByWithAggregationInput | Prisma.ItemOrderByWithAggregationInput[] + by: Prisma.ItemScalarFieldEnum[] | Prisma.ItemScalarFieldEnum + having?: Prisma.ItemScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ItemCountAggregateInputType | true + _min?: ItemMinAggregateInputType + _max?: ItemMaxAggregateInputType +} + +export type ItemGroupByOutputType = { + id: string + categoryId: string + name: string + nameEn: string | null + createdAt: Date + updatedAt: Date + _count: ItemCountAggregateOutputType | null + _min: ItemMinAggregateOutputType | null + _max: ItemMaxAggregateOutputType | null +} + +type GetItemGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ItemGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ItemWhereInput = { + AND?: Prisma.ItemWhereInput | Prisma.ItemWhereInput[] + OR?: Prisma.ItemWhereInput[] + NOT?: Prisma.ItemWhereInput | Prisma.ItemWhereInput[] + id?: Prisma.StringFilter<"Item"> | string + categoryId?: Prisma.StringFilter<"Item"> | string + name?: Prisma.StringFilter<"Item"> | string + nameEn?: Prisma.StringNullableFilter<"Item"> | string | null + createdAt?: Prisma.DateTimeFilter<"Item"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Item"> | Date | string + category?: Prisma.XOR + stores?: Prisma.StoreItemListRelationFilter + users?: Prisma.UserItemListRelationFilter + sizes?: Prisma.ItemSizeListRelationFilter +} + +export type ItemOrderByWithRelationInput = { + id?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + name?: Prisma.SortOrder + nameEn?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + category?: Prisma.ItemCategoryOrderByWithRelationInput + stores?: Prisma.StoreItemOrderByRelationAggregateInput + users?: Prisma.UserItemOrderByRelationAggregateInput + sizes?: Prisma.ItemSizeOrderByRelationAggregateInput +} + +export type ItemWhereUniqueInput = Prisma.AtLeast<{ + id?: string + name?: string + AND?: Prisma.ItemWhereInput | Prisma.ItemWhereInput[] + OR?: Prisma.ItemWhereInput[] + NOT?: Prisma.ItemWhereInput | Prisma.ItemWhereInput[] + categoryId?: Prisma.StringFilter<"Item"> | string + nameEn?: Prisma.StringNullableFilter<"Item"> | string | null + createdAt?: Prisma.DateTimeFilter<"Item"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Item"> | Date | string + category?: Prisma.XOR + stores?: Prisma.StoreItemListRelationFilter + users?: Prisma.UserItemListRelationFilter + sizes?: Prisma.ItemSizeListRelationFilter +}, "id" | "name"> + +export type ItemOrderByWithAggregationInput = { + id?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + name?: Prisma.SortOrder + nameEn?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.ItemCountOrderByAggregateInput + _max?: Prisma.ItemMaxOrderByAggregateInput + _min?: Prisma.ItemMinOrderByAggregateInput +} + +export type ItemScalarWhereWithAggregatesInput = { + AND?: Prisma.ItemScalarWhereWithAggregatesInput | Prisma.ItemScalarWhereWithAggregatesInput[] + OR?: Prisma.ItemScalarWhereWithAggregatesInput[] + NOT?: Prisma.ItemScalarWhereWithAggregatesInput | Prisma.ItemScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Item"> | string + categoryId?: Prisma.StringWithAggregatesFilter<"Item"> | string + name?: Prisma.StringWithAggregatesFilter<"Item"> | string + nameEn?: Prisma.StringNullableWithAggregatesFilter<"Item"> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Item"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Item"> | Date | string +} + +export type ItemCreateInput = { + id?: string + name: string + nameEn?: string | null + createdAt?: Date | string + updatedAt?: Date | string + category: Prisma.ItemCategoryCreateNestedOneWithoutItemsInput + stores?: Prisma.StoreItemCreateNestedManyWithoutItemInput + users?: Prisma.UserItemCreateNestedManyWithoutItemInput + sizes?: Prisma.ItemSizeCreateNestedManyWithoutItemInput +} + +export type ItemUncheckedCreateInput = { + id?: string + categoryId: string + name: string + nameEn?: string | null + createdAt?: Date | string + updatedAt?: Date | string + stores?: Prisma.StoreItemUncheckedCreateNestedManyWithoutItemInput + users?: Prisma.UserItemUncheckedCreateNestedManyWithoutItemInput + sizes?: Prisma.ItemSizeUncheckedCreateNestedManyWithoutItemInput +} + +export type ItemUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameEn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.ItemCategoryUpdateOneRequiredWithoutItemsNestedInput + stores?: Prisma.StoreItemUpdateManyWithoutItemNestedInput + users?: Prisma.UserItemUpdateManyWithoutItemNestedInput + sizes?: Prisma.ItemSizeUpdateManyWithoutItemNestedInput +} + +export type ItemUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameEn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + stores?: Prisma.StoreItemUncheckedUpdateManyWithoutItemNestedInput + users?: Prisma.UserItemUncheckedUpdateManyWithoutItemNestedInput + sizes?: Prisma.ItemSizeUncheckedUpdateManyWithoutItemNestedInput +} + +export type ItemCreateManyInput = { + id?: string + categoryId: string + name: string + nameEn?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ItemUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameEn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ItemUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameEn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ItemCountOrderByAggregateInput = { + id?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + name?: Prisma.SortOrder + nameEn?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ItemMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + name?: Prisma.SortOrder + nameEn?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ItemMinOrderByAggregateInput = { + id?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + name?: Prisma.SortOrder + nameEn?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ItemScalarRelationFilter = { + is?: Prisma.ItemWhereInput + isNot?: Prisma.ItemWhereInput +} + +export type ItemListRelationFilter = { + every?: Prisma.ItemWhereInput + some?: Prisma.ItemWhereInput + none?: Prisma.ItemWhereInput +} + +export type ItemOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ItemCreateNestedOneWithoutStoresInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ItemCreateOrConnectWithoutStoresInput + connect?: Prisma.ItemWhereUniqueInput +} + +export type ItemUpdateOneRequiredWithoutStoresNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ItemCreateOrConnectWithoutStoresInput + upsert?: Prisma.ItemUpsertWithoutStoresInput + connect?: Prisma.ItemWhereUniqueInput + update?: Prisma.XOR, Prisma.ItemUncheckedUpdateWithoutStoresInput> +} + +export type ItemCreateNestedOneWithoutSizesInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ItemCreateOrConnectWithoutSizesInput + connect?: Prisma.ItemWhereUniqueInput +} + +export type ItemUpdateOneRequiredWithoutSizesNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ItemCreateOrConnectWithoutSizesInput + upsert?: Prisma.ItemUpsertWithoutSizesInput + connect?: Prisma.ItemWhereUniqueInput + update?: Prisma.XOR, Prisma.ItemUncheckedUpdateWithoutSizesInput> +} + +export type ItemCreateNestedManyWithoutCategoryInput = { + create?: Prisma.XOR | Prisma.ItemCreateWithoutCategoryInput[] | Prisma.ItemUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.ItemCreateOrConnectWithoutCategoryInput | Prisma.ItemCreateOrConnectWithoutCategoryInput[] + createMany?: Prisma.ItemCreateManyCategoryInputEnvelope + connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[] +} + +export type ItemUncheckedCreateNestedManyWithoutCategoryInput = { + create?: Prisma.XOR | Prisma.ItemCreateWithoutCategoryInput[] | Prisma.ItemUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.ItemCreateOrConnectWithoutCategoryInput | Prisma.ItemCreateOrConnectWithoutCategoryInput[] + createMany?: Prisma.ItemCreateManyCategoryInputEnvelope + connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[] +} + +export type ItemUpdateManyWithoutCategoryNestedInput = { + create?: Prisma.XOR | Prisma.ItemCreateWithoutCategoryInput[] | Prisma.ItemUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.ItemCreateOrConnectWithoutCategoryInput | Prisma.ItemCreateOrConnectWithoutCategoryInput[] + upsert?: Prisma.ItemUpsertWithWhereUniqueWithoutCategoryInput | Prisma.ItemUpsertWithWhereUniqueWithoutCategoryInput[] + createMany?: Prisma.ItemCreateManyCategoryInputEnvelope + set?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[] + disconnect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[] + delete?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[] + connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[] + update?: Prisma.ItemUpdateWithWhereUniqueWithoutCategoryInput | Prisma.ItemUpdateWithWhereUniqueWithoutCategoryInput[] + updateMany?: Prisma.ItemUpdateManyWithWhereWithoutCategoryInput | Prisma.ItemUpdateManyWithWhereWithoutCategoryInput[] + deleteMany?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[] +} + +export type ItemUncheckedUpdateManyWithoutCategoryNestedInput = { + create?: Prisma.XOR | Prisma.ItemCreateWithoutCategoryInput[] | Prisma.ItemUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.ItemCreateOrConnectWithoutCategoryInput | Prisma.ItemCreateOrConnectWithoutCategoryInput[] + upsert?: Prisma.ItemUpsertWithWhereUniqueWithoutCategoryInput | Prisma.ItemUpsertWithWhereUniqueWithoutCategoryInput[] + createMany?: Prisma.ItemCreateManyCategoryInputEnvelope + set?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[] + disconnect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[] + delete?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[] + connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[] + update?: Prisma.ItemUpdateWithWhereUniqueWithoutCategoryInput | Prisma.ItemUpdateWithWhereUniqueWithoutCategoryInput[] + updateMany?: Prisma.ItemUpdateManyWithWhereWithoutCategoryInput | Prisma.ItemUpdateManyWithWhereWithoutCategoryInput[] + deleteMany?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[] +} + +export type ItemCreateNestedOneWithoutUsersInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ItemCreateOrConnectWithoutUsersInput + connect?: Prisma.ItemWhereUniqueInput +} + +export type ItemUpdateOneRequiredWithoutUsersNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ItemCreateOrConnectWithoutUsersInput + upsert?: Prisma.ItemUpsertWithoutUsersInput + connect?: Prisma.ItemWhereUniqueInput + update?: Prisma.XOR, Prisma.ItemUncheckedUpdateWithoutUsersInput> +} + +export type ItemCreateWithoutStoresInput = { + id?: string + name: string + nameEn?: string | null + createdAt?: Date | string + updatedAt?: Date | string + category: Prisma.ItemCategoryCreateNestedOneWithoutItemsInput + users?: Prisma.UserItemCreateNestedManyWithoutItemInput + sizes?: Prisma.ItemSizeCreateNestedManyWithoutItemInput +} + +export type ItemUncheckedCreateWithoutStoresInput = { + id?: string + categoryId: string + name: string + nameEn?: string | null + createdAt?: Date | string + updatedAt?: Date | string + users?: Prisma.UserItemUncheckedCreateNestedManyWithoutItemInput + sizes?: Prisma.ItemSizeUncheckedCreateNestedManyWithoutItemInput +} + +export type ItemCreateOrConnectWithoutStoresInput = { + where: Prisma.ItemWhereUniqueInput + create: Prisma.XOR +} + +export type ItemUpsertWithoutStoresInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ItemWhereInput +} + +export type ItemUpdateToOneWithWhereWithoutStoresInput = { + where?: Prisma.ItemWhereInput + data: Prisma.XOR +} + +export type ItemUpdateWithoutStoresInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameEn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.ItemCategoryUpdateOneRequiredWithoutItemsNestedInput + users?: Prisma.UserItemUpdateManyWithoutItemNestedInput + sizes?: Prisma.ItemSizeUpdateManyWithoutItemNestedInput +} + +export type ItemUncheckedUpdateWithoutStoresInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameEn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + users?: Prisma.UserItemUncheckedUpdateManyWithoutItemNestedInput + sizes?: Prisma.ItemSizeUncheckedUpdateManyWithoutItemNestedInput +} + +export type ItemCreateWithoutSizesInput = { + id?: string + name: string + nameEn?: string | null + createdAt?: Date | string + updatedAt?: Date | string + category: Prisma.ItemCategoryCreateNestedOneWithoutItemsInput + stores?: Prisma.StoreItemCreateNestedManyWithoutItemInput + users?: Prisma.UserItemCreateNestedManyWithoutItemInput +} + +export type ItemUncheckedCreateWithoutSizesInput = { + id?: string + categoryId: string + name: string + nameEn?: string | null + createdAt?: Date | string + updatedAt?: Date | string + stores?: Prisma.StoreItemUncheckedCreateNestedManyWithoutItemInput + users?: Prisma.UserItemUncheckedCreateNestedManyWithoutItemInput +} + +export type ItemCreateOrConnectWithoutSizesInput = { + where: Prisma.ItemWhereUniqueInput + create: Prisma.XOR +} + +export type ItemUpsertWithoutSizesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ItemWhereInput +} + +export type ItemUpdateToOneWithWhereWithoutSizesInput = { + where?: Prisma.ItemWhereInput + data: Prisma.XOR +} + +export type ItemUpdateWithoutSizesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameEn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.ItemCategoryUpdateOneRequiredWithoutItemsNestedInput + stores?: Prisma.StoreItemUpdateManyWithoutItemNestedInput + users?: Prisma.UserItemUpdateManyWithoutItemNestedInput +} + +export type ItemUncheckedUpdateWithoutSizesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameEn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + stores?: Prisma.StoreItemUncheckedUpdateManyWithoutItemNestedInput + users?: Prisma.UserItemUncheckedUpdateManyWithoutItemNestedInput +} + +export type ItemCreateWithoutCategoryInput = { + id?: string + name: string + nameEn?: string | null + createdAt?: Date | string + updatedAt?: Date | string + stores?: Prisma.StoreItemCreateNestedManyWithoutItemInput + users?: Prisma.UserItemCreateNestedManyWithoutItemInput + sizes?: Prisma.ItemSizeCreateNestedManyWithoutItemInput +} + +export type ItemUncheckedCreateWithoutCategoryInput = { + id?: string + name: string + nameEn?: string | null + createdAt?: Date | string + updatedAt?: Date | string + stores?: Prisma.StoreItemUncheckedCreateNestedManyWithoutItemInput + users?: Prisma.UserItemUncheckedCreateNestedManyWithoutItemInput + sizes?: Prisma.ItemSizeUncheckedCreateNestedManyWithoutItemInput +} + +export type ItemCreateOrConnectWithoutCategoryInput = { + where: Prisma.ItemWhereUniqueInput + create: Prisma.XOR +} + +export type ItemCreateManyCategoryInputEnvelope = { + data: Prisma.ItemCreateManyCategoryInput | Prisma.ItemCreateManyCategoryInput[] + skipDuplicates?: boolean +} + +export type ItemUpsertWithWhereUniqueWithoutCategoryInput = { + where: Prisma.ItemWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ItemUpdateWithWhereUniqueWithoutCategoryInput = { + where: Prisma.ItemWhereUniqueInput + data: Prisma.XOR +} + +export type ItemUpdateManyWithWhereWithoutCategoryInput = { + where: Prisma.ItemScalarWhereInput + data: Prisma.XOR +} + +export type ItemScalarWhereInput = { + AND?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[] + OR?: Prisma.ItemScalarWhereInput[] + NOT?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[] + id?: Prisma.StringFilter<"Item"> | string + categoryId?: Prisma.StringFilter<"Item"> | string + name?: Prisma.StringFilter<"Item"> | string + nameEn?: Prisma.StringNullableFilter<"Item"> | string | null + createdAt?: Prisma.DateTimeFilter<"Item"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Item"> | Date | string +} + +export type ItemCreateWithoutUsersInput = { + id?: string + name: string + nameEn?: string | null + createdAt?: Date | string + updatedAt?: Date | string + category: Prisma.ItemCategoryCreateNestedOneWithoutItemsInput + stores?: Prisma.StoreItemCreateNestedManyWithoutItemInput + sizes?: Prisma.ItemSizeCreateNestedManyWithoutItemInput +} + +export type ItemUncheckedCreateWithoutUsersInput = { + id?: string + categoryId: string + name: string + nameEn?: string | null + createdAt?: Date | string + updatedAt?: Date | string + stores?: Prisma.StoreItemUncheckedCreateNestedManyWithoutItemInput + sizes?: Prisma.ItemSizeUncheckedCreateNestedManyWithoutItemInput +} + +export type ItemCreateOrConnectWithoutUsersInput = { + where: Prisma.ItemWhereUniqueInput + create: Prisma.XOR +} + +export type ItemUpsertWithoutUsersInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ItemWhereInput +} + +export type ItemUpdateToOneWithWhereWithoutUsersInput = { + where?: Prisma.ItemWhereInput + data: Prisma.XOR +} + +export type ItemUpdateWithoutUsersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameEn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.ItemCategoryUpdateOneRequiredWithoutItemsNestedInput + stores?: Prisma.StoreItemUpdateManyWithoutItemNestedInput + sizes?: Prisma.ItemSizeUpdateManyWithoutItemNestedInput +} + +export type ItemUncheckedUpdateWithoutUsersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameEn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + stores?: Prisma.StoreItemUncheckedUpdateManyWithoutItemNestedInput + sizes?: Prisma.ItemSizeUncheckedUpdateManyWithoutItemNestedInput +} + +export type ItemCreateManyCategoryInput = { + id?: string + name: string + nameEn?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ItemUpdateWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameEn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + stores?: Prisma.StoreItemUpdateManyWithoutItemNestedInput + users?: Prisma.UserItemUpdateManyWithoutItemNestedInput + sizes?: Prisma.ItemSizeUpdateManyWithoutItemNestedInput +} + +export type ItemUncheckedUpdateWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameEn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + stores?: Prisma.StoreItemUncheckedUpdateManyWithoutItemNestedInput + users?: Prisma.UserItemUncheckedUpdateManyWithoutItemNestedInput + sizes?: Prisma.ItemSizeUncheckedUpdateManyWithoutItemNestedInput +} + +export type ItemUncheckedUpdateManyWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameEn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + +/** + * Count Type ItemCountOutputType + */ + +export type ItemCountOutputType = { + stores: number + users: number + sizes: number +} + +export type ItemCountOutputTypeSelect = { + stores?: boolean | ItemCountOutputTypeCountStoresArgs + users?: boolean | ItemCountOutputTypeCountUsersArgs + sizes?: boolean | ItemCountOutputTypeCountSizesArgs +} + +/** + * ItemCountOutputType without action + */ +export type ItemCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the ItemCountOutputType + */ + select?: Prisma.ItemCountOutputTypeSelect | null +} + +/** + * ItemCountOutputType without action + */ +export type ItemCountOutputTypeCountStoresArgs = { + where?: Prisma.StoreItemWhereInput +} + +/** + * ItemCountOutputType without action + */ +export type ItemCountOutputTypeCountUsersArgs = { + where?: Prisma.UserItemWhereInput +} + +/** + * ItemCountOutputType without action + */ +export type ItemCountOutputTypeCountSizesArgs = { + where?: Prisma.ItemSizeWhereInput +} + + +export type ItemSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + categoryId?: boolean + name?: boolean + nameEn?: boolean + createdAt?: boolean + updatedAt?: boolean + category?: boolean | Prisma.ItemCategoryDefaultArgs + stores?: boolean | Prisma.Item$storesArgs + users?: boolean | Prisma.Item$usersArgs + sizes?: boolean | Prisma.Item$sizesArgs + _count?: boolean | Prisma.ItemCountOutputTypeDefaultArgs +}, ExtArgs["result"]["item"]> + +export type ItemSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + categoryId?: boolean + name?: boolean + nameEn?: boolean + createdAt?: boolean + updatedAt?: boolean + category?: boolean | Prisma.ItemCategoryDefaultArgs +}, ExtArgs["result"]["item"]> + +export type ItemSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + categoryId?: boolean + name?: boolean + nameEn?: boolean + createdAt?: boolean + updatedAt?: boolean + category?: boolean | Prisma.ItemCategoryDefaultArgs +}, ExtArgs["result"]["item"]> + +export type ItemSelectScalar = { + id?: boolean + categoryId?: boolean + name?: boolean + nameEn?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type ItemOmit = runtime.Types.Extensions.GetOmit<"id" | "categoryId" | "name" | "nameEn" | "createdAt" | "updatedAt", ExtArgs["result"]["item"]> +export type ItemInclude = { + category?: boolean | Prisma.ItemCategoryDefaultArgs + stores?: boolean | Prisma.Item$storesArgs + users?: boolean | Prisma.Item$usersArgs + sizes?: boolean | Prisma.Item$sizesArgs + _count?: boolean | Prisma.ItemCountOutputTypeDefaultArgs +} +export type ItemIncludeCreateManyAndReturn = { + category?: boolean | Prisma.ItemCategoryDefaultArgs +} +export type ItemIncludeUpdateManyAndReturn = { + category?: boolean | Prisma.ItemCategoryDefaultArgs +} + +export type $ItemPayload = { + name: "Item" + objects: { + category: Prisma.$ItemCategoryPayload + stores: Prisma.$StoreItemPayload[] + users: Prisma.$UserItemPayload[] + sizes: Prisma.$ItemSizePayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + categoryId: string + name: string + nameEn: string | null + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["item"]> + composites: {} +} + +export type ItemGetPayload = runtime.Types.Result.GetResult + +export type ItemCountArgs = + Omit & { + select?: ItemCountAggregateInputType | true + } + +export interface ItemDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Item'], meta: { name: 'Item' } } + /** + * Find zero or one Item that matches the filter. + * @param {ItemFindUniqueArgs} args - Arguments to find a Item + * @example + * // Get one Item + * const item = await prisma.item.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ItemClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Item that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ItemFindUniqueOrThrowArgs} args - Arguments to find a Item + * @example + * // Get one Item + * const item = await prisma.item.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ItemClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Item 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 {ItemFindFirstArgs} args - Arguments to find a Item + * @example + * // Get one Item + * const item = await prisma.item.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ItemClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Item 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 {ItemFindFirstOrThrowArgs} args - Arguments to find a Item + * @example + * // Get one Item + * const item = await prisma.item.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ItemClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Items 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 {ItemFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Items + * const items = await prisma.item.findMany() + * + * // Get first 10 Items + * const items = await prisma.item.findMany({ take: 10 }) + * + * // Only select the `id` + * const itemWithIdOnly = await prisma.item.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Item. + * @param {ItemCreateArgs} args - Arguments to create a Item. + * @example + * // Create one Item + * const Item = await prisma.item.create({ + * data: { + * // ... data to create a Item + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ItemClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Items. + * @param {ItemCreateManyArgs} args - Arguments to create many Items. + * @example + * // Create many Items + * const item = await prisma.item.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Items and returns the data saved in the database. + * @param {ItemCreateManyAndReturnArgs} args - Arguments to create many Items. + * @example + * // Create many Items + * const item = await prisma.item.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Items and only return the `id` + * const itemWithIdOnly = await prisma.item.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Item. + * @param {ItemDeleteArgs} args - Arguments to delete one Item. + * @example + * // Delete one Item + * const Item = await prisma.item.delete({ + * where: { + * // ... filter to delete one Item + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ItemClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Item. + * @param {ItemUpdateArgs} args - Arguments to update one Item. + * @example + * // Update one Item + * const item = await prisma.item.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ItemClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Items. + * @param {ItemDeleteManyArgs} args - Arguments to filter Items to delete. + * @example + * // Delete a few Items + * const { count } = await prisma.item.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Items. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ItemUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Items + * const item = await prisma.item.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Items and returns the data updated in the database. + * @param {ItemUpdateManyAndReturnArgs} args - Arguments to update many Items. + * @example + * // Update many Items + * const item = await prisma.item.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Items and only return the `id` + * const itemWithIdOnly = await prisma.item.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Item. + * @param {ItemUpsertArgs} args - Arguments to update or create a Item. + * @example + * // Update or create a Item + * const item = await prisma.item.upsert({ + * create: { + * // ... data to create a Item + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Item we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ItemClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Items. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ItemCountArgs} args - Arguments to filter Items to count. + * @example + * // Count the number of Items + * const count = await prisma.item.count({ + * where: { + * // ... the filter for the Items we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Item. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ItemAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Item. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ItemGroupByArgs} 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 ItemGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ItemGroupByArgs['orderBy'] } + : { orderBy?: ItemGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetItemGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Item model + */ +readonly fields: ItemFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Item. + * 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__ItemClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + category = {}>(args?: Prisma.Subset>): Prisma.Prisma__ItemCategoryClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + stores = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + users = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + sizes = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + /** + * 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the Item model + */ +export interface ItemFieldRefs { + readonly id: Prisma.FieldRef<"Item", 'String'> + readonly categoryId: Prisma.FieldRef<"Item", 'String'> + readonly name: Prisma.FieldRef<"Item", 'String'> + readonly nameEn: Prisma.FieldRef<"Item", 'String'> + readonly createdAt: Prisma.FieldRef<"Item", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Item", 'DateTime'> +} + + +// Custom InputTypes +/** + * Item findUnique + */ +export type ItemFindUniqueArgs = { + /** + * Select specific fields to fetch from the Item + */ + select?: Prisma.ItemSelect | null + /** + * Omit specific fields from the Item + */ + omit?: Prisma.ItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemInclude | null + /** + * Filter, which Item to fetch. + */ + where: Prisma.ItemWhereUniqueInput +} + +/** + * Item findUniqueOrThrow + */ +export type ItemFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Item + */ + select?: Prisma.ItemSelect | null + /** + * Omit specific fields from the Item + */ + omit?: Prisma.ItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemInclude | null + /** + * Filter, which Item to fetch. + */ + where: Prisma.ItemWhereUniqueInput +} + +/** + * Item findFirst + */ +export type ItemFindFirstArgs = { + /** + * Select specific fields to fetch from the Item + */ + select?: Prisma.ItemSelect | null + /** + * Omit specific fields from the Item + */ + omit?: Prisma.ItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemInclude | null + /** + * Filter, which Item to fetch. + */ + where?: Prisma.ItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Items to fetch. + */ + orderBy?: Prisma.ItemOrderByWithRelationInput | Prisma.ItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Items. + */ + cursor?: Prisma.ItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Items 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` Items. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Items. + */ + distinct?: Prisma.ItemScalarFieldEnum | Prisma.ItemScalarFieldEnum[] +} + +/** + * Item findFirstOrThrow + */ +export type ItemFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Item + */ + select?: Prisma.ItemSelect | null + /** + * Omit specific fields from the Item + */ + omit?: Prisma.ItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemInclude | null + /** + * Filter, which Item to fetch. + */ + where?: Prisma.ItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Items to fetch. + */ + orderBy?: Prisma.ItemOrderByWithRelationInput | Prisma.ItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Items. + */ + cursor?: Prisma.ItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Items 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` Items. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Items. + */ + distinct?: Prisma.ItemScalarFieldEnum | Prisma.ItemScalarFieldEnum[] +} + +/** + * Item findMany + */ +export type ItemFindManyArgs = { + /** + * Select specific fields to fetch from the Item + */ + select?: Prisma.ItemSelect | null + /** + * Omit specific fields from the Item + */ + omit?: Prisma.ItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemInclude | null + /** + * Filter, which Items to fetch. + */ + where?: Prisma.ItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Items to fetch. + */ + orderBy?: Prisma.ItemOrderByWithRelationInput | Prisma.ItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Items. + */ + cursor?: Prisma.ItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Items 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` Items. + */ + skip?: number + distinct?: Prisma.ItemScalarFieldEnum | Prisma.ItemScalarFieldEnum[] +} + +/** + * Item create + */ +export type ItemCreateArgs = { + /** + * Select specific fields to fetch from the Item + */ + select?: Prisma.ItemSelect | null + /** + * Omit specific fields from the Item + */ + omit?: Prisma.ItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemInclude | null + /** + * The data needed to create a Item. + */ + data: Prisma.XOR +} + +/** + * Item createMany + */ +export type ItemCreateManyArgs = { + /** + * The data used to create many Items. + */ + data: Prisma.ItemCreateManyInput | Prisma.ItemCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Item createManyAndReturn + */ +export type ItemCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Item + */ + select?: Prisma.ItemSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Item + */ + omit?: Prisma.ItemOmit | null + /** + * The data used to create many Items. + */ + data: Prisma.ItemCreateManyInput | Prisma.ItemCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemIncludeCreateManyAndReturn | null +} + +/** + * Item update + */ +export type ItemUpdateArgs = { + /** + * Select specific fields to fetch from the Item + */ + select?: Prisma.ItemSelect | null + /** + * Omit specific fields from the Item + */ + omit?: Prisma.ItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemInclude | null + /** + * The data needed to update a Item. + */ + data: Prisma.XOR + /** + * Choose, which Item to update. + */ + where: Prisma.ItemWhereUniqueInput +} + +/** + * Item updateMany + */ +export type ItemUpdateManyArgs = { + /** + * The data used to update Items. + */ + data: Prisma.XOR + /** + * Filter which Items to update + */ + where?: Prisma.ItemWhereInput + /** + * Limit how many Items to update. + */ + limit?: number +} + +/** + * Item updateManyAndReturn + */ +export type ItemUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Item + */ + select?: Prisma.ItemSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Item + */ + omit?: Prisma.ItemOmit | null + /** + * The data used to update Items. + */ + data: Prisma.XOR + /** + * Filter which Items to update + */ + where?: Prisma.ItemWhereInput + /** + * Limit how many Items to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemIncludeUpdateManyAndReturn | null +} + +/** + * Item upsert + */ +export type ItemUpsertArgs = { + /** + * Select specific fields to fetch from the Item + */ + select?: Prisma.ItemSelect | null + /** + * Omit specific fields from the Item + */ + omit?: Prisma.ItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemInclude | null + /** + * The filter to search for the Item to update in case it exists. + */ + where: Prisma.ItemWhereUniqueInput + /** + * In case the Item found by the `where` argument doesn't exist, create a new Item with this data. + */ + create: Prisma.XOR + /** + * In case the Item was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Item delete + */ +export type ItemDeleteArgs = { + /** + * Select specific fields to fetch from the Item + */ + select?: Prisma.ItemSelect | null + /** + * Omit specific fields from the Item + */ + omit?: Prisma.ItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemInclude | null + /** + * Filter which Item to delete. + */ + where: Prisma.ItemWhereUniqueInput +} + +/** + * Item deleteMany + */ +export type ItemDeleteManyArgs = { + /** + * Filter which Items to delete + */ + where?: Prisma.ItemWhereInput + /** + * Limit how many Items to delete. + */ + limit?: number +} + +/** + * Item.stores + */ +export type Item$storesArgs = { + /** + * Select specific fields to fetch from the StoreItem + */ + select?: Prisma.StoreItemSelect | null + /** + * Omit specific fields from the StoreItem + */ + omit?: Prisma.StoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemInclude | null + where?: Prisma.StoreItemWhereInput + orderBy?: Prisma.StoreItemOrderByWithRelationInput | Prisma.StoreItemOrderByWithRelationInput[] + cursor?: Prisma.StoreItemWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.StoreItemScalarFieldEnum | Prisma.StoreItemScalarFieldEnum[] +} + +/** + * Item.users + */ +export type Item$usersArgs = { + /** + * Select specific fields to fetch from the UserItem + */ + select?: Prisma.UserItemSelect | null + /** + * Omit specific fields from the UserItem + */ + omit?: Prisma.UserItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemInclude | null + where?: Prisma.UserItemWhereInput + orderBy?: Prisma.UserItemOrderByWithRelationInput | Prisma.UserItemOrderByWithRelationInput[] + cursor?: Prisma.UserItemWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.UserItemScalarFieldEnum | Prisma.UserItemScalarFieldEnum[] +} + +/** + * Item.sizes + */ +export type Item$sizesArgs = { + /** + * Select specific fields to fetch from the ItemSize + */ + select?: Prisma.ItemSizeSelect | null + /** + * Omit specific fields from the ItemSize + */ + omit?: Prisma.ItemSizeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemSizeInclude | null + where?: Prisma.ItemSizeWhereInput + orderBy?: Prisma.ItemSizeOrderByWithRelationInput | Prisma.ItemSizeOrderByWithRelationInput[] + cursor?: Prisma.ItemSizeWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ItemSizeScalarFieldEnum | Prisma.ItemSizeScalarFieldEnum[] +} + +/** + * Item without action + */ +export type ItemDefaultArgs = { + /** + * Select specific fields to fetch from the Item + */ + select?: Prisma.ItemSelect | null + /** + * Omit specific fields from the Item + */ + omit?: Prisma.ItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/ItemCategory.ts b/apps/backend/prisma/generated/generated/prisma/models/ItemCategory.ts new file mode 100644 index 00000000..0d26f908 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/ItemCategory.ts @@ -0,0 +1,1883 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ItemCategory` 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 ItemCategory + * + */ +export type ItemCategoryModel = runtime.Types.Result.DefaultSelection + +export type AggregateItemCategory = { + _count: ItemCategoryCountAggregateOutputType | null + _min: ItemCategoryMinAggregateOutputType | null + _max: ItemCategoryMaxAggregateOutputType | null +} + +export type ItemCategoryMinAggregateOutputType = { + id: string | null + parentId: string | null + name: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type ItemCategoryMaxAggregateOutputType = { + id: string | null + parentId: string | null + name: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type ItemCategoryCountAggregateOutputType = { + id: number + parentId: number + name: number + createdAt: number + updatedAt: number + _all: number +} + + +export type ItemCategoryMinAggregateInputType = { + id?: true + parentId?: true + name?: true + createdAt?: true + updatedAt?: true +} + +export type ItemCategoryMaxAggregateInputType = { + id?: true + parentId?: true + name?: true + createdAt?: true + updatedAt?: true +} + +export type ItemCategoryCountAggregateInputType = { + id?: true + parentId?: true + name?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type ItemCategoryAggregateArgs = { + /** + * Filter which ItemCategory to aggregate. + */ + where?: Prisma.ItemCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ItemCategories to fetch. + */ + orderBy?: Prisma.ItemCategoryOrderByWithRelationInput | Prisma.ItemCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ItemCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ItemCategories 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` ItemCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ItemCategories + **/ + _count?: true | ItemCategoryCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ItemCategoryMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ItemCategoryMaxAggregateInputType +} + +export type GetItemCategoryAggregateType = { + [P in keyof T & keyof AggregateItemCategory]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ItemCategoryGroupByArgs = { + where?: Prisma.ItemCategoryWhereInput + orderBy?: Prisma.ItemCategoryOrderByWithAggregationInput | Prisma.ItemCategoryOrderByWithAggregationInput[] + by: Prisma.ItemCategoryScalarFieldEnum[] | Prisma.ItemCategoryScalarFieldEnum + having?: Prisma.ItemCategoryScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ItemCategoryCountAggregateInputType | true + _min?: ItemCategoryMinAggregateInputType + _max?: ItemCategoryMaxAggregateInputType +} + +export type ItemCategoryGroupByOutputType = { + id: string + parentId: string | null + name: string + createdAt: Date + updatedAt: Date + _count: ItemCategoryCountAggregateOutputType | null + _min: ItemCategoryMinAggregateOutputType | null + _max: ItemCategoryMaxAggregateOutputType | null +} + +type GetItemCategoryGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ItemCategoryGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ItemCategoryWhereInput = { + AND?: Prisma.ItemCategoryWhereInput | Prisma.ItemCategoryWhereInput[] + OR?: Prisma.ItemCategoryWhereInput[] + NOT?: Prisma.ItemCategoryWhereInput | Prisma.ItemCategoryWhereInput[] + id?: Prisma.StringFilter<"ItemCategory"> | string + parentId?: Prisma.StringNullableFilter<"ItemCategory"> | string | null + name?: Prisma.StringFilter<"ItemCategory"> | string + createdAt?: Prisma.DateTimeFilter<"ItemCategory"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"ItemCategory"> | Date | string + parent?: Prisma.XOR | null + children?: Prisma.ItemCategoryListRelationFilter + items?: Prisma.ItemListRelationFilter + users?: Prisma.UserItemCategoryListRelationFilter + basketItems?: Prisma.BasketItemListRelationFilter +} + +export type ItemCategoryOrderByWithRelationInput = { + id?: Prisma.SortOrder + parentId?: Prisma.SortOrderInput | Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + parent?: Prisma.ItemCategoryOrderByWithRelationInput + children?: Prisma.ItemCategoryOrderByRelationAggregateInput + items?: Prisma.ItemOrderByRelationAggregateInput + users?: Prisma.UserItemCategoryOrderByRelationAggregateInput + basketItems?: Prisma.BasketItemOrderByRelationAggregateInput +} + +export type ItemCategoryWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.ItemCategoryWhereInput | Prisma.ItemCategoryWhereInput[] + OR?: Prisma.ItemCategoryWhereInput[] + NOT?: Prisma.ItemCategoryWhereInput | Prisma.ItemCategoryWhereInput[] + parentId?: Prisma.StringNullableFilter<"ItemCategory"> | string | null + name?: Prisma.StringFilter<"ItemCategory"> | string + createdAt?: Prisma.DateTimeFilter<"ItemCategory"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"ItemCategory"> | Date | string + parent?: Prisma.XOR | null + children?: Prisma.ItemCategoryListRelationFilter + items?: Prisma.ItemListRelationFilter + users?: Prisma.UserItemCategoryListRelationFilter + basketItems?: Prisma.BasketItemListRelationFilter +}, "id"> + +export type ItemCategoryOrderByWithAggregationInput = { + id?: Prisma.SortOrder + parentId?: Prisma.SortOrderInput | Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.ItemCategoryCountOrderByAggregateInput + _max?: Prisma.ItemCategoryMaxOrderByAggregateInput + _min?: Prisma.ItemCategoryMinOrderByAggregateInput +} + +export type ItemCategoryScalarWhereWithAggregatesInput = { + AND?: Prisma.ItemCategoryScalarWhereWithAggregatesInput | Prisma.ItemCategoryScalarWhereWithAggregatesInput[] + OR?: Prisma.ItemCategoryScalarWhereWithAggregatesInput[] + NOT?: Prisma.ItemCategoryScalarWhereWithAggregatesInput | Prisma.ItemCategoryScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"ItemCategory"> | string + parentId?: Prisma.StringNullableWithAggregatesFilter<"ItemCategory"> | string | null + name?: Prisma.StringWithAggregatesFilter<"ItemCategory"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"ItemCategory"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ItemCategory"> | Date | string +} + +export type ItemCategoryCreateInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.ItemCategoryCreateNestedOneWithoutChildrenInput + children?: Prisma.ItemCategoryCreateNestedManyWithoutParentInput + items?: Prisma.ItemCreateNestedManyWithoutCategoryInput + users?: Prisma.UserItemCategoryCreateNestedManyWithoutCategoryInput + basketItems?: Prisma.BasketItemCreateNestedManyWithoutCategoryInput +} + +export type ItemCategoryUncheckedCreateInput = { + id?: string + parentId?: string | null + name: string + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.ItemCategoryUncheckedCreateNestedManyWithoutParentInput + items?: Prisma.ItemUncheckedCreateNestedManyWithoutCategoryInput + users?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutCategoryInput + basketItems?: Prisma.BasketItemUncheckedCreateNestedManyWithoutCategoryInput +} + +export type ItemCategoryUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.ItemCategoryUpdateOneWithoutChildrenNestedInput + children?: Prisma.ItemCategoryUpdateManyWithoutParentNestedInput + items?: Prisma.ItemUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserItemCategoryUpdateManyWithoutCategoryNestedInput + basketItems?: Prisma.BasketItemUpdateManyWithoutCategoryNestedInput +} + +export type ItemCategoryUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.ItemCategoryUncheckedUpdateManyWithoutParentNestedInput + items?: Prisma.ItemUncheckedUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutCategoryNestedInput + basketItems?: Prisma.BasketItemUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type ItemCategoryCreateManyInput = { + id?: string + parentId?: string | null + name: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ItemCategoryUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ItemCategoryUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ItemCategoryNullableScalarRelationFilter = { + is?: Prisma.ItemCategoryWhereInput | null + isNot?: Prisma.ItemCategoryWhereInput | null +} + +export type ItemCategoryScalarRelationFilter = { + is?: Prisma.ItemCategoryWhereInput + isNot?: Prisma.ItemCategoryWhereInput +} + +export type ItemCategoryListRelationFilter = { + every?: Prisma.ItemCategoryWhereInput + some?: Prisma.ItemCategoryWhereInput + none?: Prisma.ItemCategoryWhereInput +} + +export type ItemCategoryOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ItemCategoryCountOrderByAggregateInput = { + id?: Prisma.SortOrder + parentId?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ItemCategoryMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + parentId?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ItemCategoryMinOrderByAggregateInput = { + id?: Prisma.SortOrder + parentId?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ItemCategoryCreateNestedOneWithoutBasketItemsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ItemCategoryCreateOrConnectWithoutBasketItemsInput + connect?: Prisma.ItemCategoryWhereUniqueInput +} + +export type ItemCategoryUpdateOneWithoutBasketItemsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ItemCategoryCreateOrConnectWithoutBasketItemsInput + upsert?: Prisma.ItemCategoryUpsertWithoutBasketItemsInput + disconnect?: Prisma.ItemCategoryWhereInput | boolean + delete?: Prisma.ItemCategoryWhereInput | boolean + connect?: Prisma.ItemCategoryWhereUniqueInput + update?: Prisma.XOR, Prisma.ItemCategoryUncheckedUpdateWithoutBasketItemsInput> +} + +export type ItemCategoryCreateNestedOneWithoutItemsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ItemCategoryCreateOrConnectWithoutItemsInput + connect?: Prisma.ItemCategoryWhereUniqueInput +} + +export type ItemCategoryUpdateOneRequiredWithoutItemsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ItemCategoryCreateOrConnectWithoutItemsInput + upsert?: Prisma.ItemCategoryUpsertWithoutItemsInput + connect?: Prisma.ItemCategoryWhereUniqueInput + update?: Prisma.XOR, Prisma.ItemCategoryUncheckedUpdateWithoutItemsInput> +} + +export type ItemCategoryCreateNestedOneWithoutChildrenInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ItemCategoryCreateOrConnectWithoutChildrenInput + connect?: Prisma.ItemCategoryWhereUniqueInput +} + +export type ItemCategoryCreateNestedManyWithoutParentInput = { + create?: Prisma.XOR | Prisma.ItemCategoryCreateWithoutParentInput[] | Prisma.ItemCategoryUncheckedCreateWithoutParentInput[] + connectOrCreate?: Prisma.ItemCategoryCreateOrConnectWithoutParentInput | Prisma.ItemCategoryCreateOrConnectWithoutParentInput[] + createMany?: Prisma.ItemCategoryCreateManyParentInputEnvelope + connect?: Prisma.ItemCategoryWhereUniqueInput | Prisma.ItemCategoryWhereUniqueInput[] +} + +export type ItemCategoryUncheckedCreateNestedManyWithoutParentInput = { + create?: Prisma.XOR | Prisma.ItemCategoryCreateWithoutParentInput[] | Prisma.ItemCategoryUncheckedCreateWithoutParentInput[] + connectOrCreate?: Prisma.ItemCategoryCreateOrConnectWithoutParentInput | Prisma.ItemCategoryCreateOrConnectWithoutParentInput[] + createMany?: Prisma.ItemCategoryCreateManyParentInputEnvelope + connect?: Prisma.ItemCategoryWhereUniqueInput | Prisma.ItemCategoryWhereUniqueInput[] +} + +export type ItemCategoryUpdateOneWithoutChildrenNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ItemCategoryCreateOrConnectWithoutChildrenInput + upsert?: Prisma.ItemCategoryUpsertWithoutChildrenInput + disconnect?: Prisma.ItemCategoryWhereInput | boolean + delete?: Prisma.ItemCategoryWhereInput | boolean + connect?: Prisma.ItemCategoryWhereUniqueInput + update?: Prisma.XOR, Prisma.ItemCategoryUncheckedUpdateWithoutChildrenInput> +} + +export type ItemCategoryUpdateManyWithoutParentNestedInput = { + create?: Prisma.XOR | Prisma.ItemCategoryCreateWithoutParentInput[] | Prisma.ItemCategoryUncheckedCreateWithoutParentInput[] + connectOrCreate?: Prisma.ItemCategoryCreateOrConnectWithoutParentInput | Prisma.ItemCategoryCreateOrConnectWithoutParentInput[] + upsert?: Prisma.ItemCategoryUpsertWithWhereUniqueWithoutParentInput | Prisma.ItemCategoryUpsertWithWhereUniqueWithoutParentInput[] + createMany?: Prisma.ItemCategoryCreateManyParentInputEnvelope + set?: Prisma.ItemCategoryWhereUniqueInput | Prisma.ItemCategoryWhereUniqueInput[] + disconnect?: Prisma.ItemCategoryWhereUniqueInput | Prisma.ItemCategoryWhereUniqueInput[] + delete?: Prisma.ItemCategoryWhereUniqueInput | Prisma.ItemCategoryWhereUniqueInput[] + connect?: Prisma.ItemCategoryWhereUniqueInput | Prisma.ItemCategoryWhereUniqueInput[] + update?: Prisma.ItemCategoryUpdateWithWhereUniqueWithoutParentInput | Prisma.ItemCategoryUpdateWithWhereUniqueWithoutParentInput[] + updateMany?: Prisma.ItemCategoryUpdateManyWithWhereWithoutParentInput | Prisma.ItemCategoryUpdateManyWithWhereWithoutParentInput[] + deleteMany?: Prisma.ItemCategoryScalarWhereInput | Prisma.ItemCategoryScalarWhereInput[] +} + +export type ItemCategoryUncheckedUpdateManyWithoutParentNestedInput = { + create?: Prisma.XOR | Prisma.ItemCategoryCreateWithoutParentInput[] | Prisma.ItemCategoryUncheckedCreateWithoutParentInput[] + connectOrCreate?: Prisma.ItemCategoryCreateOrConnectWithoutParentInput | Prisma.ItemCategoryCreateOrConnectWithoutParentInput[] + upsert?: Prisma.ItemCategoryUpsertWithWhereUniqueWithoutParentInput | Prisma.ItemCategoryUpsertWithWhereUniqueWithoutParentInput[] + createMany?: Prisma.ItemCategoryCreateManyParentInputEnvelope + set?: Prisma.ItemCategoryWhereUniqueInput | Prisma.ItemCategoryWhereUniqueInput[] + disconnect?: Prisma.ItemCategoryWhereUniqueInput | Prisma.ItemCategoryWhereUniqueInput[] + delete?: Prisma.ItemCategoryWhereUniqueInput | Prisma.ItemCategoryWhereUniqueInput[] + connect?: Prisma.ItemCategoryWhereUniqueInput | Prisma.ItemCategoryWhereUniqueInput[] + update?: Prisma.ItemCategoryUpdateWithWhereUniqueWithoutParentInput | Prisma.ItemCategoryUpdateWithWhereUniqueWithoutParentInput[] + updateMany?: Prisma.ItemCategoryUpdateManyWithWhereWithoutParentInput | Prisma.ItemCategoryUpdateManyWithWhereWithoutParentInput[] + deleteMany?: Prisma.ItemCategoryScalarWhereInput | Prisma.ItemCategoryScalarWhereInput[] +} + +export type ItemCategoryCreateNestedOneWithoutUsersInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ItemCategoryCreateOrConnectWithoutUsersInput + connect?: Prisma.ItemCategoryWhereUniqueInput +} + +export type ItemCategoryUpdateOneRequiredWithoutUsersNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ItemCategoryCreateOrConnectWithoutUsersInput + upsert?: Prisma.ItemCategoryUpsertWithoutUsersInput + connect?: Prisma.ItemCategoryWhereUniqueInput + update?: Prisma.XOR, Prisma.ItemCategoryUncheckedUpdateWithoutUsersInput> +} + +export type ItemCategoryCreateWithoutBasketItemsInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.ItemCategoryCreateNestedOneWithoutChildrenInput + children?: Prisma.ItemCategoryCreateNestedManyWithoutParentInput + items?: Prisma.ItemCreateNestedManyWithoutCategoryInput + users?: Prisma.UserItemCategoryCreateNestedManyWithoutCategoryInput +} + +export type ItemCategoryUncheckedCreateWithoutBasketItemsInput = { + id?: string + parentId?: string | null + name: string + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.ItemCategoryUncheckedCreateNestedManyWithoutParentInput + items?: Prisma.ItemUncheckedCreateNestedManyWithoutCategoryInput + users?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutCategoryInput +} + +export type ItemCategoryCreateOrConnectWithoutBasketItemsInput = { + where: Prisma.ItemCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type ItemCategoryUpsertWithoutBasketItemsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ItemCategoryWhereInput +} + +export type ItemCategoryUpdateToOneWithWhereWithoutBasketItemsInput = { + where?: Prisma.ItemCategoryWhereInput + data: Prisma.XOR +} + +export type ItemCategoryUpdateWithoutBasketItemsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.ItemCategoryUpdateOneWithoutChildrenNestedInput + children?: Prisma.ItemCategoryUpdateManyWithoutParentNestedInput + items?: Prisma.ItemUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserItemCategoryUpdateManyWithoutCategoryNestedInput +} + +export type ItemCategoryUncheckedUpdateWithoutBasketItemsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.ItemCategoryUncheckedUpdateManyWithoutParentNestedInput + items?: Prisma.ItemUncheckedUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type ItemCategoryCreateWithoutItemsInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.ItemCategoryCreateNestedOneWithoutChildrenInput + children?: Prisma.ItemCategoryCreateNestedManyWithoutParentInput + users?: Prisma.UserItemCategoryCreateNestedManyWithoutCategoryInput + basketItems?: Prisma.BasketItemCreateNestedManyWithoutCategoryInput +} + +export type ItemCategoryUncheckedCreateWithoutItemsInput = { + id?: string + parentId?: string | null + name: string + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.ItemCategoryUncheckedCreateNestedManyWithoutParentInput + users?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutCategoryInput + basketItems?: Prisma.BasketItemUncheckedCreateNestedManyWithoutCategoryInput +} + +export type ItemCategoryCreateOrConnectWithoutItemsInput = { + where: Prisma.ItemCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type ItemCategoryUpsertWithoutItemsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ItemCategoryWhereInput +} + +export type ItemCategoryUpdateToOneWithWhereWithoutItemsInput = { + where?: Prisma.ItemCategoryWhereInput + data: Prisma.XOR +} + +export type ItemCategoryUpdateWithoutItemsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.ItemCategoryUpdateOneWithoutChildrenNestedInput + children?: Prisma.ItemCategoryUpdateManyWithoutParentNestedInput + users?: Prisma.UserItemCategoryUpdateManyWithoutCategoryNestedInput + basketItems?: Prisma.BasketItemUpdateManyWithoutCategoryNestedInput +} + +export type ItemCategoryUncheckedUpdateWithoutItemsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.ItemCategoryUncheckedUpdateManyWithoutParentNestedInput + users?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutCategoryNestedInput + basketItems?: Prisma.BasketItemUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type ItemCategoryCreateWithoutChildrenInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.ItemCategoryCreateNestedOneWithoutChildrenInput + items?: Prisma.ItemCreateNestedManyWithoutCategoryInput + users?: Prisma.UserItemCategoryCreateNestedManyWithoutCategoryInput + basketItems?: Prisma.BasketItemCreateNestedManyWithoutCategoryInput +} + +export type ItemCategoryUncheckedCreateWithoutChildrenInput = { + id?: string + parentId?: string | null + name: string + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.ItemUncheckedCreateNestedManyWithoutCategoryInput + users?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutCategoryInput + basketItems?: Prisma.BasketItemUncheckedCreateNestedManyWithoutCategoryInput +} + +export type ItemCategoryCreateOrConnectWithoutChildrenInput = { + where: Prisma.ItemCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type ItemCategoryCreateWithoutParentInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.ItemCategoryCreateNestedManyWithoutParentInput + items?: Prisma.ItemCreateNestedManyWithoutCategoryInput + users?: Prisma.UserItemCategoryCreateNestedManyWithoutCategoryInput + basketItems?: Prisma.BasketItemCreateNestedManyWithoutCategoryInput +} + +export type ItemCategoryUncheckedCreateWithoutParentInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.ItemCategoryUncheckedCreateNestedManyWithoutParentInput + items?: Prisma.ItemUncheckedCreateNestedManyWithoutCategoryInput + users?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutCategoryInput + basketItems?: Prisma.BasketItemUncheckedCreateNestedManyWithoutCategoryInput +} + +export type ItemCategoryCreateOrConnectWithoutParentInput = { + where: Prisma.ItemCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type ItemCategoryCreateManyParentInputEnvelope = { + data: Prisma.ItemCategoryCreateManyParentInput | Prisma.ItemCategoryCreateManyParentInput[] + skipDuplicates?: boolean +} + +export type ItemCategoryUpsertWithoutChildrenInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ItemCategoryWhereInput +} + +export type ItemCategoryUpdateToOneWithWhereWithoutChildrenInput = { + where?: Prisma.ItemCategoryWhereInput + data: Prisma.XOR +} + +export type ItemCategoryUpdateWithoutChildrenInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.ItemCategoryUpdateOneWithoutChildrenNestedInput + items?: Prisma.ItemUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserItemCategoryUpdateManyWithoutCategoryNestedInput + basketItems?: Prisma.BasketItemUpdateManyWithoutCategoryNestedInput +} + +export type ItemCategoryUncheckedUpdateWithoutChildrenInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.ItemUncheckedUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutCategoryNestedInput + basketItems?: Prisma.BasketItemUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type ItemCategoryUpsertWithWhereUniqueWithoutParentInput = { + where: Prisma.ItemCategoryWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ItemCategoryUpdateWithWhereUniqueWithoutParentInput = { + where: Prisma.ItemCategoryWhereUniqueInput + data: Prisma.XOR +} + +export type ItemCategoryUpdateManyWithWhereWithoutParentInput = { + where: Prisma.ItemCategoryScalarWhereInput + data: Prisma.XOR +} + +export type ItemCategoryScalarWhereInput = { + AND?: Prisma.ItemCategoryScalarWhereInput | Prisma.ItemCategoryScalarWhereInput[] + OR?: Prisma.ItemCategoryScalarWhereInput[] + NOT?: Prisma.ItemCategoryScalarWhereInput | Prisma.ItemCategoryScalarWhereInput[] + id?: Prisma.StringFilter<"ItemCategory"> | string + parentId?: Prisma.StringNullableFilter<"ItemCategory"> | string | null + name?: Prisma.StringFilter<"ItemCategory"> | string + createdAt?: Prisma.DateTimeFilter<"ItemCategory"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"ItemCategory"> | Date | string +} + +export type ItemCategoryCreateWithoutUsersInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.ItemCategoryCreateNestedOneWithoutChildrenInput + children?: Prisma.ItemCategoryCreateNestedManyWithoutParentInput + items?: Prisma.ItemCreateNestedManyWithoutCategoryInput + basketItems?: Prisma.BasketItemCreateNestedManyWithoutCategoryInput +} + +export type ItemCategoryUncheckedCreateWithoutUsersInput = { + id?: string + parentId?: string | null + name: string + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.ItemCategoryUncheckedCreateNestedManyWithoutParentInput + items?: Prisma.ItemUncheckedCreateNestedManyWithoutCategoryInput + basketItems?: Prisma.BasketItemUncheckedCreateNestedManyWithoutCategoryInput +} + +export type ItemCategoryCreateOrConnectWithoutUsersInput = { + where: Prisma.ItemCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type ItemCategoryUpsertWithoutUsersInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ItemCategoryWhereInput +} + +export type ItemCategoryUpdateToOneWithWhereWithoutUsersInput = { + where?: Prisma.ItemCategoryWhereInput + data: Prisma.XOR +} + +export type ItemCategoryUpdateWithoutUsersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.ItemCategoryUpdateOneWithoutChildrenNestedInput + children?: Prisma.ItemCategoryUpdateManyWithoutParentNestedInput + items?: Prisma.ItemUpdateManyWithoutCategoryNestedInput + basketItems?: Prisma.BasketItemUpdateManyWithoutCategoryNestedInput +} + +export type ItemCategoryUncheckedUpdateWithoutUsersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.ItemCategoryUncheckedUpdateManyWithoutParentNestedInput + items?: Prisma.ItemUncheckedUpdateManyWithoutCategoryNestedInput + basketItems?: Prisma.BasketItemUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type ItemCategoryCreateManyParentInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ItemCategoryUpdateWithoutParentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.ItemCategoryUpdateManyWithoutParentNestedInput + items?: Prisma.ItemUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserItemCategoryUpdateManyWithoutCategoryNestedInput + basketItems?: Prisma.BasketItemUpdateManyWithoutCategoryNestedInput +} + +export type ItemCategoryUncheckedUpdateWithoutParentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.ItemCategoryUncheckedUpdateManyWithoutParentNestedInput + items?: Prisma.ItemUncheckedUpdateManyWithoutCategoryNestedInput + users?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutCategoryNestedInput + basketItems?: Prisma.BasketItemUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type ItemCategoryUncheckedUpdateManyWithoutParentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + +/** + * Count Type ItemCategoryCountOutputType + */ + +export type ItemCategoryCountOutputType = { + children: number + items: number + users: number + basketItems: number +} + +export type ItemCategoryCountOutputTypeSelect = { + children?: boolean | ItemCategoryCountOutputTypeCountChildrenArgs + items?: boolean | ItemCategoryCountOutputTypeCountItemsArgs + users?: boolean | ItemCategoryCountOutputTypeCountUsersArgs + basketItems?: boolean | ItemCategoryCountOutputTypeCountBasketItemsArgs +} + +/** + * ItemCategoryCountOutputType without action + */ +export type ItemCategoryCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the ItemCategoryCountOutputType + */ + select?: Prisma.ItemCategoryCountOutputTypeSelect | null +} + +/** + * ItemCategoryCountOutputType without action + */ +export type ItemCategoryCountOutputTypeCountChildrenArgs = { + where?: Prisma.ItemCategoryWhereInput +} + +/** + * ItemCategoryCountOutputType without action + */ +export type ItemCategoryCountOutputTypeCountItemsArgs = { + where?: Prisma.ItemWhereInput +} + +/** + * ItemCategoryCountOutputType without action + */ +export type ItemCategoryCountOutputTypeCountUsersArgs = { + where?: Prisma.UserItemCategoryWhereInput +} + +/** + * ItemCategoryCountOutputType without action + */ +export type ItemCategoryCountOutputTypeCountBasketItemsArgs = { + where?: Prisma.BasketItemWhereInput +} + + +export type ItemCategorySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + parentId?: boolean + name?: boolean + createdAt?: boolean + updatedAt?: boolean + parent?: boolean | Prisma.ItemCategory$parentArgs + children?: boolean | Prisma.ItemCategory$childrenArgs + items?: boolean | Prisma.ItemCategory$itemsArgs + users?: boolean | Prisma.ItemCategory$usersArgs + basketItems?: boolean | Prisma.ItemCategory$basketItemsArgs + _count?: boolean | Prisma.ItemCategoryCountOutputTypeDefaultArgs +}, ExtArgs["result"]["itemCategory"]> + +export type ItemCategorySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + parentId?: boolean + name?: boolean + createdAt?: boolean + updatedAt?: boolean + parent?: boolean | Prisma.ItemCategory$parentArgs +}, ExtArgs["result"]["itemCategory"]> + +export type ItemCategorySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + parentId?: boolean + name?: boolean + createdAt?: boolean + updatedAt?: boolean + parent?: boolean | Prisma.ItemCategory$parentArgs +}, ExtArgs["result"]["itemCategory"]> + +export type ItemCategorySelectScalar = { + id?: boolean + parentId?: boolean + name?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type ItemCategoryOmit = runtime.Types.Extensions.GetOmit<"id" | "parentId" | "name" | "createdAt" | "updatedAt", ExtArgs["result"]["itemCategory"]> +export type ItemCategoryInclude = { + parent?: boolean | Prisma.ItemCategory$parentArgs + children?: boolean | Prisma.ItemCategory$childrenArgs + items?: boolean | Prisma.ItemCategory$itemsArgs + users?: boolean | Prisma.ItemCategory$usersArgs + basketItems?: boolean | Prisma.ItemCategory$basketItemsArgs + _count?: boolean | Prisma.ItemCategoryCountOutputTypeDefaultArgs +} +export type ItemCategoryIncludeCreateManyAndReturn = { + parent?: boolean | Prisma.ItemCategory$parentArgs +} +export type ItemCategoryIncludeUpdateManyAndReturn = { + parent?: boolean | Prisma.ItemCategory$parentArgs +} + +export type $ItemCategoryPayload = { + name: "ItemCategory" + objects: { + parent: Prisma.$ItemCategoryPayload | null + children: Prisma.$ItemCategoryPayload[] + items: Prisma.$ItemPayload[] + users: Prisma.$UserItemCategoryPayload[] + basketItems: Prisma.$BasketItemPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + parentId: string | null + name: string + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["itemCategory"]> + composites: {} +} + +export type ItemCategoryGetPayload = runtime.Types.Result.GetResult + +export type ItemCategoryCountArgs = + Omit & { + select?: ItemCategoryCountAggregateInputType | true + } + +export interface ItemCategoryDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ItemCategory'], meta: { name: 'ItemCategory' } } + /** + * Find zero or one ItemCategory that matches the filter. + * @param {ItemCategoryFindUniqueArgs} args - Arguments to find a ItemCategory + * @example + * // Get one ItemCategory + * const itemCategory = await prisma.itemCategory.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ItemCategoryClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one ItemCategory that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ItemCategoryFindUniqueOrThrowArgs} args - Arguments to find a ItemCategory + * @example + * // Get one ItemCategory + * const itemCategory = await prisma.itemCategory.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ItemCategoryClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first ItemCategory 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 {ItemCategoryFindFirstArgs} args - Arguments to find a ItemCategory + * @example + * // Get one ItemCategory + * const itemCategory = await prisma.itemCategory.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ItemCategoryClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first ItemCategory 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 {ItemCategoryFindFirstOrThrowArgs} args - Arguments to find a ItemCategory + * @example + * // Get one ItemCategory + * const itemCategory = await prisma.itemCategory.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ItemCategoryClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more ItemCategories 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 {ItemCategoryFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all ItemCategories + * const itemCategories = await prisma.itemCategory.findMany() + * + * // Get first 10 ItemCategories + * const itemCategories = await prisma.itemCategory.findMany({ take: 10 }) + * + * // Only select the `id` + * const itemCategoryWithIdOnly = await prisma.itemCategory.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a ItemCategory. + * @param {ItemCategoryCreateArgs} args - Arguments to create a ItemCategory. + * @example + * // Create one ItemCategory + * const ItemCategory = await prisma.itemCategory.create({ + * data: { + * // ... data to create a ItemCategory + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ItemCategoryClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many ItemCategories. + * @param {ItemCategoryCreateManyArgs} args - Arguments to create many ItemCategories. + * @example + * // Create many ItemCategories + * const itemCategory = await prisma.itemCategory.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many ItemCategories and returns the data saved in the database. + * @param {ItemCategoryCreateManyAndReturnArgs} args - Arguments to create many ItemCategories. + * @example + * // Create many ItemCategories + * const itemCategory = await prisma.itemCategory.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many ItemCategories and only return the `id` + * const itemCategoryWithIdOnly = await prisma.itemCategory.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a ItemCategory. + * @param {ItemCategoryDeleteArgs} args - Arguments to delete one ItemCategory. + * @example + * // Delete one ItemCategory + * const ItemCategory = await prisma.itemCategory.delete({ + * where: { + * // ... filter to delete one ItemCategory + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ItemCategoryClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one ItemCategory. + * @param {ItemCategoryUpdateArgs} args - Arguments to update one ItemCategory. + * @example + * // Update one ItemCategory + * const itemCategory = await prisma.itemCategory.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ItemCategoryClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more ItemCategories. + * @param {ItemCategoryDeleteManyArgs} args - Arguments to filter ItemCategories to delete. + * @example + * // Delete a few ItemCategories + * const { count } = await prisma.itemCategory.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more ItemCategories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ItemCategoryUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many ItemCategories + * const itemCategory = await prisma.itemCategory.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more ItemCategories and returns the data updated in the database. + * @param {ItemCategoryUpdateManyAndReturnArgs} args - Arguments to update many ItemCategories. + * @example + * // Update many ItemCategories + * const itemCategory = await prisma.itemCategory.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more ItemCategories and only return the `id` + * const itemCategoryWithIdOnly = await prisma.itemCategory.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one ItemCategory. + * @param {ItemCategoryUpsertArgs} args - Arguments to update or create a ItemCategory. + * @example + * // Update or create a ItemCategory + * const itemCategory = await prisma.itemCategory.upsert({ + * create: { + * // ... data to create a ItemCategory + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the ItemCategory we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ItemCategoryClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of ItemCategories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ItemCategoryCountArgs} args - Arguments to filter ItemCategories to count. + * @example + * // Count the number of ItemCategories + * const count = await prisma.itemCategory.count({ + * where: { + * // ... the filter for the ItemCategories we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a ItemCategory. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ItemCategoryAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by ItemCategory. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ItemCategoryGroupByArgs} 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 ItemCategoryGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ItemCategoryGroupByArgs['orderBy'] } + : { orderBy?: ItemCategoryGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetItemCategoryGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ItemCategory model + */ +readonly fields: ItemCategoryFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ItemCategory. + * 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__ItemCategoryClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + parent = {}>(args?: Prisma.Subset>): Prisma.Prisma__ItemCategoryClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + children = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + items = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + users = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + basketItems = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + /** + * 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the ItemCategory model + */ +export interface ItemCategoryFieldRefs { + readonly id: Prisma.FieldRef<"ItemCategory", 'String'> + readonly parentId: Prisma.FieldRef<"ItemCategory", 'String'> + readonly name: Prisma.FieldRef<"ItemCategory", 'String'> + readonly createdAt: Prisma.FieldRef<"ItemCategory", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"ItemCategory", 'DateTime'> +} + + +// Custom InputTypes +/** + * ItemCategory findUnique + */ +export type ItemCategoryFindUniqueArgs = { + /** + * Select specific fields to fetch from the ItemCategory + */ + select?: Prisma.ItemCategorySelect | null + /** + * Omit specific fields from the ItemCategory + */ + omit?: Prisma.ItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemCategoryInclude | null + /** + * Filter, which ItemCategory to fetch. + */ + where: Prisma.ItemCategoryWhereUniqueInput +} + +/** + * ItemCategory findUniqueOrThrow + */ +export type ItemCategoryFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ItemCategory + */ + select?: Prisma.ItemCategorySelect | null + /** + * Omit specific fields from the ItemCategory + */ + omit?: Prisma.ItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemCategoryInclude | null + /** + * Filter, which ItemCategory to fetch. + */ + where: Prisma.ItemCategoryWhereUniqueInput +} + +/** + * ItemCategory findFirst + */ +export type ItemCategoryFindFirstArgs = { + /** + * Select specific fields to fetch from the ItemCategory + */ + select?: Prisma.ItemCategorySelect | null + /** + * Omit specific fields from the ItemCategory + */ + omit?: Prisma.ItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemCategoryInclude | null + /** + * Filter, which ItemCategory to fetch. + */ + where?: Prisma.ItemCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ItemCategories to fetch. + */ + orderBy?: Prisma.ItemCategoryOrderByWithRelationInput | Prisma.ItemCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ItemCategories. + */ + cursor?: Prisma.ItemCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ItemCategories 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` ItemCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ItemCategories. + */ + distinct?: Prisma.ItemCategoryScalarFieldEnum | Prisma.ItemCategoryScalarFieldEnum[] +} + +/** + * ItemCategory findFirstOrThrow + */ +export type ItemCategoryFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ItemCategory + */ + select?: Prisma.ItemCategorySelect | null + /** + * Omit specific fields from the ItemCategory + */ + omit?: Prisma.ItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemCategoryInclude | null + /** + * Filter, which ItemCategory to fetch. + */ + where?: Prisma.ItemCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ItemCategories to fetch. + */ + orderBy?: Prisma.ItemCategoryOrderByWithRelationInput | Prisma.ItemCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ItemCategories. + */ + cursor?: Prisma.ItemCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ItemCategories 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` ItemCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ItemCategories. + */ + distinct?: Prisma.ItemCategoryScalarFieldEnum | Prisma.ItemCategoryScalarFieldEnum[] +} + +/** + * ItemCategory findMany + */ +export type ItemCategoryFindManyArgs = { + /** + * Select specific fields to fetch from the ItemCategory + */ + select?: Prisma.ItemCategorySelect | null + /** + * Omit specific fields from the ItemCategory + */ + omit?: Prisma.ItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemCategoryInclude | null + /** + * Filter, which ItemCategories to fetch. + */ + where?: Prisma.ItemCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ItemCategories to fetch. + */ + orderBy?: Prisma.ItemCategoryOrderByWithRelationInput | Prisma.ItemCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ItemCategories. + */ + cursor?: Prisma.ItemCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ItemCategories 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` ItemCategories. + */ + skip?: number + distinct?: Prisma.ItemCategoryScalarFieldEnum | Prisma.ItemCategoryScalarFieldEnum[] +} + +/** + * ItemCategory create + */ +export type ItemCategoryCreateArgs = { + /** + * Select specific fields to fetch from the ItemCategory + */ + select?: Prisma.ItemCategorySelect | null + /** + * Omit specific fields from the ItemCategory + */ + omit?: Prisma.ItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemCategoryInclude | null + /** + * The data needed to create a ItemCategory. + */ + data: Prisma.XOR +} + +/** + * ItemCategory createMany + */ +export type ItemCategoryCreateManyArgs = { + /** + * The data used to create many ItemCategories. + */ + data: Prisma.ItemCategoryCreateManyInput | Prisma.ItemCategoryCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ItemCategory createManyAndReturn + */ +export type ItemCategoryCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the ItemCategory + */ + select?: Prisma.ItemCategorySelectCreateManyAndReturn | null + /** + * Omit specific fields from the ItemCategory + */ + omit?: Prisma.ItemCategoryOmit | null + /** + * The data used to create many ItemCategories. + */ + data: Prisma.ItemCategoryCreateManyInput | Prisma.ItemCategoryCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemCategoryIncludeCreateManyAndReturn | null +} + +/** + * ItemCategory update + */ +export type ItemCategoryUpdateArgs = { + /** + * Select specific fields to fetch from the ItemCategory + */ + select?: Prisma.ItemCategorySelect | null + /** + * Omit specific fields from the ItemCategory + */ + omit?: Prisma.ItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemCategoryInclude | null + /** + * The data needed to update a ItemCategory. + */ + data: Prisma.XOR + /** + * Choose, which ItemCategory to update. + */ + where: Prisma.ItemCategoryWhereUniqueInput +} + +/** + * ItemCategory updateMany + */ +export type ItemCategoryUpdateManyArgs = { + /** + * The data used to update ItemCategories. + */ + data: Prisma.XOR + /** + * Filter which ItemCategories to update + */ + where?: Prisma.ItemCategoryWhereInput + /** + * Limit how many ItemCategories to update. + */ + limit?: number +} + +/** + * ItemCategory updateManyAndReturn + */ +export type ItemCategoryUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the ItemCategory + */ + select?: Prisma.ItemCategorySelectUpdateManyAndReturn | null + /** + * Omit specific fields from the ItemCategory + */ + omit?: Prisma.ItemCategoryOmit | null + /** + * The data used to update ItemCategories. + */ + data: Prisma.XOR + /** + * Filter which ItemCategories to update + */ + where?: Prisma.ItemCategoryWhereInput + /** + * Limit how many ItemCategories to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemCategoryIncludeUpdateManyAndReturn | null +} + +/** + * ItemCategory upsert + */ +export type ItemCategoryUpsertArgs = { + /** + * Select specific fields to fetch from the ItemCategory + */ + select?: Prisma.ItemCategorySelect | null + /** + * Omit specific fields from the ItemCategory + */ + omit?: Prisma.ItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemCategoryInclude | null + /** + * The filter to search for the ItemCategory to update in case it exists. + */ + where: Prisma.ItemCategoryWhereUniqueInput + /** + * In case the ItemCategory found by the `where` argument doesn't exist, create a new ItemCategory with this data. + */ + create: Prisma.XOR + /** + * In case the ItemCategory was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ItemCategory delete + */ +export type ItemCategoryDeleteArgs = { + /** + * Select specific fields to fetch from the ItemCategory + */ + select?: Prisma.ItemCategorySelect | null + /** + * Omit specific fields from the ItemCategory + */ + omit?: Prisma.ItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemCategoryInclude | null + /** + * Filter which ItemCategory to delete. + */ + where: Prisma.ItemCategoryWhereUniqueInput +} + +/** + * ItemCategory deleteMany + */ +export type ItemCategoryDeleteManyArgs = { + /** + * Filter which ItemCategories to delete + */ + where?: Prisma.ItemCategoryWhereInput + /** + * Limit how many ItemCategories to delete. + */ + limit?: number +} + +/** + * ItemCategory.parent + */ +export type ItemCategory$parentArgs = { + /** + * Select specific fields to fetch from the ItemCategory + */ + select?: Prisma.ItemCategorySelect | null + /** + * Omit specific fields from the ItemCategory + */ + omit?: Prisma.ItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemCategoryInclude | null + where?: Prisma.ItemCategoryWhereInput +} + +/** + * ItemCategory.children + */ +export type ItemCategory$childrenArgs = { + /** + * Select specific fields to fetch from the ItemCategory + */ + select?: Prisma.ItemCategorySelect | null + /** + * Omit specific fields from the ItemCategory + */ + omit?: Prisma.ItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemCategoryInclude | null + where?: Prisma.ItemCategoryWhereInput + orderBy?: Prisma.ItemCategoryOrderByWithRelationInput | Prisma.ItemCategoryOrderByWithRelationInput[] + cursor?: Prisma.ItemCategoryWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ItemCategoryScalarFieldEnum | Prisma.ItemCategoryScalarFieldEnum[] +} + +/** + * ItemCategory.items + */ +export type ItemCategory$itemsArgs = { + /** + * Select specific fields to fetch from the Item + */ + select?: Prisma.ItemSelect | null + /** + * Omit specific fields from the Item + */ + omit?: Prisma.ItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemInclude | null + where?: Prisma.ItemWhereInput + orderBy?: Prisma.ItemOrderByWithRelationInput | Prisma.ItemOrderByWithRelationInput[] + cursor?: Prisma.ItemWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ItemScalarFieldEnum | Prisma.ItemScalarFieldEnum[] +} + +/** + * ItemCategory.users + */ +export type ItemCategory$usersArgs = { + /** + * Select specific fields to fetch from the UserItemCategory + */ + select?: Prisma.UserItemCategorySelect | null + /** + * Omit specific fields from the UserItemCategory + */ + omit?: Prisma.UserItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemCategoryInclude | null + where?: Prisma.UserItemCategoryWhereInput + orderBy?: Prisma.UserItemCategoryOrderByWithRelationInput | Prisma.UserItemCategoryOrderByWithRelationInput[] + cursor?: Prisma.UserItemCategoryWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.UserItemCategoryScalarFieldEnum | Prisma.UserItemCategoryScalarFieldEnum[] +} + +/** + * ItemCategory.basketItems + */ +export type ItemCategory$basketItemsArgs = { + /** + * Select specific fields to fetch from the BasketItem + */ + select?: Prisma.BasketItemSelect | null + /** + * Omit specific fields from the BasketItem + */ + omit?: Prisma.BasketItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketItemInclude | null + where?: Prisma.BasketItemWhereInput + orderBy?: Prisma.BasketItemOrderByWithRelationInput | Prisma.BasketItemOrderByWithRelationInput[] + cursor?: Prisma.BasketItemWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.BasketItemScalarFieldEnum | Prisma.BasketItemScalarFieldEnum[] +} + +/** + * ItemCategory without action + */ +export type ItemCategoryDefaultArgs = { + /** + * Select specific fields to fetch from the ItemCategory + */ + select?: Prisma.ItemCategorySelect | null + /** + * Omit specific fields from the ItemCategory + */ + omit?: Prisma.ItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemCategoryInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/ItemSize.ts b/apps/backend/prisma/generated/generated/prisma/models/ItemSize.ts new file mode 100644 index 00000000..60b74626 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/ItemSize.ts @@ -0,0 +1,1426 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ItemSize` 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 ItemSize + * + */ +export type ItemSizeModel = runtime.Types.Result.DefaultSelection + +export type AggregateItemSize = { + _count: ItemSizeCountAggregateOutputType | null + _avg: ItemSizeAvgAggregateOutputType | null + _sum: ItemSizeSumAggregateOutputType | null + _min: ItemSizeMinAggregateOutputType | null + _max: ItemSizeMaxAggregateOutputType | null +} + +export type ItemSizeAvgAggregateOutputType = { + value: runtime.Decimal | null +} + +export type ItemSizeSumAggregateOutputType = { + value: runtime.Decimal | null +} + +export type ItemSizeMinAggregateOutputType = { + id: string | null + itemId: string | null + value: runtime.Decimal | null + unit: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type ItemSizeMaxAggregateOutputType = { + id: string | null + itemId: string | null + value: runtime.Decimal | null + unit: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type ItemSizeCountAggregateOutputType = { + id: number + itemId: number + value: number + unit: number + createdAt: number + updatedAt: number + _all: number +} + + +export type ItemSizeAvgAggregateInputType = { + value?: true +} + +export type ItemSizeSumAggregateInputType = { + value?: true +} + +export type ItemSizeMinAggregateInputType = { + id?: true + itemId?: true + value?: true + unit?: true + createdAt?: true + updatedAt?: true +} + +export type ItemSizeMaxAggregateInputType = { + id?: true + itemId?: true + value?: true + unit?: true + createdAt?: true + updatedAt?: true +} + +export type ItemSizeCountAggregateInputType = { + id?: true + itemId?: true + value?: true + unit?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type ItemSizeAggregateArgs = { + /** + * Filter which ItemSize to aggregate. + */ + where?: Prisma.ItemSizeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ItemSizes to fetch. + */ + orderBy?: Prisma.ItemSizeOrderByWithRelationInput | Prisma.ItemSizeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ItemSizeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ItemSizes 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` ItemSizes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ItemSizes + **/ + _count?: true | ItemSizeCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ItemSizeAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: ItemSizeSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ItemSizeMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ItemSizeMaxAggregateInputType +} + +export type GetItemSizeAggregateType = { + [P in keyof T & keyof AggregateItemSize]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ItemSizeGroupByArgs = { + where?: Prisma.ItemSizeWhereInput + orderBy?: Prisma.ItemSizeOrderByWithAggregationInput | Prisma.ItemSizeOrderByWithAggregationInput[] + by: Prisma.ItemSizeScalarFieldEnum[] | Prisma.ItemSizeScalarFieldEnum + having?: Prisma.ItemSizeScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ItemSizeCountAggregateInputType | true + _avg?: ItemSizeAvgAggregateInputType + _sum?: ItemSizeSumAggregateInputType + _min?: ItemSizeMinAggregateInputType + _max?: ItemSizeMaxAggregateInputType +} + +export type ItemSizeGroupByOutputType = { + id: string + itemId: string + value: runtime.Decimal + unit: string + createdAt: Date + updatedAt: Date + _count: ItemSizeCountAggregateOutputType | null + _avg: ItemSizeAvgAggregateOutputType | null + _sum: ItemSizeSumAggregateOutputType | null + _min: ItemSizeMinAggregateOutputType | null + _max: ItemSizeMaxAggregateOutputType | null +} + +type GetItemSizeGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ItemSizeGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ItemSizeWhereInput = { + AND?: Prisma.ItemSizeWhereInput | Prisma.ItemSizeWhereInput[] + OR?: Prisma.ItemSizeWhereInput[] + NOT?: Prisma.ItemSizeWhereInput | Prisma.ItemSizeWhereInput[] + id?: Prisma.StringFilter<"ItemSize"> | string + itemId?: Prisma.StringFilter<"ItemSize"> | string + value?: Prisma.DecimalFilter<"ItemSize"> | runtime.Decimal | runtime.DecimalJsLike | number | string + unit?: Prisma.StringFilter<"ItemSize"> | string + createdAt?: Prisma.DateTimeFilter<"ItemSize"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"ItemSize"> | Date | string + item?: Prisma.XOR +} + +export type ItemSizeOrderByWithRelationInput = { + id?: Prisma.SortOrder + itemId?: Prisma.SortOrder + value?: Prisma.SortOrder + unit?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + item?: Prisma.ItemOrderByWithRelationInput +} + +export type ItemSizeWhereUniqueInput = Prisma.AtLeast<{ + id?: string + itemId_value_unit?: Prisma.ItemSizeItemIdValueUnitCompoundUniqueInput + AND?: Prisma.ItemSizeWhereInput | Prisma.ItemSizeWhereInput[] + OR?: Prisma.ItemSizeWhereInput[] + NOT?: Prisma.ItemSizeWhereInput | Prisma.ItemSizeWhereInput[] + itemId?: Prisma.StringFilter<"ItemSize"> | string + value?: Prisma.DecimalFilter<"ItemSize"> | runtime.Decimal | runtime.DecimalJsLike | number | string + unit?: Prisma.StringFilter<"ItemSize"> | string + createdAt?: Prisma.DateTimeFilter<"ItemSize"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"ItemSize"> | Date | string + item?: Prisma.XOR +}, "id" | "itemId_value_unit"> + +export type ItemSizeOrderByWithAggregationInput = { + id?: Prisma.SortOrder + itemId?: Prisma.SortOrder + value?: Prisma.SortOrder + unit?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.ItemSizeCountOrderByAggregateInput + _avg?: Prisma.ItemSizeAvgOrderByAggregateInput + _max?: Prisma.ItemSizeMaxOrderByAggregateInput + _min?: Prisma.ItemSizeMinOrderByAggregateInput + _sum?: Prisma.ItemSizeSumOrderByAggregateInput +} + +export type ItemSizeScalarWhereWithAggregatesInput = { + AND?: Prisma.ItemSizeScalarWhereWithAggregatesInput | Prisma.ItemSizeScalarWhereWithAggregatesInput[] + OR?: Prisma.ItemSizeScalarWhereWithAggregatesInput[] + NOT?: Prisma.ItemSizeScalarWhereWithAggregatesInput | Prisma.ItemSizeScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"ItemSize"> | string + itemId?: Prisma.StringWithAggregatesFilter<"ItemSize"> | string + value?: Prisma.DecimalWithAggregatesFilter<"ItemSize"> | runtime.Decimal | runtime.DecimalJsLike | number | string + unit?: Prisma.StringWithAggregatesFilter<"ItemSize"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"ItemSize"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ItemSize"> | Date | string +} + +export type ItemSizeCreateInput = { + id?: string + value: runtime.Decimal | runtime.DecimalJsLike | number | string + unit: string + createdAt?: Date | string + updatedAt?: Date | string + item: Prisma.ItemCreateNestedOneWithoutSizesInput +} + +export type ItemSizeUncheckedCreateInput = { + id?: string + itemId: string + value: runtime.Decimal | runtime.DecimalJsLike | number | string + unit: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ItemSizeUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + unit?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + item?: Prisma.ItemUpdateOneRequiredWithoutSizesNestedInput +} + +export type ItemSizeUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + unit?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ItemSizeCreateManyInput = { + id?: string + itemId: string + value: runtime.Decimal | runtime.DecimalJsLike | number | string + unit: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ItemSizeUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + unit?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ItemSizeUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + unit?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ItemSizeListRelationFilter = { + every?: Prisma.ItemSizeWhereInput + some?: Prisma.ItemSizeWhereInput + none?: Prisma.ItemSizeWhereInput +} + +export type ItemSizeOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ItemSizeItemIdValueUnitCompoundUniqueInput = { + itemId: string + value: runtime.Decimal | runtime.DecimalJsLike | number | string + unit: string +} + +export type ItemSizeCountOrderByAggregateInput = { + id?: Prisma.SortOrder + itemId?: Prisma.SortOrder + value?: Prisma.SortOrder + unit?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ItemSizeAvgOrderByAggregateInput = { + value?: Prisma.SortOrder +} + +export type ItemSizeMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + itemId?: Prisma.SortOrder + value?: Prisma.SortOrder + unit?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ItemSizeMinOrderByAggregateInput = { + id?: Prisma.SortOrder + itemId?: Prisma.SortOrder + value?: Prisma.SortOrder + unit?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ItemSizeSumOrderByAggregateInput = { + value?: Prisma.SortOrder +} + +export type ItemSizeCreateNestedManyWithoutItemInput = { + create?: Prisma.XOR | Prisma.ItemSizeCreateWithoutItemInput[] | Prisma.ItemSizeUncheckedCreateWithoutItemInput[] + connectOrCreate?: Prisma.ItemSizeCreateOrConnectWithoutItemInput | Prisma.ItemSizeCreateOrConnectWithoutItemInput[] + createMany?: Prisma.ItemSizeCreateManyItemInputEnvelope + connect?: Prisma.ItemSizeWhereUniqueInput | Prisma.ItemSizeWhereUniqueInput[] +} + +export type ItemSizeUncheckedCreateNestedManyWithoutItemInput = { + create?: Prisma.XOR | Prisma.ItemSizeCreateWithoutItemInput[] | Prisma.ItemSizeUncheckedCreateWithoutItemInput[] + connectOrCreate?: Prisma.ItemSizeCreateOrConnectWithoutItemInput | Prisma.ItemSizeCreateOrConnectWithoutItemInput[] + createMany?: Prisma.ItemSizeCreateManyItemInputEnvelope + connect?: Prisma.ItemSizeWhereUniqueInput | Prisma.ItemSizeWhereUniqueInput[] +} + +export type ItemSizeUpdateManyWithoutItemNestedInput = { + create?: Prisma.XOR | Prisma.ItemSizeCreateWithoutItemInput[] | Prisma.ItemSizeUncheckedCreateWithoutItemInput[] + connectOrCreate?: Prisma.ItemSizeCreateOrConnectWithoutItemInput | Prisma.ItemSizeCreateOrConnectWithoutItemInput[] + upsert?: Prisma.ItemSizeUpsertWithWhereUniqueWithoutItemInput | Prisma.ItemSizeUpsertWithWhereUniqueWithoutItemInput[] + createMany?: Prisma.ItemSizeCreateManyItemInputEnvelope + set?: Prisma.ItemSizeWhereUniqueInput | Prisma.ItemSizeWhereUniqueInput[] + disconnect?: Prisma.ItemSizeWhereUniqueInput | Prisma.ItemSizeWhereUniqueInput[] + delete?: Prisma.ItemSizeWhereUniqueInput | Prisma.ItemSizeWhereUniqueInput[] + connect?: Prisma.ItemSizeWhereUniqueInput | Prisma.ItemSizeWhereUniqueInput[] + update?: Prisma.ItemSizeUpdateWithWhereUniqueWithoutItemInput | Prisma.ItemSizeUpdateWithWhereUniqueWithoutItemInput[] + updateMany?: Prisma.ItemSizeUpdateManyWithWhereWithoutItemInput | Prisma.ItemSizeUpdateManyWithWhereWithoutItemInput[] + deleteMany?: Prisma.ItemSizeScalarWhereInput | Prisma.ItemSizeScalarWhereInput[] +} + +export type ItemSizeUncheckedUpdateManyWithoutItemNestedInput = { + create?: Prisma.XOR | Prisma.ItemSizeCreateWithoutItemInput[] | Prisma.ItemSizeUncheckedCreateWithoutItemInput[] + connectOrCreate?: Prisma.ItemSizeCreateOrConnectWithoutItemInput | Prisma.ItemSizeCreateOrConnectWithoutItemInput[] + upsert?: Prisma.ItemSizeUpsertWithWhereUniqueWithoutItemInput | Prisma.ItemSizeUpsertWithWhereUniqueWithoutItemInput[] + createMany?: Prisma.ItemSizeCreateManyItemInputEnvelope + set?: Prisma.ItemSizeWhereUniqueInput | Prisma.ItemSizeWhereUniqueInput[] + disconnect?: Prisma.ItemSizeWhereUniqueInput | Prisma.ItemSizeWhereUniqueInput[] + delete?: Prisma.ItemSizeWhereUniqueInput | Prisma.ItemSizeWhereUniqueInput[] + connect?: Prisma.ItemSizeWhereUniqueInput | Prisma.ItemSizeWhereUniqueInput[] + update?: Prisma.ItemSizeUpdateWithWhereUniqueWithoutItemInput | Prisma.ItemSizeUpdateWithWhereUniqueWithoutItemInput[] + updateMany?: Prisma.ItemSizeUpdateManyWithWhereWithoutItemInput | Prisma.ItemSizeUpdateManyWithWhereWithoutItemInput[] + deleteMany?: Prisma.ItemSizeScalarWhereInput | Prisma.ItemSizeScalarWhereInput[] +} + +export type ItemSizeCreateWithoutItemInput = { + id?: string + value: runtime.Decimal | runtime.DecimalJsLike | number | string + unit: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ItemSizeUncheckedCreateWithoutItemInput = { + id?: string + value: runtime.Decimal | runtime.DecimalJsLike | number | string + unit: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ItemSizeCreateOrConnectWithoutItemInput = { + where: Prisma.ItemSizeWhereUniqueInput + create: Prisma.XOR +} + +export type ItemSizeCreateManyItemInputEnvelope = { + data: Prisma.ItemSizeCreateManyItemInput | Prisma.ItemSizeCreateManyItemInput[] + skipDuplicates?: boolean +} + +export type ItemSizeUpsertWithWhereUniqueWithoutItemInput = { + where: Prisma.ItemSizeWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ItemSizeUpdateWithWhereUniqueWithoutItemInput = { + where: Prisma.ItemSizeWhereUniqueInput + data: Prisma.XOR +} + +export type ItemSizeUpdateManyWithWhereWithoutItemInput = { + where: Prisma.ItemSizeScalarWhereInput + data: Prisma.XOR +} + +export type ItemSizeScalarWhereInput = { + AND?: Prisma.ItemSizeScalarWhereInput | Prisma.ItemSizeScalarWhereInput[] + OR?: Prisma.ItemSizeScalarWhereInput[] + NOT?: Prisma.ItemSizeScalarWhereInput | Prisma.ItemSizeScalarWhereInput[] + id?: Prisma.StringFilter<"ItemSize"> | string + itemId?: Prisma.StringFilter<"ItemSize"> | string + value?: Prisma.DecimalFilter<"ItemSize"> | runtime.Decimal | runtime.DecimalJsLike | number | string + unit?: Prisma.StringFilter<"ItemSize"> | string + createdAt?: Prisma.DateTimeFilter<"ItemSize"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"ItemSize"> | Date | string +} + +export type ItemSizeCreateManyItemInput = { + id?: string + value: runtime.Decimal | runtime.DecimalJsLike | number | string + unit: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ItemSizeUpdateWithoutItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + unit?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ItemSizeUncheckedUpdateWithoutItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + unit?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ItemSizeUncheckedUpdateManyWithoutItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + unit?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type ItemSizeSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + itemId?: boolean + value?: boolean + unit?: boolean + createdAt?: boolean + updatedAt?: boolean + item?: boolean | Prisma.ItemDefaultArgs +}, ExtArgs["result"]["itemSize"]> + +export type ItemSizeSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + itemId?: boolean + value?: boolean + unit?: boolean + createdAt?: boolean + updatedAt?: boolean + item?: boolean | Prisma.ItemDefaultArgs +}, ExtArgs["result"]["itemSize"]> + +export type ItemSizeSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + itemId?: boolean + value?: boolean + unit?: boolean + createdAt?: boolean + updatedAt?: boolean + item?: boolean | Prisma.ItemDefaultArgs +}, ExtArgs["result"]["itemSize"]> + +export type ItemSizeSelectScalar = { + id?: boolean + itemId?: boolean + value?: boolean + unit?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type ItemSizeOmit = runtime.Types.Extensions.GetOmit<"id" | "itemId" | "value" | "unit" | "createdAt" | "updatedAt", ExtArgs["result"]["itemSize"]> +export type ItemSizeInclude = { + item?: boolean | Prisma.ItemDefaultArgs +} +export type ItemSizeIncludeCreateManyAndReturn = { + item?: boolean | Prisma.ItemDefaultArgs +} +export type ItemSizeIncludeUpdateManyAndReturn = { + item?: boolean | Prisma.ItemDefaultArgs +} + +export type $ItemSizePayload = { + name: "ItemSize" + objects: { + item: Prisma.$ItemPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + itemId: string + value: runtime.Decimal + unit: string + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["itemSize"]> + composites: {} +} + +export type ItemSizeGetPayload = runtime.Types.Result.GetResult + +export type ItemSizeCountArgs = + Omit & { + select?: ItemSizeCountAggregateInputType | true + } + +export interface ItemSizeDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ItemSize'], meta: { name: 'ItemSize' } } + /** + * Find zero or one ItemSize that matches the filter. + * @param {ItemSizeFindUniqueArgs} args - Arguments to find a ItemSize + * @example + * // Get one ItemSize + * const itemSize = await prisma.itemSize.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ItemSizeClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one ItemSize that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ItemSizeFindUniqueOrThrowArgs} args - Arguments to find a ItemSize + * @example + * // Get one ItemSize + * const itemSize = await prisma.itemSize.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ItemSizeClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first ItemSize 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 {ItemSizeFindFirstArgs} args - Arguments to find a ItemSize + * @example + * // Get one ItemSize + * const itemSize = await prisma.itemSize.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ItemSizeClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first ItemSize 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 {ItemSizeFindFirstOrThrowArgs} args - Arguments to find a ItemSize + * @example + * // Get one ItemSize + * const itemSize = await prisma.itemSize.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ItemSizeClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more ItemSizes 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 {ItemSizeFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all ItemSizes + * const itemSizes = await prisma.itemSize.findMany() + * + * // Get first 10 ItemSizes + * const itemSizes = await prisma.itemSize.findMany({ take: 10 }) + * + * // Only select the `id` + * const itemSizeWithIdOnly = await prisma.itemSize.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a ItemSize. + * @param {ItemSizeCreateArgs} args - Arguments to create a ItemSize. + * @example + * // Create one ItemSize + * const ItemSize = await prisma.itemSize.create({ + * data: { + * // ... data to create a ItemSize + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ItemSizeClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many ItemSizes. + * @param {ItemSizeCreateManyArgs} args - Arguments to create many ItemSizes. + * @example + * // Create many ItemSizes + * const itemSize = await prisma.itemSize.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many ItemSizes and returns the data saved in the database. + * @param {ItemSizeCreateManyAndReturnArgs} args - Arguments to create many ItemSizes. + * @example + * // Create many ItemSizes + * const itemSize = await prisma.itemSize.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many ItemSizes and only return the `id` + * const itemSizeWithIdOnly = await prisma.itemSize.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a ItemSize. + * @param {ItemSizeDeleteArgs} args - Arguments to delete one ItemSize. + * @example + * // Delete one ItemSize + * const ItemSize = await prisma.itemSize.delete({ + * where: { + * // ... filter to delete one ItemSize + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ItemSizeClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one ItemSize. + * @param {ItemSizeUpdateArgs} args - Arguments to update one ItemSize. + * @example + * // Update one ItemSize + * const itemSize = await prisma.itemSize.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ItemSizeClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more ItemSizes. + * @param {ItemSizeDeleteManyArgs} args - Arguments to filter ItemSizes to delete. + * @example + * // Delete a few ItemSizes + * const { count } = await prisma.itemSize.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more ItemSizes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ItemSizeUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many ItemSizes + * const itemSize = await prisma.itemSize.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more ItemSizes and returns the data updated in the database. + * @param {ItemSizeUpdateManyAndReturnArgs} args - Arguments to update many ItemSizes. + * @example + * // Update many ItemSizes + * const itemSize = await prisma.itemSize.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more ItemSizes and only return the `id` + * const itemSizeWithIdOnly = await prisma.itemSize.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one ItemSize. + * @param {ItemSizeUpsertArgs} args - Arguments to update or create a ItemSize. + * @example + * // Update or create a ItemSize + * const itemSize = await prisma.itemSize.upsert({ + * create: { + * // ... data to create a ItemSize + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the ItemSize we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ItemSizeClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of ItemSizes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ItemSizeCountArgs} args - Arguments to filter ItemSizes to count. + * @example + * // Count the number of ItemSizes + * const count = await prisma.itemSize.count({ + * where: { + * // ... the filter for the ItemSizes we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a ItemSize. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ItemSizeAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by ItemSize. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ItemSizeGroupByArgs} 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 ItemSizeGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ItemSizeGroupByArgs['orderBy'] } + : { orderBy?: ItemSizeGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetItemSizeGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ItemSize model + */ +readonly fields: ItemSizeFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ItemSize. + * 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__ItemSizeClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + item = {}>(args?: Prisma.Subset>): Prisma.Prisma__ItemClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the ItemSize model + */ +export interface ItemSizeFieldRefs { + readonly id: Prisma.FieldRef<"ItemSize", 'String'> + readonly itemId: Prisma.FieldRef<"ItemSize", 'String'> + readonly value: Prisma.FieldRef<"ItemSize", 'Decimal'> + readonly unit: Prisma.FieldRef<"ItemSize", 'String'> + readonly createdAt: Prisma.FieldRef<"ItemSize", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"ItemSize", 'DateTime'> +} + + +// Custom InputTypes +/** + * ItemSize findUnique + */ +export type ItemSizeFindUniqueArgs = { + /** + * Select specific fields to fetch from the ItemSize + */ + select?: Prisma.ItemSizeSelect | null + /** + * Omit specific fields from the ItemSize + */ + omit?: Prisma.ItemSizeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemSizeInclude | null + /** + * Filter, which ItemSize to fetch. + */ + where: Prisma.ItemSizeWhereUniqueInput +} + +/** + * ItemSize findUniqueOrThrow + */ +export type ItemSizeFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ItemSize + */ + select?: Prisma.ItemSizeSelect | null + /** + * Omit specific fields from the ItemSize + */ + omit?: Prisma.ItemSizeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemSizeInclude | null + /** + * Filter, which ItemSize to fetch. + */ + where: Prisma.ItemSizeWhereUniqueInput +} + +/** + * ItemSize findFirst + */ +export type ItemSizeFindFirstArgs = { + /** + * Select specific fields to fetch from the ItemSize + */ + select?: Prisma.ItemSizeSelect | null + /** + * Omit specific fields from the ItemSize + */ + omit?: Prisma.ItemSizeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemSizeInclude | null + /** + * Filter, which ItemSize to fetch. + */ + where?: Prisma.ItemSizeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ItemSizes to fetch. + */ + orderBy?: Prisma.ItemSizeOrderByWithRelationInput | Prisma.ItemSizeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ItemSizes. + */ + cursor?: Prisma.ItemSizeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ItemSizes 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` ItemSizes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ItemSizes. + */ + distinct?: Prisma.ItemSizeScalarFieldEnum | Prisma.ItemSizeScalarFieldEnum[] +} + +/** + * ItemSize findFirstOrThrow + */ +export type ItemSizeFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ItemSize + */ + select?: Prisma.ItemSizeSelect | null + /** + * Omit specific fields from the ItemSize + */ + omit?: Prisma.ItemSizeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemSizeInclude | null + /** + * Filter, which ItemSize to fetch. + */ + where?: Prisma.ItemSizeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ItemSizes to fetch. + */ + orderBy?: Prisma.ItemSizeOrderByWithRelationInput | Prisma.ItemSizeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ItemSizes. + */ + cursor?: Prisma.ItemSizeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ItemSizes 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` ItemSizes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ItemSizes. + */ + distinct?: Prisma.ItemSizeScalarFieldEnum | Prisma.ItemSizeScalarFieldEnum[] +} + +/** + * ItemSize findMany + */ +export type ItemSizeFindManyArgs = { + /** + * Select specific fields to fetch from the ItemSize + */ + select?: Prisma.ItemSizeSelect | null + /** + * Omit specific fields from the ItemSize + */ + omit?: Prisma.ItemSizeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemSizeInclude | null + /** + * Filter, which ItemSizes to fetch. + */ + where?: Prisma.ItemSizeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ItemSizes to fetch. + */ + orderBy?: Prisma.ItemSizeOrderByWithRelationInput | Prisma.ItemSizeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ItemSizes. + */ + cursor?: Prisma.ItemSizeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ItemSizes 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` ItemSizes. + */ + skip?: number + distinct?: Prisma.ItemSizeScalarFieldEnum | Prisma.ItemSizeScalarFieldEnum[] +} + +/** + * ItemSize create + */ +export type ItemSizeCreateArgs = { + /** + * Select specific fields to fetch from the ItemSize + */ + select?: Prisma.ItemSizeSelect | null + /** + * Omit specific fields from the ItemSize + */ + omit?: Prisma.ItemSizeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemSizeInclude | null + /** + * The data needed to create a ItemSize. + */ + data: Prisma.XOR +} + +/** + * ItemSize createMany + */ +export type ItemSizeCreateManyArgs = { + /** + * The data used to create many ItemSizes. + */ + data: Prisma.ItemSizeCreateManyInput | Prisma.ItemSizeCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ItemSize createManyAndReturn + */ +export type ItemSizeCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the ItemSize + */ + select?: Prisma.ItemSizeSelectCreateManyAndReturn | null + /** + * Omit specific fields from the ItemSize + */ + omit?: Prisma.ItemSizeOmit | null + /** + * The data used to create many ItemSizes. + */ + data: Prisma.ItemSizeCreateManyInput | Prisma.ItemSizeCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemSizeIncludeCreateManyAndReturn | null +} + +/** + * ItemSize update + */ +export type ItemSizeUpdateArgs = { + /** + * Select specific fields to fetch from the ItemSize + */ + select?: Prisma.ItemSizeSelect | null + /** + * Omit specific fields from the ItemSize + */ + omit?: Prisma.ItemSizeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemSizeInclude | null + /** + * The data needed to update a ItemSize. + */ + data: Prisma.XOR + /** + * Choose, which ItemSize to update. + */ + where: Prisma.ItemSizeWhereUniqueInput +} + +/** + * ItemSize updateMany + */ +export type ItemSizeUpdateManyArgs = { + /** + * The data used to update ItemSizes. + */ + data: Prisma.XOR + /** + * Filter which ItemSizes to update + */ + where?: Prisma.ItemSizeWhereInput + /** + * Limit how many ItemSizes to update. + */ + limit?: number +} + +/** + * ItemSize updateManyAndReturn + */ +export type ItemSizeUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the ItemSize + */ + select?: Prisma.ItemSizeSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the ItemSize + */ + omit?: Prisma.ItemSizeOmit | null + /** + * The data used to update ItemSizes. + */ + data: Prisma.XOR + /** + * Filter which ItemSizes to update + */ + where?: Prisma.ItemSizeWhereInput + /** + * Limit how many ItemSizes to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemSizeIncludeUpdateManyAndReturn | null +} + +/** + * ItemSize upsert + */ +export type ItemSizeUpsertArgs = { + /** + * Select specific fields to fetch from the ItemSize + */ + select?: Prisma.ItemSizeSelect | null + /** + * Omit specific fields from the ItemSize + */ + omit?: Prisma.ItemSizeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemSizeInclude | null + /** + * The filter to search for the ItemSize to update in case it exists. + */ + where: Prisma.ItemSizeWhereUniqueInput + /** + * In case the ItemSize found by the `where` argument doesn't exist, create a new ItemSize with this data. + */ + create: Prisma.XOR + /** + * In case the ItemSize was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ItemSize delete + */ +export type ItemSizeDeleteArgs = { + /** + * Select specific fields to fetch from the ItemSize + */ + select?: Prisma.ItemSizeSelect | null + /** + * Omit specific fields from the ItemSize + */ + omit?: Prisma.ItemSizeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemSizeInclude | null + /** + * Filter which ItemSize to delete. + */ + where: Prisma.ItemSizeWhereUniqueInput +} + +/** + * ItemSize deleteMany + */ +export type ItemSizeDeleteManyArgs = { + /** + * Filter which ItemSizes to delete + */ + where?: Prisma.ItemSizeWhereInput + /** + * Limit how many ItemSizes to delete. + */ + limit?: number +} + +/** + * ItemSize without action + */ +export type ItemSizeDefaultArgs = { + /** + * Select specific fields to fetch from the ItemSize + */ + select?: Prisma.ItemSizeSelect | null + /** + * Omit specific fields from the ItemSize + */ + omit?: Prisma.ItemSizeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ItemSizeInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/Notification.ts b/apps/backend/prisma/generated/generated/prisma/models/Notification.ts new file mode 100644 index 00000000..eadbf1b2 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/Notification.ts @@ -0,0 +1,2242 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Notification` 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 Notification + * + */ +export type NotificationModel = runtime.Types.Result.DefaultSelection + +export type AggregateNotification = { + _count: NotificationCountAggregateOutputType | null + _min: NotificationMinAggregateOutputType | null + _max: NotificationMaxAggregateOutputType | null +} + +export type NotificationMinAggregateOutputType = { + id: string | null + userId: string | null + type: $Enums.NotificationType | null + priority: $Enums.NotificationPriority | null + title: string | null + message: string | null + isRead: boolean | null + readAt: Date | null + isInteracted: boolean | null + interactedAt: Date | null + actionUrl: string | null + familyId: string | null + transactionId: string | null + invitationId: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type NotificationMaxAggregateOutputType = { + id: string | null + userId: string | null + type: $Enums.NotificationType | null + priority: $Enums.NotificationPriority | null + title: string | null + message: string | null + isRead: boolean | null + readAt: Date | null + isInteracted: boolean | null + interactedAt: Date | null + actionUrl: string | null + familyId: string | null + transactionId: string | null + invitationId: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type NotificationCountAggregateOutputType = { + id: number + userId: number + type: number + priority: number + title: number + message: number + data: number + deliveryMethods: number + isRead: number + readAt: number + isInteracted: number + interactedAt: number + actionUrl: number + familyId: number + transactionId: number + invitationId: number + createdAt: number + updatedAt: number + _all: number +} + + +export type NotificationMinAggregateInputType = { + id?: true + userId?: true + type?: true + priority?: true + title?: true + message?: true + isRead?: true + readAt?: true + isInteracted?: true + interactedAt?: true + actionUrl?: true + familyId?: true + transactionId?: true + invitationId?: true + createdAt?: true + updatedAt?: true +} + +export type NotificationMaxAggregateInputType = { + id?: true + userId?: true + type?: true + priority?: true + title?: true + message?: true + isRead?: true + readAt?: true + isInteracted?: true + interactedAt?: true + actionUrl?: true + familyId?: true + transactionId?: true + invitationId?: true + createdAt?: true + updatedAt?: true +} + +export type NotificationCountAggregateInputType = { + id?: true + userId?: true + type?: true + priority?: true + title?: true + message?: true + data?: true + deliveryMethods?: true + isRead?: true + readAt?: true + isInteracted?: true + interactedAt?: true + actionUrl?: true + familyId?: true + transactionId?: true + invitationId?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type NotificationAggregateArgs = { + /** + * Filter which Notification to aggregate. + */ + where?: Prisma.NotificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Notifications to fetch. + */ + orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.NotificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Notifications 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` Notifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Notifications + **/ + _count?: true | NotificationCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: NotificationMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: NotificationMaxAggregateInputType +} + +export type GetNotificationAggregateType = { + [P in keyof T & keyof AggregateNotification]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type NotificationGroupByArgs = { + where?: Prisma.NotificationWhereInput + orderBy?: Prisma.NotificationOrderByWithAggregationInput | Prisma.NotificationOrderByWithAggregationInput[] + by: Prisma.NotificationScalarFieldEnum[] | Prisma.NotificationScalarFieldEnum + having?: Prisma.NotificationScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: NotificationCountAggregateInputType | true + _min?: NotificationMinAggregateInputType + _max?: NotificationMaxAggregateInputType +} + +export type NotificationGroupByOutputType = { + id: string + userId: string + type: $Enums.NotificationType + priority: $Enums.NotificationPriority + title: string + message: string + data: runtime.JsonValue | null + deliveryMethods: $Enums.NotificationDeliveryMethod[] + isRead: boolean + readAt: Date | null + isInteracted: boolean + interactedAt: Date | null + actionUrl: string | null + familyId: string | null + transactionId: string | null + invitationId: string | null + createdAt: Date + updatedAt: Date + _count: NotificationCountAggregateOutputType | null + _min: NotificationMinAggregateOutputType | null + _max: NotificationMaxAggregateOutputType | null +} + +type GetNotificationGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof NotificationGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type NotificationWhereInput = { + AND?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[] + OR?: Prisma.NotificationWhereInput[] + NOT?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[] + id?: Prisma.StringFilter<"Notification"> | string + userId?: Prisma.StringFilter<"Notification"> | string + type?: Prisma.EnumNotificationTypeFilter<"Notification"> | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityFilter<"Notification"> | $Enums.NotificationPriority + title?: Prisma.StringFilter<"Notification"> | string + message?: Prisma.StringFilter<"Notification"> | string + data?: Prisma.JsonNullableFilter<"Notification"> + deliveryMethods?: Prisma.EnumNotificationDeliveryMethodNullableListFilter<"Notification"> + isRead?: Prisma.BoolFilter<"Notification"> | boolean + readAt?: Prisma.DateTimeNullableFilter<"Notification"> | Date | string | null + isInteracted?: Prisma.BoolFilter<"Notification"> | boolean + interactedAt?: Prisma.DateTimeNullableFilter<"Notification"> | Date | string | null + actionUrl?: Prisma.StringNullableFilter<"Notification"> | string | null + familyId?: Prisma.StringNullableFilter<"Notification"> | string | null + transactionId?: Prisma.StringNullableFilter<"Notification"> | string | null + invitationId?: Prisma.StringNullableFilter<"Notification"> | string | null + createdAt?: Prisma.DateTimeFilter<"Notification"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Notification"> | Date | string + user?: Prisma.XOR + family?: Prisma.XOR | null + transaction?: Prisma.XOR | null +} + +export type NotificationOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + type?: Prisma.SortOrder + priority?: Prisma.SortOrder + title?: Prisma.SortOrder + message?: Prisma.SortOrder + data?: Prisma.SortOrderInput | Prisma.SortOrder + deliveryMethods?: Prisma.SortOrder + isRead?: Prisma.SortOrder + readAt?: Prisma.SortOrderInput | Prisma.SortOrder + isInteracted?: Prisma.SortOrder + interactedAt?: Prisma.SortOrderInput | Prisma.SortOrder + actionUrl?: Prisma.SortOrderInput | Prisma.SortOrder + familyId?: Prisma.SortOrderInput | Prisma.SortOrder + transactionId?: Prisma.SortOrderInput | Prisma.SortOrder + invitationId?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput + family?: Prisma.FamilyOrderByWithRelationInput + transaction?: Prisma.TransactionOrderByWithRelationInput +} + +export type NotificationWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[] + OR?: Prisma.NotificationWhereInput[] + NOT?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[] + userId?: Prisma.StringFilter<"Notification"> | string + type?: Prisma.EnumNotificationTypeFilter<"Notification"> | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityFilter<"Notification"> | $Enums.NotificationPriority + title?: Prisma.StringFilter<"Notification"> | string + message?: Prisma.StringFilter<"Notification"> | string + data?: Prisma.JsonNullableFilter<"Notification"> + deliveryMethods?: Prisma.EnumNotificationDeliveryMethodNullableListFilter<"Notification"> + isRead?: Prisma.BoolFilter<"Notification"> | boolean + readAt?: Prisma.DateTimeNullableFilter<"Notification"> | Date | string | null + isInteracted?: Prisma.BoolFilter<"Notification"> | boolean + interactedAt?: Prisma.DateTimeNullableFilter<"Notification"> | Date | string | null + actionUrl?: Prisma.StringNullableFilter<"Notification"> | string | null + familyId?: Prisma.StringNullableFilter<"Notification"> | string | null + transactionId?: Prisma.StringNullableFilter<"Notification"> | string | null + invitationId?: Prisma.StringNullableFilter<"Notification"> | string | null + createdAt?: Prisma.DateTimeFilter<"Notification"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Notification"> | Date | string + user?: Prisma.XOR + family?: Prisma.XOR | null + transaction?: Prisma.XOR | null +}, "id"> + +export type NotificationOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + type?: Prisma.SortOrder + priority?: Prisma.SortOrder + title?: Prisma.SortOrder + message?: Prisma.SortOrder + data?: Prisma.SortOrderInput | Prisma.SortOrder + deliveryMethods?: Prisma.SortOrder + isRead?: Prisma.SortOrder + readAt?: Prisma.SortOrderInput | Prisma.SortOrder + isInteracted?: Prisma.SortOrder + interactedAt?: Prisma.SortOrderInput | Prisma.SortOrder + actionUrl?: Prisma.SortOrderInput | Prisma.SortOrder + familyId?: Prisma.SortOrderInput | Prisma.SortOrder + transactionId?: Prisma.SortOrderInput | Prisma.SortOrder + invitationId?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.NotificationCountOrderByAggregateInput + _max?: Prisma.NotificationMaxOrderByAggregateInput + _min?: Prisma.NotificationMinOrderByAggregateInput +} + +export type NotificationScalarWhereWithAggregatesInput = { + AND?: Prisma.NotificationScalarWhereWithAggregatesInput | Prisma.NotificationScalarWhereWithAggregatesInput[] + OR?: Prisma.NotificationScalarWhereWithAggregatesInput[] + NOT?: Prisma.NotificationScalarWhereWithAggregatesInput | Prisma.NotificationScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Notification"> | string + userId?: Prisma.StringWithAggregatesFilter<"Notification"> | string + type?: Prisma.EnumNotificationTypeWithAggregatesFilter<"Notification"> | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityWithAggregatesFilter<"Notification"> | $Enums.NotificationPriority + title?: Prisma.StringWithAggregatesFilter<"Notification"> | string + message?: Prisma.StringWithAggregatesFilter<"Notification"> | string + data?: Prisma.JsonNullableWithAggregatesFilter<"Notification"> + deliveryMethods?: Prisma.EnumNotificationDeliveryMethodNullableListFilter<"Notification"> + isRead?: Prisma.BoolWithAggregatesFilter<"Notification"> | boolean + readAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Notification"> | Date | string | null + isInteracted?: Prisma.BoolWithAggregatesFilter<"Notification"> | boolean + interactedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Notification"> | Date | string | null + actionUrl?: Prisma.StringNullableWithAggregatesFilter<"Notification"> | string | null + familyId?: Prisma.StringNullableWithAggregatesFilter<"Notification"> | string | null + transactionId?: Prisma.StringNullableWithAggregatesFilter<"Notification"> | string | null + invitationId?: Prisma.StringNullableWithAggregatesFilter<"Notification"> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Notification"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Notification"> | Date | string +} + +export type NotificationCreateInput = { + id?: string + type: $Enums.NotificationType + priority?: $Enums.NotificationPriority + title: string + message: string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationCreatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: boolean + readAt?: Date | string | null + isInteracted?: boolean + interactedAt?: Date | string | null + actionUrl?: string | null + invitationId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutNotificationsInput + family?: Prisma.FamilyCreateNestedOneWithoutNotificationsInput + transaction?: Prisma.TransactionCreateNestedOneWithoutNotificationsInput +} + +export type NotificationUncheckedCreateInput = { + id?: string + userId: string + type: $Enums.NotificationType + priority?: $Enums.NotificationPriority + title: string + message: string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationCreatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: boolean + readAt?: Date | string | null + isInteracted?: boolean + interactedAt?: Date | string | null + actionUrl?: string | null + familyId?: string | null + transactionId?: string | null + invitationId?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type NotificationUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority + title?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationUpdatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean + readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + isInteracted?: Prisma.BoolFieldUpdateOperationsInput | boolean + interactedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invitationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutNotificationsNestedInput + family?: Prisma.FamilyUpdateOneWithoutNotificationsNestedInput + transaction?: Prisma.TransactionUpdateOneWithoutNotificationsNestedInput +} + +export type NotificationUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority + title?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationUpdatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean + readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + isInteracted?: Prisma.BoolFieldUpdateOperationsInput | boolean + interactedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + transactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invitationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type NotificationCreateManyInput = { + id?: string + userId: string + type: $Enums.NotificationType + priority?: $Enums.NotificationPriority + title: string + message: string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationCreatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: boolean + readAt?: Date | string | null + isInteracted?: boolean + interactedAt?: Date | string | null + actionUrl?: string | null + familyId?: string | null + transactionId?: string | null + invitationId?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type NotificationUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority + title?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationUpdatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean + readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + isInteracted?: Prisma.BoolFieldUpdateOperationsInput | boolean + interactedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invitationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type NotificationUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority + title?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationUpdatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean + readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + isInteracted?: Prisma.BoolFieldUpdateOperationsInput | boolean + interactedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + transactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invitationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type NotificationListRelationFilter = { + every?: Prisma.NotificationWhereInput + some?: Prisma.NotificationWhereInput + none?: Prisma.NotificationWhereInput +} + +export type NotificationOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type EnumNotificationDeliveryMethodNullableListFilter<$PrismaModel = never> = { + equals?: $Enums.NotificationDeliveryMethod[] | Prisma.ListEnumNotificationDeliveryMethodFieldRefInput<$PrismaModel> | null + has?: $Enums.NotificationDeliveryMethod | Prisma.EnumNotificationDeliveryMethodFieldRefInput<$PrismaModel> | null + hasEvery?: $Enums.NotificationDeliveryMethod[] | Prisma.ListEnumNotificationDeliveryMethodFieldRefInput<$PrismaModel> + hasSome?: $Enums.NotificationDeliveryMethod[] | Prisma.ListEnumNotificationDeliveryMethodFieldRefInput<$PrismaModel> + isEmpty?: boolean +} + +export type NotificationCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + type?: Prisma.SortOrder + priority?: Prisma.SortOrder + title?: Prisma.SortOrder + message?: Prisma.SortOrder + data?: Prisma.SortOrder + deliveryMethods?: Prisma.SortOrder + isRead?: Prisma.SortOrder + readAt?: Prisma.SortOrder + isInteracted?: Prisma.SortOrder + interactedAt?: Prisma.SortOrder + actionUrl?: Prisma.SortOrder + familyId?: Prisma.SortOrder + transactionId?: Prisma.SortOrder + invitationId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type NotificationMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + type?: Prisma.SortOrder + priority?: Prisma.SortOrder + title?: Prisma.SortOrder + message?: Prisma.SortOrder + isRead?: Prisma.SortOrder + readAt?: Prisma.SortOrder + isInteracted?: Prisma.SortOrder + interactedAt?: Prisma.SortOrder + actionUrl?: Prisma.SortOrder + familyId?: Prisma.SortOrder + transactionId?: Prisma.SortOrder + invitationId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type NotificationMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + type?: Prisma.SortOrder + priority?: Prisma.SortOrder + title?: Prisma.SortOrder + message?: Prisma.SortOrder + isRead?: Prisma.SortOrder + readAt?: Prisma.SortOrder + isInteracted?: Prisma.SortOrder + interactedAt?: Prisma.SortOrder + actionUrl?: Prisma.SortOrder + familyId?: Prisma.SortOrder + transactionId?: Prisma.SortOrder + invitationId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type NotificationCreateNestedManyWithoutFamilyInput = { + create?: Prisma.XOR | Prisma.NotificationCreateWithoutFamilyInput[] | Prisma.NotificationUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutFamilyInput | Prisma.NotificationCreateOrConnectWithoutFamilyInput[] + createMany?: Prisma.NotificationCreateManyFamilyInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUncheckedCreateNestedManyWithoutFamilyInput = { + create?: Prisma.XOR | Prisma.NotificationCreateWithoutFamilyInput[] | Prisma.NotificationUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutFamilyInput | Prisma.NotificationCreateOrConnectWithoutFamilyInput[] + createMany?: Prisma.NotificationCreateManyFamilyInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUpdateManyWithoutFamilyNestedInput = { + create?: Prisma.XOR | Prisma.NotificationCreateWithoutFamilyInput[] | Prisma.NotificationUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutFamilyInput | Prisma.NotificationCreateOrConnectWithoutFamilyInput[] + upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutFamilyInput | Prisma.NotificationUpsertWithWhereUniqueWithoutFamilyInput[] + createMany?: Prisma.NotificationCreateManyFamilyInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: Prisma.NotificationUpdateWithWhereUniqueWithoutFamilyInput | Prisma.NotificationUpdateWithWhereUniqueWithoutFamilyInput[] + updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutFamilyInput | Prisma.NotificationUpdateManyWithWhereWithoutFamilyInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationUncheckedUpdateManyWithoutFamilyNestedInput = { + create?: Prisma.XOR | Prisma.NotificationCreateWithoutFamilyInput[] | Prisma.NotificationUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutFamilyInput | Prisma.NotificationCreateOrConnectWithoutFamilyInput[] + upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutFamilyInput | Prisma.NotificationUpsertWithWhereUniqueWithoutFamilyInput[] + createMany?: Prisma.NotificationCreateManyFamilyInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: Prisma.NotificationUpdateWithWhereUniqueWithoutFamilyInput | Prisma.NotificationUpdateWithWhereUniqueWithoutFamilyInput[] + updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutFamilyInput | Prisma.NotificationUpdateManyWithWhereWithoutFamilyInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationCreatedeliveryMethodsInput = { + set: $Enums.NotificationDeliveryMethod[] +} + +export type EnumNotificationTypeFieldUpdateOperationsInput = { + set?: $Enums.NotificationType +} + +export type EnumNotificationPriorityFieldUpdateOperationsInput = { + set?: $Enums.NotificationPriority +} + +export type NotificationUpdatedeliveryMethodsInput = { + set?: $Enums.NotificationDeliveryMethod[] + push?: $Enums.NotificationDeliveryMethod | $Enums.NotificationDeliveryMethod[] +} + +export type NotificationCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.NotificationCreateWithoutUserInput[] | Prisma.NotificationUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutUserInput | Prisma.NotificationCreateOrConnectWithoutUserInput[] + createMany?: Prisma.NotificationCreateManyUserInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.NotificationCreateWithoutUserInput[] | Prisma.NotificationUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutUserInput | Prisma.NotificationCreateOrConnectWithoutUserInput[] + createMany?: Prisma.NotificationCreateManyUserInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.NotificationCreateWithoutUserInput[] | Prisma.NotificationUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutUserInput | Prisma.NotificationCreateOrConnectWithoutUserInput[] + upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput | Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.NotificationCreateManyUserInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput | Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutUserInput | Prisma.NotificationUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.NotificationCreateWithoutUserInput[] | Prisma.NotificationUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutUserInput | Prisma.NotificationCreateOrConnectWithoutUserInput[] + upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput | Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.NotificationCreateManyUserInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput | Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutUserInput | Prisma.NotificationUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationCreateNestedManyWithoutTransactionInput = { + create?: Prisma.XOR | Prisma.NotificationCreateWithoutTransactionInput[] | Prisma.NotificationUncheckedCreateWithoutTransactionInput[] + connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutTransactionInput | Prisma.NotificationCreateOrConnectWithoutTransactionInput[] + createMany?: Prisma.NotificationCreateManyTransactionInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUncheckedCreateNestedManyWithoutTransactionInput = { + create?: Prisma.XOR | Prisma.NotificationCreateWithoutTransactionInput[] | Prisma.NotificationUncheckedCreateWithoutTransactionInput[] + connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutTransactionInput | Prisma.NotificationCreateOrConnectWithoutTransactionInput[] + createMany?: Prisma.NotificationCreateManyTransactionInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUpdateManyWithoutTransactionNestedInput = { + create?: Prisma.XOR | Prisma.NotificationCreateWithoutTransactionInput[] | Prisma.NotificationUncheckedCreateWithoutTransactionInput[] + connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutTransactionInput | Prisma.NotificationCreateOrConnectWithoutTransactionInput[] + upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutTransactionInput | Prisma.NotificationUpsertWithWhereUniqueWithoutTransactionInput[] + createMany?: Prisma.NotificationCreateManyTransactionInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: Prisma.NotificationUpdateWithWhereUniqueWithoutTransactionInput | Prisma.NotificationUpdateWithWhereUniqueWithoutTransactionInput[] + updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutTransactionInput | Prisma.NotificationUpdateManyWithWhereWithoutTransactionInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationUncheckedUpdateManyWithoutTransactionNestedInput = { + create?: Prisma.XOR | Prisma.NotificationCreateWithoutTransactionInput[] | Prisma.NotificationUncheckedCreateWithoutTransactionInput[] + connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutTransactionInput | Prisma.NotificationCreateOrConnectWithoutTransactionInput[] + upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutTransactionInput | Prisma.NotificationUpsertWithWhereUniqueWithoutTransactionInput[] + createMany?: Prisma.NotificationCreateManyTransactionInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: Prisma.NotificationUpdateWithWhereUniqueWithoutTransactionInput | Prisma.NotificationUpdateWithWhereUniqueWithoutTransactionInput[] + updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutTransactionInput | Prisma.NotificationUpdateManyWithWhereWithoutTransactionInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationCreateWithoutFamilyInput = { + id?: string + type: $Enums.NotificationType + priority?: $Enums.NotificationPriority + title: string + message: string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationCreatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: boolean + readAt?: Date | string | null + isInteracted?: boolean + interactedAt?: Date | string | null + actionUrl?: string | null + invitationId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutNotificationsInput + transaction?: Prisma.TransactionCreateNestedOneWithoutNotificationsInput +} + +export type NotificationUncheckedCreateWithoutFamilyInput = { + id?: string + userId: string + type: $Enums.NotificationType + priority?: $Enums.NotificationPriority + title: string + message: string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationCreatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: boolean + readAt?: Date | string | null + isInteracted?: boolean + interactedAt?: Date | string | null + actionUrl?: string | null + transactionId?: string | null + invitationId?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type NotificationCreateOrConnectWithoutFamilyInput = { + where: Prisma.NotificationWhereUniqueInput + create: Prisma.XOR +} + +export type NotificationCreateManyFamilyInputEnvelope = { + data: Prisma.NotificationCreateManyFamilyInput | Prisma.NotificationCreateManyFamilyInput[] + skipDuplicates?: boolean +} + +export type NotificationUpsertWithWhereUniqueWithoutFamilyInput = { + where: Prisma.NotificationWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type NotificationUpdateWithWhereUniqueWithoutFamilyInput = { + where: Prisma.NotificationWhereUniqueInput + data: Prisma.XOR +} + +export type NotificationUpdateManyWithWhereWithoutFamilyInput = { + where: Prisma.NotificationScalarWhereInput + data: Prisma.XOR +} + +export type NotificationScalarWhereInput = { + AND?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] + OR?: Prisma.NotificationScalarWhereInput[] + NOT?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] + id?: Prisma.StringFilter<"Notification"> | string + userId?: Prisma.StringFilter<"Notification"> | string + type?: Prisma.EnumNotificationTypeFilter<"Notification"> | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityFilter<"Notification"> | $Enums.NotificationPriority + title?: Prisma.StringFilter<"Notification"> | string + message?: Prisma.StringFilter<"Notification"> | string + data?: Prisma.JsonNullableFilter<"Notification"> + deliveryMethods?: Prisma.EnumNotificationDeliveryMethodNullableListFilter<"Notification"> + isRead?: Prisma.BoolFilter<"Notification"> | boolean + readAt?: Prisma.DateTimeNullableFilter<"Notification"> | Date | string | null + isInteracted?: Prisma.BoolFilter<"Notification"> | boolean + interactedAt?: Prisma.DateTimeNullableFilter<"Notification"> | Date | string | null + actionUrl?: Prisma.StringNullableFilter<"Notification"> | string | null + familyId?: Prisma.StringNullableFilter<"Notification"> | string | null + transactionId?: Prisma.StringNullableFilter<"Notification"> | string | null + invitationId?: Prisma.StringNullableFilter<"Notification"> | string | null + createdAt?: Prisma.DateTimeFilter<"Notification"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Notification"> | Date | string +} + +export type NotificationCreateWithoutUserInput = { + id?: string + type: $Enums.NotificationType + priority?: $Enums.NotificationPriority + title: string + message: string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationCreatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: boolean + readAt?: Date | string | null + isInteracted?: boolean + interactedAt?: Date | string | null + actionUrl?: string | null + invitationId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + family?: Prisma.FamilyCreateNestedOneWithoutNotificationsInput + transaction?: Prisma.TransactionCreateNestedOneWithoutNotificationsInput +} + +export type NotificationUncheckedCreateWithoutUserInput = { + id?: string + type: $Enums.NotificationType + priority?: $Enums.NotificationPriority + title: string + message: string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationCreatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: boolean + readAt?: Date | string | null + isInteracted?: boolean + interactedAt?: Date | string | null + actionUrl?: string | null + familyId?: string | null + transactionId?: string | null + invitationId?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type NotificationCreateOrConnectWithoutUserInput = { + where: Prisma.NotificationWhereUniqueInput + create: Prisma.XOR +} + +export type NotificationCreateManyUserInputEnvelope = { + data: Prisma.NotificationCreateManyUserInput | Prisma.NotificationCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type NotificationUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.NotificationWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type NotificationUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.NotificationWhereUniqueInput + data: Prisma.XOR +} + +export type NotificationUpdateManyWithWhereWithoutUserInput = { + where: Prisma.NotificationScalarWhereInput + data: Prisma.XOR +} + +export type NotificationCreateWithoutTransactionInput = { + id?: string + type: $Enums.NotificationType + priority?: $Enums.NotificationPriority + title: string + message: string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationCreatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: boolean + readAt?: Date | string | null + isInteracted?: boolean + interactedAt?: Date | string | null + actionUrl?: string | null + invitationId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutNotificationsInput + family?: Prisma.FamilyCreateNestedOneWithoutNotificationsInput +} + +export type NotificationUncheckedCreateWithoutTransactionInput = { + id?: string + userId: string + type: $Enums.NotificationType + priority?: $Enums.NotificationPriority + title: string + message: string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationCreatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: boolean + readAt?: Date | string | null + isInteracted?: boolean + interactedAt?: Date | string | null + actionUrl?: string | null + familyId?: string | null + invitationId?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type NotificationCreateOrConnectWithoutTransactionInput = { + where: Prisma.NotificationWhereUniqueInput + create: Prisma.XOR +} + +export type NotificationCreateManyTransactionInputEnvelope = { + data: Prisma.NotificationCreateManyTransactionInput | Prisma.NotificationCreateManyTransactionInput[] + skipDuplicates?: boolean +} + +export type NotificationUpsertWithWhereUniqueWithoutTransactionInput = { + where: Prisma.NotificationWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type NotificationUpdateWithWhereUniqueWithoutTransactionInput = { + where: Prisma.NotificationWhereUniqueInput + data: Prisma.XOR +} + +export type NotificationUpdateManyWithWhereWithoutTransactionInput = { + where: Prisma.NotificationScalarWhereInput + data: Prisma.XOR +} + +export type NotificationCreateManyFamilyInput = { + id?: string + userId: string + type: $Enums.NotificationType + priority?: $Enums.NotificationPriority + title: string + message: string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationCreatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: boolean + readAt?: Date | string | null + isInteracted?: boolean + interactedAt?: Date | string | null + actionUrl?: string | null + transactionId?: string | null + invitationId?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type NotificationUpdateWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority + title?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationUpdatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean + readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + isInteracted?: Prisma.BoolFieldUpdateOperationsInput | boolean + interactedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invitationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutNotificationsNestedInput + transaction?: Prisma.TransactionUpdateOneWithoutNotificationsNestedInput +} + +export type NotificationUncheckedUpdateWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority + title?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationUpdatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean + readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + isInteracted?: Prisma.BoolFieldUpdateOperationsInput | boolean + interactedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + transactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invitationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type NotificationUncheckedUpdateManyWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority + title?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationUpdatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean + readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + isInteracted?: Prisma.BoolFieldUpdateOperationsInput | boolean + interactedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + transactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invitationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type NotificationCreateManyUserInput = { + id?: string + type: $Enums.NotificationType + priority?: $Enums.NotificationPriority + title: string + message: string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationCreatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: boolean + readAt?: Date | string | null + isInteracted?: boolean + interactedAt?: Date | string | null + actionUrl?: string | null + familyId?: string | null + transactionId?: string | null + invitationId?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type NotificationUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority + title?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationUpdatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean + readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + isInteracted?: Prisma.BoolFieldUpdateOperationsInput | boolean + interactedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invitationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + family?: Prisma.FamilyUpdateOneWithoutNotificationsNestedInput + transaction?: Prisma.TransactionUpdateOneWithoutNotificationsNestedInput +} + +export type NotificationUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority + title?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationUpdatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean + readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + isInteracted?: Prisma.BoolFieldUpdateOperationsInput | boolean + interactedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + transactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invitationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type NotificationUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority + title?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationUpdatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean + readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + isInteracted?: Prisma.BoolFieldUpdateOperationsInput | boolean + interactedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + transactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invitationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type NotificationCreateManyTransactionInput = { + id?: string + userId: string + type: $Enums.NotificationType + priority?: $Enums.NotificationPriority + title: string + message: string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationCreatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: boolean + readAt?: Date | string | null + isInteracted?: boolean + interactedAt?: Date | string | null + actionUrl?: string | null + familyId?: string | null + invitationId?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type NotificationUpdateWithoutTransactionInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority + title?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationUpdatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean + readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + isInteracted?: Prisma.BoolFieldUpdateOperationsInput | boolean + interactedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invitationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutNotificationsNestedInput + family?: Prisma.FamilyUpdateOneWithoutNotificationsNestedInput +} + +export type NotificationUncheckedUpdateWithoutTransactionInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority + title?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationUpdatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean + readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + isInteracted?: Prisma.BoolFieldUpdateOperationsInput | boolean + interactedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invitationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type NotificationUncheckedUpdateManyWithoutTransactionInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType + priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority + title?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue + deliveryMethods?: Prisma.NotificationUpdatedeliveryMethodsInput | $Enums.NotificationDeliveryMethod[] + isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean + readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + isInteracted?: Prisma.BoolFieldUpdateOperationsInput | boolean + interactedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invitationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type NotificationSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + type?: boolean + priority?: boolean + title?: boolean + message?: boolean + data?: boolean + deliveryMethods?: boolean + isRead?: boolean + readAt?: boolean + isInteracted?: boolean + interactedAt?: boolean + actionUrl?: boolean + familyId?: boolean + transactionId?: boolean + invitationId?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Notification$familyArgs + transaction?: boolean | Prisma.Notification$transactionArgs +}, ExtArgs["result"]["notification"]> + +export type NotificationSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + type?: boolean + priority?: boolean + title?: boolean + message?: boolean + data?: boolean + deliveryMethods?: boolean + isRead?: boolean + readAt?: boolean + isInteracted?: boolean + interactedAt?: boolean + actionUrl?: boolean + familyId?: boolean + transactionId?: boolean + invitationId?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Notification$familyArgs + transaction?: boolean | Prisma.Notification$transactionArgs +}, ExtArgs["result"]["notification"]> + +export type NotificationSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + type?: boolean + priority?: boolean + title?: boolean + message?: boolean + data?: boolean + deliveryMethods?: boolean + isRead?: boolean + readAt?: boolean + isInteracted?: boolean + interactedAt?: boolean + actionUrl?: boolean + familyId?: boolean + transactionId?: boolean + invitationId?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Notification$familyArgs + transaction?: boolean | Prisma.Notification$transactionArgs +}, ExtArgs["result"]["notification"]> + +export type NotificationSelectScalar = { + id?: boolean + userId?: boolean + type?: boolean + priority?: boolean + title?: boolean + message?: boolean + data?: boolean + deliveryMethods?: boolean + isRead?: boolean + readAt?: boolean + isInteracted?: boolean + interactedAt?: boolean + actionUrl?: boolean + familyId?: boolean + transactionId?: boolean + invitationId?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type NotificationOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "type" | "priority" | "title" | "message" | "data" | "deliveryMethods" | "isRead" | "readAt" | "isInteracted" | "interactedAt" | "actionUrl" | "familyId" | "transactionId" | "invitationId" | "createdAt" | "updatedAt", ExtArgs["result"]["notification"]> +export type NotificationInclude = { + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Notification$familyArgs + transaction?: boolean | Prisma.Notification$transactionArgs +} +export type NotificationIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Notification$familyArgs + transaction?: boolean | Prisma.Notification$transactionArgs +} +export type NotificationIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Notification$familyArgs + transaction?: boolean | Prisma.Notification$transactionArgs +} + +export type $NotificationPayload = { + name: "Notification" + objects: { + user: Prisma.$UserPayload + family: Prisma.$FamilyPayload | null + transaction: Prisma.$TransactionPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + userId: string + type: $Enums.NotificationType + priority: $Enums.NotificationPriority + title: string + message: string + data: runtime.JsonValue | null + deliveryMethods: $Enums.NotificationDeliveryMethod[] + isRead: boolean + readAt: Date | null + isInteracted: boolean + interactedAt: Date | null + actionUrl: string | null + familyId: string | null + transactionId: string | null + invitationId: string | null + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["notification"]> + composites: {} +} + +export type NotificationGetPayload = runtime.Types.Result.GetResult + +export type NotificationCountArgs = + Omit & { + select?: NotificationCountAggregateInputType | true + } + +export interface NotificationDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Notification'], meta: { name: 'Notification' } } + /** + * Find zero or one Notification that matches the filter. + * @param {NotificationFindUniqueArgs} args - Arguments to find a Notification + * @example + * // Get one Notification + * const notification = await prisma.notification.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Notification that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {NotificationFindUniqueOrThrowArgs} args - Arguments to find a Notification + * @example + * // Get one Notification + * const notification = await prisma.notification.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Notification 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 {NotificationFindFirstArgs} args - Arguments to find a Notification + * @example + * // Get one Notification + * const notification = await prisma.notification.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__NotificationClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Notification 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 {NotificationFindFirstOrThrowArgs} args - Arguments to find a Notification + * @example + * // Get one Notification + * const notification = await prisma.notification.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__NotificationClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Notifications 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 {NotificationFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Notifications + * const notifications = await prisma.notification.findMany() + * + * // Get first 10 Notifications + * const notifications = await prisma.notification.findMany({ take: 10 }) + * + * // Only select the `id` + * const notificationWithIdOnly = await prisma.notification.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Notification. + * @param {NotificationCreateArgs} args - Arguments to create a Notification. + * @example + * // Create one Notification + * const Notification = await prisma.notification.create({ + * data: { + * // ... data to create a Notification + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Notifications. + * @param {NotificationCreateManyArgs} args - Arguments to create many Notifications. + * @example + * // Create many Notifications + * const notification = await prisma.notification.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Notifications and returns the data saved in the database. + * @param {NotificationCreateManyAndReturnArgs} args - Arguments to create many Notifications. + * @example + * // Create many Notifications + * const notification = await prisma.notification.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Notifications and only return the `id` + * const notificationWithIdOnly = await prisma.notification.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Notification. + * @param {NotificationDeleteArgs} args - Arguments to delete one Notification. + * @example + * // Delete one Notification + * const Notification = await prisma.notification.delete({ + * where: { + * // ... filter to delete one Notification + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Notification. + * @param {NotificationUpdateArgs} args - Arguments to update one Notification. + * @example + * // Update one Notification + * const notification = await prisma.notification.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Notifications. + * @param {NotificationDeleteManyArgs} args - Arguments to filter Notifications to delete. + * @example + * // Delete a few Notifications + * const { count } = await prisma.notification.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Notifications. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotificationUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Notifications + * const notification = await prisma.notification.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Notifications and returns the data updated in the database. + * @param {NotificationUpdateManyAndReturnArgs} args - Arguments to update many Notifications. + * @example + * // Update many Notifications + * const notification = await prisma.notification.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Notifications and only return the `id` + * const notificationWithIdOnly = await prisma.notification.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Notification. + * @param {NotificationUpsertArgs} args - Arguments to update or create a Notification. + * @example + * // Update or create a Notification + * const notification = await prisma.notification.upsert({ + * create: { + * // ... data to create a Notification + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Notification we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Notifications. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotificationCountArgs} args - Arguments to filter Notifications to count. + * @example + * // Count the number of Notifications + * const count = await prisma.notification.count({ + * where: { + * // ... the filter for the Notifications we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Notification. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotificationAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Notification. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotificationGroupByArgs} 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 NotificationGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: NotificationGroupByArgs['orderBy'] } + : { orderBy?: NotificationGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetNotificationGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Notification model + */ +readonly fields: NotificationFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Notification. + * 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__NotificationClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + family = {}>(args?: Prisma.Subset>): Prisma.Prisma__FamilyClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + transaction = {}>(args?: Prisma.Subset>): Prisma.Prisma__TransactionClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the Notification model + */ +export interface NotificationFieldRefs { + readonly id: Prisma.FieldRef<"Notification", 'String'> + readonly userId: Prisma.FieldRef<"Notification", 'String'> + readonly type: Prisma.FieldRef<"Notification", 'NotificationType'> + readonly priority: Prisma.FieldRef<"Notification", 'NotificationPriority'> + readonly title: Prisma.FieldRef<"Notification", 'String'> + readonly message: Prisma.FieldRef<"Notification", 'String'> + readonly data: Prisma.FieldRef<"Notification", 'Json'> + readonly deliveryMethods: Prisma.FieldRef<"Notification", 'NotificationDeliveryMethod[]'> + readonly isRead: Prisma.FieldRef<"Notification", 'Boolean'> + readonly readAt: Prisma.FieldRef<"Notification", 'DateTime'> + readonly isInteracted: Prisma.FieldRef<"Notification", 'Boolean'> + readonly interactedAt: Prisma.FieldRef<"Notification", 'DateTime'> + readonly actionUrl: Prisma.FieldRef<"Notification", 'String'> + readonly familyId: Prisma.FieldRef<"Notification", 'String'> + readonly transactionId: Prisma.FieldRef<"Notification", 'String'> + readonly invitationId: Prisma.FieldRef<"Notification", 'String'> + readonly createdAt: Prisma.FieldRef<"Notification", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Notification", 'DateTime'> +} + + +// Custom InputTypes +/** + * Notification findUnique + */ +export type NotificationFindUniqueArgs = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * Filter, which Notification to fetch. + */ + where: Prisma.NotificationWhereUniqueInput +} + +/** + * Notification findUniqueOrThrow + */ +export type NotificationFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * Filter, which Notification to fetch. + */ + where: Prisma.NotificationWhereUniqueInput +} + +/** + * Notification findFirst + */ +export type NotificationFindFirstArgs = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * Filter, which Notification to fetch. + */ + where?: Prisma.NotificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Notifications to fetch. + */ + orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Notifications. + */ + cursor?: Prisma.NotificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Notifications 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` Notifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Notifications. + */ + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * Notification findFirstOrThrow + */ +export type NotificationFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * Filter, which Notification to fetch. + */ + where?: Prisma.NotificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Notifications to fetch. + */ + orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Notifications. + */ + cursor?: Prisma.NotificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Notifications 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` Notifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Notifications. + */ + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * Notification findMany + */ +export type NotificationFindManyArgs = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * Filter, which Notifications to fetch. + */ + where?: Prisma.NotificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Notifications to fetch. + */ + orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Notifications. + */ + cursor?: Prisma.NotificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Notifications 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` Notifications. + */ + skip?: number + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * Notification create + */ +export type NotificationCreateArgs = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * The data needed to create a Notification. + */ + data: Prisma.XOR +} + +/** + * Notification createMany + */ +export type NotificationCreateManyArgs = { + /** + * The data used to create many Notifications. + */ + data: Prisma.NotificationCreateManyInput | Prisma.NotificationCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Notification createManyAndReturn + */ +export type NotificationCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * The data used to create many Notifications. + */ + data: Prisma.NotificationCreateManyInput | Prisma.NotificationCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationIncludeCreateManyAndReturn | null +} + +/** + * Notification update + */ +export type NotificationUpdateArgs = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * The data needed to update a Notification. + */ + data: Prisma.XOR + /** + * Choose, which Notification to update. + */ + where: Prisma.NotificationWhereUniqueInput +} + +/** + * Notification updateMany + */ +export type NotificationUpdateManyArgs = { + /** + * The data used to update Notifications. + */ + data: Prisma.XOR + /** + * Filter which Notifications to update + */ + where?: Prisma.NotificationWhereInput + /** + * Limit how many Notifications to update. + */ + limit?: number +} + +/** + * Notification updateManyAndReturn + */ +export type NotificationUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * The data used to update Notifications. + */ + data: Prisma.XOR + /** + * Filter which Notifications to update + */ + where?: Prisma.NotificationWhereInput + /** + * Limit how many Notifications to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationIncludeUpdateManyAndReturn | null +} + +/** + * Notification upsert + */ +export type NotificationUpsertArgs = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * The filter to search for the Notification to update in case it exists. + */ + where: Prisma.NotificationWhereUniqueInput + /** + * In case the Notification found by the `where` argument doesn't exist, create a new Notification with this data. + */ + create: Prisma.XOR + /** + * In case the Notification was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Notification delete + */ +export type NotificationDeleteArgs = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * Filter which Notification to delete. + */ + where: Prisma.NotificationWhereUniqueInput +} + +/** + * Notification deleteMany + */ +export type NotificationDeleteManyArgs = { + /** + * Filter which Notifications to delete + */ + where?: Prisma.NotificationWhereInput + /** + * Limit how many Notifications to delete. + */ + limit?: number +} + +/** + * Notification.family + */ +export type Notification$familyArgs = { + /** + * Select specific fields to fetch from the Family + */ + select?: Prisma.FamilySelect | null + /** + * Omit specific fields from the Family + */ + omit?: Prisma.FamilyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInclude | null + where?: Prisma.FamilyWhereInput +} + +/** + * Notification.transaction + */ +export type Notification$transactionArgs = { + /** + * Select specific fields to fetch from the Transaction + */ + select?: Prisma.TransactionSelect | null + /** + * Omit specific fields from the Transaction + */ + omit?: Prisma.TransactionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TransactionInclude | null + where?: Prisma.TransactionWhereInput +} + +/** + * Notification without action + */ +export type NotificationDefaultArgs = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/NotificationPreference.ts b/apps/backend/prisma/generated/generated/prisma/models/NotificationPreference.ts new file mode 100644 index 00000000..0a14e623 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/NotificationPreference.ts @@ -0,0 +1,1476 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `NotificationPreference` 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 NotificationPreference + * + */ +export type NotificationPreferenceModel = runtime.Types.Result.DefaultSelection + +export type AggregateNotificationPreference = { + _count: NotificationPreferenceCountAggregateOutputType | null + _min: NotificationPreferenceMinAggregateOutputType | null + _max: NotificationPreferenceMaxAggregateOutputType | null +} + +export type NotificationPreferenceMinAggregateOutputType = { + id: string | null + userId: string | null + enablePushNotifications: boolean | null + enableInAppNotifications: boolean | null + enableToastNotifications: boolean | null + quietHoursEnabled: boolean | null + quietHoursStart: Date | null + quietHoursEnd: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type NotificationPreferenceMaxAggregateOutputType = { + id: string | null + userId: string | null + enablePushNotifications: boolean | null + enableInAppNotifications: boolean | null + enableToastNotifications: boolean | null + quietHoursEnabled: boolean | null + quietHoursStart: Date | null + quietHoursEnd: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type NotificationPreferenceCountAggregateOutputType = { + id: number + userId: number + enablePushNotifications: number + enableInAppNotifications: number + enableToastNotifications: number + quietHoursEnabled: number + quietHoursStart: number + quietHoursEnd: number + typePreferences: number + createdAt: number + updatedAt: number + _all: number +} + + +export type NotificationPreferenceMinAggregateInputType = { + id?: true + userId?: true + enablePushNotifications?: true + enableInAppNotifications?: true + enableToastNotifications?: true + quietHoursEnabled?: true + quietHoursStart?: true + quietHoursEnd?: true + createdAt?: true + updatedAt?: true +} + +export type NotificationPreferenceMaxAggregateInputType = { + id?: true + userId?: true + enablePushNotifications?: true + enableInAppNotifications?: true + enableToastNotifications?: true + quietHoursEnabled?: true + quietHoursStart?: true + quietHoursEnd?: true + createdAt?: true + updatedAt?: true +} + +export type NotificationPreferenceCountAggregateInputType = { + id?: true + userId?: true + enablePushNotifications?: true + enableInAppNotifications?: true + enableToastNotifications?: true + quietHoursEnabled?: true + quietHoursStart?: true + quietHoursEnd?: true + typePreferences?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type NotificationPreferenceAggregateArgs = { + /** + * Filter which NotificationPreference to aggregate. + */ + where?: Prisma.NotificationPreferenceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of NotificationPreferences to fetch. + */ + orderBy?: Prisma.NotificationPreferenceOrderByWithRelationInput | Prisma.NotificationPreferenceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.NotificationPreferenceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` NotificationPreferences 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` NotificationPreferences. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned NotificationPreferences + **/ + _count?: true | NotificationPreferenceCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: NotificationPreferenceMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: NotificationPreferenceMaxAggregateInputType +} + +export type GetNotificationPreferenceAggregateType = { + [P in keyof T & keyof AggregateNotificationPreference]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type NotificationPreferenceGroupByArgs = { + where?: Prisma.NotificationPreferenceWhereInput + orderBy?: Prisma.NotificationPreferenceOrderByWithAggregationInput | Prisma.NotificationPreferenceOrderByWithAggregationInput[] + by: Prisma.NotificationPreferenceScalarFieldEnum[] | Prisma.NotificationPreferenceScalarFieldEnum + having?: Prisma.NotificationPreferenceScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: NotificationPreferenceCountAggregateInputType | true + _min?: NotificationPreferenceMinAggregateInputType + _max?: NotificationPreferenceMaxAggregateInputType +} + +export type NotificationPreferenceGroupByOutputType = { + id: string + userId: string + enablePushNotifications: boolean + enableInAppNotifications: boolean + enableToastNotifications: boolean + quietHoursEnabled: boolean + quietHoursStart: Date | null + quietHoursEnd: Date | null + typePreferences: runtime.JsonValue + createdAt: Date + updatedAt: Date + _count: NotificationPreferenceCountAggregateOutputType | null + _min: NotificationPreferenceMinAggregateOutputType | null + _max: NotificationPreferenceMaxAggregateOutputType | null +} + +type GetNotificationPreferenceGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof NotificationPreferenceGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type NotificationPreferenceWhereInput = { + AND?: Prisma.NotificationPreferenceWhereInput | Prisma.NotificationPreferenceWhereInput[] + OR?: Prisma.NotificationPreferenceWhereInput[] + NOT?: Prisma.NotificationPreferenceWhereInput | Prisma.NotificationPreferenceWhereInput[] + id?: Prisma.StringFilter<"NotificationPreference"> | string + userId?: Prisma.StringFilter<"NotificationPreference"> | string + enablePushNotifications?: Prisma.BoolFilter<"NotificationPreference"> | boolean + enableInAppNotifications?: Prisma.BoolFilter<"NotificationPreference"> | boolean + enableToastNotifications?: Prisma.BoolFilter<"NotificationPreference"> | boolean + quietHoursEnabled?: Prisma.BoolFilter<"NotificationPreference"> | boolean + quietHoursStart?: Prisma.DateTimeNullableFilter<"NotificationPreference"> | Date | string | null + quietHoursEnd?: Prisma.DateTimeNullableFilter<"NotificationPreference"> | Date | string | null + typePreferences?: Prisma.JsonFilter<"NotificationPreference"> + createdAt?: Prisma.DateTimeFilter<"NotificationPreference"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"NotificationPreference"> | Date | string + user?: Prisma.XOR +} + +export type NotificationPreferenceOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + enablePushNotifications?: Prisma.SortOrder + enableInAppNotifications?: Prisma.SortOrder + enableToastNotifications?: Prisma.SortOrder + quietHoursEnabled?: Prisma.SortOrder + quietHoursStart?: Prisma.SortOrderInput | Prisma.SortOrder + quietHoursEnd?: Prisma.SortOrderInput | Prisma.SortOrder + typePreferences?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput +} + +export type NotificationPreferenceWhereUniqueInput = Prisma.AtLeast<{ + id?: string + userId?: string + AND?: Prisma.NotificationPreferenceWhereInput | Prisma.NotificationPreferenceWhereInput[] + OR?: Prisma.NotificationPreferenceWhereInput[] + NOT?: Prisma.NotificationPreferenceWhereInput | Prisma.NotificationPreferenceWhereInput[] + enablePushNotifications?: Prisma.BoolFilter<"NotificationPreference"> | boolean + enableInAppNotifications?: Prisma.BoolFilter<"NotificationPreference"> | boolean + enableToastNotifications?: Prisma.BoolFilter<"NotificationPreference"> | boolean + quietHoursEnabled?: Prisma.BoolFilter<"NotificationPreference"> | boolean + quietHoursStart?: Prisma.DateTimeNullableFilter<"NotificationPreference"> | Date | string | null + quietHoursEnd?: Prisma.DateTimeNullableFilter<"NotificationPreference"> | Date | string | null + typePreferences?: Prisma.JsonFilter<"NotificationPreference"> + createdAt?: Prisma.DateTimeFilter<"NotificationPreference"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"NotificationPreference"> | Date | string + user?: Prisma.XOR +}, "id" | "userId"> + +export type NotificationPreferenceOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + enablePushNotifications?: Prisma.SortOrder + enableInAppNotifications?: Prisma.SortOrder + enableToastNotifications?: Prisma.SortOrder + quietHoursEnabled?: Prisma.SortOrder + quietHoursStart?: Prisma.SortOrderInput | Prisma.SortOrder + quietHoursEnd?: Prisma.SortOrderInput | Prisma.SortOrder + typePreferences?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.NotificationPreferenceCountOrderByAggregateInput + _max?: Prisma.NotificationPreferenceMaxOrderByAggregateInput + _min?: Prisma.NotificationPreferenceMinOrderByAggregateInput +} + +export type NotificationPreferenceScalarWhereWithAggregatesInput = { + AND?: Prisma.NotificationPreferenceScalarWhereWithAggregatesInput | Prisma.NotificationPreferenceScalarWhereWithAggregatesInput[] + OR?: Prisma.NotificationPreferenceScalarWhereWithAggregatesInput[] + NOT?: Prisma.NotificationPreferenceScalarWhereWithAggregatesInput | Prisma.NotificationPreferenceScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"NotificationPreference"> | string + userId?: Prisma.StringWithAggregatesFilter<"NotificationPreference"> | string + enablePushNotifications?: Prisma.BoolWithAggregatesFilter<"NotificationPreference"> | boolean + enableInAppNotifications?: Prisma.BoolWithAggregatesFilter<"NotificationPreference"> | boolean + enableToastNotifications?: Prisma.BoolWithAggregatesFilter<"NotificationPreference"> | boolean + quietHoursEnabled?: Prisma.BoolWithAggregatesFilter<"NotificationPreference"> | boolean + quietHoursStart?: Prisma.DateTimeNullableWithAggregatesFilter<"NotificationPreference"> | Date | string | null + quietHoursEnd?: Prisma.DateTimeNullableWithAggregatesFilter<"NotificationPreference"> | Date | string | null + typePreferences?: Prisma.JsonWithAggregatesFilter<"NotificationPreference"> + createdAt?: Prisma.DateTimeWithAggregatesFilter<"NotificationPreference"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"NotificationPreference"> | Date | string +} + +export type NotificationPreferenceCreateInput = { + id?: string + enablePushNotifications?: boolean + enableInAppNotifications?: boolean + enableToastNotifications?: boolean + quietHoursEnabled?: boolean + quietHoursStart?: Date | string | null + quietHoursEnd?: Date | string | null + typePreferences?: Prisma.JsonNullValueInput | runtime.InputJsonValue + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutNotificationPreferenceInput +} + +export type NotificationPreferenceUncheckedCreateInput = { + id?: string + userId: string + enablePushNotifications?: boolean + enableInAppNotifications?: boolean + enableToastNotifications?: boolean + quietHoursEnabled?: boolean + quietHoursStart?: Date | string | null + quietHoursEnd?: Date | string | null + typePreferences?: Prisma.JsonNullValueInput | runtime.InputJsonValue + createdAt?: Date | string + updatedAt?: Date | string +} + +export type NotificationPreferenceUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + enablePushNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + enableInAppNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + enableToastNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + quietHoursEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + quietHoursStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quietHoursEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + typePreferences?: Prisma.JsonNullValueInput | runtime.InputJsonValue + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutNotificationPreferenceNestedInput +} + +export type NotificationPreferenceUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + enablePushNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + enableInAppNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + enableToastNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + quietHoursEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + quietHoursStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quietHoursEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + typePreferences?: Prisma.JsonNullValueInput | runtime.InputJsonValue + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type NotificationPreferenceCreateManyInput = { + id?: string + userId: string + enablePushNotifications?: boolean + enableInAppNotifications?: boolean + enableToastNotifications?: boolean + quietHoursEnabled?: boolean + quietHoursStart?: Date | string | null + quietHoursEnd?: Date | string | null + typePreferences?: Prisma.JsonNullValueInput | runtime.InputJsonValue + createdAt?: Date | string + updatedAt?: Date | string +} + +export type NotificationPreferenceUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + enablePushNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + enableInAppNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + enableToastNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + quietHoursEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + quietHoursStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quietHoursEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + typePreferences?: Prisma.JsonNullValueInput | runtime.InputJsonValue + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type NotificationPreferenceUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + enablePushNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + enableInAppNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + enableToastNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + quietHoursEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + quietHoursStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quietHoursEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + typePreferences?: Prisma.JsonNullValueInput | runtime.InputJsonValue + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type NotificationPreferenceCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + enablePushNotifications?: Prisma.SortOrder + enableInAppNotifications?: Prisma.SortOrder + enableToastNotifications?: Prisma.SortOrder + quietHoursEnabled?: Prisma.SortOrder + quietHoursStart?: Prisma.SortOrder + quietHoursEnd?: Prisma.SortOrder + typePreferences?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type NotificationPreferenceMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + enablePushNotifications?: Prisma.SortOrder + enableInAppNotifications?: Prisma.SortOrder + enableToastNotifications?: Prisma.SortOrder + quietHoursEnabled?: Prisma.SortOrder + quietHoursStart?: Prisma.SortOrder + quietHoursEnd?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type NotificationPreferenceMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + enablePushNotifications?: Prisma.SortOrder + enableInAppNotifications?: Prisma.SortOrder + enableToastNotifications?: Prisma.SortOrder + quietHoursEnabled?: Prisma.SortOrder + quietHoursStart?: Prisma.SortOrder + quietHoursEnd?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type NotificationPreferenceNullableScalarRelationFilter = { + is?: Prisma.NotificationPreferenceWhereInput | null + isNot?: Prisma.NotificationPreferenceWhereInput | null +} + +export type NotificationPreferenceCreateNestedOneWithoutUserInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.NotificationPreferenceCreateOrConnectWithoutUserInput + connect?: Prisma.NotificationPreferenceWhereUniqueInput +} + +export type NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.NotificationPreferenceCreateOrConnectWithoutUserInput + connect?: Prisma.NotificationPreferenceWhereUniqueInput +} + +export type NotificationPreferenceUpdateOneWithoutUserNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.NotificationPreferenceCreateOrConnectWithoutUserInput + upsert?: Prisma.NotificationPreferenceUpsertWithoutUserInput + disconnect?: Prisma.NotificationPreferenceWhereInput | boolean + delete?: Prisma.NotificationPreferenceWhereInput | boolean + connect?: Prisma.NotificationPreferenceWhereUniqueInput + update?: Prisma.XOR, Prisma.NotificationPreferenceUncheckedUpdateWithoutUserInput> +} + +export type NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.NotificationPreferenceCreateOrConnectWithoutUserInput + upsert?: Prisma.NotificationPreferenceUpsertWithoutUserInput + disconnect?: Prisma.NotificationPreferenceWhereInput | boolean + delete?: Prisma.NotificationPreferenceWhereInput | boolean + connect?: Prisma.NotificationPreferenceWhereUniqueInput + update?: Prisma.XOR, Prisma.NotificationPreferenceUncheckedUpdateWithoutUserInput> +} + +export type NotificationPreferenceCreateWithoutUserInput = { + id?: string + enablePushNotifications?: boolean + enableInAppNotifications?: boolean + enableToastNotifications?: boolean + quietHoursEnabled?: boolean + quietHoursStart?: Date | string | null + quietHoursEnd?: Date | string | null + typePreferences?: Prisma.JsonNullValueInput | runtime.InputJsonValue + createdAt?: Date | string + updatedAt?: Date | string +} + +export type NotificationPreferenceUncheckedCreateWithoutUserInput = { + id?: string + enablePushNotifications?: boolean + enableInAppNotifications?: boolean + enableToastNotifications?: boolean + quietHoursEnabled?: boolean + quietHoursStart?: Date | string | null + quietHoursEnd?: Date | string | null + typePreferences?: Prisma.JsonNullValueInput | runtime.InputJsonValue + createdAt?: Date | string + updatedAt?: Date | string +} + +export type NotificationPreferenceCreateOrConnectWithoutUserInput = { + where: Prisma.NotificationPreferenceWhereUniqueInput + create: Prisma.XOR +} + +export type NotificationPreferenceUpsertWithoutUserInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.NotificationPreferenceWhereInput +} + +export type NotificationPreferenceUpdateToOneWithWhereWithoutUserInput = { + where?: Prisma.NotificationPreferenceWhereInput + data: Prisma.XOR +} + +export type NotificationPreferenceUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + enablePushNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + enableInAppNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + enableToastNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + quietHoursEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + quietHoursStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quietHoursEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + typePreferences?: Prisma.JsonNullValueInput | runtime.InputJsonValue + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type NotificationPreferenceUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + enablePushNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + enableInAppNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + enableToastNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + quietHoursEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + quietHoursStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quietHoursEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + typePreferences?: Prisma.JsonNullValueInput | runtime.InputJsonValue + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type NotificationPreferenceSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + enablePushNotifications?: boolean + enableInAppNotifications?: boolean + enableToastNotifications?: boolean + quietHoursEnabled?: boolean + quietHoursStart?: boolean + quietHoursEnd?: boolean + typePreferences?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["notificationPreference"]> + +export type NotificationPreferenceSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + enablePushNotifications?: boolean + enableInAppNotifications?: boolean + enableToastNotifications?: boolean + quietHoursEnabled?: boolean + quietHoursStart?: boolean + quietHoursEnd?: boolean + typePreferences?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["notificationPreference"]> + +export type NotificationPreferenceSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + enablePushNotifications?: boolean + enableInAppNotifications?: boolean + enableToastNotifications?: boolean + quietHoursEnabled?: boolean + quietHoursStart?: boolean + quietHoursEnd?: boolean + typePreferences?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["notificationPreference"]> + +export type NotificationPreferenceSelectScalar = { + id?: boolean + userId?: boolean + enablePushNotifications?: boolean + enableInAppNotifications?: boolean + enableToastNotifications?: boolean + quietHoursEnabled?: boolean + quietHoursStart?: boolean + quietHoursEnd?: boolean + typePreferences?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type NotificationPreferenceOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "enablePushNotifications" | "enableInAppNotifications" | "enableToastNotifications" | "quietHoursEnabled" | "quietHoursStart" | "quietHoursEnd" | "typePreferences" | "createdAt" | "updatedAt", ExtArgs["result"]["notificationPreference"]> +export type NotificationPreferenceInclude = { + user?: boolean | Prisma.UserDefaultArgs +} +export type NotificationPreferenceIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs +} +export type NotificationPreferenceIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs +} + +export type $NotificationPreferencePayload = { + name: "NotificationPreference" + objects: { + user: Prisma.$UserPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + userId: string + enablePushNotifications: boolean + enableInAppNotifications: boolean + enableToastNotifications: boolean + quietHoursEnabled: boolean + quietHoursStart: Date | null + quietHoursEnd: Date | null + typePreferences: runtime.JsonValue + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["notificationPreference"]> + composites: {} +} + +export type NotificationPreferenceGetPayload = runtime.Types.Result.GetResult + +export type NotificationPreferenceCountArgs = + Omit & { + select?: NotificationPreferenceCountAggregateInputType | true + } + +export interface NotificationPreferenceDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['NotificationPreference'], meta: { name: 'NotificationPreference' } } + /** + * Find zero or one NotificationPreference that matches the filter. + * @param {NotificationPreferenceFindUniqueArgs} args - Arguments to find a NotificationPreference + * @example + * // Get one NotificationPreference + * const notificationPreference = await prisma.notificationPreference.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationPreferenceClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one NotificationPreference that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {NotificationPreferenceFindUniqueOrThrowArgs} args - Arguments to find a NotificationPreference + * @example + * // Get one NotificationPreference + * const notificationPreference = await prisma.notificationPreference.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationPreferenceClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first NotificationPreference 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 {NotificationPreferenceFindFirstArgs} args - Arguments to find a NotificationPreference + * @example + * // Get one NotificationPreference + * const notificationPreference = await prisma.notificationPreference.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__NotificationPreferenceClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first NotificationPreference 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 {NotificationPreferenceFindFirstOrThrowArgs} args - Arguments to find a NotificationPreference + * @example + * // Get one NotificationPreference + * const notificationPreference = await prisma.notificationPreference.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__NotificationPreferenceClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more NotificationPreferences 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 {NotificationPreferenceFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all NotificationPreferences + * const notificationPreferences = await prisma.notificationPreference.findMany() + * + * // Get first 10 NotificationPreferences + * const notificationPreferences = await prisma.notificationPreference.findMany({ take: 10 }) + * + * // Only select the `id` + * const notificationPreferenceWithIdOnly = await prisma.notificationPreference.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a NotificationPreference. + * @param {NotificationPreferenceCreateArgs} args - Arguments to create a NotificationPreference. + * @example + * // Create one NotificationPreference + * const NotificationPreference = await prisma.notificationPreference.create({ + * data: { + * // ... data to create a NotificationPreference + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationPreferenceClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many NotificationPreferences. + * @param {NotificationPreferenceCreateManyArgs} args - Arguments to create many NotificationPreferences. + * @example + * // Create many NotificationPreferences + * const notificationPreference = await prisma.notificationPreference.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many NotificationPreferences and returns the data saved in the database. + * @param {NotificationPreferenceCreateManyAndReturnArgs} args - Arguments to create many NotificationPreferences. + * @example + * // Create many NotificationPreferences + * const notificationPreference = await prisma.notificationPreference.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many NotificationPreferences and only return the `id` + * const notificationPreferenceWithIdOnly = await prisma.notificationPreference.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a NotificationPreference. + * @param {NotificationPreferenceDeleteArgs} args - Arguments to delete one NotificationPreference. + * @example + * // Delete one NotificationPreference + * const NotificationPreference = await prisma.notificationPreference.delete({ + * where: { + * // ... filter to delete one NotificationPreference + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationPreferenceClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one NotificationPreference. + * @param {NotificationPreferenceUpdateArgs} args - Arguments to update one NotificationPreference. + * @example + * // Update one NotificationPreference + * const notificationPreference = await prisma.notificationPreference.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationPreferenceClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more NotificationPreferences. + * @param {NotificationPreferenceDeleteManyArgs} args - Arguments to filter NotificationPreferences to delete. + * @example + * // Delete a few NotificationPreferences + * const { count } = await prisma.notificationPreference.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more NotificationPreferences. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotificationPreferenceUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many NotificationPreferences + * const notificationPreference = await prisma.notificationPreference.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more NotificationPreferences and returns the data updated in the database. + * @param {NotificationPreferenceUpdateManyAndReturnArgs} args - Arguments to update many NotificationPreferences. + * @example + * // Update many NotificationPreferences + * const notificationPreference = await prisma.notificationPreference.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more NotificationPreferences and only return the `id` + * const notificationPreferenceWithIdOnly = await prisma.notificationPreference.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one NotificationPreference. + * @param {NotificationPreferenceUpsertArgs} args - Arguments to update or create a NotificationPreference. + * @example + * // Update or create a NotificationPreference + * const notificationPreference = await prisma.notificationPreference.upsert({ + * create: { + * // ... data to create a NotificationPreference + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the NotificationPreference we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationPreferenceClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of NotificationPreferences. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotificationPreferenceCountArgs} args - Arguments to filter NotificationPreferences to count. + * @example + * // Count the number of NotificationPreferences + * const count = await prisma.notificationPreference.count({ + * where: { + * // ... the filter for the NotificationPreferences we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a NotificationPreference. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotificationPreferenceAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by NotificationPreference. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotificationPreferenceGroupByArgs} 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 NotificationPreferenceGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: NotificationPreferenceGroupByArgs['orderBy'] } + : { orderBy?: NotificationPreferenceGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetNotificationPreferenceGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the NotificationPreference model + */ +readonly fields: NotificationPreferenceFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for NotificationPreference. + * 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__NotificationPreferenceClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the NotificationPreference model + */ +export interface NotificationPreferenceFieldRefs { + readonly id: Prisma.FieldRef<"NotificationPreference", 'String'> + readonly userId: Prisma.FieldRef<"NotificationPreference", 'String'> + readonly enablePushNotifications: Prisma.FieldRef<"NotificationPreference", 'Boolean'> + readonly enableInAppNotifications: Prisma.FieldRef<"NotificationPreference", 'Boolean'> + readonly enableToastNotifications: Prisma.FieldRef<"NotificationPreference", 'Boolean'> + readonly quietHoursEnabled: Prisma.FieldRef<"NotificationPreference", 'Boolean'> + readonly quietHoursStart: Prisma.FieldRef<"NotificationPreference", 'DateTime'> + readonly quietHoursEnd: Prisma.FieldRef<"NotificationPreference", 'DateTime'> + readonly typePreferences: Prisma.FieldRef<"NotificationPreference", 'Json'> + readonly createdAt: Prisma.FieldRef<"NotificationPreference", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"NotificationPreference", 'DateTime'> +} + + +// Custom InputTypes +/** + * NotificationPreference findUnique + */ +export type NotificationPreferenceFindUniqueArgs = { + /** + * Select specific fields to fetch from the NotificationPreference + */ + select?: Prisma.NotificationPreferenceSelect | null + /** + * Omit specific fields from the NotificationPreference + */ + omit?: Prisma.NotificationPreferenceOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationPreferenceInclude | null + /** + * Filter, which NotificationPreference to fetch. + */ + where: Prisma.NotificationPreferenceWhereUniqueInput +} + +/** + * NotificationPreference findUniqueOrThrow + */ +export type NotificationPreferenceFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the NotificationPreference + */ + select?: Prisma.NotificationPreferenceSelect | null + /** + * Omit specific fields from the NotificationPreference + */ + omit?: Prisma.NotificationPreferenceOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationPreferenceInclude | null + /** + * Filter, which NotificationPreference to fetch. + */ + where: Prisma.NotificationPreferenceWhereUniqueInput +} + +/** + * NotificationPreference findFirst + */ +export type NotificationPreferenceFindFirstArgs = { + /** + * Select specific fields to fetch from the NotificationPreference + */ + select?: Prisma.NotificationPreferenceSelect | null + /** + * Omit specific fields from the NotificationPreference + */ + omit?: Prisma.NotificationPreferenceOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationPreferenceInclude | null + /** + * Filter, which NotificationPreference to fetch. + */ + where?: Prisma.NotificationPreferenceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of NotificationPreferences to fetch. + */ + orderBy?: Prisma.NotificationPreferenceOrderByWithRelationInput | Prisma.NotificationPreferenceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for NotificationPreferences. + */ + cursor?: Prisma.NotificationPreferenceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` NotificationPreferences 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` NotificationPreferences. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of NotificationPreferences. + */ + distinct?: Prisma.NotificationPreferenceScalarFieldEnum | Prisma.NotificationPreferenceScalarFieldEnum[] +} + +/** + * NotificationPreference findFirstOrThrow + */ +export type NotificationPreferenceFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the NotificationPreference + */ + select?: Prisma.NotificationPreferenceSelect | null + /** + * Omit specific fields from the NotificationPreference + */ + omit?: Prisma.NotificationPreferenceOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationPreferenceInclude | null + /** + * Filter, which NotificationPreference to fetch. + */ + where?: Prisma.NotificationPreferenceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of NotificationPreferences to fetch. + */ + orderBy?: Prisma.NotificationPreferenceOrderByWithRelationInput | Prisma.NotificationPreferenceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for NotificationPreferences. + */ + cursor?: Prisma.NotificationPreferenceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` NotificationPreferences 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` NotificationPreferences. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of NotificationPreferences. + */ + distinct?: Prisma.NotificationPreferenceScalarFieldEnum | Prisma.NotificationPreferenceScalarFieldEnum[] +} + +/** + * NotificationPreference findMany + */ +export type NotificationPreferenceFindManyArgs = { + /** + * Select specific fields to fetch from the NotificationPreference + */ + select?: Prisma.NotificationPreferenceSelect | null + /** + * Omit specific fields from the NotificationPreference + */ + omit?: Prisma.NotificationPreferenceOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationPreferenceInclude | null + /** + * Filter, which NotificationPreferences to fetch. + */ + where?: Prisma.NotificationPreferenceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of NotificationPreferences to fetch. + */ + orderBy?: Prisma.NotificationPreferenceOrderByWithRelationInput | Prisma.NotificationPreferenceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing NotificationPreferences. + */ + cursor?: Prisma.NotificationPreferenceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` NotificationPreferences 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` NotificationPreferences. + */ + skip?: number + distinct?: Prisma.NotificationPreferenceScalarFieldEnum | Prisma.NotificationPreferenceScalarFieldEnum[] +} + +/** + * NotificationPreference create + */ +export type NotificationPreferenceCreateArgs = { + /** + * Select specific fields to fetch from the NotificationPreference + */ + select?: Prisma.NotificationPreferenceSelect | null + /** + * Omit specific fields from the NotificationPreference + */ + omit?: Prisma.NotificationPreferenceOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationPreferenceInclude | null + /** + * The data needed to create a NotificationPreference. + */ + data: Prisma.XOR +} + +/** + * NotificationPreference createMany + */ +export type NotificationPreferenceCreateManyArgs = { + /** + * The data used to create many NotificationPreferences. + */ + data: Prisma.NotificationPreferenceCreateManyInput | Prisma.NotificationPreferenceCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * NotificationPreference createManyAndReturn + */ +export type NotificationPreferenceCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the NotificationPreference + */ + select?: Prisma.NotificationPreferenceSelectCreateManyAndReturn | null + /** + * Omit specific fields from the NotificationPreference + */ + omit?: Prisma.NotificationPreferenceOmit | null + /** + * The data used to create many NotificationPreferences. + */ + data: Prisma.NotificationPreferenceCreateManyInput | Prisma.NotificationPreferenceCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationPreferenceIncludeCreateManyAndReturn | null +} + +/** + * NotificationPreference update + */ +export type NotificationPreferenceUpdateArgs = { + /** + * Select specific fields to fetch from the NotificationPreference + */ + select?: Prisma.NotificationPreferenceSelect | null + /** + * Omit specific fields from the NotificationPreference + */ + omit?: Prisma.NotificationPreferenceOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationPreferenceInclude | null + /** + * The data needed to update a NotificationPreference. + */ + data: Prisma.XOR + /** + * Choose, which NotificationPreference to update. + */ + where: Prisma.NotificationPreferenceWhereUniqueInput +} + +/** + * NotificationPreference updateMany + */ +export type NotificationPreferenceUpdateManyArgs = { + /** + * The data used to update NotificationPreferences. + */ + data: Prisma.XOR + /** + * Filter which NotificationPreferences to update + */ + where?: Prisma.NotificationPreferenceWhereInput + /** + * Limit how many NotificationPreferences to update. + */ + limit?: number +} + +/** + * NotificationPreference updateManyAndReturn + */ +export type NotificationPreferenceUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the NotificationPreference + */ + select?: Prisma.NotificationPreferenceSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the NotificationPreference + */ + omit?: Prisma.NotificationPreferenceOmit | null + /** + * The data used to update NotificationPreferences. + */ + data: Prisma.XOR + /** + * Filter which NotificationPreferences to update + */ + where?: Prisma.NotificationPreferenceWhereInput + /** + * Limit how many NotificationPreferences to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationPreferenceIncludeUpdateManyAndReturn | null +} + +/** + * NotificationPreference upsert + */ +export type NotificationPreferenceUpsertArgs = { + /** + * Select specific fields to fetch from the NotificationPreference + */ + select?: Prisma.NotificationPreferenceSelect | null + /** + * Omit specific fields from the NotificationPreference + */ + omit?: Prisma.NotificationPreferenceOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationPreferenceInclude | null + /** + * The filter to search for the NotificationPreference to update in case it exists. + */ + where: Prisma.NotificationPreferenceWhereUniqueInput + /** + * In case the NotificationPreference found by the `where` argument doesn't exist, create a new NotificationPreference with this data. + */ + create: Prisma.XOR + /** + * In case the NotificationPreference was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * NotificationPreference delete + */ +export type NotificationPreferenceDeleteArgs = { + /** + * Select specific fields to fetch from the NotificationPreference + */ + select?: Prisma.NotificationPreferenceSelect | null + /** + * Omit specific fields from the NotificationPreference + */ + omit?: Prisma.NotificationPreferenceOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationPreferenceInclude | null + /** + * Filter which NotificationPreference to delete. + */ + where: Prisma.NotificationPreferenceWhereUniqueInput +} + +/** + * NotificationPreference deleteMany + */ +export type NotificationPreferenceDeleteManyArgs = { + /** + * Filter which NotificationPreferences to delete + */ + where?: Prisma.NotificationPreferenceWhereInput + /** + * Limit how many NotificationPreferences to delete. + */ + limit?: number +} + +/** + * NotificationPreference without action + */ +export type NotificationPreferenceDefaultArgs = { + /** + * Select specific fields to fetch from the NotificationPreference + */ + select?: Prisma.NotificationPreferenceSelect | null + /** + * Omit specific fields from the NotificationPreference + */ + omit?: Prisma.NotificationPreferenceOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationPreferenceInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/PaymentMethod.ts b/apps/backend/prisma/generated/generated/prisma/models/PaymentMethod.ts new file mode 100644 index 00000000..882c0390 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/PaymentMethod.ts @@ -0,0 +1,1689 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `PaymentMethod` 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 PaymentMethod + * + */ +export type PaymentMethodModel = runtime.Types.Result.DefaultSelection + +export type AggregatePaymentMethod = { + _count: PaymentMethodCountAggregateOutputType | null + _avg: PaymentMethodAvgAggregateOutputType | null + _sum: PaymentMethodSumAggregateOutputType | null + _min: PaymentMethodMinAggregateOutputType | null + _max: PaymentMethodMaxAggregateOutputType | null +} + +export type PaymentMethodAvgAggregateOutputType = { + initialBalance: runtime.Decimal | null + currentBalance: runtime.Decimal | null +} + +export type PaymentMethodSumAggregateOutputType = { + initialBalance: runtime.Decimal | null + currentBalance: runtime.Decimal | null +} + +export type PaymentMethodMinAggregateOutputType = { + id: string | null + userId: string | null + name: string | null + type: $Enums.PaymentMethodType | null + color: string | null + initialBalance: runtime.Decimal | null + currentBalance: runtime.Decimal | null + createdAt: Date | null + updatedAt: Date | null +} + +export type PaymentMethodMaxAggregateOutputType = { + id: string | null + userId: string | null + name: string | null + type: $Enums.PaymentMethodType | null + color: string | null + initialBalance: runtime.Decimal | null + currentBalance: runtime.Decimal | null + createdAt: Date | null + updatedAt: Date | null +} + +export type PaymentMethodCountAggregateOutputType = { + id: number + userId: number + name: number + type: number + color: number + initialBalance: number + currentBalance: number + createdAt: number + updatedAt: number + _all: number +} + + +export type PaymentMethodAvgAggregateInputType = { + initialBalance?: true + currentBalance?: true +} + +export type PaymentMethodSumAggregateInputType = { + initialBalance?: true + currentBalance?: true +} + +export type PaymentMethodMinAggregateInputType = { + id?: true + userId?: true + name?: true + type?: true + color?: true + initialBalance?: true + currentBalance?: true + createdAt?: true + updatedAt?: true +} + +export type PaymentMethodMaxAggregateInputType = { + id?: true + userId?: true + name?: true + type?: true + color?: true + initialBalance?: true + currentBalance?: true + createdAt?: true + updatedAt?: true +} + +export type PaymentMethodCountAggregateInputType = { + id?: true + userId?: true + name?: true + type?: true + color?: true + initialBalance?: true + currentBalance?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type PaymentMethodAggregateArgs = { + /** + * Filter which PaymentMethod to aggregate. + */ + where?: Prisma.PaymentMethodWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of PaymentMethods to fetch. + */ + orderBy?: Prisma.PaymentMethodOrderByWithRelationInput | Prisma.PaymentMethodOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.PaymentMethodWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` PaymentMethods 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` PaymentMethods. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned PaymentMethods + **/ + _count?: true | PaymentMethodCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: PaymentMethodAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: PaymentMethodSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: PaymentMethodMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: PaymentMethodMaxAggregateInputType +} + +export type GetPaymentMethodAggregateType = { + [P in keyof T & keyof AggregatePaymentMethod]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type PaymentMethodGroupByArgs = { + where?: Prisma.PaymentMethodWhereInput + orderBy?: Prisma.PaymentMethodOrderByWithAggregationInput | Prisma.PaymentMethodOrderByWithAggregationInput[] + by: Prisma.PaymentMethodScalarFieldEnum[] | Prisma.PaymentMethodScalarFieldEnum + having?: Prisma.PaymentMethodScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: PaymentMethodCountAggregateInputType | true + _avg?: PaymentMethodAvgAggregateInputType + _sum?: PaymentMethodSumAggregateInputType + _min?: PaymentMethodMinAggregateInputType + _max?: PaymentMethodMaxAggregateInputType +} + +export type PaymentMethodGroupByOutputType = { + id: string + userId: string + name: string + type: $Enums.PaymentMethodType + color: string + initialBalance: runtime.Decimal + currentBalance: runtime.Decimal + createdAt: Date + updatedAt: Date + _count: PaymentMethodCountAggregateOutputType | null + _avg: PaymentMethodAvgAggregateOutputType | null + _sum: PaymentMethodSumAggregateOutputType | null + _min: PaymentMethodMinAggregateOutputType | null + _max: PaymentMethodMaxAggregateOutputType | null +} + +type GetPaymentMethodGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof PaymentMethodGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type PaymentMethodWhereInput = { + AND?: Prisma.PaymentMethodWhereInput | Prisma.PaymentMethodWhereInput[] + OR?: Prisma.PaymentMethodWhereInput[] + NOT?: Prisma.PaymentMethodWhereInput | Prisma.PaymentMethodWhereInput[] + id?: Prisma.StringFilter<"PaymentMethod"> | string + userId?: Prisma.StringFilter<"PaymentMethod"> | string + name?: Prisma.StringFilter<"PaymentMethod"> | string + type?: Prisma.EnumPaymentMethodTypeFilter<"PaymentMethod"> | $Enums.PaymentMethodType + color?: Prisma.StringFilter<"PaymentMethod"> | string + initialBalance?: Prisma.DecimalFilter<"PaymentMethod"> | runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: Prisma.DecimalFilter<"PaymentMethod"> | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFilter<"PaymentMethod"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"PaymentMethod"> | Date | string + user?: Prisma.XOR + transactions?: Prisma.TransactionListRelationFilter +} + +export type PaymentMethodOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + name?: Prisma.SortOrder + type?: Prisma.SortOrder + color?: Prisma.SortOrder + initialBalance?: Prisma.SortOrder + currentBalance?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput + transactions?: Prisma.TransactionOrderByRelationAggregateInput +} + +export type PaymentMethodWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.PaymentMethodWhereInput | Prisma.PaymentMethodWhereInput[] + OR?: Prisma.PaymentMethodWhereInput[] + NOT?: Prisma.PaymentMethodWhereInput | Prisma.PaymentMethodWhereInput[] + userId?: Prisma.StringFilter<"PaymentMethod"> | string + name?: Prisma.StringFilter<"PaymentMethod"> | string + type?: Prisma.EnumPaymentMethodTypeFilter<"PaymentMethod"> | $Enums.PaymentMethodType + color?: Prisma.StringFilter<"PaymentMethod"> | string + initialBalance?: Prisma.DecimalFilter<"PaymentMethod"> | runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: Prisma.DecimalFilter<"PaymentMethod"> | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFilter<"PaymentMethod"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"PaymentMethod"> | Date | string + user?: Prisma.XOR + transactions?: Prisma.TransactionListRelationFilter +}, "id"> + +export type PaymentMethodOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + name?: Prisma.SortOrder + type?: Prisma.SortOrder + color?: Prisma.SortOrder + initialBalance?: Prisma.SortOrder + currentBalance?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.PaymentMethodCountOrderByAggregateInput + _avg?: Prisma.PaymentMethodAvgOrderByAggregateInput + _max?: Prisma.PaymentMethodMaxOrderByAggregateInput + _min?: Prisma.PaymentMethodMinOrderByAggregateInput + _sum?: Prisma.PaymentMethodSumOrderByAggregateInput +} + +export type PaymentMethodScalarWhereWithAggregatesInput = { + AND?: Prisma.PaymentMethodScalarWhereWithAggregatesInput | Prisma.PaymentMethodScalarWhereWithAggregatesInput[] + OR?: Prisma.PaymentMethodScalarWhereWithAggregatesInput[] + NOT?: Prisma.PaymentMethodScalarWhereWithAggregatesInput | Prisma.PaymentMethodScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"PaymentMethod"> | string + userId?: Prisma.StringWithAggregatesFilter<"PaymentMethod"> | string + name?: Prisma.StringWithAggregatesFilter<"PaymentMethod"> | string + type?: Prisma.EnumPaymentMethodTypeWithAggregatesFilter<"PaymentMethod"> | $Enums.PaymentMethodType + color?: Prisma.StringWithAggregatesFilter<"PaymentMethod"> | string + initialBalance?: Prisma.DecimalWithAggregatesFilter<"PaymentMethod"> | runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: Prisma.DecimalWithAggregatesFilter<"PaymentMethod"> | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"PaymentMethod"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"PaymentMethod"> | Date | string +} + +export type PaymentMethodCreateInput = { + id?: string + name: string + type?: $Enums.PaymentMethodType + color?: string + initialBalance?: runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutPaymentMethodsInput + transactions?: Prisma.TransactionCreateNestedManyWithoutPaymentMethodInput +} + +export type PaymentMethodUncheckedCreateInput = { + id?: string + userId: string + name: string + type?: $Enums.PaymentMethodType + color?: string + initialBalance?: runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutPaymentMethodInput +} + +export type PaymentMethodUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType + color?: Prisma.StringFieldUpdateOperationsInput | string + initialBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutPaymentMethodsNestedInput + transactions?: Prisma.TransactionUpdateManyWithoutPaymentMethodNestedInput +} + +export type PaymentMethodUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType + color?: Prisma.StringFieldUpdateOperationsInput | string + initialBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutPaymentMethodNestedInput +} + +export type PaymentMethodCreateManyInput = { + id?: string + userId: string + name: string + type?: $Enums.PaymentMethodType + color?: string + initialBalance?: runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type PaymentMethodUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType + color?: Prisma.StringFieldUpdateOperationsInput | string + initialBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type PaymentMethodUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType + color?: Prisma.StringFieldUpdateOperationsInput | string + initialBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type PaymentMethodCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + name?: Prisma.SortOrder + type?: Prisma.SortOrder + color?: Prisma.SortOrder + initialBalance?: Prisma.SortOrder + currentBalance?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type PaymentMethodAvgOrderByAggregateInput = { + initialBalance?: Prisma.SortOrder + currentBalance?: Prisma.SortOrder +} + +export type PaymentMethodMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + name?: Prisma.SortOrder + type?: Prisma.SortOrder + color?: Prisma.SortOrder + initialBalance?: Prisma.SortOrder + currentBalance?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type PaymentMethodMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + name?: Prisma.SortOrder + type?: Prisma.SortOrder + color?: Prisma.SortOrder + initialBalance?: Prisma.SortOrder + currentBalance?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type PaymentMethodSumOrderByAggregateInput = { + initialBalance?: Prisma.SortOrder + currentBalance?: Prisma.SortOrder +} + +export type PaymentMethodListRelationFilter = { + every?: Prisma.PaymentMethodWhereInput + some?: Prisma.PaymentMethodWhereInput + none?: Prisma.PaymentMethodWhereInput +} + +export type PaymentMethodOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type PaymentMethodNullableScalarRelationFilter = { + is?: Prisma.PaymentMethodWhereInput | null + isNot?: Prisma.PaymentMethodWhereInput | null +} + +export type EnumPaymentMethodTypeFieldUpdateOperationsInput = { + set?: $Enums.PaymentMethodType +} + +export type PaymentMethodCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.PaymentMethodCreateWithoutUserInput[] | Prisma.PaymentMethodUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.PaymentMethodCreateOrConnectWithoutUserInput | Prisma.PaymentMethodCreateOrConnectWithoutUserInput[] + createMany?: Prisma.PaymentMethodCreateManyUserInputEnvelope + connect?: Prisma.PaymentMethodWhereUniqueInput | Prisma.PaymentMethodWhereUniqueInput[] +} + +export type PaymentMethodUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.PaymentMethodCreateWithoutUserInput[] | Prisma.PaymentMethodUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.PaymentMethodCreateOrConnectWithoutUserInput | Prisma.PaymentMethodCreateOrConnectWithoutUserInput[] + createMany?: Prisma.PaymentMethodCreateManyUserInputEnvelope + connect?: Prisma.PaymentMethodWhereUniqueInput | Prisma.PaymentMethodWhereUniqueInput[] +} + +export type PaymentMethodUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.PaymentMethodCreateWithoutUserInput[] | Prisma.PaymentMethodUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.PaymentMethodCreateOrConnectWithoutUserInput | Prisma.PaymentMethodCreateOrConnectWithoutUserInput[] + upsert?: Prisma.PaymentMethodUpsertWithWhereUniqueWithoutUserInput | Prisma.PaymentMethodUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.PaymentMethodCreateManyUserInputEnvelope + set?: Prisma.PaymentMethodWhereUniqueInput | Prisma.PaymentMethodWhereUniqueInput[] + disconnect?: Prisma.PaymentMethodWhereUniqueInput | Prisma.PaymentMethodWhereUniqueInput[] + delete?: Prisma.PaymentMethodWhereUniqueInput | Prisma.PaymentMethodWhereUniqueInput[] + connect?: Prisma.PaymentMethodWhereUniqueInput | Prisma.PaymentMethodWhereUniqueInput[] + update?: Prisma.PaymentMethodUpdateWithWhereUniqueWithoutUserInput | Prisma.PaymentMethodUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.PaymentMethodUpdateManyWithWhereWithoutUserInput | Prisma.PaymentMethodUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.PaymentMethodScalarWhereInput | Prisma.PaymentMethodScalarWhereInput[] +} + +export type PaymentMethodUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.PaymentMethodCreateWithoutUserInput[] | Prisma.PaymentMethodUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.PaymentMethodCreateOrConnectWithoutUserInput | Prisma.PaymentMethodCreateOrConnectWithoutUserInput[] + upsert?: Prisma.PaymentMethodUpsertWithWhereUniqueWithoutUserInput | Prisma.PaymentMethodUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.PaymentMethodCreateManyUserInputEnvelope + set?: Prisma.PaymentMethodWhereUniqueInput | Prisma.PaymentMethodWhereUniqueInput[] + disconnect?: Prisma.PaymentMethodWhereUniqueInput | Prisma.PaymentMethodWhereUniqueInput[] + delete?: Prisma.PaymentMethodWhereUniqueInput | Prisma.PaymentMethodWhereUniqueInput[] + connect?: Prisma.PaymentMethodWhereUniqueInput | Prisma.PaymentMethodWhereUniqueInput[] + update?: Prisma.PaymentMethodUpdateWithWhereUniqueWithoutUserInput | Prisma.PaymentMethodUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.PaymentMethodUpdateManyWithWhereWithoutUserInput | Prisma.PaymentMethodUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.PaymentMethodScalarWhereInput | Prisma.PaymentMethodScalarWhereInput[] +} + +export type PaymentMethodCreateNestedOneWithoutTransactionsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.PaymentMethodCreateOrConnectWithoutTransactionsInput + connect?: Prisma.PaymentMethodWhereUniqueInput +} + +export type PaymentMethodUpdateOneWithoutTransactionsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.PaymentMethodCreateOrConnectWithoutTransactionsInput + upsert?: Prisma.PaymentMethodUpsertWithoutTransactionsInput + disconnect?: Prisma.PaymentMethodWhereInput | boolean + delete?: Prisma.PaymentMethodWhereInput | boolean + connect?: Prisma.PaymentMethodWhereUniqueInput + update?: Prisma.XOR, Prisma.PaymentMethodUncheckedUpdateWithoutTransactionsInput> +} + +export type PaymentMethodCreateWithoutUserInput = { + id?: string + name: string + type?: $Enums.PaymentMethodType + color?: string + initialBalance?: runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutPaymentMethodInput +} + +export type PaymentMethodUncheckedCreateWithoutUserInput = { + id?: string + name: string + type?: $Enums.PaymentMethodType + color?: string + initialBalance?: runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutPaymentMethodInput +} + +export type PaymentMethodCreateOrConnectWithoutUserInput = { + where: Prisma.PaymentMethodWhereUniqueInput + create: Prisma.XOR +} + +export type PaymentMethodCreateManyUserInputEnvelope = { + data: Prisma.PaymentMethodCreateManyUserInput | Prisma.PaymentMethodCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type PaymentMethodUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.PaymentMethodWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type PaymentMethodUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.PaymentMethodWhereUniqueInput + data: Prisma.XOR +} + +export type PaymentMethodUpdateManyWithWhereWithoutUserInput = { + where: Prisma.PaymentMethodScalarWhereInput + data: Prisma.XOR +} + +export type PaymentMethodScalarWhereInput = { + AND?: Prisma.PaymentMethodScalarWhereInput | Prisma.PaymentMethodScalarWhereInput[] + OR?: Prisma.PaymentMethodScalarWhereInput[] + NOT?: Prisma.PaymentMethodScalarWhereInput | Prisma.PaymentMethodScalarWhereInput[] + id?: Prisma.StringFilter<"PaymentMethod"> | string + userId?: Prisma.StringFilter<"PaymentMethod"> | string + name?: Prisma.StringFilter<"PaymentMethod"> | string + type?: Prisma.EnumPaymentMethodTypeFilter<"PaymentMethod"> | $Enums.PaymentMethodType + color?: Prisma.StringFilter<"PaymentMethod"> | string + initialBalance?: Prisma.DecimalFilter<"PaymentMethod"> | runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: Prisma.DecimalFilter<"PaymentMethod"> | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFilter<"PaymentMethod"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"PaymentMethod"> | Date | string +} + +export type PaymentMethodCreateWithoutTransactionsInput = { + id?: string + name: string + type?: $Enums.PaymentMethodType + color?: string + initialBalance?: runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutPaymentMethodsInput +} + +export type PaymentMethodUncheckedCreateWithoutTransactionsInput = { + id?: string + userId: string + name: string + type?: $Enums.PaymentMethodType + color?: string + initialBalance?: runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type PaymentMethodCreateOrConnectWithoutTransactionsInput = { + where: Prisma.PaymentMethodWhereUniqueInput + create: Prisma.XOR +} + +export type PaymentMethodUpsertWithoutTransactionsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.PaymentMethodWhereInput +} + +export type PaymentMethodUpdateToOneWithWhereWithoutTransactionsInput = { + where?: Prisma.PaymentMethodWhereInput + data: Prisma.XOR +} + +export type PaymentMethodUpdateWithoutTransactionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType + color?: Prisma.StringFieldUpdateOperationsInput | string + initialBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutPaymentMethodsNestedInput +} + +export type PaymentMethodUncheckedUpdateWithoutTransactionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType + color?: Prisma.StringFieldUpdateOperationsInput | string + initialBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type PaymentMethodCreateManyUserInput = { + id?: string + name: string + type?: $Enums.PaymentMethodType + color?: string + initialBalance?: runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type PaymentMethodUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType + color?: Prisma.StringFieldUpdateOperationsInput | string + initialBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutPaymentMethodNestedInput +} + +export type PaymentMethodUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType + color?: Prisma.StringFieldUpdateOperationsInput | string + initialBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutPaymentMethodNestedInput +} + +export type PaymentMethodUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType + color?: Prisma.StringFieldUpdateOperationsInput | string + initialBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + currentBalance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + +/** + * Count Type PaymentMethodCountOutputType + */ + +export type PaymentMethodCountOutputType = { + transactions: number +} + +export type PaymentMethodCountOutputTypeSelect = { + transactions?: boolean | PaymentMethodCountOutputTypeCountTransactionsArgs +} + +/** + * PaymentMethodCountOutputType without action + */ +export type PaymentMethodCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the PaymentMethodCountOutputType + */ + select?: Prisma.PaymentMethodCountOutputTypeSelect | null +} + +/** + * PaymentMethodCountOutputType without action + */ +export type PaymentMethodCountOutputTypeCountTransactionsArgs = { + where?: Prisma.TransactionWhereInput +} + + +export type PaymentMethodSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + name?: boolean + type?: boolean + color?: boolean + initialBalance?: boolean + currentBalance?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + transactions?: boolean | Prisma.PaymentMethod$transactionsArgs + _count?: boolean | Prisma.PaymentMethodCountOutputTypeDefaultArgs +}, ExtArgs["result"]["paymentMethod"]> + +export type PaymentMethodSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + name?: boolean + type?: boolean + color?: boolean + initialBalance?: boolean + currentBalance?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["paymentMethod"]> + +export type PaymentMethodSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + name?: boolean + type?: boolean + color?: boolean + initialBalance?: boolean + currentBalance?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["paymentMethod"]> + +export type PaymentMethodSelectScalar = { + id?: boolean + userId?: boolean + name?: boolean + type?: boolean + color?: boolean + initialBalance?: boolean + currentBalance?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type PaymentMethodOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "name" | "type" | "color" | "initialBalance" | "currentBalance" | "createdAt" | "updatedAt", ExtArgs["result"]["paymentMethod"]> +export type PaymentMethodInclude = { + user?: boolean | Prisma.UserDefaultArgs + transactions?: boolean | Prisma.PaymentMethod$transactionsArgs + _count?: boolean | Prisma.PaymentMethodCountOutputTypeDefaultArgs +} +export type PaymentMethodIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs +} +export type PaymentMethodIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs +} + +export type $PaymentMethodPayload = { + name: "PaymentMethod" + objects: { + user: Prisma.$UserPayload + transactions: Prisma.$TransactionPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + userId: string + name: string + type: $Enums.PaymentMethodType + color: string + initialBalance: runtime.Decimal + currentBalance: runtime.Decimal + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["paymentMethod"]> + composites: {} +} + +export type PaymentMethodGetPayload = runtime.Types.Result.GetResult + +export type PaymentMethodCountArgs = + Omit & { + select?: PaymentMethodCountAggregateInputType | true + } + +export interface PaymentMethodDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['PaymentMethod'], meta: { name: 'PaymentMethod' } } + /** + * Find zero or one PaymentMethod that matches the filter. + * @param {PaymentMethodFindUniqueArgs} args - Arguments to find a PaymentMethod + * @example + * // Get one PaymentMethod + * const paymentMethod = await prisma.paymentMethod.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__PaymentMethodClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one PaymentMethod that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {PaymentMethodFindUniqueOrThrowArgs} args - Arguments to find a PaymentMethod + * @example + * // Get one PaymentMethod + * const paymentMethod = await prisma.paymentMethod.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__PaymentMethodClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first PaymentMethod 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 {PaymentMethodFindFirstArgs} args - Arguments to find a PaymentMethod + * @example + * // Get one PaymentMethod + * const paymentMethod = await prisma.paymentMethod.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__PaymentMethodClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first PaymentMethod 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 {PaymentMethodFindFirstOrThrowArgs} args - Arguments to find a PaymentMethod + * @example + * // Get one PaymentMethod + * const paymentMethod = await prisma.paymentMethod.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__PaymentMethodClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more PaymentMethods 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 {PaymentMethodFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all PaymentMethods + * const paymentMethods = await prisma.paymentMethod.findMany() + * + * // Get first 10 PaymentMethods + * const paymentMethods = await prisma.paymentMethod.findMany({ take: 10 }) + * + * // Only select the `id` + * const paymentMethodWithIdOnly = await prisma.paymentMethod.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a PaymentMethod. + * @param {PaymentMethodCreateArgs} args - Arguments to create a PaymentMethod. + * @example + * // Create one PaymentMethod + * const PaymentMethod = await prisma.paymentMethod.create({ + * data: { + * // ... data to create a PaymentMethod + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__PaymentMethodClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many PaymentMethods. + * @param {PaymentMethodCreateManyArgs} args - Arguments to create many PaymentMethods. + * @example + * // Create many PaymentMethods + * const paymentMethod = await prisma.paymentMethod.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many PaymentMethods and returns the data saved in the database. + * @param {PaymentMethodCreateManyAndReturnArgs} args - Arguments to create many PaymentMethods. + * @example + * // Create many PaymentMethods + * const paymentMethod = await prisma.paymentMethod.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many PaymentMethods and only return the `id` + * const paymentMethodWithIdOnly = await prisma.paymentMethod.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a PaymentMethod. + * @param {PaymentMethodDeleteArgs} args - Arguments to delete one PaymentMethod. + * @example + * // Delete one PaymentMethod + * const PaymentMethod = await prisma.paymentMethod.delete({ + * where: { + * // ... filter to delete one PaymentMethod + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__PaymentMethodClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one PaymentMethod. + * @param {PaymentMethodUpdateArgs} args - Arguments to update one PaymentMethod. + * @example + * // Update one PaymentMethod + * const paymentMethod = await prisma.paymentMethod.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__PaymentMethodClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more PaymentMethods. + * @param {PaymentMethodDeleteManyArgs} args - Arguments to filter PaymentMethods to delete. + * @example + * // Delete a few PaymentMethods + * const { count } = await prisma.paymentMethod.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more PaymentMethods. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PaymentMethodUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many PaymentMethods + * const paymentMethod = await prisma.paymentMethod.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more PaymentMethods and returns the data updated in the database. + * @param {PaymentMethodUpdateManyAndReturnArgs} args - Arguments to update many PaymentMethods. + * @example + * // Update many PaymentMethods + * const paymentMethod = await prisma.paymentMethod.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more PaymentMethods and only return the `id` + * const paymentMethodWithIdOnly = await prisma.paymentMethod.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one PaymentMethod. + * @param {PaymentMethodUpsertArgs} args - Arguments to update or create a PaymentMethod. + * @example + * // Update or create a PaymentMethod + * const paymentMethod = await prisma.paymentMethod.upsert({ + * create: { + * // ... data to create a PaymentMethod + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the PaymentMethod we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__PaymentMethodClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of PaymentMethods. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PaymentMethodCountArgs} args - Arguments to filter PaymentMethods to count. + * @example + * // Count the number of PaymentMethods + * const count = await prisma.paymentMethod.count({ + * where: { + * // ... the filter for the PaymentMethods we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a PaymentMethod. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PaymentMethodAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by PaymentMethod. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PaymentMethodGroupByArgs} 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 PaymentMethodGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: PaymentMethodGroupByArgs['orderBy'] } + : { orderBy?: PaymentMethodGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetPaymentMethodGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the PaymentMethod model + */ +readonly fields: PaymentMethodFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for PaymentMethod. + * 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__PaymentMethodClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + transactions = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + /** + * 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the PaymentMethod model + */ +export interface PaymentMethodFieldRefs { + readonly id: Prisma.FieldRef<"PaymentMethod", 'String'> + readonly userId: Prisma.FieldRef<"PaymentMethod", 'String'> + readonly name: Prisma.FieldRef<"PaymentMethod", 'String'> + readonly type: Prisma.FieldRef<"PaymentMethod", 'PaymentMethodType'> + readonly color: Prisma.FieldRef<"PaymentMethod", 'String'> + readonly initialBalance: Prisma.FieldRef<"PaymentMethod", 'Decimal'> + readonly currentBalance: Prisma.FieldRef<"PaymentMethod", 'Decimal'> + readonly createdAt: Prisma.FieldRef<"PaymentMethod", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"PaymentMethod", 'DateTime'> +} + + +// Custom InputTypes +/** + * PaymentMethod findUnique + */ +export type PaymentMethodFindUniqueArgs = { + /** + * Select specific fields to fetch from the PaymentMethod + */ + select?: Prisma.PaymentMethodSelect | null + /** + * Omit specific fields from the PaymentMethod + */ + omit?: Prisma.PaymentMethodOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaymentMethodInclude | null + /** + * Filter, which PaymentMethod to fetch. + */ + where: Prisma.PaymentMethodWhereUniqueInput +} + +/** + * PaymentMethod findUniqueOrThrow + */ +export type PaymentMethodFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the PaymentMethod + */ + select?: Prisma.PaymentMethodSelect | null + /** + * Omit specific fields from the PaymentMethod + */ + omit?: Prisma.PaymentMethodOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaymentMethodInclude | null + /** + * Filter, which PaymentMethod to fetch. + */ + where: Prisma.PaymentMethodWhereUniqueInput +} + +/** + * PaymentMethod findFirst + */ +export type PaymentMethodFindFirstArgs = { + /** + * Select specific fields to fetch from the PaymentMethod + */ + select?: Prisma.PaymentMethodSelect | null + /** + * Omit specific fields from the PaymentMethod + */ + omit?: Prisma.PaymentMethodOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaymentMethodInclude | null + /** + * Filter, which PaymentMethod to fetch. + */ + where?: Prisma.PaymentMethodWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of PaymentMethods to fetch. + */ + orderBy?: Prisma.PaymentMethodOrderByWithRelationInput | Prisma.PaymentMethodOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for PaymentMethods. + */ + cursor?: Prisma.PaymentMethodWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` PaymentMethods 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` PaymentMethods. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of PaymentMethods. + */ + distinct?: Prisma.PaymentMethodScalarFieldEnum | Prisma.PaymentMethodScalarFieldEnum[] +} + +/** + * PaymentMethod findFirstOrThrow + */ +export type PaymentMethodFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the PaymentMethod + */ + select?: Prisma.PaymentMethodSelect | null + /** + * Omit specific fields from the PaymentMethod + */ + omit?: Prisma.PaymentMethodOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaymentMethodInclude | null + /** + * Filter, which PaymentMethod to fetch. + */ + where?: Prisma.PaymentMethodWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of PaymentMethods to fetch. + */ + orderBy?: Prisma.PaymentMethodOrderByWithRelationInput | Prisma.PaymentMethodOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for PaymentMethods. + */ + cursor?: Prisma.PaymentMethodWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` PaymentMethods 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` PaymentMethods. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of PaymentMethods. + */ + distinct?: Prisma.PaymentMethodScalarFieldEnum | Prisma.PaymentMethodScalarFieldEnum[] +} + +/** + * PaymentMethod findMany + */ +export type PaymentMethodFindManyArgs = { + /** + * Select specific fields to fetch from the PaymentMethod + */ + select?: Prisma.PaymentMethodSelect | null + /** + * Omit specific fields from the PaymentMethod + */ + omit?: Prisma.PaymentMethodOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaymentMethodInclude | null + /** + * Filter, which PaymentMethods to fetch. + */ + where?: Prisma.PaymentMethodWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of PaymentMethods to fetch. + */ + orderBy?: Prisma.PaymentMethodOrderByWithRelationInput | Prisma.PaymentMethodOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing PaymentMethods. + */ + cursor?: Prisma.PaymentMethodWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` PaymentMethods 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` PaymentMethods. + */ + skip?: number + distinct?: Prisma.PaymentMethodScalarFieldEnum | Prisma.PaymentMethodScalarFieldEnum[] +} + +/** + * PaymentMethod create + */ +export type PaymentMethodCreateArgs = { + /** + * Select specific fields to fetch from the PaymentMethod + */ + select?: Prisma.PaymentMethodSelect | null + /** + * Omit specific fields from the PaymentMethod + */ + omit?: Prisma.PaymentMethodOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaymentMethodInclude | null + /** + * The data needed to create a PaymentMethod. + */ + data: Prisma.XOR +} + +/** + * PaymentMethod createMany + */ +export type PaymentMethodCreateManyArgs = { + /** + * The data used to create many PaymentMethods. + */ + data: Prisma.PaymentMethodCreateManyInput | Prisma.PaymentMethodCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * PaymentMethod createManyAndReturn + */ +export type PaymentMethodCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the PaymentMethod + */ + select?: Prisma.PaymentMethodSelectCreateManyAndReturn | null + /** + * Omit specific fields from the PaymentMethod + */ + omit?: Prisma.PaymentMethodOmit | null + /** + * The data used to create many PaymentMethods. + */ + data: Prisma.PaymentMethodCreateManyInput | Prisma.PaymentMethodCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaymentMethodIncludeCreateManyAndReturn | null +} + +/** + * PaymentMethod update + */ +export type PaymentMethodUpdateArgs = { + /** + * Select specific fields to fetch from the PaymentMethod + */ + select?: Prisma.PaymentMethodSelect | null + /** + * Omit specific fields from the PaymentMethod + */ + omit?: Prisma.PaymentMethodOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaymentMethodInclude | null + /** + * The data needed to update a PaymentMethod. + */ + data: Prisma.XOR + /** + * Choose, which PaymentMethod to update. + */ + where: Prisma.PaymentMethodWhereUniqueInput +} + +/** + * PaymentMethod updateMany + */ +export type PaymentMethodUpdateManyArgs = { + /** + * The data used to update PaymentMethods. + */ + data: Prisma.XOR + /** + * Filter which PaymentMethods to update + */ + where?: Prisma.PaymentMethodWhereInput + /** + * Limit how many PaymentMethods to update. + */ + limit?: number +} + +/** + * PaymentMethod updateManyAndReturn + */ +export type PaymentMethodUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the PaymentMethod + */ + select?: Prisma.PaymentMethodSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the PaymentMethod + */ + omit?: Prisma.PaymentMethodOmit | null + /** + * The data used to update PaymentMethods. + */ + data: Prisma.XOR + /** + * Filter which PaymentMethods to update + */ + where?: Prisma.PaymentMethodWhereInput + /** + * Limit how many PaymentMethods to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaymentMethodIncludeUpdateManyAndReturn | null +} + +/** + * PaymentMethod upsert + */ +export type PaymentMethodUpsertArgs = { + /** + * Select specific fields to fetch from the PaymentMethod + */ + select?: Prisma.PaymentMethodSelect | null + /** + * Omit specific fields from the PaymentMethod + */ + omit?: Prisma.PaymentMethodOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaymentMethodInclude | null + /** + * The filter to search for the PaymentMethod to update in case it exists. + */ + where: Prisma.PaymentMethodWhereUniqueInput + /** + * In case the PaymentMethod found by the `where` argument doesn't exist, create a new PaymentMethod with this data. + */ + create: Prisma.XOR + /** + * In case the PaymentMethod was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * PaymentMethod delete + */ +export type PaymentMethodDeleteArgs = { + /** + * Select specific fields to fetch from the PaymentMethod + */ + select?: Prisma.PaymentMethodSelect | null + /** + * Omit specific fields from the PaymentMethod + */ + omit?: Prisma.PaymentMethodOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaymentMethodInclude | null + /** + * Filter which PaymentMethod to delete. + */ + where: Prisma.PaymentMethodWhereUniqueInput +} + +/** + * PaymentMethod deleteMany + */ +export type PaymentMethodDeleteManyArgs = { + /** + * Filter which PaymentMethods to delete + */ + where?: Prisma.PaymentMethodWhereInput + /** + * Limit how many PaymentMethods to delete. + */ + limit?: number +} + +/** + * PaymentMethod.transactions + */ +export type PaymentMethod$transactionsArgs = { + /** + * Select specific fields to fetch from the Transaction + */ + select?: Prisma.TransactionSelect | null + /** + * Omit specific fields from the Transaction + */ + omit?: Prisma.TransactionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TransactionInclude | null + where?: Prisma.TransactionWhereInput + orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[] + cursor?: Prisma.TransactionWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[] +} + +/** + * PaymentMethod without action + */ +export type PaymentMethodDefaultArgs = { + /** + * Select specific fields to fetch from the PaymentMethod + */ + select?: Prisma.PaymentMethodSelect | null + /** + * Omit specific fields from the PaymentMethod + */ + omit?: Prisma.PaymentMethodOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaymentMethodInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/Receipt.ts b/apps/backend/prisma/generated/generated/prisma/models/Receipt.ts new file mode 100644 index 00000000..4ddbe18d --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/Receipt.ts @@ -0,0 +1,1911 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Receipt` 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 Receipt + * + */ +export type ReceiptModel = runtime.Types.Result.DefaultSelection + +export type AggregateReceipt = { + _count: ReceiptCountAggregateOutputType | null + _avg: ReceiptAvgAggregateOutputType | null + _sum: ReceiptSumAggregateOutputType | null + _min: ReceiptMinAggregateOutputType | null + _max: ReceiptMaxAggregateOutputType | null +} + +export type ReceiptAvgAggregateOutputType = { + fileSize: number | null +} + +export type ReceiptSumAggregateOutputType = { + fileSize: number | null +} + +export type ReceiptMinAggregateOutputType = { + id: string | null + userId: string | null + familyId: string | null + expenseId: string | null + fileName: string | null + originalName: string | null + mimeType: string | null + fileSize: number | null + storageKey: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type ReceiptMaxAggregateOutputType = { + id: string | null + userId: string | null + familyId: string | null + expenseId: string | null + fileName: string | null + originalName: string | null + mimeType: string | null + fileSize: number | null + storageKey: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type ReceiptCountAggregateOutputType = { + id: number + userId: number + familyId: number + expenseId: number + fileName: number + originalName: number + mimeType: number + fileSize: number + storageKey: number + createdAt: number + updatedAt: number + _all: number +} + + +export type ReceiptAvgAggregateInputType = { + fileSize?: true +} + +export type ReceiptSumAggregateInputType = { + fileSize?: true +} + +export type ReceiptMinAggregateInputType = { + id?: true + userId?: true + familyId?: true + expenseId?: true + fileName?: true + originalName?: true + mimeType?: true + fileSize?: true + storageKey?: true + createdAt?: true + updatedAt?: true +} + +export type ReceiptMaxAggregateInputType = { + id?: true + userId?: true + familyId?: true + expenseId?: true + fileName?: true + originalName?: true + mimeType?: true + fileSize?: true + storageKey?: true + createdAt?: true + updatedAt?: true +} + +export type ReceiptCountAggregateInputType = { + id?: true + userId?: true + familyId?: true + expenseId?: true + fileName?: true + originalName?: true + mimeType?: true + fileSize?: true + storageKey?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type ReceiptAggregateArgs = { + /** + * Filter which Receipt to aggregate. + */ + where?: Prisma.ReceiptWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Receipts to fetch. + */ + orderBy?: Prisma.ReceiptOrderByWithRelationInput | Prisma.ReceiptOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ReceiptWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Receipts 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` Receipts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Receipts + **/ + _count?: true | ReceiptCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ReceiptAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: ReceiptSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ReceiptMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ReceiptMaxAggregateInputType +} + +export type GetReceiptAggregateType = { + [P in keyof T & keyof AggregateReceipt]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ReceiptGroupByArgs = { + where?: Prisma.ReceiptWhereInput + orderBy?: Prisma.ReceiptOrderByWithAggregationInput | Prisma.ReceiptOrderByWithAggregationInput[] + by: Prisma.ReceiptScalarFieldEnum[] | Prisma.ReceiptScalarFieldEnum + having?: Prisma.ReceiptScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ReceiptCountAggregateInputType | true + _avg?: ReceiptAvgAggregateInputType + _sum?: ReceiptSumAggregateInputType + _min?: ReceiptMinAggregateInputType + _max?: ReceiptMaxAggregateInputType +} + +export type ReceiptGroupByOutputType = { + id: string + userId: string + familyId: string | null + expenseId: string | null + fileName: string + originalName: string + mimeType: string + fileSize: number + storageKey: string + createdAt: Date + updatedAt: Date + _count: ReceiptCountAggregateOutputType | null + _avg: ReceiptAvgAggregateOutputType | null + _sum: ReceiptSumAggregateOutputType | null + _min: ReceiptMinAggregateOutputType | null + _max: ReceiptMaxAggregateOutputType | null +} + +type GetReceiptGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ReceiptGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ReceiptWhereInput = { + AND?: Prisma.ReceiptWhereInput | Prisma.ReceiptWhereInput[] + OR?: Prisma.ReceiptWhereInput[] + NOT?: Prisma.ReceiptWhereInput | Prisma.ReceiptWhereInput[] + id?: Prisma.StringFilter<"Receipt"> | string + userId?: Prisma.StringFilter<"Receipt"> | string + familyId?: Prisma.StringNullableFilter<"Receipt"> | string | null + expenseId?: Prisma.StringNullableFilter<"Receipt"> | string | null + fileName?: Prisma.StringFilter<"Receipt"> | string + originalName?: Prisma.StringFilter<"Receipt"> | string + mimeType?: Prisma.StringFilter<"Receipt"> | string + fileSize?: Prisma.IntFilter<"Receipt"> | number + storageKey?: Prisma.StringFilter<"Receipt"> | string + createdAt?: Prisma.DateTimeFilter<"Receipt"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Receipt"> | Date | string + user?: Prisma.XOR + family?: Prisma.XOR | null + expense?: Prisma.XOR | null +} + +export type ReceiptOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + familyId?: Prisma.SortOrderInput | Prisma.SortOrder + expenseId?: Prisma.SortOrderInput | Prisma.SortOrder + fileName?: Prisma.SortOrder + originalName?: Prisma.SortOrder + mimeType?: Prisma.SortOrder + fileSize?: Prisma.SortOrder + storageKey?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput + family?: Prisma.FamilyOrderByWithRelationInput + expense?: Prisma.ExpenseOrderByWithRelationInput +} + +export type ReceiptWhereUniqueInput = Prisma.AtLeast<{ + id?: string + expenseId?: string + AND?: Prisma.ReceiptWhereInput | Prisma.ReceiptWhereInput[] + OR?: Prisma.ReceiptWhereInput[] + NOT?: Prisma.ReceiptWhereInput | Prisma.ReceiptWhereInput[] + userId?: Prisma.StringFilter<"Receipt"> | string + familyId?: Prisma.StringNullableFilter<"Receipt"> | string | null + fileName?: Prisma.StringFilter<"Receipt"> | string + originalName?: Prisma.StringFilter<"Receipt"> | string + mimeType?: Prisma.StringFilter<"Receipt"> | string + fileSize?: Prisma.IntFilter<"Receipt"> | number + storageKey?: Prisma.StringFilter<"Receipt"> | string + createdAt?: Prisma.DateTimeFilter<"Receipt"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Receipt"> | Date | string + user?: Prisma.XOR + family?: Prisma.XOR | null + expense?: Prisma.XOR | null +}, "id" | "expenseId"> + +export type ReceiptOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + familyId?: Prisma.SortOrderInput | Prisma.SortOrder + expenseId?: Prisma.SortOrderInput | Prisma.SortOrder + fileName?: Prisma.SortOrder + originalName?: Prisma.SortOrder + mimeType?: Prisma.SortOrder + fileSize?: Prisma.SortOrder + storageKey?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.ReceiptCountOrderByAggregateInput + _avg?: Prisma.ReceiptAvgOrderByAggregateInput + _max?: Prisma.ReceiptMaxOrderByAggregateInput + _min?: Prisma.ReceiptMinOrderByAggregateInput + _sum?: Prisma.ReceiptSumOrderByAggregateInput +} + +export type ReceiptScalarWhereWithAggregatesInput = { + AND?: Prisma.ReceiptScalarWhereWithAggregatesInput | Prisma.ReceiptScalarWhereWithAggregatesInput[] + OR?: Prisma.ReceiptScalarWhereWithAggregatesInput[] + NOT?: Prisma.ReceiptScalarWhereWithAggregatesInput | Prisma.ReceiptScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Receipt"> | string + userId?: Prisma.StringWithAggregatesFilter<"Receipt"> | string + familyId?: Prisma.StringNullableWithAggregatesFilter<"Receipt"> | string | null + expenseId?: Prisma.StringNullableWithAggregatesFilter<"Receipt"> | string | null + fileName?: Prisma.StringWithAggregatesFilter<"Receipt"> | string + originalName?: Prisma.StringWithAggregatesFilter<"Receipt"> | string + mimeType?: Prisma.StringWithAggregatesFilter<"Receipt"> | string + fileSize?: Prisma.IntWithAggregatesFilter<"Receipt"> | number + storageKey?: Prisma.StringWithAggregatesFilter<"Receipt"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Receipt"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Receipt"> | Date | string +} + +export type ReceiptCreateInput = { + id?: string + fileName: string + originalName: string + mimeType: string + fileSize: number + storageKey: string + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutReceiptsInput + family?: Prisma.FamilyCreateNestedOneWithoutReceiptsInput + expense?: Prisma.ExpenseCreateNestedOneWithoutReceiptInput +} + +export type ReceiptUncheckedCreateInput = { + id?: string + userId: string + familyId?: string | null + expenseId?: string | null + fileName: string + originalName: string + mimeType: string + fileSize: number + storageKey: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ReceiptUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + fileName?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + fileSize?: Prisma.IntFieldUpdateOperationsInput | number + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutReceiptsNestedInput + family?: Prisma.FamilyUpdateOneWithoutReceiptsNestedInput + expense?: Prisma.ExpenseUpdateOneWithoutReceiptNestedInput +} + +export type ReceiptUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + expenseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileName?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + fileSize?: Prisma.IntFieldUpdateOperationsInput | number + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ReceiptCreateManyInput = { + id?: string + userId: string + familyId?: string | null + expenseId?: string | null + fileName: string + originalName: string + mimeType: string + fileSize: number + storageKey: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ReceiptUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + fileName?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + fileSize?: Prisma.IntFieldUpdateOperationsInput | number + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ReceiptUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + expenseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileName?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + fileSize?: Prisma.IntFieldUpdateOperationsInput | number + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ReceiptNullableScalarRelationFilter = { + is?: Prisma.ReceiptWhereInput | null + isNot?: Prisma.ReceiptWhereInput | null +} + +export type ReceiptListRelationFilter = { + every?: Prisma.ReceiptWhereInput + some?: Prisma.ReceiptWhereInput + none?: Prisma.ReceiptWhereInput +} + +export type ReceiptOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ReceiptCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + familyId?: Prisma.SortOrder + expenseId?: Prisma.SortOrder + fileName?: Prisma.SortOrder + originalName?: Prisma.SortOrder + mimeType?: Prisma.SortOrder + fileSize?: Prisma.SortOrder + storageKey?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ReceiptAvgOrderByAggregateInput = { + fileSize?: Prisma.SortOrder +} + +export type ReceiptMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + familyId?: Prisma.SortOrder + expenseId?: Prisma.SortOrder + fileName?: Prisma.SortOrder + originalName?: Prisma.SortOrder + mimeType?: Prisma.SortOrder + fileSize?: Prisma.SortOrder + storageKey?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ReceiptMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + familyId?: Prisma.SortOrder + expenseId?: Prisma.SortOrder + fileName?: Prisma.SortOrder + originalName?: Prisma.SortOrder + mimeType?: Prisma.SortOrder + fileSize?: Prisma.SortOrder + storageKey?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type ReceiptSumOrderByAggregateInput = { + fileSize?: Prisma.SortOrder +} + +export type ReceiptCreateNestedOneWithoutExpenseInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ReceiptCreateOrConnectWithoutExpenseInput + connect?: Prisma.ReceiptWhereUniqueInput +} + +export type ReceiptUncheckedCreateNestedOneWithoutExpenseInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ReceiptCreateOrConnectWithoutExpenseInput + connect?: Prisma.ReceiptWhereUniqueInput +} + +export type ReceiptUpdateOneWithoutExpenseNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ReceiptCreateOrConnectWithoutExpenseInput + upsert?: Prisma.ReceiptUpsertWithoutExpenseInput + disconnect?: Prisma.ReceiptWhereInput | boolean + delete?: Prisma.ReceiptWhereInput | boolean + connect?: Prisma.ReceiptWhereUniqueInput + update?: Prisma.XOR, Prisma.ReceiptUncheckedUpdateWithoutExpenseInput> +} + +export type ReceiptUncheckedUpdateOneWithoutExpenseNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ReceiptCreateOrConnectWithoutExpenseInput + upsert?: Prisma.ReceiptUpsertWithoutExpenseInput + disconnect?: Prisma.ReceiptWhereInput | boolean + delete?: Prisma.ReceiptWhereInput | boolean + connect?: Prisma.ReceiptWhereUniqueInput + update?: Prisma.XOR, Prisma.ReceiptUncheckedUpdateWithoutExpenseInput> +} + +export type ReceiptCreateNestedManyWithoutFamilyInput = { + create?: Prisma.XOR | Prisma.ReceiptCreateWithoutFamilyInput[] | Prisma.ReceiptUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.ReceiptCreateOrConnectWithoutFamilyInput | Prisma.ReceiptCreateOrConnectWithoutFamilyInput[] + createMany?: Prisma.ReceiptCreateManyFamilyInputEnvelope + connect?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] +} + +export type ReceiptUncheckedCreateNestedManyWithoutFamilyInput = { + create?: Prisma.XOR | Prisma.ReceiptCreateWithoutFamilyInput[] | Prisma.ReceiptUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.ReceiptCreateOrConnectWithoutFamilyInput | Prisma.ReceiptCreateOrConnectWithoutFamilyInput[] + createMany?: Prisma.ReceiptCreateManyFamilyInputEnvelope + connect?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] +} + +export type ReceiptUpdateManyWithoutFamilyNestedInput = { + create?: Prisma.XOR | Prisma.ReceiptCreateWithoutFamilyInput[] | Prisma.ReceiptUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.ReceiptCreateOrConnectWithoutFamilyInput | Prisma.ReceiptCreateOrConnectWithoutFamilyInput[] + upsert?: Prisma.ReceiptUpsertWithWhereUniqueWithoutFamilyInput | Prisma.ReceiptUpsertWithWhereUniqueWithoutFamilyInput[] + createMany?: Prisma.ReceiptCreateManyFamilyInputEnvelope + set?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] + disconnect?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] + delete?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] + connect?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] + update?: Prisma.ReceiptUpdateWithWhereUniqueWithoutFamilyInput | Prisma.ReceiptUpdateWithWhereUniqueWithoutFamilyInput[] + updateMany?: Prisma.ReceiptUpdateManyWithWhereWithoutFamilyInput | Prisma.ReceiptUpdateManyWithWhereWithoutFamilyInput[] + deleteMany?: Prisma.ReceiptScalarWhereInput | Prisma.ReceiptScalarWhereInput[] +} + +export type ReceiptUncheckedUpdateManyWithoutFamilyNestedInput = { + create?: Prisma.XOR | Prisma.ReceiptCreateWithoutFamilyInput[] | Prisma.ReceiptUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.ReceiptCreateOrConnectWithoutFamilyInput | Prisma.ReceiptCreateOrConnectWithoutFamilyInput[] + upsert?: Prisma.ReceiptUpsertWithWhereUniqueWithoutFamilyInput | Prisma.ReceiptUpsertWithWhereUniqueWithoutFamilyInput[] + createMany?: Prisma.ReceiptCreateManyFamilyInputEnvelope + set?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] + disconnect?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] + delete?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] + connect?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] + update?: Prisma.ReceiptUpdateWithWhereUniqueWithoutFamilyInput | Prisma.ReceiptUpdateWithWhereUniqueWithoutFamilyInput[] + updateMany?: Prisma.ReceiptUpdateManyWithWhereWithoutFamilyInput | Prisma.ReceiptUpdateManyWithWhereWithoutFamilyInput[] + deleteMany?: Prisma.ReceiptScalarWhereInput | Prisma.ReceiptScalarWhereInput[] +} + +export type IntFieldUpdateOperationsInput = { + set?: number + increment?: number + decrement?: number + multiply?: number + divide?: number +} + +export type ReceiptCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.ReceiptCreateWithoutUserInput[] | Prisma.ReceiptUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.ReceiptCreateOrConnectWithoutUserInput | Prisma.ReceiptCreateOrConnectWithoutUserInput[] + createMany?: Prisma.ReceiptCreateManyUserInputEnvelope + connect?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] +} + +export type ReceiptUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.ReceiptCreateWithoutUserInput[] | Prisma.ReceiptUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.ReceiptCreateOrConnectWithoutUserInput | Prisma.ReceiptCreateOrConnectWithoutUserInput[] + createMany?: Prisma.ReceiptCreateManyUserInputEnvelope + connect?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] +} + +export type ReceiptUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.ReceiptCreateWithoutUserInput[] | Prisma.ReceiptUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.ReceiptCreateOrConnectWithoutUserInput | Prisma.ReceiptCreateOrConnectWithoutUserInput[] + upsert?: Prisma.ReceiptUpsertWithWhereUniqueWithoutUserInput | Prisma.ReceiptUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.ReceiptCreateManyUserInputEnvelope + set?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] + disconnect?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] + delete?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] + connect?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] + update?: Prisma.ReceiptUpdateWithWhereUniqueWithoutUserInput | Prisma.ReceiptUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.ReceiptUpdateManyWithWhereWithoutUserInput | Prisma.ReceiptUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.ReceiptScalarWhereInput | Prisma.ReceiptScalarWhereInput[] +} + +export type ReceiptUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.ReceiptCreateWithoutUserInput[] | Prisma.ReceiptUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.ReceiptCreateOrConnectWithoutUserInput | Prisma.ReceiptCreateOrConnectWithoutUserInput[] + upsert?: Prisma.ReceiptUpsertWithWhereUniqueWithoutUserInput | Prisma.ReceiptUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.ReceiptCreateManyUserInputEnvelope + set?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] + disconnect?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] + delete?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] + connect?: Prisma.ReceiptWhereUniqueInput | Prisma.ReceiptWhereUniqueInput[] + update?: Prisma.ReceiptUpdateWithWhereUniqueWithoutUserInput | Prisma.ReceiptUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.ReceiptUpdateManyWithWhereWithoutUserInput | Prisma.ReceiptUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.ReceiptScalarWhereInput | Prisma.ReceiptScalarWhereInput[] +} + +export type ReceiptCreateWithoutExpenseInput = { + id?: string + fileName: string + originalName: string + mimeType: string + fileSize: number + storageKey: string + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutReceiptsInput + family?: Prisma.FamilyCreateNestedOneWithoutReceiptsInput +} + +export type ReceiptUncheckedCreateWithoutExpenseInput = { + id?: string + userId: string + familyId?: string | null + fileName: string + originalName: string + mimeType: string + fileSize: number + storageKey: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ReceiptCreateOrConnectWithoutExpenseInput = { + where: Prisma.ReceiptWhereUniqueInput + create: Prisma.XOR +} + +export type ReceiptUpsertWithoutExpenseInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ReceiptWhereInput +} + +export type ReceiptUpdateToOneWithWhereWithoutExpenseInput = { + where?: Prisma.ReceiptWhereInput + data: Prisma.XOR +} + +export type ReceiptUpdateWithoutExpenseInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + fileName?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + fileSize?: Prisma.IntFieldUpdateOperationsInput | number + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutReceiptsNestedInput + family?: Prisma.FamilyUpdateOneWithoutReceiptsNestedInput +} + +export type ReceiptUncheckedUpdateWithoutExpenseInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileName?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + fileSize?: Prisma.IntFieldUpdateOperationsInput | number + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ReceiptCreateWithoutFamilyInput = { + id?: string + fileName: string + originalName: string + mimeType: string + fileSize: number + storageKey: string + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutReceiptsInput + expense?: Prisma.ExpenseCreateNestedOneWithoutReceiptInput +} + +export type ReceiptUncheckedCreateWithoutFamilyInput = { + id?: string + userId: string + expenseId?: string | null + fileName: string + originalName: string + mimeType: string + fileSize: number + storageKey: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ReceiptCreateOrConnectWithoutFamilyInput = { + where: Prisma.ReceiptWhereUniqueInput + create: Prisma.XOR +} + +export type ReceiptCreateManyFamilyInputEnvelope = { + data: Prisma.ReceiptCreateManyFamilyInput | Prisma.ReceiptCreateManyFamilyInput[] + skipDuplicates?: boolean +} + +export type ReceiptUpsertWithWhereUniqueWithoutFamilyInput = { + where: Prisma.ReceiptWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ReceiptUpdateWithWhereUniqueWithoutFamilyInput = { + where: Prisma.ReceiptWhereUniqueInput + data: Prisma.XOR +} + +export type ReceiptUpdateManyWithWhereWithoutFamilyInput = { + where: Prisma.ReceiptScalarWhereInput + data: Prisma.XOR +} + +export type ReceiptScalarWhereInput = { + AND?: Prisma.ReceiptScalarWhereInput | Prisma.ReceiptScalarWhereInput[] + OR?: Prisma.ReceiptScalarWhereInput[] + NOT?: Prisma.ReceiptScalarWhereInput | Prisma.ReceiptScalarWhereInput[] + id?: Prisma.StringFilter<"Receipt"> | string + userId?: Prisma.StringFilter<"Receipt"> | string + familyId?: Prisma.StringNullableFilter<"Receipt"> | string | null + expenseId?: Prisma.StringNullableFilter<"Receipt"> | string | null + fileName?: Prisma.StringFilter<"Receipt"> | string + originalName?: Prisma.StringFilter<"Receipt"> | string + mimeType?: Prisma.StringFilter<"Receipt"> | string + fileSize?: Prisma.IntFilter<"Receipt"> | number + storageKey?: Prisma.StringFilter<"Receipt"> | string + createdAt?: Prisma.DateTimeFilter<"Receipt"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Receipt"> | Date | string +} + +export type ReceiptCreateWithoutUserInput = { + id?: string + fileName: string + originalName: string + mimeType: string + fileSize: number + storageKey: string + createdAt?: Date | string + updatedAt?: Date | string + family?: Prisma.FamilyCreateNestedOneWithoutReceiptsInput + expense?: Prisma.ExpenseCreateNestedOneWithoutReceiptInput +} + +export type ReceiptUncheckedCreateWithoutUserInput = { + id?: string + familyId?: string | null + expenseId?: string | null + fileName: string + originalName: string + mimeType: string + fileSize: number + storageKey: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ReceiptCreateOrConnectWithoutUserInput = { + where: Prisma.ReceiptWhereUniqueInput + create: Prisma.XOR +} + +export type ReceiptCreateManyUserInputEnvelope = { + data: Prisma.ReceiptCreateManyUserInput | Prisma.ReceiptCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type ReceiptUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.ReceiptWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ReceiptUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.ReceiptWhereUniqueInput + data: Prisma.XOR +} + +export type ReceiptUpdateManyWithWhereWithoutUserInput = { + where: Prisma.ReceiptScalarWhereInput + data: Prisma.XOR +} + +export type ReceiptCreateManyFamilyInput = { + id?: string + userId: string + expenseId?: string | null + fileName: string + originalName: string + mimeType: string + fileSize: number + storageKey: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ReceiptUpdateWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + fileName?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + fileSize?: Prisma.IntFieldUpdateOperationsInput | number + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutReceiptsNestedInput + expense?: Prisma.ExpenseUpdateOneWithoutReceiptNestedInput +} + +export type ReceiptUncheckedUpdateWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + expenseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileName?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + fileSize?: Prisma.IntFieldUpdateOperationsInput | number + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ReceiptUncheckedUpdateManyWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + expenseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileName?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + fileSize?: Prisma.IntFieldUpdateOperationsInput | number + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ReceiptCreateManyUserInput = { + id?: string + familyId?: string | null + expenseId?: string | null + fileName: string + originalName: string + mimeType: string + fileSize: number + storageKey: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ReceiptUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + fileName?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + fileSize?: Prisma.IntFieldUpdateOperationsInput | number + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + family?: Prisma.FamilyUpdateOneWithoutReceiptsNestedInput + expense?: Prisma.ExpenseUpdateOneWithoutReceiptNestedInput +} + +export type ReceiptUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + expenseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileName?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + fileSize?: Prisma.IntFieldUpdateOperationsInput | number + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ReceiptUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + expenseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileName?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + fileSize?: Prisma.IntFieldUpdateOperationsInput | number + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type ReceiptSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + familyId?: boolean + expenseId?: boolean + fileName?: boolean + originalName?: boolean + mimeType?: boolean + fileSize?: boolean + storageKey?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Receipt$familyArgs + expense?: boolean | Prisma.Receipt$expenseArgs +}, ExtArgs["result"]["receipt"]> + +export type ReceiptSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + familyId?: boolean + expenseId?: boolean + fileName?: boolean + originalName?: boolean + mimeType?: boolean + fileSize?: boolean + storageKey?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Receipt$familyArgs + expense?: boolean | Prisma.Receipt$expenseArgs +}, ExtArgs["result"]["receipt"]> + +export type ReceiptSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + familyId?: boolean + expenseId?: boolean + fileName?: boolean + originalName?: boolean + mimeType?: boolean + fileSize?: boolean + storageKey?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Receipt$familyArgs + expense?: boolean | Prisma.Receipt$expenseArgs +}, ExtArgs["result"]["receipt"]> + +export type ReceiptSelectScalar = { + id?: boolean + userId?: boolean + familyId?: boolean + expenseId?: boolean + fileName?: boolean + originalName?: boolean + mimeType?: boolean + fileSize?: boolean + storageKey?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type ReceiptOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "familyId" | "expenseId" | "fileName" | "originalName" | "mimeType" | "fileSize" | "storageKey" | "createdAt" | "updatedAt", ExtArgs["result"]["receipt"]> +export type ReceiptInclude = { + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Receipt$familyArgs + expense?: boolean | Prisma.Receipt$expenseArgs +} +export type ReceiptIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Receipt$familyArgs + expense?: boolean | Prisma.Receipt$expenseArgs +} +export type ReceiptIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Receipt$familyArgs + expense?: boolean | Prisma.Receipt$expenseArgs +} + +export type $ReceiptPayload = { + name: "Receipt" + objects: { + user: Prisma.$UserPayload + family: Prisma.$FamilyPayload | null + expense: Prisma.$ExpensePayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + userId: string + familyId: string | null + expenseId: string | null + fileName: string + originalName: string + mimeType: string + fileSize: number + storageKey: string + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["receipt"]> + composites: {} +} + +export type ReceiptGetPayload = runtime.Types.Result.GetResult + +export type ReceiptCountArgs = + Omit & { + select?: ReceiptCountAggregateInputType | true + } + +export interface ReceiptDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Receipt'], meta: { name: 'Receipt' } } + /** + * Find zero or one Receipt that matches the filter. + * @param {ReceiptFindUniqueArgs} args - Arguments to find a Receipt + * @example + * // Get one Receipt + * const receipt = await prisma.receipt.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ReceiptClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Receipt that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ReceiptFindUniqueOrThrowArgs} args - Arguments to find a Receipt + * @example + * // Get one Receipt + * const receipt = await prisma.receipt.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ReceiptClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Receipt 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 {ReceiptFindFirstArgs} args - Arguments to find a Receipt + * @example + * // Get one Receipt + * const receipt = await prisma.receipt.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ReceiptClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Receipt 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 {ReceiptFindFirstOrThrowArgs} args - Arguments to find a Receipt + * @example + * // Get one Receipt + * const receipt = await prisma.receipt.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ReceiptClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Receipts 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 {ReceiptFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Receipts + * const receipts = await prisma.receipt.findMany() + * + * // Get first 10 Receipts + * const receipts = await prisma.receipt.findMany({ take: 10 }) + * + * // Only select the `id` + * const receiptWithIdOnly = await prisma.receipt.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Receipt. + * @param {ReceiptCreateArgs} args - Arguments to create a Receipt. + * @example + * // Create one Receipt + * const Receipt = await prisma.receipt.create({ + * data: { + * // ... data to create a Receipt + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ReceiptClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Receipts. + * @param {ReceiptCreateManyArgs} args - Arguments to create many Receipts. + * @example + * // Create many Receipts + * const receipt = await prisma.receipt.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Receipts and returns the data saved in the database. + * @param {ReceiptCreateManyAndReturnArgs} args - Arguments to create many Receipts. + * @example + * // Create many Receipts + * const receipt = await prisma.receipt.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Receipts and only return the `id` + * const receiptWithIdOnly = await prisma.receipt.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Receipt. + * @param {ReceiptDeleteArgs} args - Arguments to delete one Receipt. + * @example + * // Delete one Receipt + * const Receipt = await prisma.receipt.delete({ + * where: { + * // ... filter to delete one Receipt + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ReceiptClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Receipt. + * @param {ReceiptUpdateArgs} args - Arguments to update one Receipt. + * @example + * // Update one Receipt + * const receipt = await prisma.receipt.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ReceiptClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Receipts. + * @param {ReceiptDeleteManyArgs} args - Arguments to filter Receipts to delete. + * @example + * // Delete a few Receipts + * const { count } = await prisma.receipt.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Receipts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ReceiptUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Receipts + * const receipt = await prisma.receipt.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Receipts and returns the data updated in the database. + * @param {ReceiptUpdateManyAndReturnArgs} args - Arguments to update many Receipts. + * @example + * // Update many Receipts + * const receipt = await prisma.receipt.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Receipts and only return the `id` + * const receiptWithIdOnly = await prisma.receipt.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Receipt. + * @param {ReceiptUpsertArgs} args - Arguments to update or create a Receipt. + * @example + * // Update or create a Receipt + * const receipt = await prisma.receipt.upsert({ + * create: { + * // ... data to create a Receipt + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Receipt we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ReceiptClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Receipts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ReceiptCountArgs} args - Arguments to filter Receipts to count. + * @example + * // Count the number of Receipts + * const count = await prisma.receipt.count({ + * where: { + * // ... the filter for the Receipts we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Receipt. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ReceiptAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Receipt. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ReceiptGroupByArgs} 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 ReceiptGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ReceiptGroupByArgs['orderBy'] } + : { orderBy?: ReceiptGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetReceiptGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Receipt model + */ +readonly fields: ReceiptFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Receipt. + * 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__ReceiptClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + family = {}>(args?: Prisma.Subset>): Prisma.Prisma__FamilyClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + expense = {}>(args?: Prisma.Subset>): Prisma.Prisma__ExpenseClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the Receipt model + */ +export interface ReceiptFieldRefs { + readonly id: Prisma.FieldRef<"Receipt", 'String'> + readonly userId: Prisma.FieldRef<"Receipt", 'String'> + readonly familyId: Prisma.FieldRef<"Receipt", 'String'> + readonly expenseId: Prisma.FieldRef<"Receipt", 'String'> + readonly fileName: Prisma.FieldRef<"Receipt", 'String'> + readonly originalName: Prisma.FieldRef<"Receipt", 'String'> + readonly mimeType: Prisma.FieldRef<"Receipt", 'String'> + readonly fileSize: Prisma.FieldRef<"Receipt", 'Int'> + readonly storageKey: Prisma.FieldRef<"Receipt", 'String'> + readonly createdAt: Prisma.FieldRef<"Receipt", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Receipt", 'DateTime'> +} + + +// Custom InputTypes +/** + * Receipt findUnique + */ +export type ReceiptFindUniqueArgs = { + /** + * Select specific fields to fetch from the Receipt + */ + select?: Prisma.ReceiptSelect | null + /** + * Omit specific fields from the Receipt + */ + omit?: Prisma.ReceiptOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ReceiptInclude | null + /** + * Filter, which Receipt to fetch. + */ + where: Prisma.ReceiptWhereUniqueInput +} + +/** + * Receipt findUniqueOrThrow + */ +export type ReceiptFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Receipt + */ + select?: Prisma.ReceiptSelect | null + /** + * Omit specific fields from the Receipt + */ + omit?: Prisma.ReceiptOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ReceiptInclude | null + /** + * Filter, which Receipt to fetch. + */ + where: Prisma.ReceiptWhereUniqueInput +} + +/** + * Receipt findFirst + */ +export type ReceiptFindFirstArgs = { + /** + * Select specific fields to fetch from the Receipt + */ + select?: Prisma.ReceiptSelect | null + /** + * Omit specific fields from the Receipt + */ + omit?: Prisma.ReceiptOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ReceiptInclude | null + /** + * Filter, which Receipt to fetch. + */ + where?: Prisma.ReceiptWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Receipts to fetch. + */ + orderBy?: Prisma.ReceiptOrderByWithRelationInput | Prisma.ReceiptOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Receipts. + */ + cursor?: Prisma.ReceiptWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Receipts 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` Receipts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Receipts. + */ + distinct?: Prisma.ReceiptScalarFieldEnum | Prisma.ReceiptScalarFieldEnum[] +} + +/** + * Receipt findFirstOrThrow + */ +export type ReceiptFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Receipt + */ + select?: Prisma.ReceiptSelect | null + /** + * Omit specific fields from the Receipt + */ + omit?: Prisma.ReceiptOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ReceiptInclude | null + /** + * Filter, which Receipt to fetch. + */ + where?: Prisma.ReceiptWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Receipts to fetch. + */ + orderBy?: Prisma.ReceiptOrderByWithRelationInput | Prisma.ReceiptOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Receipts. + */ + cursor?: Prisma.ReceiptWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Receipts 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` Receipts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Receipts. + */ + distinct?: Prisma.ReceiptScalarFieldEnum | Prisma.ReceiptScalarFieldEnum[] +} + +/** + * Receipt findMany + */ +export type ReceiptFindManyArgs = { + /** + * Select specific fields to fetch from the Receipt + */ + select?: Prisma.ReceiptSelect | null + /** + * Omit specific fields from the Receipt + */ + omit?: Prisma.ReceiptOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ReceiptInclude | null + /** + * Filter, which Receipts to fetch. + */ + where?: Prisma.ReceiptWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Receipts to fetch. + */ + orderBy?: Prisma.ReceiptOrderByWithRelationInput | Prisma.ReceiptOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Receipts. + */ + cursor?: Prisma.ReceiptWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Receipts 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` Receipts. + */ + skip?: number + distinct?: Prisma.ReceiptScalarFieldEnum | Prisma.ReceiptScalarFieldEnum[] +} + +/** + * Receipt create + */ +export type ReceiptCreateArgs = { + /** + * Select specific fields to fetch from the Receipt + */ + select?: Prisma.ReceiptSelect | null + /** + * Omit specific fields from the Receipt + */ + omit?: Prisma.ReceiptOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ReceiptInclude | null + /** + * The data needed to create a Receipt. + */ + data: Prisma.XOR +} + +/** + * Receipt createMany + */ +export type ReceiptCreateManyArgs = { + /** + * The data used to create many Receipts. + */ + data: Prisma.ReceiptCreateManyInput | Prisma.ReceiptCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Receipt createManyAndReturn + */ +export type ReceiptCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Receipt + */ + select?: Prisma.ReceiptSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Receipt + */ + omit?: Prisma.ReceiptOmit | null + /** + * The data used to create many Receipts. + */ + data: Prisma.ReceiptCreateManyInput | Prisma.ReceiptCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ReceiptIncludeCreateManyAndReturn | null +} + +/** + * Receipt update + */ +export type ReceiptUpdateArgs = { + /** + * Select specific fields to fetch from the Receipt + */ + select?: Prisma.ReceiptSelect | null + /** + * Omit specific fields from the Receipt + */ + omit?: Prisma.ReceiptOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ReceiptInclude | null + /** + * The data needed to update a Receipt. + */ + data: Prisma.XOR + /** + * Choose, which Receipt to update. + */ + where: Prisma.ReceiptWhereUniqueInput +} + +/** + * Receipt updateMany + */ +export type ReceiptUpdateManyArgs = { + /** + * The data used to update Receipts. + */ + data: Prisma.XOR + /** + * Filter which Receipts to update + */ + where?: Prisma.ReceiptWhereInput + /** + * Limit how many Receipts to update. + */ + limit?: number +} + +/** + * Receipt updateManyAndReturn + */ +export type ReceiptUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Receipt + */ + select?: Prisma.ReceiptSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Receipt + */ + omit?: Prisma.ReceiptOmit | null + /** + * The data used to update Receipts. + */ + data: Prisma.XOR + /** + * Filter which Receipts to update + */ + where?: Prisma.ReceiptWhereInput + /** + * Limit how many Receipts to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ReceiptIncludeUpdateManyAndReturn | null +} + +/** + * Receipt upsert + */ +export type ReceiptUpsertArgs = { + /** + * Select specific fields to fetch from the Receipt + */ + select?: Prisma.ReceiptSelect | null + /** + * Omit specific fields from the Receipt + */ + omit?: Prisma.ReceiptOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ReceiptInclude | null + /** + * The filter to search for the Receipt to update in case it exists. + */ + where: Prisma.ReceiptWhereUniqueInput + /** + * In case the Receipt found by the `where` argument doesn't exist, create a new Receipt with this data. + */ + create: Prisma.XOR + /** + * In case the Receipt was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Receipt delete + */ +export type ReceiptDeleteArgs = { + /** + * Select specific fields to fetch from the Receipt + */ + select?: Prisma.ReceiptSelect | null + /** + * Omit specific fields from the Receipt + */ + omit?: Prisma.ReceiptOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ReceiptInclude | null + /** + * Filter which Receipt to delete. + */ + where: Prisma.ReceiptWhereUniqueInput +} + +/** + * Receipt deleteMany + */ +export type ReceiptDeleteManyArgs = { + /** + * Filter which Receipts to delete + */ + where?: Prisma.ReceiptWhereInput + /** + * Limit how many Receipts to delete. + */ + limit?: number +} + +/** + * Receipt.family + */ +export type Receipt$familyArgs = { + /** + * Select specific fields to fetch from the Family + */ + select?: Prisma.FamilySelect | null + /** + * Omit specific fields from the Family + */ + omit?: Prisma.FamilyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInclude | null + where?: Prisma.FamilyWhereInput +} + +/** + * Receipt.expense + */ +export type Receipt$expenseArgs = { + /** + * Select specific fields to fetch from the Expense + */ + select?: Prisma.ExpenseSelect | null + /** + * Omit specific fields from the Expense + */ + omit?: Prisma.ExpenseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseInclude | null + where?: Prisma.ExpenseWhereInput +} + +/** + * Receipt without action + */ +export type ReceiptDefaultArgs = { + /** + * Select specific fields to fetch from the Receipt + */ + select?: Prisma.ReceiptSelect | null + /** + * Omit specific fields from the Receipt + */ + omit?: Prisma.ReceiptOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ReceiptInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/Session.ts b/apps/backend/prisma/generated/generated/prisma/models/Session.ts new file mode 100644 index 00000000..462907ec --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/Session.ts @@ -0,0 +1,1445 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Session` 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 Session + * + */ +export type SessionModel = runtime.Types.Result.DefaultSelection + +export type AggregateSession = { + _count: SessionCountAggregateOutputType | null + _min: SessionMinAggregateOutputType | null + _max: SessionMaxAggregateOutputType | null +} + +export type SessionMinAggregateOutputType = { + id: string | null + userId: string | null + expiresAt: Date | null + token: string | null + ipAddress: string | null + userAgent: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type SessionMaxAggregateOutputType = { + id: string | null + userId: string | null + expiresAt: Date | null + token: string | null + ipAddress: string | null + userAgent: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type SessionCountAggregateOutputType = { + id: number + userId: number + expiresAt: number + token: number + ipAddress: number + userAgent: number + createdAt: number + updatedAt: number + _all: number +} + + +export type SessionMinAggregateInputType = { + id?: true + userId?: true + expiresAt?: true + token?: true + ipAddress?: true + userAgent?: true + createdAt?: true + updatedAt?: true +} + +export type SessionMaxAggregateInputType = { + id?: true + userId?: true + expiresAt?: true + token?: true + ipAddress?: true + userAgent?: true + createdAt?: true + updatedAt?: true +} + +export type SessionCountAggregateInputType = { + id?: true + userId?: true + expiresAt?: true + token?: true + ipAddress?: true + userAgent?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type SessionAggregateArgs = { + /** + * Filter which Session to aggregate. + */ + where?: Prisma.SessionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sessions to fetch. + */ + orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.SessionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Sessions 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` Sessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Sessions + **/ + _count?: true | SessionCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: SessionMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: SessionMaxAggregateInputType +} + +export type GetSessionAggregateType = { + [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type SessionGroupByArgs = { + where?: Prisma.SessionWhereInput + orderBy?: Prisma.SessionOrderByWithAggregationInput | Prisma.SessionOrderByWithAggregationInput[] + by: Prisma.SessionScalarFieldEnum[] | Prisma.SessionScalarFieldEnum + having?: Prisma.SessionScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: SessionCountAggregateInputType | true + _min?: SessionMinAggregateInputType + _max?: SessionMaxAggregateInputType +} + +export type SessionGroupByOutputType = { + id: string + userId: string + expiresAt: Date + token: string + ipAddress: string | null + userAgent: string | null + createdAt: Date + updatedAt: Date + _count: SessionCountAggregateOutputType | null + _min: SessionMinAggregateOutputType | null + _max: SessionMaxAggregateOutputType | null +} + +type GetSessionGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type SessionWhereInput = { + AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] + OR?: Prisma.SessionWhereInput[] + NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] + id?: Prisma.StringFilter<"Session"> | string + userId?: Prisma.StringFilter<"Session"> | string + expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string + token?: Prisma.StringFilter<"Session"> | string + ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null + userAgent?: Prisma.StringNullableFilter<"Session"> | string | null + createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Session"> | Date | string + user?: Prisma.XOR +} + +export type SessionOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + token?: Prisma.SortOrder + ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder + userAgent?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput +} + +export type SessionWhereUniqueInput = Prisma.AtLeast<{ + id?: string + token?: string + AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] + OR?: Prisma.SessionWhereInput[] + NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] + userId?: Prisma.StringFilter<"Session"> | string + expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string + ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null + userAgent?: Prisma.StringNullableFilter<"Session"> | string | null + createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Session"> | Date | string + user?: Prisma.XOR +}, "id" | "token"> + +export type SessionOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + token?: Prisma.SortOrder + ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder + userAgent?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.SessionCountOrderByAggregateInput + _max?: Prisma.SessionMaxOrderByAggregateInput + _min?: Prisma.SessionMinOrderByAggregateInput +} + +export type SessionScalarWhereWithAggregatesInput = { + AND?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[] + OR?: Prisma.SessionScalarWhereWithAggregatesInput[] + NOT?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Session"> | string + userId?: Prisma.StringWithAggregatesFilter<"Session"> | string + expiresAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string + token?: Prisma.StringWithAggregatesFilter<"Session"> | string + ipAddress?: Prisma.StringNullableWithAggregatesFilter<"Session"> | string | null + userAgent?: Prisma.StringNullableWithAggregatesFilter<"Session"> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string +} + +export type SessionCreateInput = { + id?: string + expiresAt: Date | string + token: string + ipAddress?: string | null + userAgent?: string | null + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutSessionsInput +} + +export type SessionUncheckedCreateInput = { + id?: string + userId: string + expiresAt: Date | string + token: string + ipAddress?: string | null + userAgent?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type SessionUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutSessionsNestedInput +} + +export type SessionUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SessionCreateManyInput = { + id?: string + userId: string + expiresAt: Date | string + token: string + ipAddress?: string | null + userAgent?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type SessionUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SessionUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SessionCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + token?: Prisma.SortOrder + ipAddress?: Prisma.SortOrder + userAgent?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type SessionMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + token?: Prisma.SortOrder + ipAddress?: Prisma.SortOrder + userAgent?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type SessionMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + token?: Prisma.SortOrder + ipAddress?: Prisma.SortOrder + userAgent?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type SessionListRelationFilter = { + every?: Prisma.SessionWhereInput + some?: Prisma.SessionWhereInput + none?: Prisma.SessionWhereInput +} + +export type SessionOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type SessionCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] + createMany?: Prisma.SessionCreateManyUserInputEnvelope + connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] +} + +export type SessionUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] + createMany?: Prisma.SessionCreateManyUserInputEnvelope + connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] +} + +export type SessionUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] + upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.SessionCreateManyUserInputEnvelope + set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] +} + +export type SessionUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] + upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.SessionCreateManyUserInputEnvelope + set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] +} + +export type SessionCreateWithoutUserInput = { + id?: string + expiresAt: Date | string + token: string + ipAddress?: string | null + userAgent?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type SessionUncheckedCreateWithoutUserInput = { + id?: string + expiresAt: Date | string + token: string + ipAddress?: string | null + userAgent?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type SessionCreateOrConnectWithoutUserInput = { + where: Prisma.SessionWhereUniqueInput + create: Prisma.XOR +} + +export type SessionCreateManyUserInputEnvelope = { + data: Prisma.SessionCreateManyUserInput | Prisma.SessionCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type SessionUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.SessionWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type SessionUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.SessionWhereUniqueInput + data: Prisma.XOR +} + +export type SessionUpdateManyWithWhereWithoutUserInput = { + where: Prisma.SessionScalarWhereInput + data: Prisma.XOR +} + +export type SessionScalarWhereInput = { + AND?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] + OR?: Prisma.SessionScalarWhereInput[] + NOT?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] + id?: Prisma.StringFilter<"Session"> | string + userId?: Prisma.StringFilter<"Session"> | string + expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string + token?: Prisma.StringFilter<"Session"> | string + ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null + userAgent?: Prisma.StringNullableFilter<"Session"> | string | null + createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Session"> | Date | string +} + +export type SessionCreateManyUserInput = { + id?: string + expiresAt: Date | string + token: string + ipAddress?: string | null + userAgent?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type SessionUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SessionUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SessionUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type SessionSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + expiresAt?: boolean + token?: boolean + ipAddress?: boolean + userAgent?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["session"]> + +export type SessionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + expiresAt?: boolean + token?: boolean + ipAddress?: boolean + userAgent?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["session"]> + +export type SessionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + expiresAt?: boolean + token?: boolean + ipAddress?: boolean + userAgent?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["session"]> + +export type SessionSelectScalar = { + id?: boolean + userId?: boolean + expiresAt?: boolean + token?: boolean + ipAddress?: boolean + userAgent?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type SessionOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "expiresAt" | "token" | "ipAddress" | "userAgent" | "createdAt" | "updatedAt", ExtArgs["result"]["session"]> +export type SessionInclude = { + user?: boolean | Prisma.UserDefaultArgs +} +export type SessionIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs +} +export type SessionIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs +} + +export type $SessionPayload = { + name: "Session" + objects: { + user: Prisma.$UserPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + userId: string + expiresAt: Date + token: string + ipAddress: string | null + userAgent: string | null + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["session"]> + composites: {} +} + +export type SessionGetPayload = runtime.Types.Result.GetResult + +export type SessionCountArgs = + Omit & { + select?: SessionCountAggregateInputType | true + } + +export interface SessionDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Session'], meta: { name: 'Session' } } + /** + * Find zero or one Session that matches the filter. + * @param {SessionFindUniqueArgs} args - Arguments to find a Session + * @example + * // Get one Session + * const session = await prisma.session.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Session that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session + * @example + * // Get one Session + * const session = await prisma.session.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Session 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 {SessionFindFirstArgs} args - Arguments to find a Session + * @example + * // Get one Session + * const session = await prisma.session.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Session 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 {SessionFindFirstOrThrowArgs} args - Arguments to find a Session + * @example + * // Get one Session + * const session = await prisma.session.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Sessions 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 {SessionFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Sessions + * const sessions = await prisma.session.findMany() + * + * // Get first 10 Sessions + * const sessions = await prisma.session.findMany({ take: 10 }) + * + * // Only select the `id` + * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Session. + * @param {SessionCreateArgs} args - Arguments to create a Session. + * @example + * // Create one Session + * const Session = await prisma.session.create({ + * data: { + * // ... data to create a Session + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Sessions. + * @param {SessionCreateManyArgs} args - Arguments to create many Sessions. + * @example + * // Create many Sessions + * const session = await prisma.session.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Sessions and returns the data saved in the database. + * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions. + * @example + * // Create many Sessions + * const session = await prisma.session.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Sessions and only return the `id` + * const sessionWithIdOnly = await prisma.session.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Session. + * @param {SessionDeleteArgs} args - Arguments to delete one Session. + * @example + * // Delete one Session + * const Session = await prisma.session.delete({ + * where: { + * // ... filter to delete one Session + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Session. + * @param {SessionUpdateArgs} args - Arguments to update one Session. + * @example + * // Update one Session + * const session = await prisma.session.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Sessions. + * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete. + * @example + * // Delete a few Sessions + * const { count } = await prisma.session.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Sessions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Sessions + * const session = await prisma.session.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Sessions and returns the data updated in the database. + * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions. + * @example + * // Update many Sessions + * const session = await prisma.session.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Sessions and only return the `id` + * const sessionWithIdOnly = await prisma.session.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Session. + * @param {SessionUpsertArgs} args - Arguments to update or create a Session. + * @example + * // Update or create a Session + * const session = await prisma.session.upsert({ + * create: { + * // ... data to create a Session + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Session we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Sessions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionCountArgs} args - Arguments to filter Sessions to count. + * @example + * // Count the number of Sessions + * const count = await prisma.session.count({ + * where: { + * // ... the filter for the Sessions we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Session. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Session. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionGroupByArgs} 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 SessionGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: SessionGroupByArgs['orderBy'] } + : { orderBy?: SessionGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Session model + */ +readonly fields: SessionFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Session. + * 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__SessionClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the Session model + */ +export interface SessionFieldRefs { + readonly id: Prisma.FieldRef<"Session", 'String'> + readonly userId: Prisma.FieldRef<"Session", 'String'> + readonly expiresAt: Prisma.FieldRef<"Session", 'DateTime'> + readonly token: Prisma.FieldRef<"Session", 'String'> + readonly ipAddress: Prisma.FieldRef<"Session", 'String'> + readonly userAgent: Prisma.FieldRef<"Session", 'String'> + readonly createdAt: Prisma.FieldRef<"Session", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Session", 'DateTime'> +} + + +// Custom InputTypes +/** + * Session findUnique + */ +export type SessionFindUniqueArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter, which Session to fetch. + */ + where: Prisma.SessionWhereUniqueInput +} + +/** + * Session findUniqueOrThrow + */ +export type SessionFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter, which Session to fetch. + */ + where: Prisma.SessionWhereUniqueInput +} + +/** + * Session findFirst + */ +export type SessionFindFirstArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter, which Session to fetch. + */ + where?: Prisma.SessionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sessions to fetch. + */ + orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Sessions. + */ + cursor?: Prisma.SessionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Sessions 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` Sessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Sessions. + */ + distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] +} + +/** + * Session findFirstOrThrow + */ +export type SessionFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter, which Session to fetch. + */ + where?: Prisma.SessionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sessions to fetch. + */ + orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Sessions. + */ + cursor?: Prisma.SessionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Sessions 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` Sessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Sessions. + */ + distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] +} + +/** + * Session findMany + */ +export type SessionFindManyArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter, which Sessions to fetch. + */ + where?: Prisma.SessionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sessions to fetch. + */ + orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Sessions. + */ + cursor?: Prisma.SessionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Sessions 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` Sessions. + */ + skip?: number + distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] +} + +/** + * Session create + */ +export type SessionCreateArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * The data needed to create a Session. + */ + data: Prisma.XOR +} + +/** + * Session createMany + */ +export type SessionCreateManyArgs = { + /** + * The data used to create many Sessions. + */ + data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Session createManyAndReturn + */ +export type SessionCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * The data used to create many Sessions. + */ + data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionIncludeCreateManyAndReturn | null +} + +/** + * Session update + */ +export type SessionUpdateArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * The data needed to update a Session. + */ + data: Prisma.XOR + /** + * Choose, which Session to update. + */ + where: Prisma.SessionWhereUniqueInput +} + +/** + * Session updateMany + */ +export type SessionUpdateManyArgs = { + /** + * The data used to update Sessions. + */ + data: Prisma.XOR + /** + * Filter which Sessions to update + */ + where?: Prisma.SessionWhereInput + /** + * Limit how many Sessions to update. + */ + limit?: number +} + +/** + * Session updateManyAndReturn + */ +export type SessionUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * The data used to update Sessions. + */ + data: Prisma.XOR + /** + * Filter which Sessions to update + */ + where?: Prisma.SessionWhereInput + /** + * Limit how many Sessions to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionIncludeUpdateManyAndReturn | null +} + +/** + * Session upsert + */ +export type SessionUpsertArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * The filter to search for the Session to update in case it exists. + */ + where: Prisma.SessionWhereUniqueInput + /** + * In case the Session found by the `where` argument doesn't exist, create a new Session with this data. + */ + create: Prisma.XOR + /** + * In case the Session was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Session delete + */ +export type SessionDeleteArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter which Session to delete. + */ + where: Prisma.SessionWhereUniqueInput +} + +/** + * Session deleteMany + */ +export type SessionDeleteManyArgs = { + /** + * Filter which Sessions to delete + */ + where?: Prisma.SessionWhereInput + /** + * Limit how many Sessions to delete. + */ + limit?: number +} + +/** + * Session without action + */ +export type SessionDefaultArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/Store.ts b/apps/backend/prisma/generated/generated/prisma/models/Store.ts new file mode 100644 index 00000000..ff547147 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/Store.ts @@ -0,0 +1,1565 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Store` 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 Store + * + */ +export type StoreModel = runtime.Types.Result.DefaultSelection + +export type AggregateStore = { + _count: StoreCountAggregateOutputType | null + _min: StoreMinAggregateOutputType | null + _max: StoreMaxAggregateOutputType | null +} + +export type StoreMinAggregateOutputType = { + id: string | null + name: string | null + location: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type StoreMaxAggregateOutputType = { + id: string | null + name: string | null + location: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type StoreCountAggregateOutputType = { + id: number + name: number + location: number + createdAt: number + updatedAt: number + _all: number +} + + +export type StoreMinAggregateInputType = { + id?: true + name?: true + location?: true + createdAt?: true + updatedAt?: true +} + +export type StoreMaxAggregateInputType = { + id?: true + name?: true + location?: true + createdAt?: true + updatedAt?: true +} + +export type StoreCountAggregateInputType = { + id?: true + name?: true + location?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type StoreAggregateArgs = { + /** + * Filter which Store to aggregate. + */ + where?: Prisma.StoreWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Stores to fetch. + */ + orderBy?: Prisma.StoreOrderByWithRelationInput | Prisma.StoreOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.StoreWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Stores 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` Stores. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Stores + **/ + _count?: true | StoreCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: StoreMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: StoreMaxAggregateInputType +} + +export type GetStoreAggregateType = { + [P in keyof T & keyof AggregateStore]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type StoreGroupByArgs = { + where?: Prisma.StoreWhereInput + orderBy?: Prisma.StoreOrderByWithAggregationInput | Prisma.StoreOrderByWithAggregationInput[] + by: Prisma.StoreScalarFieldEnum[] | Prisma.StoreScalarFieldEnum + having?: Prisma.StoreScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: StoreCountAggregateInputType | true + _min?: StoreMinAggregateInputType + _max?: StoreMaxAggregateInputType +} + +export type StoreGroupByOutputType = { + id: string + name: string + location: string + createdAt: Date + updatedAt: Date + _count: StoreCountAggregateOutputType | null + _min: StoreMinAggregateOutputType | null + _max: StoreMaxAggregateOutputType | null +} + +type GetStoreGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof StoreGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type StoreWhereInput = { + AND?: Prisma.StoreWhereInput | Prisma.StoreWhereInput[] + OR?: Prisma.StoreWhereInput[] + NOT?: Prisma.StoreWhereInput | Prisma.StoreWhereInput[] + id?: Prisma.StringFilter<"Store"> | string + name?: Prisma.StringFilter<"Store"> | string + location?: Prisma.StringFilter<"Store"> | string + createdAt?: Prisma.DateTimeFilter<"Store"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Store"> | Date | string + items?: Prisma.StoreItemListRelationFilter + expenses?: Prisma.ExpenseListRelationFilter + users?: Prisma.UserStoreListRelationFilter +} + +export type StoreOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + location?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + items?: Prisma.StoreItemOrderByRelationAggregateInput + expenses?: Prisma.ExpenseOrderByRelationAggregateInput + users?: Prisma.UserStoreOrderByRelationAggregateInput +} + +export type StoreWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.StoreWhereInput | Prisma.StoreWhereInput[] + OR?: Prisma.StoreWhereInput[] + NOT?: Prisma.StoreWhereInput | Prisma.StoreWhereInput[] + name?: Prisma.StringFilter<"Store"> | string + location?: Prisma.StringFilter<"Store"> | string + createdAt?: Prisma.DateTimeFilter<"Store"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Store"> | Date | string + items?: Prisma.StoreItemListRelationFilter + expenses?: Prisma.ExpenseListRelationFilter + users?: Prisma.UserStoreListRelationFilter +}, "id"> + +export type StoreOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + location?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.StoreCountOrderByAggregateInput + _max?: Prisma.StoreMaxOrderByAggregateInput + _min?: Prisma.StoreMinOrderByAggregateInput +} + +export type StoreScalarWhereWithAggregatesInput = { + AND?: Prisma.StoreScalarWhereWithAggregatesInput | Prisma.StoreScalarWhereWithAggregatesInput[] + OR?: Prisma.StoreScalarWhereWithAggregatesInput[] + NOT?: Prisma.StoreScalarWhereWithAggregatesInput | Prisma.StoreScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Store"> | string + name?: Prisma.StringWithAggregatesFilter<"Store"> | string + location?: Prisma.StringWithAggregatesFilter<"Store"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Store"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Store"> | Date | string +} + +export type StoreCreateInput = { + id?: string + name: string + location: string + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.StoreItemCreateNestedManyWithoutStoreInput + expenses?: Prisma.ExpenseCreateNestedManyWithoutStoreInput + users?: Prisma.UserStoreCreateNestedManyWithoutStoreInput +} + +export type StoreUncheckedCreateInput = { + id?: string + name: string + location: string + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.StoreItemUncheckedCreateNestedManyWithoutStoreInput + expenses?: Prisma.ExpenseUncheckedCreateNestedManyWithoutStoreInput + users?: Prisma.UserStoreUncheckedCreateNestedManyWithoutStoreInput +} + +export type StoreUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + location?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.StoreItemUpdateManyWithoutStoreNestedInput + expenses?: Prisma.ExpenseUpdateManyWithoutStoreNestedInput + users?: Prisma.UserStoreUpdateManyWithoutStoreNestedInput +} + +export type StoreUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + location?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.StoreItemUncheckedUpdateManyWithoutStoreNestedInput + expenses?: Prisma.ExpenseUncheckedUpdateManyWithoutStoreNestedInput + users?: Prisma.UserStoreUncheckedUpdateManyWithoutStoreNestedInput +} + +export type StoreCreateManyInput = { + id?: string + name: string + location: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type StoreUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + location?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type StoreUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + location?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type StoreNullableScalarRelationFilter = { + is?: Prisma.StoreWhereInput | null + isNot?: Prisma.StoreWhereInput | null +} + +export type StoreCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + location?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type StoreMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + location?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type StoreMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + location?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type StoreScalarRelationFilter = { + is?: Prisma.StoreWhereInput + isNot?: Prisma.StoreWhereInput +} + +export type StoreCreateNestedOneWithoutExpensesInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.StoreCreateOrConnectWithoutExpensesInput + connect?: Prisma.StoreWhereUniqueInput +} + +export type StoreUpdateOneWithoutExpensesNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.StoreCreateOrConnectWithoutExpensesInput + upsert?: Prisma.StoreUpsertWithoutExpensesInput + disconnect?: Prisma.StoreWhereInput | boolean + delete?: Prisma.StoreWhereInput | boolean + connect?: Prisma.StoreWhereUniqueInput + update?: Prisma.XOR, Prisma.StoreUncheckedUpdateWithoutExpensesInput> +} + +export type StoreCreateNestedOneWithoutItemsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.StoreCreateOrConnectWithoutItemsInput + connect?: Prisma.StoreWhereUniqueInput +} + +export type StoreUpdateOneRequiredWithoutItemsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.StoreCreateOrConnectWithoutItemsInput + upsert?: Prisma.StoreUpsertWithoutItemsInput + connect?: Prisma.StoreWhereUniqueInput + update?: Prisma.XOR, Prisma.StoreUncheckedUpdateWithoutItemsInput> +} + +export type StoreCreateNestedOneWithoutUsersInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.StoreCreateOrConnectWithoutUsersInput + connect?: Prisma.StoreWhereUniqueInput +} + +export type StoreUpdateOneRequiredWithoutUsersNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.StoreCreateOrConnectWithoutUsersInput + upsert?: Prisma.StoreUpsertWithoutUsersInput + connect?: Prisma.StoreWhereUniqueInput + update?: Prisma.XOR, Prisma.StoreUncheckedUpdateWithoutUsersInput> +} + +export type StoreCreateWithoutExpensesInput = { + id?: string + name: string + location: string + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.StoreItemCreateNestedManyWithoutStoreInput + users?: Prisma.UserStoreCreateNestedManyWithoutStoreInput +} + +export type StoreUncheckedCreateWithoutExpensesInput = { + id?: string + name: string + location: string + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.StoreItemUncheckedCreateNestedManyWithoutStoreInput + users?: Prisma.UserStoreUncheckedCreateNestedManyWithoutStoreInput +} + +export type StoreCreateOrConnectWithoutExpensesInput = { + where: Prisma.StoreWhereUniqueInput + create: Prisma.XOR +} + +export type StoreUpsertWithoutExpensesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.StoreWhereInput +} + +export type StoreUpdateToOneWithWhereWithoutExpensesInput = { + where?: Prisma.StoreWhereInput + data: Prisma.XOR +} + +export type StoreUpdateWithoutExpensesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + location?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.StoreItemUpdateManyWithoutStoreNestedInput + users?: Prisma.UserStoreUpdateManyWithoutStoreNestedInput +} + +export type StoreUncheckedUpdateWithoutExpensesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + location?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.StoreItemUncheckedUpdateManyWithoutStoreNestedInput + users?: Prisma.UserStoreUncheckedUpdateManyWithoutStoreNestedInput +} + +export type StoreCreateWithoutItemsInput = { + id?: string + name: string + location: string + createdAt?: Date | string + updatedAt?: Date | string + expenses?: Prisma.ExpenseCreateNestedManyWithoutStoreInput + users?: Prisma.UserStoreCreateNestedManyWithoutStoreInput +} + +export type StoreUncheckedCreateWithoutItemsInput = { + id?: string + name: string + location: string + createdAt?: Date | string + updatedAt?: Date | string + expenses?: Prisma.ExpenseUncheckedCreateNestedManyWithoutStoreInput + users?: Prisma.UserStoreUncheckedCreateNestedManyWithoutStoreInput +} + +export type StoreCreateOrConnectWithoutItemsInput = { + where: Prisma.StoreWhereUniqueInput + create: Prisma.XOR +} + +export type StoreUpsertWithoutItemsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.StoreWhereInput +} + +export type StoreUpdateToOneWithWhereWithoutItemsInput = { + where?: Prisma.StoreWhereInput + data: Prisma.XOR +} + +export type StoreUpdateWithoutItemsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + location?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expenses?: Prisma.ExpenseUpdateManyWithoutStoreNestedInput + users?: Prisma.UserStoreUpdateManyWithoutStoreNestedInput +} + +export type StoreUncheckedUpdateWithoutItemsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + location?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expenses?: Prisma.ExpenseUncheckedUpdateManyWithoutStoreNestedInput + users?: Prisma.UserStoreUncheckedUpdateManyWithoutStoreNestedInput +} + +export type StoreCreateWithoutUsersInput = { + id?: string + name: string + location: string + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.StoreItemCreateNestedManyWithoutStoreInput + expenses?: Prisma.ExpenseCreateNestedManyWithoutStoreInput +} + +export type StoreUncheckedCreateWithoutUsersInput = { + id?: string + name: string + location: string + createdAt?: Date | string + updatedAt?: Date | string + items?: Prisma.StoreItemUncheckedCreateNestedManyWithoutStoreInput + expenses?: Prisma.ExpenseUncheckedCreateNestedManyWithoutStoreInput +} + +export type StoreCreateOrConnectWithoutUsersInput = { + where: Prisma.StoreWhereUniqueInput + create: Prisma.XOR +} + +export type StoreUpsertWithoutUsersInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.StoreWhereInput +} + +export type StoreUpdateToOneWithWhereWithoutUsersInput = { + where?: Prisma.StoreWhereInput + data: Prisma.XOR +} + +export type StoreUpdateWithoutUsersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + location?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.StoreItemUpdateManyWithoutStoreNestedInput + expenses?: Prisma.ExpenseUpdateManyWithoutStoreNestedInput +} + +export type StoreUncheckedUpdateWithoutUsersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + location?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + items?: Prisma.StoreItemUncheckedUpdateManyWithoutStoreNestedInput + expenses?: Prisma.ExpenseUncheckedUpdateManyWithoutStoreNestedInput +} + + +/** + * Count Type StoreCountOutputType + */ + +export type StoreCountOutputType = { + items: number + expenses: number + users: number +} + +export type StoreCountOutputTypeSelect = { + items?: boolean | StoreCountOutputTypeCountItemsArgs + expenses?: boolean | StoreCountOutputTypeCountExpensesArgs + users?: boolean | StoreCountOutputTypeCountUsersArgs +} + +/** + * StoreCountOutputType without action + */ +export type StoreCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the StoreCountOutputType + */ + select?: Prisma.StoreCountOutputTypeSelect | null +} + +/** + * StoreCountOutputType without action + */ +export type StoreCountOutputTypeCountItemsArgs = { + where?: Prisma.StoreItemWhereInput +} + +/** + * StoreCountOutputType without action + */ +export type StoreCountOutputTypeCountExpensesArgs = { + where?: Prisma.ExpenseWhereInput +} + +/** + * StoreCountOutputType without action + */ +export type StoreCountOutputTypeCountUsersArgs = { + where?: Prisma.UserStoreWhereInput +} + + +export type StoreSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + location?: boolean + createdAt?: boolean + updatedAt?: boolean + items?: boolean | Prisma.Store$itemsArgs + expenses?: boolean | Prisma.Store$expensesArgs + users?: boolean | Prisma.Store$usersArgs + _count?: boolean | Prisma.StoreCountOutputTypeDefaultArgs +}, ExtArgs["result"]["store"]> + +export type StoreSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + location?: boolean + createdAt?: boolean + updatedAt?: boolean +}, ExtArgs["result"]["store"]> + +export type StoreSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + location?: boolean + createdAt?: boolean + updatedAt?: boolean +}, ExtArgs["result"]["store"]> + +export type StoreSelectScalar = { + id?: boolean + name?: boolean + location?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type StoreOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "location" | "createdAt" | "updatedAt", ExtArgs["result"]["store"]> +export type StoreInclude = { + items?: boolean | Prisma.Store$itemsArgs + expenses?: boolean | Prisma.Store$expensesArgs + users?: boolean | Prisma.Store$usersArgs + _count?: boolean | Prisma.StoreCountOutputTypeDefaultArgs +} +export type StoreIncludeCreateManyAndReturn = {} +export type StoreIncludeUpdateManyAndReturn = {} + +export type $StorePayload = { + name: "Store" + objects: { + items: Prisma.$StoreItemPayload[] + expenses: Prisma.$ExpensePayload[] + users: Prisma.$UserStorePayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + name: string + location: string + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["store"]> + composites: {} +} + +export type StoreGetPayload = runtime.Types.Result.GetResult + +export type StoreCountArgs = + Omit & { + select?: StoreCountAggregateInputType | true + } + +export interface StoreDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Store'], meta: { name: 'Store' } } + /** + * Find zero or one Store that matches the filter. + * @param {StoreFindUniqueArgs} args - Arguments to find a Store + * @example + * // Get one Store + * const store = await prisma.store.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__StoreClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Store that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {StoreFindUniqueOrThrowArgs} args - Arguments to find a Store + * @example + * // Get one Store + * const store = await prisma.store.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__StoreClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Store 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 {StoreFindFirstArgs} args - Arguments to find a Store + * @example + * // Get one Store + * const store = await prisma.store.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__StoreClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Store 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 {StoreFindFirstOrThrowArgs} args - Arguments to find a Store + * @example + * // Get one Store + * const store = await prisma.store.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__StoreClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Stores 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 {StoreFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Stores + * const stores = await prisma.store.findMany() + * + * // Get first 10 Stores + * const stores = await prisma.store.findMany({ take: 10 }) + * + * // Only select the `id` + * const storeWithIdOnly = await prisma.store.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Store. + * @param {StoreCreateArgs} args - Arguments to create a Store. + * @example + * // Create one Store + * const Store = await prisma.store.create({ + * data: { + * // ... data to create a Store + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__StoreClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Stores. + * @param {StoreCreateManyArgs} args - Arguments to create many Stores. + * @example + * // Create many Stores + * const store = await prisma.store.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Stores and returns the data saved in the database. + * @param {StoreCreateManyAndReturnArgs} args - Arguments to create many Stores. + * @example + * // Create many Stores + * const store = await prisma.store.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Stores and only return the `id` + * const storeWithIdOnly = await prisma.store.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Store. + * @param {StoreDeleteArgs} args - Arguments to delete one Store. + * @example + * // Delete one Store + * const Store = await prisma.store.delete({ + * where: { + * // ... filter to delete one Store + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__StoreClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Store. + * @param {StoreUpdateArgs} args - Arguments to update one Store. + * @example + * // Update one Store + * const store = await prisma.store.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__StoreClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Stores. + * @param {StoreDeleteManyArgs} args - Arguments to filter Stores to delete. + * @example + * // Delete a few Stores + * const { count } = await prisma.store.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Stores. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StoreUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Stores + * const store = await prisma.store.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Stores and returns the data updated in the database. + * @param {StoreUpdateManyAndReturnArgs} args - Arguments to update many Stores. + * @example + * // Update many Stores + * const store = await prisma.store.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Stores and only return the `id` + * const storeWithIdOnly = await prisma.store.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Store. + * @param {StoreUpsertArgs} args - Arguments to update or create a Store. + * @example + * // Update or create a Store + * const store = await prisma.store.upsert({ + * create: { + * // ... data to create a Store + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Store we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__StoreClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Stores. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StoreCountArgs} args - Arguments to filter Stores to count. + * @example + * // Count the number of Stores + * const count = await prisma.store.count({ + * where: { + * // ... the filter for the Stores we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Store. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StoreAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Store. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StoreGroupByArgs} 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 StoreGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: StoreGroupByArgs['orderBy'] } + : { orderBy?: StoreGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetStoreGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Store model + */ +readonly fields: StoreFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Store. + * 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__StoreClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + items = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + expenses = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + users = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + /** + * 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the Store model + */ +export interface StoreFieldRefs { + readonly id: Prisma.FieldRef<"Store", 'String'> + readonly name: Prisma.FieldRef<"Store", 'String'> + readonly location: Prisma.FieldRef<"Store", 'String'> + readonly createdAt: Prisma.FieldRef<"Store", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Store", 'DateTime'> +} + + +// Custom InputTypes +/** + * Store findUnique + */ +export type StoreFindUniqueArgs = { + /** + * Select specific fields to fetch from the Store + */ + select?: Prisma.StoreSelect | null + /** + * Omit specific fields from the Store + */ + omit?: Prisma.StoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreInclude | null + /** + * Filter, which Store to fetch. + */ + where: Prisma.StoreWhereUniqueInput +} + +/** + * Store findUniqueOrThrow + */ +export type StoreFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Store + */ + select?: Prisma.StoreSelect | null + /** + * Omit specific fields from the Store + */ + omit?: Prisma.StoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreInclude | null + /** + * Filter, which Store to fetch. + */ + where: Prisma.StoreWhereUniqueInput +} + +/** + * Store findFirst + */ +export type StoreFindFirstArgs = { + /** + * Select specific fields to fetch from the Store + */ + select?: Prisma.StoreSelect | null + /** + * Omit specific fields from the Store + */ + omit?: Prisma.StoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreInclude | null + /** + * Filter, which Store to fetch. + */ + where?: Prisma.StoreWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Stores to fetch. + */ + orderBy?: Prisma.StoreOrderByWithRelationInput | Prisma.StoreOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Stores. + */ + cursor?: Prisma.StoreWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Stores 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` Stores. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Stores. + */ + distinct?: Prisma.StoreScalarFieldEnum | Prisma.StoreScalarFieldEnum[] +} + +/** + * Store findFirstOrThrow + */ +export type StoreFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Store + */ + select?: Prisma.StoreSelect | null + /** + * Omit specific fields from the Store + */ + omit?: Prisma.StoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreInclude | null + /** + * Filter, which Store to fetch. + */ + where?: Prisma.StoreWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Stores to fetch. + */ + orderBy?: Prisma.StoreOrderByWithRelationInput | Prisma.StoreOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Stores. + */ + cursor?: Prisma.StoreWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Stores 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` Stores. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Stores. + */ + distinct?: Prisma.StoreScalarFieldEnum | Prisma.StoreScalarFieldEnum[] +} + +/** + * Store findMany + */ +export type StoreFindManyArgs = { + /** + * Select specific fields to fetch from the Store + */ + select?: Prisma.StoreSelect | null + /** + * Omit specific fields from the Store + */ + omit?: Prisma.StoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreInclude | null + /** + * Filter, which Stores to fetch. + */ + where?: Prisma.StoreWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Stores to fetch. + */ + orderBy?: Prisma.StoreOrderByWithRelationInput | Prisma.StoreOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Stores. + */ + cursor?: Prisma.StoreWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Stores 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` Stores. + */ + skip?: number + distinct?: Prisma.StoreScalarFieldEnum | Prisma.StoreScalarFieldEnum[] +} + +/** + * Store create + */ +export type StoreCreateArgs = { + /** + * Select specific fields to fetch from the Store + */ + select?: Prisma.StoreSelect | null + /** + * Omit specific fields from the Store + */ + omit?: Prisma.StoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreInclude | null + /** + * The data needed to create a Store. + */ + data: Prisma.XOR +} + +/** + * Store createMany + */ +export type StoreCreateManyArgs = { + /** + * The data used to create many Stores. + */ + data: Prisma.StoreCreateManyInput | Prisma.StoreCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Store createManyAndReturn + */ +export type StoreCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Store + */ + select?: Prisma.StoreSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Store + */ + omit?: Prisma.StoreOmit | null + /** + * The data used to create many Stores. + */ + data: Prisma.StoreCreateManyInput | Prisma.StoreCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Store update + */ +export type StoreUpdateArgs = { + /** + * Select specific fields to fetch from the Store + */ + select?: Prisma.StoreSelect | null + /** + * Omit specific fields from the Store + */ + omit?: Prisma.StoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreInclude | null + /** + * The data needed to update a Store. + */ + data: Prisma.XOR + /** + * Choose, which Store to update. + */ + where: Prisma.StoreWhereUniqueInput +} + +/** + * Store updateMany + */ +export type StoreUpdateManyArgs = { + /** + * The data used to update Stores. + */ + data: Prisma.XOR + /** + * Filter which Stores to update + */ + where?: Prisma.StoreWhereInput + /** + * Limit how many Stores to update. + */ + limit?: number +} + +/** + * Store updateManyAndReturn + */ +export type StoreUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Store + */ + select?: Prisma.StoreSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Store + */ + omit?: Prisma.StoreOmit | null + /** + * The data used to update Stores. + */ + data: Prisma.XOR + /** + * Filter which Stores to update + */ + where?: Prisma.StoreWhereInput + /** + * Limit how many Stores to update. + */ + limit?: number +} + +/** + * Store upsert + */ +export type StoreUpsertArgs = { + /** + * Select specific fields to fetch from the Store + */ + select?: Prisma.StoreSelect | null + /** + * Omit specific fields from the Store + */ + omit?: Prisma.StoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreInclude | null + /** + * The filter to search for the Store to update in case it exists. + */ + where: Prisma.StoreWhereUniqueInput + /** + * In case the Store found by the `where` argument doesn't exist, create a new Store with this data. + */ + create: Prisma.XOR + /** + * In case the Store was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Store delete + */ +export type StoreDeleteArgs = { + /** + * Select specific fields to fetch from the Store + */ + select?: Prisma.StoreSelect | null + /** + * Omit specific fields from the Store + */ + omit?: Prisma.StoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreInclude | null + /** + * Filter which Store to delete. + */ + where: Prisma.StoreWhereUniqueInput +} + +/** + * Store deleteMany + */ +export type StoreDeleteManyArgs = { + /** + * Filter which Stores to delete + */ + where?: Prisma.StoreWhereInput + /** + * Limit how many Stores to delete. + */ + limit?: number +} + +/** + * Store.items + */ +export type Store$itemsArgs = { + /** + * Select specific fields to fetch from the StoreItem + */ + select?: Prisma.StoreItemSelect | null + /** + * Omit specific fields from the StoreItem + */ + omit?: Prisma.StoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemInclude | null + where?: Prisma.StoreItemWhereInput + orderBy?: Prisma.StoreItemOrderByWithRelationInput | Prisma.StoreItemOrderByWithRelationInput[] + cursor?: Prisma.StoreItemWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.StoreItemScalarFieldEnum | Prisma.StoreItemScalarFieldEnum[] +} + +/** + * Store.expenses + */ +export type Store$expensesArgs = { + /** + * Select specific fields to fetch from the Expense + */ + select?: Prisma.ExpenseSelect | null + /** + * Omit specific fields from the Expense + */ + omit?: Prisma.ExpenseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseInclude | null + where?: Prisma.ExpenseWhereInput + orderBy?: Prisma.ExpenseOrderByWithRelationInput | Prisma.ExpenseOrderByWithRelationInput[] + cursor?: Prisma.ExpenseWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ExpenseScalarFieldEnum | Prisma.ExpenseScalarFieldEnum[] +} + +/** + * Store.users + */ +export type Store$usersArgs = { + /** + * Select specific fields to fetch from the UserStore + */ + select?: Prisma.UserStoreSelect | null + /** + * Omit specific fields from the UserStore + */ + omit?: Prisma.UserStoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreInclude | null + where?: Prisma.UserStoreWhereInput + orderBy?: Prisma.UserStoreOrderByWithRelationInput | Prisma.UserStoreOrderByWithRelationInput[] + cursor?: Prisma.UserStoreWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.UserStoreScalarFieldEnum | Prisma.UserStoreScalarFieldEnum[] +} + +/** + * Store without action + */ +export type StoreDefaultArgs = { + /** + * Select specific fields to fetch from the Store + */ + select?: Prisma.StoreSelect | null + /** + * Omit specific fields from the Store + */ + omit?: Prisma.StoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/StoreItem.ts b/apps/backend/prisma/generated/generated/prisma/models/StoreItem.ts new file mode 100644 index 00000000..bce09abf --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/StoreItem.ts @@ -0,0 +1,2003 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `StoreItem` 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 StoreItem + * + */ +export type StoreItemModel = runtime.Types.Result.DefaultSelection + +export type AggregateStoreItem = { + _count: StoreItemCountAggregateOutputType | null + _avg: StoreItemAvgAggregateOutputType | null + _sum: StoreItemSumAggregateOutputType | null + _min: StoreItemMinAggregateOutputType | null + _max: StoreItemMaxAggregateOutputType | null +} + +export type StoreItemAvgAggregateOutputType = { + price: runtime.Decimal | null +} + +export type StoreItemSumAggregateOutputType = { + price: runtime.Decimal | null +} + +export type StoreItemMinAggregateOutputType = { + id: string | null + itemId: string | null + storeId: string | null + price: runtime.Decimal | null + isDiscounted: boolean | null + createdAt: Date | null + updatedAt: Date | null +} + +export type StoreItemMaxAggregateOutputType = { + id: string | null + itemId: string | null + storeId: string | null + price: runtime.Decimal | null + isDiscounted: boolean | null + createdAt: Date | null + updatedAt: Date | null +} + +export type StoreItemCountAggregateOutputType = { + id: number + itemId: number + storeId: number + price: number + isDiscounted: number + createdAt: number + updatedAt: number + _all: number +} + + +export type StoreItemAvgAggregateInputType = { + price?: true +} + +export type StoreItemSumAggregateInputType = { + price?: true +} + +export type StoreItemMinAggregateInputType = { + id?: true + itemId?: true + storeId?: true + price?: true + isDiscounted?: true + createdAt?: true + updatedAt?: true +} + +export type StoreItemMaxAggregateInputType = { + id?: true + itemId?: true + storeId?: true + price?: true + isDiscounted?: true + createdAt?: true + updatedAt?: true +} + +export type StoreItemCountAggregateInputType = { + id?: true + itemId?: true + storeId?: true + price?: true + isDiscounted?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type StoreItemAggregateArgs = { + /** + * Filter which StoreItem to aggregate. + */ + where?: Prisma.StoreItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of StoreItems to fetch. + */ + orderBy?: Prisma.StoreItemOrderByWithRelationInput | Prisma.StoreItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.StoreItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` StoreItems 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` StoreItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned StoreItems + **/ + _count?: true | StoreItemCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: StoreItemAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: StoreItemSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: StoreItemMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: StoreItemMaxAggregateInputType +} + +export type GetStoreItemAggregateType = { + [P in keyof T & keyof AggregateStoreItem]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type StoreItemGroupByArgs = { + where?: Prisma.StoreItemWhereInput + orderBy?: Prisma.StoreItemOrderByWithAggregationInput | Prisma.StoreItemOrderByWithAggregationInput[] + by: Prisma.StoreItemScalarFieldEnum[] | Prisma.StoreItemScalarFieldEnum + having?: Prisma.StoreItemScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: StoreItemCountAggregateInputType | true + _avg?: StoreItemAvgAggregateInputType + _sum?: StoreItemSumAggregateInputType + _min?: StoreItemMinAggregateInputType + _max?: StoreItemMaxAggregateInputType +} + +export type StoreItemGroupByOutputType = { + id: string + itemId: string + storeId: string + price: runtime.Decimal + isDiscounted: boolean + createdAt: Date + updatedAt: Date + _count: StoreItemCountAggregateOutputType | null + _avg: StoreItemAvgAggregateOutputType | null + _sum: StoreItemSumAggregateOutputType | null + _min: StoreItemMinAggregateOutputType | null + _max: StoreItemMaxAggregateOutputType | null +} + +type GetStoreItemGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof StoreItemGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type StoreItemWhereInput = { + AND?: Prisma.StoreItemWhereInput | Prisma.StoreItemWhereInput[] + OR?: Prisma.StoreItemWhereInput[] + NOT?: Prisma.StoreItemWhereInput | Prisma.StoreItemWhereInput[] + id?: Prisma.StringFilter<"StoreItem"> | string + itemId?: Prisma.StringFilter<"StoreItem"> | string + storeId?: Prisma.StringFilter<"StoreItem"> | string + price?: Prisma.DecimalFilter<"StoreItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFilter<"StoreItem"> | boolean + createdAt?: Prisma.DateTimeFilter<"StoreItem"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"StoreItem"> | Date | string + store?: Prisma.XOR + item?: Prisma.XOR + discounts?: Prisma.StoreItemDiscountListRelationFilter + expenses?: Prisma.ExpenseItemListRelationFilter + users?: Prisma.UserStoreItemListRelationFilter +} + +export type StoreItemOrderByWithRelationInput = { + id?: Prisma.SortOrder + itemId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + price?: Prisma.SortOrder + isDiscounted?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + store?: Prisma.StoreOrderByWithRelationInput + item?: Prisma.ItemOrderByWithRelationInput + discounts?: Prisma.StoreItemDiscountOrderByRelationAggregateInput + expenses?: Prisma.ExpenseItemOrderByRelationAggregateInput + users?: Prisma.UserStoreItemOrderByRelationAggregateInput +} + +export type StoreItemWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.StoreItemWhereInput | Prisma.StoreItemWhereInput[] + OR?: Prisma.StoreItemWhereInput[] + NOT?: Prisma.StoreItemWhereInput | Prisma.StoreItemWhereInput[] + itemId?: Prisma.StringFilter<"StoreItem"> | string + storeId?: Prisma.StringFilter<"StoreItem"> | string + price?: Prisma.DecimalFilter<"StoreItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFilter<"StoreItem"> | boolean + createdAt?: Prisma.DateTimeFilter<"StoreItem"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"StoreItem"> | Date | string + store?: Prisma.XOR + item?: Prisma.XOR + discounts?: Prisma.StoreItemDiscountListRelationFilter + expenses?: Prisma.ExpenseItemListRelationFilter + users?: Prisma.UserStoreItemListRelationFilter +}, "id"> + +export type StoreItemOrderByWithAggregationInput = { + id?: Prisma.SortOrder + itemId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + price?: Prisma.SortOrder + isDiscounted?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.StoreItemCountOrderByAggregateInput + _avg?: Prisma.StoreItemAvgOrderByAggregateInput + _max?: Prisma.StoreItemMaxOrderByAggregateInput + _min?: Prisma.StoreItemMinOrderByAggregateInput + _sum?: Prisma.StoreItemSumOrderByAggregateInput +} + +export type StoreItemScalarWhereWithAggregatesInput = { + AND?: Prisma.StoreItemScalarWhereWithAggregatesInput | Prisma.StoreItemScalarWhereWithAggregatesInput[] + OR?: Prisma.StoreItemScalarWhereWithAggregatesInput[] + NOT?: Prisma.StoreItemScalarWhereWithAggregatesInput | Prisma.StoreItemScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"StoreItem"> | string + itemId?: Prisma.StringWithAggregatesFilter<"StoreItem"> | string + storeId?: Prisma.StringWithAggregatesFilter<"StoreItem"> | string + price?: Prisma.DecimalWithAggregatesFilter<"StoreItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolWithAggregatesFilter<"StoreItem"> | boolean + createdAt?: Prisma.DateTimeWithAggregatesFilter<"StoreItem"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"StoreItem"> | Date | string +} + +export type StoreItemCreateInput = { + id?: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted: boolean + createdAt?: Date | string + updatedAt?: Date | string + store: Prisma.StoreCreateNestedOneWithoutItemsInput + item: Prisma.ItemCreateNestedOneWithoutStoresInput + discounts?: Prisma.StoreItemDiscountCreateNestedManyWithoutStoreItemInput + expenses?: Prisma.ExpenseItemCreateNestedManyWithoutItemInput + users?: Prisma.UserStoreItemCreateNestedManyWithoutStoreItemInput +} + +export type StoreItemUncheckedCreateInput = { + id?: string + itemId: string + storeId: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted: boolean + createdAt?: Date | string + updatedAt?: Date | string + discounts?: Prisma.StoreItemDiscountUncheckedCreateNestedManyWithoutStoreItemInput + expenses?: Prisma.ExpenseItemUncheckedCreateNestedManyWithoutItemInput + users?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutStoreItemInput +} + +export type StoreItemUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + store?: Prisma.StoreUpdateOneRequiredWithoutItemsNestedInput + item?: Prisma.ItemUpdateOneRequiredWithoutStoresNestedInput + discounts?: Prisma.StoreItemDiscountUpdateManyWithoutStoreItemNestedInput + expenses?: Prisma.ExpenseItemUpdateManyWithoutItemNestedInput + users?: Prisma.UserStoreItemUpdateManyWithoutStoreItemNestedInput +} + +export type StoreItemUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + discounts?: Prisma.StoreItemDiscountUncheckedUpdateManyWithoutStoreItemNestedInput + expenses?: Prisma.ExpenseItemUncheckedUpdateManyWithoutItemNestedInput + users?: Prisma.UserStoreItemUncheckedUpdateManyWithoutStoreItemNestedInput +} + +export type StoreItemCreateManyInput = { + id?: string + itemId: string + storeId: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted: boolean + createdAt?: Date | string + updatedAt?: Date | string +} + +export type StoreItemUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type StoreItemUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type StoreItemScalarRelationFilter = { + is?: Prisma.StoreItemWhereInput + isNot?: Prisma.StoreItemWhereInput +} + +export type StoreItemListRelationFilter = { + every?: Prisma.StoreItemWhereInput + some?: Prisma.StoreItemWhereInput + none?: Prisma.StoreItemWhereInput +} + +export type StoreItemOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type StoreItemCountOrderByAggregateInput = { + id?: Prisma.SortOrder + itemId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + price?: Prisma.SortOrder + isDiscounted?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type StoreItemAvgOrderByAggregateInput = { + price?: Prisma.SortOrder +} + +export type StoreItemMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + itemId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + price?: Prisma.SortOrder + isDiscounted?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type StoreItemMinOrderByAggregateInput = { + id?: Prisma.SortOrder + itemId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + price?: Prisma.SortOrder + isDiscounted?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type StoreItemSumOrderByAggregateInput = { + price?: Prisma.SortOrder +} + +export type StoreItemCreateNestedOneWithoutExpensesInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.StoreItemCreateOrConnectWithoutExpensesInput + connect?: Prisma.StoreItemWhereUniqueInput +} + +export type StoreItemUpdateOneRequiredWithoutExpensesNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.StoreItemCreateOrConnectWithoutExpensesInput + upsert?: Prisma.StoreItemUpsertWithoutExpensesInput + connect?: Prisma.StoreItemWhereUniqueInput + update?: Prisma.XOR, Prisma.StoreItemUncheckedUpdateWithoutExpensesInput> +} + +export type StoreItemCreateNestedManyWithoutStoreInput = { + create?: Prisma.XOR | Prisma.StoreItemCreateWithoutStoreInput[] | Prisma.StoreItemUncheckedCreateWithoutStoreInput[] + connectOrCreate?: Prisma.StoreItemCreateOrConnectWithoutStoreInput | Prisma.StoreItemCreateOrConnectWithoutStoreInput[] + createMany?: Prisma.StoreItemCreateManyStoreInputEnvelope + connect?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] +} + +export type StoreItemUncheckedCreateNestedManyWithoutStoreInput = { + create?: Prisma.XOR | Prisma.StoreItemCreateWithoutStoreInput[] | Prisma.StoreItemUncheckedCreateWithoutStoreInput[] + connectOrCreate?: Prisma.StoreItemCreateOrConnectWithoutStoreInput | Prisma.StoreItemCreateOrConnectWithoutStoreInput[] + createMany?: Prisma.StoreItemCreateManyStoreInputEnvelope + connect?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] +} + +export type StoreItemUpdateManyWithoutStoreNestedInput = { + create?: Prisma.XOR | Prisma.StoreItemCreateWithoutStoreInput[] | Prisma.StoreItemUncheckedCreateWithoutStoreInput[] + connectOrCreate?: Prisma.StoreItemCreateOrConnectWithoutStoreInput | Prisma.StoreItemCreateOrConnectWithoutStoreInput[] + upsert?: Prisma.StoreItemUpsertWithWhereUniqueWithoutStoreInput | Prisma.StoreItemUpsertWithWhereUniqueWithoutStoreInput[] + createMany?: Prisma.StoreItemCreateManyStoreInputEnvelope + set?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] + disconnect?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] + delete?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] + connect?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] + update?: Prisma.StoreItemUpdateWithWhereUniqueWithoutStoreInput | Prisma.StoreItemUpdateWithWhereUniqueWithoutStoreInput[] + updateMany?: Prisma.StoreItemUpdateManyWithWhereWithoutStoreInput | Prisma.StoreItemUpdateManyWithWhereWithoutStoreInput[] + deleteMany?: Prisma.StoreItemScalarWhereInput | Prisma.StoreItemScalarWhereInput[] +} + +export type StoreItemUncheckedUpdateManyWithoutStoreNestedInput = { + create?: Prisma.XOR | Prisma.StoreItemCreateWithoutStoreInput[] | Prisma.StoreItemUncheckedCreateWithoutStoreInput[] + connectOrCreate?: Prisma.StoreItemCreateOrConnectWithoutStoreInput | Prisma.StoreItemCreateOrConnectWithoutStoreInput[] + upsert?: Prisma.StoreItemUpsertWithWhereUniqueWithoutStoreInput | Prisma.StoreItemUpsertWithWhereUniqueWithoutStoreInput[] + createMany?: Prisma.StoreItemCreateManyStoreInputEnvelope + set?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] + disconnect?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] + delete?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] + connect?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] + update?: Prisma.StoreItemUpdateWithWhereUniqueWithoutStoreInput | Prisma.StoreItemUpdateWithWhereUniqueWithoutStoreInput[] + updateMany?: Prisma.StoreItemUpdateManyWithWhereWithoutStoreInput | Prisma.StoreItemUpdateManyWithWhereWithoutStoreInput[] + deleteMany?: Prisma.StoreItemScalarWhereInput | Prisma.StoreItemScalarWhereInput[] +} + +export type StoreItemCreateNestedManyWithoutItemInput = { + create?: Prisma.XOR | Prisma.StoreItemCreateWithoutItemInput[] | Prisma.StoreItemUncheckedCreateWithoutItemInput[] + connectOrCreate?: Prisma.StoreItemCreateOrConnectWithoutItemInput | Prisma.StoreItemCreateOrConnectWithoutItemInput[] + createMany?: Prisma.StoreItemCreateManyItemInputEnvelope + connect?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] +} + +export type StoreItemUncheckedCreateNestedManyWithoutItemInput = { + create?: Prisma.XOR | Prisma.StoreItemCreateWithoutItemInput[] | Prisma.StoreItemUncheckedCreateWithoutItemInput[] + connectOrCreate?: Prisma.StoreItemCreateOrConnectWithoutItemInput | Prisma.StoreItemCreateOrConnectWithoutItemInput[] + createMany?: Prisma.StoreItemCreateManyItemInputEnvelope + connect?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] +} + +export type StoreItemUpdateManyWithoutItemNestedInput = { + create?: Prisma.XOR | Prisma.StoreItemCreateWithoutItemInput[] | Prisma.StoreItemUncheckedCreateWithoutItemInput[] + connectOrCreate?: Prisma.StoreItemCreateOrConnectWithoutItemInput | Prisma.StoreItemCreateOrConnectWithoutItemInput[] + upsert?: Prisma.StoreItemUpsertWithWhereUniqueWithoutItemInput | Prisma.StoreItemUpsertWithWhereUniqueWithoutItemInput[] + createMany?: Prisma.StoreItemCreateManyItemInputEnvelope + set?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] + disconnect?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] + delete?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] + connect?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] + update?: Prisma.StoreItemUpdateWithWhereUniqueWithoutItemInput | Prisma.StoreItemUpdateWithWhereUniqueWithoutItemInput[] + updateMany?: Prisma.StoreItemUpdateManyWithWhereWithoutItemInput | Prisma.StoreItemUpdateManyWithWhereWithoutItemInput[] + deleteMany?: Prisma.StoreItemScalarWhereInput | Prisma.StoreItemScalarWhereInput[] +} + +export type StoreItemUncheckedUpdateManyWithoutItemNestedInput = { + create?: Prisma.XOR | Prisma.StoreItemCreateWithoutItemInput[] | Prisma.StoreItemUncheckedCreateWithoutItemInput[] + connectOrCreate?: Prisma.StoreItemCreateOrConnectWithoutItemInput | Prisma.StoreItemCreateOrConnectWithoutItemInput[] + upsert?: Prisma.StoreItemUpsertWithWhereUniqueWithoutItemInput | Prisma.StoreItemUpsertWithWhereUniqueWithoutItemInput[] + createMany?: Prisma.StoreItemCreateManyItemInputEnvelope + set?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] + disconnect?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] + delete?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] + connect?: Prisma.StoreItemWhereUniqueInput | Prisma.StoreItemWhereUniqueInput[] + update?: Prisma.StoreItemUpdateWithWhereUniqueWithoutItemInput | Prisma.StoreItemUpdateWithWhereUniqueWithoutItemInput[] + updateMany?: Prisma.StoreItemUpdateManyWithWhereWithoutItemInput | Prisma.StoreItemUpdateManyWithWhereWithoutItemInput[] + deleteMany?: Prisma.StoreItemScalarWhereInput | Prisma.StoreItemScalarWhereInput[] +} + +export type StoreItemCreateNestedOneWithoutDiscountsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.StoreItemCreateOrConnectWithoutDiscountsInput + connect?: Prisma.StoreItemWhereUniqueInput +} + +export type StoreItemUpdateOneRequiredWithoutDiscountsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.StoreItemCreateOrConnectWithoutDiscountsInput + upsert?: Prisma.StoreItemUpsertWithoutDiscountsInput + connect?: Prisma.StoreItemWhereUniqueInput + update?: Prisma.XOR, Prisma.StoreItemUncheckedUpdateWithoutDiscountsInput> +} + +export type StoreItemCreateNestedOneWithoutUsersInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.StoreItemCreateOrConnectWithoutUsersInput + connect?: Prisma.StoreItemWhereUniqueInput +} + +export type StoreItemUpdateOneRequiredWithoutUsersNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.StoreItemCreateOrConnectWithoutUsersInput + upsert?: Prisma.StoreItemUpsertWithoutUsersInput + connect?: Prisma.StoreItemWhereUniqueInput + update?: Prisma.XOR, Prisma.StoreItemUncheckedUpdateWithoutUsersInput> +} + +export type StoreItemCreateWithoutExpensesInput = { + id?: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted: boolean + createdAt?: Date | string + updatedAt?: Date | string + store: Prisma.StoreCreateNestedOneWithoutItemsInput + item: Prisma.ItemCreateNestedOneWithoutStoresInput + discounts?: Prisma.StoreItemDiscountCreateNestedManyWithoutStoreItemInput + users?: Prisma.UserStoreItemCreateNestedManyWithoutStoreItemInput +} + +export type StoreItemUncheckedCreateWithoutExpensesInput = { + id?: string + itemId: string + storeId: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted: boolean + createdAt?: Date | string + updatedAt?: Date | string + discounts?: Prisma.StoreItemDiscountUncheckedCreateNestedManyWithoutStoreItemInput + users?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutStoreItemInput +} + +export type StoreItemCreateOrConnectWithoutExpensesInput = { + where: Prisma.StoreItemWhereUniqueInput + create: Prisma.XOR +} + +export type StoreItemUpsertWithoutExpensesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.StoreItemWhereInput +} + +export type StoreItemUpdateToOneWithWhereWithoutExpensesInput = { + where?: Prisma.StoreItemWhereInput + data: Prisma.XOR +} + +export type StoreItemUpdateWithoutExpensesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + store?: Prisma.StoreUpdateOneRequiredWithoutItemsNestedInput + item?: Prisma.ItemUpdateOneRequiredWithoutStoresNestedInput + discounts?: Prisma.StoreItemDiscountUpdateManyWithoutStoreItemNestedInput + users?: Prisma.UserStoreItemUpdateManyWithoutStoreItemNestedInput +} + +export type StoreItemUncheckedUpdateWithoutExpensesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + discounts?: Prisma.StoreItemDiscountUncheckedUpdateManyWithoutStoreItemNestedInput + users?: Prisma.UserStoreItemUncheckedUpdateManyWithoutStoreItemNestedInput +} + +export type StoreItemCreateWithoutStoreInput = { + id?: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted: boolean + createdAt?: Date | string + updatedAt?: Date | string + item: Prisma.ItemCreateNestedOneWithoutStoresInput + discounts?: Prisma.StoreItemDiscountCreateNestedManyWithoutStoreItemInput + expenses?: Prisma.ExpenseItemCreateNestedManyWithoutItemInput + users?: Prisma.UserStoreItemCreateNestedManyWithoutStoreItemInput +} + +export type StoreItemUncheckedCreateWithoutStoreInput = { + id?: string + itemId: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted: boolean + createdAt?: Date | string + updatedAt?: Date | string + discounts?: Prisma.StoreItemDiscountUncheckedCreateNestedManyWithoutStoreItemInput + expenses?: Prisma.ExpenseItemUncheckedCreateNestedManyWithoutItemInput + users?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutStoreItemInput +} + +export type StoreItemCreateOrConnectWithoutStoreInput = { + where: Prisma.StoreItemWhereUniqueInput + create: Prisma.XOR +} + +export type StoreItemCreateManyStoreInputEnvelope = { + data: Prisma.StoreItemCreateManyStoreInput | Prisma.StoreItemCreateManyStoreInput[] + skipDuplicates?: boolean +} + +export type StoreItemUpsertWithWhereUniqueWithoutStoreInput = { + where: Prisma.StoreItemWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type StoreItemUpdateWithWhereUniqueWithoutStoreInput = { + where: Prisma.StoreItemWhereUniqueInput + data: Prisma.XOR +} + +export type StoreItemUpdateManyWithWhereWithoutStoreInput = { + where: Prisma.StoreItemScalarWhereInput + data: Prisma.XOR +} + +export type StoreItemScalarWhereInput = { + AND?: Prisma.StoreItemScalarWhereInput | Prisma.StoreItemScalarWhereInput[] + OR?: Prisma.StoreItemScalarWhereInput[] + NOT?: Prisma.StoreItemScalarWhereInput | Prisma.StoreItemScalarWhereInput[] + id?: Prisma.StringFilter<"StoreItem"> | string + itemId?: Prisma.StringFilter<"StoreItem"> | string + storeId?: Prisma.StringFilter<"StoreItem"> | string + price?: Prisma.DecimalFilter<"StoreItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFilter<"StoreItem"> | boolean + createdAt?: Prisma.DateTimeFilter<"StoreItem"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"StoreItem"> | Date | string +} + +export type StoreItemCreateWithoutItemInput = { + id?: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted: boolean + createdAt?: Date | string + updatedAt?: Date | string + store: Prisma.StoreCreateNestedOneWithoutItemsInput + discounts?: Prisma.StoreItemDiscountCreateNestedManyWithoutStoreItemInput + expenses?: Prisma.ExpenseItemCreateNestedManyWithoutItemInput + users?: Prisma.UserStoreItemCreateNestedManyWithoutStoreItemInput +} + +export type StoreItemUncheckedCreateWithoutItemInput = { + id?: string + storeId: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted: boolean + createdAt?: Date | string + updatedAt?: Date | string + discounts?: Prisma.StoreItemDiscountUncheckedCreateNestedManyWithoutStoreItemInput + expenses?: Prisma.ExpenseItemUncheckedCreateNestedManyWithoutItemInput + users?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutStoreItemInput +} + +export type StoreItemCreateOrConnectWithoutItemInput = { + where: Prisma.StoreItemWhereUniqueInput + create: Prisma.XOR +} + +export type StoreItemCreateManyItemInputEnvelope = { + data: Prisma.StoreItemCreateManyItemInput | Prisma.StoreItemCreateManyItemInput[] + skipDuplicates?: boolean +} + +export type StoreItemUpsertWithWhereUniqueWithoutItemInput = { + where: Prisma.StoreItemWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type StoreItemUpdateWithWhereUniqueWithoutItemInput = { + where: Prisma.StoreItemWhereUniqueInput + data: Prisma.XOR +} + +export type StoreItemUpdateManyWithWhereWithoutItemInput = { + where: Prisma.StoreItemScalarWhereInput + data: Prisma.XOR +} + +export type StoreItemCreateWithoutDiscountsInput = { + id?: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted: boolean + createdAt?: Date | string + updatedAt?: Date | string + store: Prisma.StoreCreateNestedOneWithoutItemsInput + item: Prisma.ItemCreateNestedOneWithoutStoresInput + expenses?: Prisma.ExpenseItemCreateNestedManyWithoutItemInput + users?: Prisma.UserStoreItemCreateNestedManyWithoutStoreItemInput +} + +export type StoreItemUncheckedCreateWithoutDiscountsInput = { + id?: string + itemId: string + storeId: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted: boolean + createdAt?: Date | string + updatedAt?: Date | string + expenses?: Prisma.ExpenseItemUncheckedCreateNestedManyWithoutItemInput + users?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutStoreItemInput +} + +export type StoreItemCreateOrConnectWithoutDiscountsInput = { + where: Prisma.StoreItemWhereUniqueInput + create: Prisma.XOR +} + +export type StoreItemUpsertWithoutDiscountsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.StoreItemWhereInput +} + +export type StoreItemUpdateToOneWithWhereWithoutDiscountsInput = { + where?: Prisma.StoreItemWhereInput + data: Prisma.XOR +} + +export type StoreItemUpdateWithoutDiscountsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + store?: Prisma.StoreUpdateOneRequiredWithoutItemsNestedInput + item?: Prisma.ItemUpdateOneRequiredWithoutStoresNestedInput + expenses?: Prisma.ExpenseItemUpdateManyWithoutItemNestedInput + users?: Prisma.UserStoreItemUpdateManyWithoutStoreItemNestedInput +} + +export type StoreItemUncheckedUpdateWithoutDiscountsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expenses?: Prisma.ExpenseItemUncheckedUpdateManyWithoutItemNestedInput + users?: Prisma.UserStoreItemUncheckedUpdateManyWithoutStoreItemNestedInput +} + +export type StoreItemCreateWithoutUsersInput = { + id?: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted: boolean + createdAt?: Date | string + updatedAt?: Date | string + store: Prisma.StoreCreateNestedOneWithoutItemsInput + item: Prisma.ItemCreateNestedOneWithoutStoresInput + discounts?: Prisma.StoreItemDiscountCreateNestedManyWithoutStoreItemInput + expenses?: Prisma.ExpenseItemCreateNestedManyWithoutItemInput +} + +export type StoreItemUncheckedCreateWithoutUsersInput = { + id?: string + itemId: string + storeId: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted: boolean + createdAt?: Date | string + updatedAt?: Date | string + discounts?: Prisma.StoreItemDiscountUncheckedCreateNestedManyWithoutStoreItemInput + expenses?: Prisma.ExpenseItemUncheckedCreateNestedManyWithoutItemInput +} + +export type StoreItemCreateOrConnectWithoutUsersInput = { + where: Prisma.StoreItemWhereUniqueInput + create: Prisma.XOR +} + +export type StoreItemUpsertWithoutUsersInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.StoreItemWhereInput +} + +export type StoreItemUpdateToOneWithWhereWithoutUsersInput = { + where?: Prisma.StoreItemWhereInput + data: Prisma.XOR +} + +export type StoreItemUpdateWithoutUsersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + store?: Prisma.StoreUpdateOneRequiredWithoutItemsNestedInput + item?: Prisma.ItemUpdateOneRequiredWithoutStoresNestedInput + discounts?: Prisma.StoreItemDiscountUpdateManyWithoutStoreItemNestedInput + expenses?: Prisma.ExpenseItemUpdateManyWithoutItemNestedInput +} + +export type StoreItemUncheckedUpdateWithoutUsersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + discounts?: Prisma.StoreItemDiscountUncheckedUpdateManyWithoutStoreItemNestedInput + expenses?: Prisma.ExpenseItemUncheckedUpdateManyWithoutItemNestedInput +} + +export type StoreItemCreateManyStoreInput = { + id?: string + itemId: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted: boolean + createdAt?: Date | string + updatedAt?: Date | string +} + +export type StoreItemUpdateWithoutStoreInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + item?: Prisma.ItemUpdateOneRequiredWithoutStoresNestedInput + discounts?: Prisma.StoreItemDiscountUpdateManyWithoutStoreItemNestedInput + expenses?: Prisma.ExpenseItemUpdateManyWithoutItemNestedInput + users?: Prisma.UserStoreItemUpdateManyWithoutStoreItemNestedInput +} + +export type StoreItemUncheckedUpdateWithoutStoreInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + discounts?: Prisma.StoreItemDiscountUncheckedUpdateManyWithoutStoreItemNestedInput + expenses?: Prisma.ExpenseItemUncheckedUpdateManyWithoutItemNestedInput + users?: Prisma.UserStoreItemUncheckedUpdateManyWithoutStoreItemNestedInput +} + +export type StoreItemUncheckedUpdateManyWithoutStoreInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type StoreItemCreateManyItemInput = { + id?: string + storeId: string + price: runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted: boolean + createdAt?: Date | string + updatedAt?: Date | string +} + +export type StoreItemUpdateWithoutItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + store?: Prisma.StoreUpdateOneRequiredWithoutItemsNestedInput + discounts?: Prisma.StoreItemDiscountUpdateManyWithoutStoreItemNestedInput + expenses?: Prisma.ExpenseItemUpdateManyWithoutItemNestedInput + users?: Prisma.UserStoreItemUpdateManyWithoutStoreItemNestedInput +} + +export type StoreItemUncheckedUpdateWithoutItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + discounts?: Prisma.StoreItemDiscountUncheckedUpdateManyWithoutStoreItemNestedInput + expenses?: Prisma.ExpenseItemUncheckedUpdateManyWithoutItemNestedInput + users?: Prisma.UserStoreItemUncheckedUpdateManyWithoutStoreItemNestedInput +} + +export type StoreItemUncheckedUpdateManyWithoutItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + isDiscounted?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + +/** + * Count Type StoreItemCountOutputType + */ + +export type StoreItemCountOutputType = { + discounts: number + expenses: number + users: number +} + +export type StoreItemCountOutputTypeSelect = { + discounts?: boolean | StoreItemCountOutputTypeCountDiscountsArgs + expenses?: boolean | StoreItemCountOutputTypeCountExpensesArgs + users?: boolean | StoreItemCountOutputTypeCountUsersArgs +} + +/** + * StoreItemCountOutputType without action + */ +export type StoreItemCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the StoreItemCountOutputType + */ + select?: Prisma.StoreItemCountOutputTypeSelect | null +} + +/** + * StoreItemCountOutputType without action + */ +export type StoreItemCountOutputTypeCountDiscountsArgs = { + where?: Prisma.StoreItemDiscountWhereInput +} + +/** + * StoreItemCountOutputType without action + */ +export type StoreItemCountOutputTypeCountExpensesArgs = { + where?: Prisma.ExpenseItemWhereInput +} + +/** + * StoreItemCountOutputType without action + */ +export type StoreItemCountOutputTypeCountUsersArgs = { + where?: Prisma.UserStoreItemWhereInput +} + + +export type StoreItemSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + itemId?: boolean + storeId?: boolean + price?: boolean + isDiscounted?: boolean + createdAt?: boolean + updatedAt?: boolean + store?: boolean | Prisma.StoreDefaultArgs + item?: boolean | Prisma.ItemDefaultArgs + discounts?: boolean | Prisma.StoreItem$discountsArgs + expenses?: boolean | Prisma.StoreItem$expensesArgs + users?: boolean | Prisma.StoreItem$usersArgs + _count?: boolean | Prisma.StoreItemCountOutputTypeDefaultArgs +}, ExtArgs["result"]["storeItem"]> + +export type StoreItemSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + itemId?: boolean + storeId?: boolean + price?: boolean + isDiscounted?: boolean + createdAt?: boolean + updatedAt?: boolean + store?: boolean | Prisma.StoreDefaultArgs + item?: boolean | Prisma.ItemDefaultArgs +}, ExtArgs["result"]["storeItem"]> + +export type StoreItemSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + itemId?: boolean + storeId?: boolean + price?: boolean + isDiscounted?: boolean + createdAt?: boolean + updatedAt?: boolean + store?: boolean | Prisma.StoreDefaultArgs + item?: boolean | Prisma.ItemDefaultArgs +}, ExtArgs["result"]["storeItem"]> + +export type StoreItemSelectScalar = { + id?: boolean + itemId?: boolean + storeId?: boolean + price?: boolean + isDiscounted?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type StoreItemOmit = runtime.Types.Extensions.GetOmit<"id" | "itemId" | "storeId" | "price" | "isDiscounted" | "createdAt" | "updatedAt", ExtArgs["result"]["storeItem"]> +export type StoreItemInclude = { + store?: boolean | Prisma.StoreDefaultArgs + item?: boolean | Prisma.ItemDefaultArgs + discounts?: boolean | Prisma.StoreItem$discountsArgs + expenses?: boolean | Prisma.StoreItem$expensesArgs + users?: boolean | Prisma.StoreItem$usersArgs + _count?: boolean | Prisma.StoreItemCountOutputTypeDefaultArgs +} +export type StoreItemIncludeCreateManyAndReturn = { + store?: boolean | Prisma.StoreDefaultArgs + item?: boolean | Prisma.ItemDefaultArgs +} +export type StoreItemIncludeUpdateManyAndReturn = { + store?: boolean | Prisma.StoreDefaultArgs + item?: boolean | Prisma.ItemDefaultArgs +} + +export type $StoreItemPayload = { + name: "StoreItem" + objects: { + store: Prisma.$StorePayload + item: Prisma.$ItemPayload + discounts: Prisma.$StoreItemDiscountPayload[] + expenses: Prisma.$ExpenseItemPayload[] + users: Prisma.$UserStoreItemPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + itemId: string + storeId: string + price: runtime.Decimal + isDiscounted: boolean + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["storeItem"]> + composites: {} +} + +export type StoreItemGetPayload = runtime.Types.Result.GetResult + +export type StoreItemCountArgs = + Omit & { + select?: StoreItemCountAggregateInputType | true + } + +export interface StoreItemDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['StoreItem'], meta: { name: 'StoreItem' } } + /** + * Find zero or one StoreItem that matches the filter. + * @param {StoreItemFindUniqueArgs} args - Arguments to find a StoreItem + * @example + * // Get one StoreItem + * const storeItem = await prisma.storeItem.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__StoreItemClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one StoreItem that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {StoreItemFindUniqueOrThrowArgs} args - Arguments to find a StoreItem + * @example + * // Get one StoreItem + * const storeItem = await prisma.storeItem.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__StoreItemClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first StoreItem 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 {StoreItemFindFirstArgs} args - Arguments to find a StoreItem + * @example + * // Get one StoreItem + * const storeItem = await prisma.storeItem.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__StoreItemClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first StoreItem 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 {StoreItemFindFirstOrThrowArgs} args - Arguments to find a StoreItem + * @example + * // Get one StoreItem + * const storeItem = await prisma.storeItem.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__StoreItemClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more StoreItems 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 {StoreItemFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all StoreItems + * const storeItems = await prisma.storeItem.findMany() + * + * // Get first 10 StoreItems + * const storeItems = await prisma.storeItem.findMany({ take: 10 }) + * + * // Only select the `id` + * const storeItemWithIdOnly = await prisma.storeItem.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a StoreItem. + * @param {StoreItemCreateArgs} args - Arguments to create a StoreItem. + * @example + * // Create one StoreItem + * const StoreItem = await prisma.storeItem.create({ + * data: { + * // ... data to create a StoreItem + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__StoreItemClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many StoreItems. + * @param {StoreItemCreateManyArgs} args - Arguments to create many StoreItems. + * @example + * // Create many StoreItems + * const storeItem = await prisma.storeItem.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many StoreItems and returns the data saved in the database. + * @param {StoreItemCreateManyAndReturnArgs} args - Arguments to create many StoreItems. + * @example + * // Create many StoreItems + * const storeItem = await prisma.storeItem.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many StoreItems and only return the `id` + * const storeItemWithIdOnly = await prisma.storeItem.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a StoreItem. + * @param {StoreItemDeleteArgs} args - Arguments to delete one StoreItem. + * @example + * // Delete one StoreItem + * const StoreItem = await prisma.storeItem.delete({ + * where: { + * // ... filter to delete one StoreItem + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__StoreItemClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one StoreItem. + * @param {StoreItemUpdateArgs} args - Arguments to update one StoreItem. + * @example + * // Update one StoreItem + * const storeItem = await prisma.storeItem.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__StoreItemClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more StoreItems. + * @param {StoreItemDeleteManyArgs} args - Arguments to filter StoreItems to delete. + * @example + * // Delete a few StoreItems + * const { count } = await prisma.storeItem.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more StoreItems. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StoreItemUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many StoreItems + * const storeItem = await prisma.storeItem.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more StoreItems and returns the data updated in the database. + * @param {StoreItemUpdateManyAndReturnArgs} args - Arguments to update many StoreItems. + * @example + * // Update many StoreItems + * const storeItem = await prisma.storeItem.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more StoreItems and only return the `id` + * const storeItemWithIdOnly = await prisma.storeItem.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one StoreItem. + * @param {StoreItemUpsertArgs} args - Arguments to update or create a StoreItem. + * @example + * // Update or create a StoreItem + * const storeItem = await prisma.storeItem.upsert({ + * create: { + * // ... data to create a StoreItem + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the StoreItem we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__StoreItemClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of StoreItems. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StoreItemCountArgs} args - Arguments to filter StoreItems to count. + * @example + * // Count the number of StoreItems + * const count = await prisma.storeItem.count({ + * where: { + * // ... the filter for the StoreItems we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a StoreItem. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StoreItemAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by StoreItem. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StoreItemGroupByArgs} 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 StoreItemGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: StoreItemGroupByArgs['orderBy'] } + : { orderBy?: StoreItemGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetStoreItemGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the StoreItem model + */ +readonly fields: StoreItemFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for StoreItem. + * 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__StoreItemClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + store = {}>(args?: Prisma.Subset>): Prisma.Prisma__StoreClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + item = {}>(args?: Prisma.Subset>): Prisma.Prisma__ItemClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + discounts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + expenses = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + users = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + /** + * 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the StoreItem model + */ +export interface StoreItemFieldRefs { + readonly id: Prisma.FieldRef<"StoreItem", 'String'> + readonly itemId: Prisma.FieldRef<"StoreItem", 'String'> + readonly storeId: Prisma.FieldRef<"StoreItem", 'String'> + readonly price: Prisma.FieldRef<"StoreItem", 'Decimal'> + readonly isDiscounted: Prisma.FieldRef<"StoreItem", 'Boolean'> + readonly createdAt: Prisma.FieldRef<"StoreItem", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"StoreItem", 'DateTime'> +} + + +// Custom InputTypes +/** + * StoreItem findUnique + */ +export type StoreItemFindUniqueArgs = { + /** + * Select specific fields to fetch from the StoreItem + */ + select?: Prisma.StoreItemSelect | null + /** + * Omit specific fields from the StoreItem + */ + omit?: Prisma.StoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemInclude | null + /** + * Filter, which StoreItem to fetch. + */ + where: Prisma.StoreItemWhereUniqueInput +} + +/** + * StoreItem findUniqueOrThrow + */ +export type StoreItemFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the StoreItem + */ + select?: Prisma.StoreItemSelect | null + /** + * Omit specific fields from the StoreItem + */ + omit?: Prisma.StoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemInclude | null + /** + * Filter, which StoreItem to fetch. + */ + where: Prisma.StoreItemWhereUniqueInput +} + +/** + * StoreItem findFirst + */ +export type StoreItemFindFirstArgs = { + /** + * Select specific fields to fetch from the StoreItem + */ + select?: Prisma.StoreItemSelect | null + /** + * Omit specific fields from the StoreItem + */ + omit?: Prisma.StoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemInclude | null + /** + * Filter, which StoreItem to fetch. + */ + where?: Prisma.StoreItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of StoreItems to fetch. + */ + orderBy?: Prisma.StoreItemOrderByWithRelationInput | Prisma.StoreItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for StoreItems. + */ + cursor?: Prisma.StoreItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` StoreItems 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` StoreItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of StoreItems. + */ + distinct?: Prisma.StoreItemScalarFieldEnum | Prisma.StoreItemScalarFieldEnum[] +} + +/** + * StoreItem findFirstOrThrow + */ +export type StoreItemFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the StoreItem + */ + select?: Prisma.StoreItemSelect | null + /** + * Omit specific fields from the StoreItem + */ + omit?: Prisma.StoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemInclude | null + /** + * Filter, which StoreItem to fetch. + */ + where?: Prisma.StoreItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of StoreItems to fetch. + */ + orderBy?: Prisma.StoreItemOrderByWithRelationInput | Prisma.StoreItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for StoreItems. + */ + cursor?: Prisma.StoreItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` StoreItems 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` StoreItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of StoreItems. + */ + distinct?: Prisma.StoreItemScalarFieldEnum | Prisma.StoreItemScalarFieldEnum[] +} + +/** + * StoreItem findMany + */ +export type StoreItemFindManyArgs = { + /** + * Select specific fields to fetch from the StoreItem + */ + select?: Prisma.StoreItemSelect | null + /** + * Omit specific fields from the StoreItem + */ + omit?: Prisma.StoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemInclude | null + /** + * Filter, which StoreItems to fetch. + */ + where?: Prisma.StoreItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of StoreItems to fetch. + */ + orderBy?: Prisma.StoreItemOrderByWithRelationInput | Prisma.StoreItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing StoreItems. + */ + cursor?: Prisma.StoreItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` StoreItems 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` StoreItems. + */ + skip?: number + distinct?: Prisma.StoreItemScalarFieldEnum | Prisma.StoreItemScalarFieldEnum[] +} + +/** + * StoreItem create + */ +export type StoreItemCreateArgs = { + /** + * Select specific fields to fetch from the StoreItem + */ + select?: Prisma.StoreItemSelect | null + /** + * Omit specific fields from the StoreItem + */ + omit?: Prisma.StoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemInclude | null + /** + * The data needed to create a StoreItem. + */ + data: Prisma.XOR +} + +/** + * StoreItem createMany + */ +export type StoreItemCreateManyArgs = { + /** + * The data used to create many StoreItems. + */ + data: Prisma.StoreItemCreateManyInput | Prisma.StoreItemCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * StoreItem createManyAndReturn + */ +export type StoreItemCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the StoreItem + */ + select?: Prisma.StoreItemSelectCreateManyAndReturn | null + /** + * Omit specific fields from the StoreItem + */ + omit?: Prisma.StoreItemOmit | null + /** + * The data used to create many StoreItems. + */ + data: Prisma.StoreItemCreateManyInput | Prisma.StoreItemCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemIncludeCreateManyAndReturn | null +} + +/** + * StoreItem update + */ +export type StoreItemUpdateArgs = { + /** + * Select specific fields to fetch from the StoreItem + */ + select?: Prisma.StoreItemSelect | null + /** + * Omit specific fields from the StoreItem + */ + omit?: Prisma.StoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemInclude | null + /** + * The data needed to update a StoreItem. + */ + data: Prisma.XOR + /** + * Choose, which StoreItem to update. + */ + where: Prisma.StoreItemWhereUniqueInput +} + +/** + * StoreItem updateMany + */ +export type StoreItemUpdateManyArgs = { + /** + * The data used to update StoreItems. + */ + data: Prisma.XOR + /** + * Filter which StoreItems to update + */ + where?: Prisma.StoreItemWhereInput + /** + * Limit how many StoreItems to update. + */ + limit?: number +} + +/** + * StoreItem updateManyAndReturn + */ +export type StoreItemUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the StoreItem + */ + select?: Prisma.StoreItemSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the StoreItem + */ + omit?: Prisma.StoreItemOmit | null + /** + * The data used to update StoreItems. + */ + data: Prisma.XOR + /** + * Filter which StoreItems to update + */ + where?: Prisma.StoreItemWhereInput + /** + * Limit how many StoreItems to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemIncludeUpdateManyAndReturn | null +} + +/** + * StoreItem upsert + */ +export type StoreItemUpsertArgs = { + /** + * Select specific fields to fetch from the StoreItem + */ + select?: Prisma.StoreItemSelect | null + /** + * Omit specific fields from the StoreItem + */ + omit?: Prisma.StoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemInclude | null + /** + * The filter to search for the StoreItem to update in case it exists. + */ + where: Prisma.StoreItemWhereUniqueInput + /** + * In case the StoreItem found by the `where` argument doesn't exist, create a new StoreItem with this data. + */ + create: Prisma.XOR + /** + * In case the StoreItem was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * StoreItem delete + */ +export type StoreItemDeleteArgs = { + /** + * Select specific fields to fetch from the StoreItem + */ + select?: Prisma.StoreItemSelect | null + /** + * Omit specific fields from the StoreItem + */ + omit?: Prisma.StoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemInclude | null + /** + * Filter which StoreItem to delete. + */ + where: Prisma.StoreItemWhereUniqueInput +} + +/** + * StoreItem deleteMany + */ +export type StoreItemDeleteManyArgs = { + /** + * Filter which StoreItems to delete + */ + where?: Prisma.StoreItemWhereInput + /** + * Limit how many StoreItems to delete. + */ + limit?: number +} + +/** + * StoreItem.discounts + */ +export type StoreItem$discountsArgs = { + /** + * Select specific fields to fetch from the StoreItemDiscount + */ + select?: Prisma.StoreItemDiscountSelect | null + /** + * Omit specific fields from the StoreItemDiscount + */ + omit?: Prisma.StoreItemDiscountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemDiscountInclude | null + where?: Prisma.StoreItemDiscountWhereInput + orderBy?: Prisma.StoreItemDiscountOrderByWithRelationInput | Prisma.StoreItemDiscountOrderByWithRelationInput[] + cursor?: Prisma.StoreItemDiscountWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.StoreItemDiscountScalarFieldEnum | Prisma.StoreItemDiscountScalarFieldEnum[] +} + +/** + * StoreItem.expenses + */ +export type StoreItem$expensesArgs = { + /** + * Select specific fields to fetch from the ExpenseItem + */ + select?: Prisma.ExpenseItemSelect | null + /** + * Omit specific fields from the ExpenseItem + */ + omit?: Prisma.ExpenseItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseItemInclude | null + where?: Prisma.ExpenseItemWhereInput + orderBy?: Prisma.ExpenseItemOrderByWithRelationInput | Prisma.ExpenseItemOrderByWithRelationInput[] + cursor?: Prisma.ExpenseItemWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ExpenseItemScalarFieldEnum | Prisma.ExpenseItemScalarFieldEnum[] +} + +/** + * StoreItem.users + */ +export type StoreItem$usersArgs = { + /** + * Select specific fields to fetch from the UserStoreItem + */ + select?: Prisma.UserStoreItemSelect | null + /** + * Omit specific fields from the UserStoreItem + */ + omit?: Prisma.UserStoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreItemInclude | null + where?: Prisma.UserStoreItemWhereInput + orderBy?: Prisma.UserStoreItemOrderByWithRelationInput | Prisma.UserStoreItemOrderByWithRelationInput[] + cursor?: Prisma.UserStoreItemWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.UserStoreItemScalarFieldEnum | Prisma.UserStoreItemScalarFieldEnum[] +} + +/** + * StoreItem without action + */ +export type StoreItemDefaultArgs = { + /** + * Select specific fields to fetch from the StoreItem + */ + select?: Prisma.StoreItemSelect | null + /** + * Omit specific fields from the StoreItem + */ + omit?: Prisma.StoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/StoreItemDiscount.ts b/apps/backend/prisma/generated/generated/prisma/models/StoreItemDiscount.ts new file mode 100644 index 00000000..afd6fcc9 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/StoreItemDiscount.ts @@ -0,0 +1,1454 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `StoreItemDiscount` 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 StoreItemDiscount + * + */ +export type StoreItemDiscountModel = runtime.Types.Result.DefaultSelection + +export type AggregateStoreItemDiscount = { + _count: StoreItemDiscountCountAggregateOutputType | null + _avg: StoreItemDiscountAvgAggregateOutputType | null + _sum: StoreItemDiscountSumAggregateOutputType | null + _min: StoreItemDiscountMinAggregateOutputType | null + _max: StoreItemDiscountMaxAggregateOutputType | null +} + +export type StoreItemDiscountAvgAggregateOutputType = { + discount: runtime.Decimal | null +} + +export type StoreItemDiscountSumAggregateOutputType = { + discount: runtime.Decimal | null +} + +export type StoreItemDiscountMinAggregateOutputType = { + id: string | null + storeItemId: string | null + discount: runtime.Decimal | null + startedAt: Date | null + endedAt: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type StoreItemDiscountMaxAggregateOutputType = { + id: string | null + storeItemId: string | null + discount: runtime.Decimal | null + startedAt: Date | null + endedAt: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type StoreItemDiscountCountAggregateOutputType = { + id: number + storeItemId: number + discount: number + startedAt: number + endedAt: number + createdAt: number + updatedAt: number + _all: number +} + + +export type StoreItemDiscountAvgAggregateInputType = { + discount?: true +} + +export type StoreItemDiscountSumAggregateInputType = { + discount?: true +} + +export type StoreItemDiscountMinAggregateInputType = { + id?: true + storeItemId?: true + discount?: true + startedAt?: true + endedAt?: true + createdAt?: true + updatedAt?: true +} + +export type StoreItemDiscountMaxAggregateInputType = { + id?: true + storeItemId?: true + discount?: true + startedAt?: true + endedAt?: true + createdAt?: true + updatedAt?: true +} + +export type StoreItemDiscountCountAggregateInputType = { + id?: true + storeItemId?: true + discount?: true + startedAt?: true + endedAt?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type StoreItemDiscountAggregateArgs = { + /** + * Filter which StoreItemDiscount to aggregate. + */ + where?: Prisma.StoreItemDiscountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of StoreItemDiscounts to fetch. + */ + orderBy?: Prisma.StoreItemDiscountOrderByWithRelationInput | Prisma.StoreItemDiscountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.StoreItemDiscountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` StoreItemDiscounts 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` StoreItemDiscounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned StoreItemDiscounts + **/ + _count?: true | StoreItemDiscountCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: StoreItemDiscountAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: StoreItemDiscountSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: StoreItemDiscountMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: StoreItemDiscountMaxAggregateInputType +} + +export type GetStoreItemDiscountAggregateType = { + [P in keyof T & keyof AggregateStoreItemDiscount]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type StoreItemDiscountGroupByArgs = { + where?: Prisma.StoreItemDiscountWhereInput + orderBy?: Prisma.StoreItemDiscountOrderByWithAggregationInput | Prisma.StoreItemDiscountOrderByWithAggregationInput[] + by: Prisma.StoreItemDiscountScalarFieldEnum[] | Prisma.StoreItemDiscountScalarFieldEnum + having?: Prisma.StoreItemDiscountScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: StoreItemDiscountCountAggregateInputType | true + _avg?: StoreItemDiscountAvgAggregateInputType + _sum?: StoreItemDiscountSumAggregateInputType + _min?: StoreItemDiscountMinAggregateInputType + _max?: StoreItemDiscountMaxAggregateInputType +} + +export type StoreItemDiscountGroupByOutputType = { + id: string + storeItemId: string + discount: runtime.Decimal + startedAt: Date + endedAt: Date | null + createdAt: Date + updatedAt: Date + _count: StoreItemDiscountCountAggregateOutputType | null + _avg: StoreItemDiscountAvgAggregateOutputType | null + _sum: StoreItemDiscountSumAggregateOutputType | null + _min: StoreItemDiscountMinAggregateOutputType | null + _max: StoreItemDiscountMaxAggregateOutputType | null +} + +type GetStoreItemDiscountGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof StoreItemDiscountGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type StoreItemDiscountWhereInput = { + AND?: Prisma.StoreItemDiscountWhereInput | Prisma.StoreItemDiscountWhereInput[] + OR?: Prisma.StoreItemDiscountWhereInput[] + NOT?: Prisma.StoreItemDiscountWhereInput | Prisma.StoreItemDiscountWhereInput[] + id?: Prisma.StringFilter<"StoreItemDiscount"> | string + storeItemId?: Prisma.StringFilter<"StoreItemDiscount"> | string + discount?: Prisma.DecimalFilter<"StoreItemDiscount"> | runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Prisma.DateTimeFilter<"StoreItemDiscount"> | Date | string + endedAt?: Prisma.DateTimeNullableFilter<"StoreItemDiscount"> | Date | string | null + createdAt?: Prisma.DateTimeFilter<"StoreItemDiscount"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"StoreItemDiscount"> | Date | string + storeItem?: Prisma.XOR +} + +export type StoreItemDiscountOrderByWithRelationInput = { + id?: Prisma.SortOrder + storeItemId?: Prisma.SortOrder + discount?: Prisma.SortOrder + startedAt?: Prisma.SortOrder + endedAt?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + storeItem?: Prisma.StoreItemOrderByWithRelationInput +} + +export type StoreItemDiscountWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.StoreItemDiscountWhereInput | Prisma.StoreItemDiscountWhereInput[] + OR?: Prisma.StoreItemDiscountWhereInput[] + NOT?: Prisma.StoreItemDiscountWhereInput | Prisma.StoreItemDiscountWhereInput[] + storeItemId?: Prisma.StringFilter<"StoreItemDiscount"> | string + discount?: Prisma.DecimalFilter<"StoreItemDiscount"> | runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Prisma.DateTimeFilter<"StoreItemDiscount"> | Date | string + endedAt?: Prisma.DateTimeNullableFilter<"StoreItemDiscount"> | Date | string | null + createdAt?: Prisma.DateTimeFilter<"StoreItemDiscount"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"StoreItemDiscount"> | Date | string + storeItem?: Prisma.XOR +}, "id"> + +export type StoreItemDiscountOrderByWithAggregationInput = { + id?: Prisma.SortOrder + storeItemId?: Prisma.SortOrder + discount?: Prisma.SortOrder + startedAt?: Prisma.SortOrder + endedAt?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.StoreItemDiscountCountOrderByAggregateInput + _avg?: Prisma.StoreItemDiscountAvgOrderByAggregateInput + _max?: Prisma.StoreItemDiscountMaxOrderByAggregateInput + _min?: Prisma.StoreItemDiscountMinOrderByAggregateInput + _sum?: Prisma.StoreItemDiscountSumOrderByAggregateInput +} + +export type StoreItemDiscountScalarWhereWithAggregatesInput = { + AND?: Prisma.StoreItemDiscountScalarWhereWithAggregatesInput | Prisma.StoreItemDiscountScalarWhereWithAggregatesInput[] + OR?: Prisma.StoreItemDiscountScalarWhereWithAggregatesInput[] + NOT?: Prisma.StoreItemDiscountScalarWhereWithAggregatesInput | Prisma.StoreItemDiscountScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"StoreItemDiscount"> | string + storeItemId?: Prisma.StringWithAggregatesFilter<"StoreItemDiscount"> | string + discount?: Prisma.DecimalWithAggregatesFilter<"StoreItemDiscount"> | runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Prisma.DateTimeWithAggregatesFilter<"StoreItemDiscount"> | Date | string + endedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"StoreItemDiscount"> | Date | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<"StoreItemDiscount"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"StoreItemDiscount"> | Date | string +} + +export type StoreItemDiscountCreateInput = { + id: string + discount: runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Date | string + endedAt?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string + storeItem: Prisma.StoreItemCreateNestedOneWithoutDiscountsInput +} + +export type StoreItemDiscountUncheckedCreateInput = { + id: string + storeItemId: string + discount: runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Date | string + endedAt?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type StoreItemDiscountUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + storeItem?: Prisma.StoreItemUpdateOneRequiredWithoutDiscountsNestedInput +} + +export type StoreItemDiscountUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + storeItemId?: Prisma.StringFieldUpdateOperationsInput | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type StoreItemDiscountCreateManyInput = { + id: string + storeItemId: string + discount: runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Date | string + endedAt?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type StoreItemDiscountUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type StoreItemDiscountUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + storeItemId?: Prisma.StringFieldUpdateOperationsInput | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type StoreItemDiscountListRelationFilter = { + every?: Prisma.StoreItemDiscountWhereInput + some?: Prisma.StoreItemDiscountWhereInput + none?: Prisma.StoreItemDiscountWhereInput +} + +export type StoreItemDiscountOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type StoreItemDiscountCountOrderByAggregateInput = { + id?: Prisma.SortOrder + storeItemId?: Prisma.SortOrder + discount?: Prisma.SortOrder + startedAt?: Prisma.SortOrder + endedAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type StoreItemDiscountAvgOrderByAggregateInput = { + discount?: Prisma.SortOrder +} + +export type StoreItemDiscountMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + storeItemId?: Prisma.SortOrder + discount?: Prisma.SortOrder + startedAt?: Prisma.SortOrder + endedAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type StoreItemDiscountMinOrderByAggregateInput = { + id?: Prisma.SortOrder + storeItemId?: Prisma.SortOrder + discount?: Prisma.SortOrder + startedAt?: Prisma.SortOrder + endedAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type StoreItemDiscountSumOrderByAggregateInput = { + discount?: Prisma.SortOrder +} + +export type StoreItemDiscountCreateNestedManyWithoutStoreItemInput = { + create?: Prisma.XOR | Prisma.StoreItemDiscountCreateWithoutStoreItemInput[] | Prisma.StoreItemDiscountUncheckedCreateWithoutStoreItemInput[] + connectOrCreate?: Prisma.StoreItemDiscountCreateOrConnectWithoutStoreItemInput | Prisma.StoreItemDiscountCreateOrConnectWithoutStoreItemInput[] + createMany?: Prisma.StoreItemDiscountCreateManyStoreItemInputEnvelope + connect?: Prisma.StoreItemDiscountWhereUniqueInput | Prisma.StoreItemDiscountWhereUniqueInput[] +} + +export type StoreItemDiscountUncheckedCreateNestedManyWithoutStoreItemInput = { + create?: Prisma.XOR | Prisma.StoreItemDiscountCreateWithoutStoreItemInput[] | Prisma.StoreItemDiscountUncheckedCreateWithoutStoreItemInput[] + connectOrCreate?: Prisma.StoreItemDiscountCreateOrConnectWithoutStoreItemInput | Prisma.StoreItemDiscountCreateOrConnectWithoutStoreItemInput[] + createMany?: Prisma.StoreItemDiscountCreateManyStoreItemInputEnvelope + connect?: Prisma.StoreItemDiscountWhereUniqueInput | Prisma.StoreItemDiscountWhereUniqueInput[] +} + +export type StoreItemDiscountUpdateManyWithoutStoreItemNestedInput = { + create?: Prisma.XOR | Prisma.StoreItemDiscountCreateWithoutStoreItemInput[] | Prisma.StoreItemDiscountUncheckedCreateWithoutStoreItemInput[] + connectOrCreate?: Prisma.StoreItemDiscountCreateOrConnectWithoutStoreItemInput | Prisma.StoreItemDiscountCreateOrConnectWithoutStoreItemInput[] + upsert?: Prisma.StoreItemDiscountUpsertWithWhereUniqueWithoutStoreItemInput | Prisma.StoreItemDiscountUpsertWithWhereUniqueWithoutStoreItemInput[] + createMany?: Prisma.StoreItemDiscountCreateManyStoreItemInputEnvelope + set?: Prisma.StoreItemDiscountWhereUniqueInput | Prisma.StoreItemDiscountWhereUniqueInput[] + disconnect?: Prisma.StoreItemDiscountWhereUniqueInput | Prisma.StoreItemDiscountWhereUniqueInput[] + delete?: Prisma.StoreItemDiscountWhereUniqueInput | Prisma.StoreItemDiscountWhereUniqueInput[] + connect?: Prisma.StoreItemDiscountWhereUniqueInput | Prisma.StoreItemDiscountWhereUniqueInput[] + update?: Prisma.StoreItemDiscountUpdateWithWhereUniqueWithoutStoreItemInput | Prisma.StoreItemDiscountUpdateWithWhereUniqueWithoutStoreItemInput[] + updateMany?: Prisma.StoreItemDiscountUpdateManyWithWhereWithoutStoreItemInput | Prisma.StoreItemDiscountUpdateManyWithWhereWithoutStoreItemInput[] + deleteMany?: Prisma.StoreItemDiscountScalarWhereInput | Prisma.StoreItemDiscountScalarWhereInput[] +} + +export type StoreItemDiscountUncheckedUpdateManyWithoutStoreItemNestedInput = { + create?: Prisma.XOR | Prisma.StoreItemDiscountCreateWithoutStoreItemInput[] | Prisma.StoreItemDiscountUncheckedCreateWithoutStoreItemInput[] + connectOrCreate?: Prisma.StoreItemDiscountCreateOrConnectWithoutStoreItemInput | Prisma.StoreItemDiscountCreateOrConnectWithoutStoreItemInput[] + upsert?: Prisma.StoreItemDiscountUpsertWithWhereUniqueWithoutStoreItemInput | Prisma.StoreItemDiscountUpsertWithWhereUniqueWithoutStoreItemInput[] + createMany?: Prisma.StoreItemDiscountCreateManyStoreItemInputEnvelope + set?: Prisma.StoreItemDiscountWhereUniqueInput | Prisma.StoreItemDiscountWhereUniqueInput[] + disconnect?: Prisma.StoreItemDiscountWhereUniqueInput | Prisma.StoreItemDiscountWhereUniqueInput[] + delete?: Prisma.StoreItemDiscountWhereUniqueInput | Prisma.StoreItemDiscountWhereUniqueInput[] + connect?: Prisma.StoreItemDiscountWhereUniqueInput | Prisma.StoreItemDiscountWhereUniqueInput[] + update?: Prisma.StoreItemDiscountUpdateWithWhereUniqueWithoutStoreItemInput | Prisma.StoreItemDiscountUpdateWithWhereUniqueWithoutStoreItemInput[] + updateMany?: Prisma.StoreItemDiscountUpdateManyWithWhereWithoutStoreItemInput | Prisma.StoreItemDiscountUpdateManyWithWhereWithoutStoreItemInput[] + deleteMany?: Prisma.StoreItemDiscountScalarWhereInput | Prisma.StoreItemDiscountScalarWhereInput[] +} + +export type StoreItemDiscountCreateWithoutStoreItemInput = { + id: string + discount: runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Date | string + endedAt?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type StoreItemDiscountUncheckedCreateWithoutStoreItemInput = { + id: string + discount: runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Date | string + endedAt?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type StoreItemDiscountCreateOrConnectWithoutStoreItemInput = { + where: Prisma.StoreItemDiscountWhereUniqueInput + create: Prisma.XOR +} + +export type StoreItemDiscountCreateManyStoreItemInputEnvelope = { + data: Prisma.StoreItemDiscountCreateManyStoreItemInput | Prisma.StoreItemDiscountCreateManyStoreItemInput[] + skipDuplicates?: boolean +} + +export type StoreItemDiscountUpsertWithWhereUniqueWithoutStoreItemInput = { + where: Prisma.StoreItemDiscountWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type StoreItemDiscountUpdateWithWhereUniqueWithoutStoreItemInput = { + where: Prisma.StoreItemDiscountWhereUniqueInput + data: Prisma.XOR +} + +export type StoreItemDiscountUpdateManyWithWhereWithoutStoreItemInput = { + where: Prisma.StoreItemDiscountScalarWhereInput + data: Prisma.XOR +} + +export type StoreItemDiscountScalarWhereInput = { + AND?: Prisma.StoreItemDiscountScalarWhereInput | Prisma.StoreItemDiscountScalarWhereInput[] + OR?: Prisma.StoreItemDiscountScalarWhereInput[] + NOT?: Prisma.StoreItemDiscountScalarWhereInput | Prisma.StoreItemDiscountScalarWhereInput[] + id?: Prisma.StringFilter<"StoreItemDiscount"> | string + storeItemId?: Prisma.StringFilter<"StoreItemDiscount"> | string + discount?: Prisma.DecimalFilter<"StoreItemDiscount"> | runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Prisma.DateTimeFilter<"StoreItemDiscount"> | Date | string + endedAt?: Prisma.DateTimeNullableFilter<"StoreItemDiscount"> | Date | string | null + createdAt?: Prisma.DateTimeFilter<"StoreItemDiscount"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"StoreItemDiscount"> | Date | string +} + +export type StoreItemDiscountCreateManyStoreItemInput = { + id: string + discount: runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Date | string + endedAt?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type StoreItemDiscountUpdateWithoutStoreItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type StoreItemDiscountUncheckedUpdateWithoutStoreItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type StoreItemDiscountUncheckedUpdateManyWithoutStoreItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type StoreItemDiscountSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + storeItemId?: boolean + discount?: boolean + startedAt?: boolean + endedAt?: boolean + createdAt?: boolean + updatedAt?: boolean + storeItem?: boolean | Prisma.StoreItemDefaultArgs +}, ExtArgs["result"]["storeItemDiscount"]> + +export type StoreItemDiscountSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + storeItemId?: boolean + discount?: boolean + startedAt?: boolean + endedAt?: boolean + createdAt?: boolean + updatedAt?: boolean + storeItem?: boolean | Prisma.StoreItemDefaultArgs +}, ExtArgs["result"]["storeItemDiscount"]> + +export type StoreItemDiscountSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + storeItemId?: boolean + discount?: boolean + startedAt?: boolean + endedAt?: boolean + createdAt?: boolean + updatedAt?: boolean + storeItem?: boolean | Prisma.StoreItemDefaultArgs +}, ExtArgs["result"]["storeItemDiscount"]> + +export type StoreItemDiscountSelectScalar = { + id?: boolean + storeItemId?: boolean + discount?: boolean + startedAt?: boolean + endedAt?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type StoreItemDiscountOmit = runtime.Types.Extensions.GetOmit<"id" | "storeItemId" | "discount" | "startedAt" | "endedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["storeItemDiscount"]> +export type StoreItemDiscountInclude = { + storeItem?: boolean | Prisma.StoreItemDefaultArgs +} +export type StoreItemDiscountIncludeCreateManyAndReturn = { + storeItem?: boolean | Prisma.StoreItemDefaultArgs +} +export type StoreItemDiscountIncludeUpdateManyAndReturn = { + storeItem?: boolean | Prisma.StoreItemDefaultArgs +} + +export type $StoreItemDiscountPayload = { + name: "StoreItemDiscount" + objects: { + storeItem: Prisma.$StoreItemPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + storeItemId: string + discount: runtime.Decimal + startedAt: Date + endedAt: Date | null + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["storeItemDiscount"]> + composites: {} +} + +export type StoreItemDiscountGetPayload = runtime.Types.Result.GetResult + +export type StoreItemDiscountCountArgs = + Omit & { + select?: StoreItemDiscountCountAggregateInputType | true + } + +export interface StoreItemDiscountDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['StoreItemDiscount'], meta: { name: 'StoreItemDiscount' } } + /** + * Find zero or one StoreItemDiscount that matches the filter. + * @param {StoreItemDiscountFindUniqueArgs} args - Arguments to find a StoreItemDiscount + * @example + * // Get one StoreItemDiscount + * const storeItemDiscount = await prisma.storeItemDiscount.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__StoreItemDiscountClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one StoreItemDiscount that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {StoreItemDiscountFindUniqueOrThrowArgs} args - Arguments to find a StoreItemDiscount + * @example + * // Get one StoreItemDiscount + * const storeItemDiscount = await prisma.storeItemDiscount.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__StoreItemDiscountClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first StoreItemDiscount 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 {StoreItemDiscountFindFirstArgs} args - Arguments to find a StoreItemDiscount + * @example + * // Get one StoreItemDiscount + * const storeItemDiscount = await prisma.storeItemDiscount.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__StoreItemDiscountClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first StoreItemDiscount 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 {StoreItemDiscountFindFirstOrThrowArgs} args - Arguments to find a StoreItemDiscount + * @example + * // Get one StoreItemDiscount + * const storeItemDiscount = await prisma.storeItemDiscount.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__StoreItemDiscountClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more StoreItemDiscounts 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 {StoreItemDiscountFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all StoreItemDiscounts + * const storeItemDiscounts = await prisma.storeItemDiscount.findMany() + * + * // Get first 10 StoreItemDiscounts + * const storeItemDiscounts = await prisma.storeItemDiscount.findMany({ take: 10 }) + * + * // Only select the `id` + * const storeItemDiscountWithIdOnly = await prisma.storeItemDiscount.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a StoreItemDiscount. + * @param {StoreItemDiscountCreateArgs} args - Arguments to create a StoreItemDiscount. + * @example + * // Create one StoreItemDiscount + * const StoreItemDiscount = await prisma.storeItemDiscount.create({ + * data: { + * // ... data to create a StoreItemDiscount + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__StoreItemDiscountClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many StoreItemDiscounts. + * @param {StoreItemDiscountCreateManyArgs} args - Arguments to create many StoreItemDiscounts. + * @example + * // Create many StoreItemDiscounts + * const storeItemDiscount = await prisma.storeItemDiscount.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many StoreItemDiscounts and returns the data saved in the database. + * @param {StoreItemDiscountCreateManyAndReturnArgs} args - Arguments to create many StoreItemDiscounts. + * @example + * // Create many StoreItemDiscounts + * const storeItemDiscount = await prisma.storeItemDiscount.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many StoreItemDiscounts and only return the `id` + * const storeItemDiscountWithIdOnly = await prisma.storeItemDiscount.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a StoreItemDiscount. + * @param {StoreItemDiscountDeleteArgs} args - Arguments to delete one StoreItemDiscount. + * @example + * // Delete one StoreItemDiscount + * const StoreItemDiscount = await prisma.storeItemDiscount.delete({ + * where: { + * // ... filter to delete one StoreItemDiscount + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__StoreItemDiscountClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one StoreItemDiscount. + * @param {StoreItemDiscountUpdateArgs} args - Arguments to update one StoreItemDiscount. + * @example + * // Update one StoreItemDiscount + * const storeItemDiscount = await prisma.storeItemDiscount.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__StoreItemDiscountClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more StoreItemDiscounts. + * @param {StoreItemDiscountDeleteManyArgs} args - Arguments to filter StoreItemDiscounts to delete. + * @example + * // Delete a few StoreItemDiscounts + * const { count } = await prisma.storeItemDiscount.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more StoreItemDiscounts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StoreItemDiscountUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many StoreItemDiscounts + * const storeItemDiscount = await prisma.storeItemDiscount.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more StoreItemDiscounts and returns the data updated in the database. + * @param {StoreItemDiscountUpdateManyAndReturnArgs} args - Arguments to update many StoreItemDiscounts. + * @example + * // Update many StoreItemDiscounts + * const storeItemDiscount = await prisma.storeItemDiscount.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more StoreItemDiscounts and only return the `id` + * const storeItemDiscountWithIdOnly = await prisma.storeItemDiscount.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one StoreItemDiscount. + * @param {StoreItemDiscountUpsertArgs} args - Arguments to update or create a StoreItemDiscount. + * @example + * // Update or create a StoreItemDiscount + * const storeItemDiscount = await prisma.storeItemDiscount.upsert({ + * create: { + * // ... data to create a StoreItemDiscount + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the StoreItemDiscount we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__StoreItemDiscountClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of StoreItemDiscounts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StoreItemDiscountCountArgs} args - Arguments to filter StoreItemDiscounts to count. + * @example + * // Count the number of StoreItemDiscounts + * const count = await prisma.storeItemDiscount.count({ + * where: { + * // ... the filter for the StoreItemDiscounts we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a StoreItemDiscount. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StoreItemDiscountAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by StoreItemDiscount. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StoreItemDiscountGroupByArgs} 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 StoreItemDiscountGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: StoreItemDiscountGroupByArgs['orderBy'] } + : { orderBy?: StoreItemDiscountGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetStoreItemDiscountGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the StoreItemDiscount model + */ +readonly fields: StoreItemDiscountFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for StoreItemDiscount. + * 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__StoreItemDiscountClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + storeItem = {}>(args?: Prisma.Subset>): Prisma.Prisma__StoreItemClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the StoreItemDiscount model + */ +export interface StoreItemDiscountFieldRefs { + readonly id: Prisma.FieldRef<"StoreItemDiscount", 'String'> + readonly storeItemId: Prisma.FieldRef<"StoreItemDiscount", 'String'> + readonly discount: Prisma.FieldRef<"StoreItemDiscount", 'Decimal'> + readonly startedAt: Prisma.FieldRef<"StoreItemDiscount", 'DateTime'> + readonly endedAt: Prisma.FieldRef<"StoreItemDiscount", 'DateTime'> + readonly createdAt: Prisma.FieldRef<"StoreItemDiscount", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"StoreItemDiscount", 'DateTime'> +} + + +// Custom InputTypes +/** + * StoreItemDiscount findUnique + */ +export type StoreItemDiscountFindUniqueArgs = { + /** + * Select specific fields to fetch from the StoreItemDiscount + */ + select?: Prisma.StoreItemDiscountSelect | null + /** + * Omit specific fields from the StoreItemDiscount + */ + omit?: Prisma.StoreItemDiscountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemDiscountInclude | null + /** + * Filter, which StoreItemDiscount to fetch. + */ + where: Prisma.StoreItemDiscountWhereUniqueInput +} + +/** + * StoreItemDiscount findUniqueOrThrow + */ +export type StoreItemDiscountFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the StoreItemDiscount + */ + select?: Prisma.StoreItemDiscountSelect | null + /** + * Omit specific fields from the StoreItemDiscount + */ + omit?: Prisma.StoreItemDiscountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemDiscountInclude | null + /** + * Filter, which StoreItemDiscount to fetch. + */ + where: Prisma.StoreItemDiscountWhereUniqueInput +} + +/** + * StoreItemDiscount findFirst + */ +export type StoreItemDiscountFindFirstArgs = { + /** + * Select specific fields to fetch from the StoreItemDiscount + */ + select?: Prisma.StoreItemDiscountSelect | null + /** + * Omit specific fields from the StoreItemDiscount + */ + omit?: Prisma.StoreItemDiscountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemDiscountInclude | null + /** + * Filter, which StoreItemDiscount to fetch. + */ + where?: Prisma.StoreItemDiscountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of StoreItemDiscounts to fetch. + */ + orderBy?: Prisma.StoreItemDiscountOrderByWithRelationInput | Prisma.StoreItemDiscountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for StoreItemDiscounts. + */ + cursor?: Prisma.StoreItemDiscountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` StoreItemDiscounts 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` StoreItemDiscounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of StoreItemDiscounts. + */ + distinct?: Prisma.StoreItemDiscountScalarFieldEnum | Prisma.StoreItemDiscountScalarFieldEnum[] +} + +/** + * StoreItemDiscount findFirstOrThrow + */ +export type StoreItemDiscountFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the StoreItemDiscount + */ + select?: Prisma.StoreItemDiscountSelect | null + /** + * Omit specific fields from the StoreItemDiscount + */ + omit?: Prisma.StoreItemDiscountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemDiscountInclude | null + /** + * Filter, which StoreItemDiscount to fetch. + */ + where?: Prisma.StoreItemDiscountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of StoreItemDiscounts to fetch. + */ + orderBy?: Prisma.StoreItemDiscountOrderByWithRelationInput | Prisma.StoreItemDiscountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for StoreItemDiscounts. + */ + cursor?: Prisma.StoreItemDiscountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` StoreItemDiscounts 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` StoreItemDiscounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of StoreItemDiscounts. + */ + distinct?: Prisma.StoreItemDiscountScalarFieldEnum | Prisma.StoreItemDiscountScalarFieldEnum[] +} + +/** + * StoreItemDiscount findMany + */ +export type StoreItemDiscountFindManyArgs = { + /** + * Select specific fields to fetch from the StoreItemDiscount + */ + select?: Prisma.StoreItemDiscountSelect | null + /** + * Omit specific fields from the StoreItemDiscount + */ + omit?: Prisma.StoreItemDiscountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemDiscountInclude | null + /** + * Filter, which StoreItemDiscounts to fetch. + */ + where?: Prisma.StoreItemDiscountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of StoreItemDiscounts to fetch. + */ + orderBy?: Prisma.StoreItemDiscountOrderByWithRelationInput | Prisma.StoreItemDiscountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing StoreItemDiscounts. + */ + cursor?: Prisma.StoreItemDiscountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` StoreItemDiscounts 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` StoreItemDiscounts. + */ + skip?: number + distinct?: Prisma.StoreItemDiscountScalarFieldEnum | Prisma.StoreItemDiscountScalarFieldEnum[] +} + +/** + * StoreItemDiscount create + */ +export type StoreItemDiscountCreateArgs = { + /** + * Select specific fields to fetch from the StoreItemDiscount + */ + select?: Prisma.StoreItemDiscountSelect | null + /** + * Omit specific fields from the StoreItemDiscount + */ + omit?: Prisma.StoreItemDiscountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemDiscountInclude | null + /** + * The data needed to create a StoreItemDiscount. + */ + data: Prisma.XOR +} + +/** + * StoreItemDiscount createMany + */ +export type StoreItemDiscountCreateManyArgs = { + /** + * The data used to create many StoreItemDiscounts. + */ + data: Prisma.StoreItemDiscountCreateManyInput | Prisma.StoreItemDiscountCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * StoreItemDiscount createManyAndReturn + */ +export type StoreItemDiscountCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the StoreItemDiscount + */ + select?: Prisma.StoreItemDiscountSelectCreateManyAndReturn | null + /** + * Omit specific fields from the StoreItemDiscount + */ + omit?: Prisma.StoreItemDiscountOmit | null + /** + * The data used to create many StoreItemDiscounts. + */ + data: Prisma.StoreItemDiscountCreateManyInput | Prisma.StoreItemDiscountCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemDiscountIncludeCreateManyAndReturn | null +} + +/** + * StoreItemDiscount update + */ +export type StoreItemDiscountUpdateArgs = { + /** + * Select specific fields to fetch from the StoreItemDiscount + */ + select?: Prisma.StoreItemDiscountSelect | null + /** + * Omit specific fields from the StoreItemDiscount + */ + omit?: Prisma.StoreItemDiscountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemDiscountInclude | null + /** + * The data needed to update a StoreItemDiscount. + */ + data: Prisma.XOR + /** + * Choose, which StoreItemDiscount to update. + */ + where: Prisma.StoreItemDiscountWhereUniqueInput +} + +/** + * StoreItemDiscount updateMany + */ +export type StoreItemDiscountUpdateManyArgs = { + /** + * The data used to update StoreItemDiscounts. + */ + data: Prisma.XOR + /** + * Filter which StoreItemDiscounts to update + */ + where?: Prisma.StoreItemDiscountWhereInput + /** + * Limit how many StoreItemDiscounts to update. + */ + limit?: number +} + +/** + * StoreItemDiscount updateManyAndReturn + */ +export type StoreItemDiscountUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the StoreItemDiscount + */ + select?: Prisma.StoreItemDiscountSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the StoreItemDiscount + */ + omit?: Prisma.StoreItemDiscountOmit | null + /** + * The data used to update StoreItemDiscounts. + */ + data: Prisma.XOR + /** + * Filter which StoreItemDiscounts to update + */ + where?: Prisma.StoreItemDiscountWhereInput + /** + * Limit how many StoreItemDiscounts to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemDiscountIncludeUpdateManyAndReturn | null +} + +/** + * StoreItemDiscount upsert + */ +export type StoreItemDiscountUpsertArgs = { + /** + * Select specific fields to fetch from the StoreItemDiscount + */ + select?: Prisma.StoreItemDiscountSelect | null + /** + * Omit specific fields from the StoreItemDiscount + */ + omit?: Prisma.StoreItemDiscountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemDiscountInclude | null + /** + * The filter to search for the StoreItemDiscount to update in case it exists. + */ + where: Prisma.StoreItemDiscountWhereUniqueInput + /** + * In case the StoreItemDiscount found by the `where` argument doesn't exist, create a new StoreItemDiscount with this data. + */ + create: Prisma.XOR + /** + * In case the StoreItemDiscount was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * StoreItemDiscount delete + */ +export type StoreItemDiscountDeleteArgs = { + /** + * Select specific fields to fetch from the StoreItemDiscount + */ + select?: Prisma.StoreItemDiscountSelect | null + /** + * Omit specific fields from the StoreItemDiscount + */ + omit?: Prisma.StoreItemDiscountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemDiscountInclude | null + /** + * Filter which StoreItemDiscount to delete. + */ + where: Prisma.StoreItemDiscountWhereUniqueInput +} + +/** + * StoreItemDiscount deleteMany + */ +export type StoreItemDiscountDeleteManyArgs = { + /** + * Filter which StoreItemDiscounts to delete + */ + where?: Prisma.StoreItemDiscountWhereInput + /** + * Limit how many StoreItemDiscounts to delete. + */ + limit?: number +} + +/** + * StoreItemDiscount without action + */ +export type StoreItemDiscountDefaultArgs = { + /** + * Select specific fields to fetch from the StoreItemDiscount + */ + select?: Prisma.StoreItemDiscountSelect | null + /** + * Omit specific fields from the StoreItemDiscount + */ + omit?: Prisma.StoreItemDiscountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StoreItemDiscountInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/Transaction.ts b/apps/backend/prisma/generated/generated/prisma/models/Transaction.ts new file mode 100644 index 00000000..505fd76c --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/Transaction.ts @@ -0,0 +1,2471 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Transaction` 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 Transaction + * + */ +export type TransactionModel = runtime.Types.Result.DefaultSelection + +export type AggregateTransaction = { + _count: TransactionCountAggregateOutputType | null + _avg: TransactionAvgAggregateOutputType | null + _sum: TransactionSumAggregateOutputType | null + _min: TransactionMinAggregateOutputType | null + _max: TransactionMaxAggregateOutputType | null +} + +export type TransactionAvgAggregateOutputType = { + value: runtime.Decimal | null +} + +export type TransactionSumAggregateOutputType = { + value: runtime.Decimal | null +} + +export type TransactionMinAggregateOutputType = { + id: string | null + userId: string | null + familyId: string | null + scope: $Enums.TransactionScope | null + type: $Enums.TransactionType | null + status: $Enums.TransactionStatus | null + value: runtime.Decimal | null + rejectionReason: string | null + recordedAt: Date | null + paymentMethodId: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type TransactionMaxAggregateOutputType = { + id: string | null + userId: string | null + familyId: string | null + scope: $Enums.TransactionScope | null + type: $Enums.TransactionType | null + status: $Enums.TransactionStatus | null + value: runtime.Decimal | null + rejectionReason: string | null + recordedAt: Date | null + paymentMethodId: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type TransactionCountAggregateOutputType = { + id: number + userId: number + familyId: number + scope: number + type: number + status: number + value: number + rejectionReason: number + recordedAt: number + paymentMethodId: number + createdAt: number + updatedAt: number + _all: number +} + + +export type TransactionAvgAggregateInputType = { + value?: true +} + +export type TransactionSumAggregateInputType = { + value?: true +} + +export type TransactionMinAggregateInputType = { + id?: true + userId?: true + familyId?: true + scope?: true + type?: true + status?: true + value?: true + rejectionReason?: true + recordedAt?: true + paymentMethodId?: true + createdAt?: true + updatedAt?: true +} + +export type TransactionMaxAggregateInputType = { + id?: true + userId?: true + familyId?: true + scope?: true + type?: true + status?: true + value?: true + rejectionReason?: true + recordedAt?: true + paymentMethodId?: true + createdAt?: true + updatedAt?: true +} + +export type TransactionCountAggregateInputType = { + id?: true + userId?: true + familyId?: true + scope?: true + type?: true + status?: true + value?: true + rejectionReason?: true + recordedAt?: true + paymentMethodId?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type TransactionAggregateArgs = { + /** + * Filter which Transaction to aggregate. + */ + where?: Prisma.TransactionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Transactions to fetch. + */ + orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.TransactionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Transactions 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` Transactions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Transactions + **/ + _count?: true | TransactionCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: TransactionAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: TransactionSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: TransactionMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: TransactionMaxAggregateInputType +} + +export type GetTransactionAggregateType = { + [P in keyof T & keyof AggregateTransaction]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type TransactionGroupByArgs = { + where?: Prisma.TransactionWhereInput + orderBy?: Prisma.TransactionOrderByWithAggregationInput | Prisma.TransactionOrderByWithAggregationInput[] + by: Prisma.TransactionScalarFieldEnum[] | Prisma.TransactionScalarFieldEnum + having?: Prisma.TransactionScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: TransactionCountAggregateInputType | true + _avg?: TransactionAvgAggregateInputType + _sum?: TransactionSumAggregateInputType + _min?: TransactionMinAggregateInputType + _max?: TransactionMaxAggregateInputType +} + +export type TransactionGroupByOutputType = { + id: string + userId: string + familyId: string | null + scope: $Enums.TransactionScope + type: $Enums.TransactionType + status: $Enums.TransactionStatus + value: runtime.Decimal + rejectionReason: string | null + recordedAt: Date + paymentMethodId: string | null + createdAt: Date + updatedAt: Date + _count: TransactionCountAggregateOutputType | null + _avg: TransactionAvgAggregateOutputType | null + _sum: TransactionSumAggregateOutputType | null + _min: TransactionMinAggregateOutputType | null + _max: TransactionMaxAggregateOutputType | null +} + +type GetTransactionGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof TransactionGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type TransactionWhereInput = { + AND?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[] + OR?: Prisma.TransactionWhereInput[] + NOT?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[] + id?: Prisma.StringFilter<"Transaction"> | string + userId?: Prisma.StringFilter<"Transaction"> | string + familyId?: Prisma.StringNullableFilter<"Transaction"> | string | null + scope?: Prisma.EnumTransactionScopeFilter<"Transaction"> | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFilter<"Transaction"> | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFilter<"Transaction"> | $Enums.TransactionStatus + value?: Prisma.DecimalFilter<"Transaction"> | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.StringNullableFilter<"Transaction"> | string | null + recordedAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string + paymentMethodId?: Prisma.StringNullableFilter<"Transaction"> | string | null + createdAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string + paymentMethod?: Prisma.XOR | null + expense?: Prisma.XOR | null + income?: Prisma.XOR | null + user?: Prisma.XOR + family?: Prisma.XOR | null + notifications?: Prisma.NotificationListRelationFilter +} + +export type TransactionOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + familyId?: Prisma.SortOrderInput | Prisma.SortOrder + scope?: Prisma.SortOrder + type?: Prisma.SortOrder + status?: Prisma.SortOrder + value?: Prisma.SortOrder + rejectionReason?: Prisma.SortOrderInput | Prisma.SortOrder + recordedAt?: Prisma.SortOrder + paymentMethodId?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + paymentMethod?: Prisma.PaymentMethodOrderByWithRelationInput + expense?: Prisma.ExpenseOrderByWithRelationInput + income?: Prisma.IncomeOrderByWithRelationInput + user?: Prisma.UserOrderByWithRelationInput + family?: Prisma.FamilyOrderByWithRelationInput + notifications?: Prisma.NotificationOrderByRelationAggregateInput +} + +export type TransactionWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[] + OR?: Prisma.TransactionWhereInput[] + NOT?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[] + userId?: Prisma.StringFilter<"Transaction"> | string + familyId?: Prisma.StringNullableFilter<"Transaction"> | string | null + scope?: Prisma.EnumTransactionScopeFilter<"Transaction"> | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFilter<"Transaction"> | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFilter<"Transaction"> | $Enums.TransactionStatus + value?: Prisma.DecimalFilter<"Transaction"> | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.StringNullableFilter<"Transaction"> | string | null + recordedAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string + paymentMethodId?: Prisma.StringNullableFilter<"Transaction"> | string | null + createdAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string + paymentMethod?: Prisma.XOR | null + expense?: Prisma.XOR | null + income?: Prisma.XOR | null + user?: Prisma.XOR + family?: Prisma.XOR | null + notifications?: Prisma.NotificationListRelationFilter +}, "id"> + +export type TransactionOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + familyId?: Prisma.SortOrderInput | Prisma.SortOrder + scope?: Prisma.SortOrder + type?: Prisma.SortOrder + status?: Prisma.SortOrder + value?: Prisma.SortOrder + rejectionReason?: Prisma.SortOrderInput | Prisma.SortOrder + recordedAt?: Prisma.SortOrder + paymentMethodId?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.TransactionCountOrderByAggregateInput + _avg?: Prisma.TransactionAvgOrderByAggregateInput + _max?: Prisma.TransactionMaxOrderByAggregateInput + _min?: Prisma.TransactionMinOrderByAggregateInput + _sum?: Prisma.TransactionSumOrderByAggregateInput +} + +export type TransactionScalarWhereWithAggregatesInput = { + AND?: Prisma.TransactionScalarWhereWithAggregatesInput | Prisma.TransactionScalarWhereWithAggregatesInput[] + OR?: Prisma.TransactionScalarWhereWithAggregatesInput[] + NOT?: Prisma.TransactionScalarWhereWithAggregatesInput | Prisma.TransactionScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Transaction"> | string + userId?: Prisma.StringWithAggregatesFilter<"Transaction"> | string + familyId?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null + scope?: Prisma.EnumTransactionScopeWithAggregatesFilter<"Transaction"> | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeWithAggregatesFilter<"Transaction"> | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusWithAggregatesFilter<"Transaction"> | $Enums.TransactionStatus + value?: Prisma.DecimalWithAggregatesFilter<"Transaction"> | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null + recordedAt?: Prisma.DateTimeWithAggregatesFilter<"Transaction"> | Date | string + paymentMethodId?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Transaction"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Transaction"> | Date | string +} + +export type TransactionCreateInput = { + id?: string + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string + paymentMethod?: Prisma.PaymentMethodCreateNestedOneWithoutTransactionsInput + expense?: Prisma.ExpenseCreateNestedOneWithoutTransactionInput + income?: Prisma.IncomeCreateNestedOneWithoutTransactionInput + user: Prisma.UserCreateNestedOneWithoutTransactionsInput + family?: Prisma.FamilyCreateNestedOneWithoutTransactionsInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTransactionInput +} + +export type TransactionUncheckedCreateInput = { + id?: string + userId: string + familyId?: string | null + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + paymentMethodId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + expense?: Prisma.ExpenseUncheckedCreateNestedOneWithoutTransactionInput + income?: Prisma.IncomeUncheckedCreateNestedOneWithoutTransactionInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTransactionInput +} + +export type TransactionUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + paymentMethod?: Prisma.PaymentMethodUpdateOneWithoutTransactionsNestedInput + expense?: Prisma.ExpenseUpdateOneWithoutTransactionNestedInput + income?: Prisma.IncomeUpdateOneWithoutTransactionNestedInput + user?: Prisma.UserUpdateOneRequiredWithoutTransactionsNestedInput + family?: Prisma.FamilyUpdateOneWithoutTransactionsNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTransactionNestedInput +} + +export type TransactionUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expense?: Prisma.ExpenseUncheckedUpdateOneWithoutTransactionNestedInput + income?: Prisma.IncomeUncheckedUpdateOneWithoutTransactionNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTransactionNestedInput +} + +export type TransactionCreateManyInput = { + id?: string + userId: string + familyId?: string | null + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + paymentMethodId?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type TransactionUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type TransactionUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type TransactionScalarRelationFilter = { + is?: Prisma.TransactionWhereInput + isNot?: Prisma.TransactionWhereInput +} + +export type TransactionListRelationFilter = { + every?: Prisma.TransactionWhereInput + some?: Prisma.TransactionWhereInput + none?: Prisma.TransactionWhereInput +} + +export type TransactionOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type TransactionNullableScalarRelationFilter = { + is?: Prisma.TransactionWhereInput | null + isNot?: Prisma.TransactionWhereInput | null +} + +export type TransactionCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + familyId?: Prisma.SortOrder + scope?: Prisma.SortOrder + type?: Prisma.SortOrder + status?: Prisma.SortOrder + value?: Prisma.SortOrder + rejectionReason?: Prisma.SortOrder + recordedAt?: Prisma.SortOrder + paymentMethodId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type TransactionAvgOrderByAggregateInput = { + value?: Prisma.SortOrder +} + +export type TransactionMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + familyId?: Prisma.SortOrder + scope?: Prisma.SortOrder + type?: Prisma.SortOrder + status?: Prisma.SortOrder + value?: Prisma.SortOrder + rejectionReason?: Prisma.SortOrder + recordedAt?: Prisma.SortOrder + paymentMethodId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type TransactionMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + familyId?: Prisma.SortOrder + scope?: Prisma.SortOrder + type?: Prisma.SortOrder + status?: Prisma.SortOrder + value?: Prisma.SortOrder + rejectionReason?: Prisma.SortOrder + recordedAt?: Prisma.SortOrder + paymentMethodId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type TransactionSumOrderByAggregateInput = { + value?: Prisma.SortOrder +} + +export type TransactionCreateNestedOneWithoutExpenseInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutExpenseInput + connect?: Prisma.TransactionWhereUniqueInput +} + +export type TransactionUpdateOneRequiredWithoutExpenseNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutExpenseInput + upsert?: Prisma.TransactionUpsertWithoutExpenseInput + connect?: Prisma.TransactionWhereUniqueInput + update?: Prisma.XOR, Prisma.TransactionUncheckedUpdateWithoutExpenseInput> +} + +export type TransactionCreateNestedManyWithoutFamilyInput = { + create?: Prisma.XOR | Prisma.TransactionCreateWithoutFamilyInput[] | Prisma.TransactionUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutFamilyInput | Prisma.TransactionCreateOrConnectWithoutFamilyInput[] + createMany?: Prisma.TransactionCreateManyFamilyInputEnvelope + connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] +} + +export type TransactionUncheckedCreateNestedManyWithoutFamilyInput = { + create?: Prisma.XOR | Prisma.TransactionCreateWithoutFamilyInput[] | Prisma.TransactionUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutFamilyInput | Prisma.TransactionCreateOrConnectWithoutFamilyInput[] + createMany?: Prisma.TransactionCreateManyFamilyInputEnvelope + connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] +} + +export type TransactionUpdateManyWithoutFamilyNestedInput = { + create?: Prisma.XOR | Prisma.TransactionCreateWithoutFamilyInput[] | Prisma.TransactionUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutFamilyInput | Prisma.TransactionCreateOrConnectWithoutFamilyInput[] + upsert?: Prisma.TransactionUpsertWithWhereUniqueWithoutFamilyInput | Prisma.TransactionUpsertWithWhereUniqueWithoutFamilyInput[] + createMany?: Prisma.TransactionCreateManyFamilyInputEnvelope + set?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + disconnect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + delete?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + update?: Prisma.TransactionUpdateWithWhereUniqueWithoutFamilyInput | Prisma.TransactionUpdateWithWhereUniqueWithoutFamilyInput[] + updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutFamilyInput | Prisma.TransactionUpdateManyWithWhereWithoutFamilyInput[] + deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[] +} + +export type TransactionUncheckedUpdateManyWithoutFamilyNestedInput = { + create?: Prisma.XOR | Prisma.TransactionCreateWithoutFamilyInput[] | Prisma.TransactionUncheckedCreateWithoutFamilyInput[] + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutFamilyInput | Prisma.TransactionCreateOrConnectWithoutFamilyInput[] + upsert?: Prisma.TransactionUpsertWithWhereUniqueWithoutFamilyInput | Prisma.TransactionUpsertWithWhereUniqueWithoutFamilyInput[] + createMany?: Prisma.TransactionCreateManyFamilyInputEnvelope + set?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + disconnect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + delete?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + update?: Prisma.TransactionUpdateWithWhereUniqueWithoutFamilyInput | Prisma.TransactionUpdateWithWhereUniqueWithoutFamilyInput[] + updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutFamilyInput | Prisma.TransactionUpdateManyWithWhereWithoutFamilyInput[] + deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[] +} + +export type TransactionCreateNestedOneWithoutIncomeInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutIncomeInput + connect?: Prisma.TransactionWhereUniqueInput +} + +export type TransactionUpdateOneRequiredWithoutIncomeNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutIncomeInput + upsert?: Prisma.TransactionUpsertWithoutIncomeInput + connect?: Prisma.TransactionWhereUniqueInput + update?: Prisma.XOR, Prisma.TransactionUncheckedUpdateWithoutIncomeInput> +} + +export type TransactionCreateNestedOneWithoutNotificationsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutNotificationsInput + connect?: Prisma.TransactionWhereUniqueInput +} + +export type TransactionUpdateOneWithoutNotificationsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutNotificationsInput + upsert?: Prisma.TransactionUpsertWithoutNotificationsInput + disconnect?: Prisma.TransactionWhereInput | boolean + delete?: Prisma.TransactionWhereInput | boolean + connect?: Prisma.TransactionWhereUniqueInput + update?: Prisma.XOR, Prisma.TransactionUncheckedUpdateWithoutNotificationsInput> +} + +export type TransactionCreateNestedManyWithoutPaymentMethodInput = { + create?: Prisma.XOR | Prisma.TransactionCreateWithoutPaymentMethodInput[] | Prisma.TransactionUncheckedCreateWithoutPaymentMethodInput[] + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutPaymentMethodInput | Prisma.TransactionCreateOrConnectWithoutPaymentMethodInput[] + createMany?: Prisma.TransactionCreateManyPaymentMethodInputEnvelope + connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] +} + +export type TransactionUncheckedCreateNestedManyWithoutPaymentMethodInput = { + create?: Prisma.XOR | Prisma.TransactionCreateWithoutPaymentMethodInput[] | Prisma.TransactionUncheckedCreateWithoutPaymentMethodInput[] + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutPaymentMethodInput | Prisma.TransactionCreateOrConnectWithoutPaymentMethodInput[] + createMany?: Prisma.TransactionCreateManyPaymentMethodInputEnvelope + connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] +} + +export type TransactionUpdateManyWithoutPaymentMethodNestedInput = { + create?: Prisma.XOR | Prisma.TransactionCreateWithoutPaymentMethodInput[] | Prisma.TransactionUncheckedCreateWithoutPaymentMethodInput[] + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutPaymentMethodInput | Prisma.TransactionCreateOrConnectWithoutPaymentMethodInput[] + upsert?: Prisma.TransactionUpsertWithWhereUniqueWithoutPaymentMethodInput | Prisma.TransactionUpsertWithWhereUniqueWithoutPaymentMethodInput[] + createMany?: Prisma.TransactionCreateManyPaymentMethodInputEnvelope + set?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + disconnect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + delete?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + update?: Prisma.TransactionUpdateWithWhereUniqueWithoutPaymentMethodInput | Prisma.TransactionUpdateWithWhereUniqueWithoutPaymentMethodInput[] + updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutPaymentMethodInput | Prisma.TransactionUpdateManyWithWhereWithoutPaymentMethodInput[] + deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[] +} + +export type TransactionUncheckedUpdateManyWithoutPaymentMethodNestedInput = { + create?: Prisma.XOR | Prisma.TransactionCreateWithoutPaymentMethodInput[] | Prisma.TransactionUncheckedCreateWithoutPaymentMethodInput[] + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutPaymentMethodInput | Prisma.TransactionCreateOrConnectWithoutPaymentMethodInput[] + upsert?: Prisma.TransactionUpsertWithWhereUniqueWithoutPaymentMethodInput | Prisma.TransactionUpsertWithWhereUniqueWithoutPaymentMethodInput[] + createMany?: Prisma.TransactionCreateManyPaymentMethodInputEnvelope + set?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + disconnect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + delete?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + update?: Prisma.TransactionUpdateWithWhereUniqueWithoutPaymentMethodInput | Prisma.TransactionUpdateWithWhereUniqueWithoutPaymentMethodInput[] + updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutPaymentMethodInput | Prisma.TransactionUpdateManyWithWhereWithoutPaymentMethodInput[] + deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[] +} + +export type TransactionCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[] + createMany?: Prisma.TransactionCreateManyUserInputEnvelope + connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] +} + +export type TransactionUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[] + createMany?: Prisma.TransactionCreateManyUserInputEnvelope + connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] +} + +export type TransactionUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[] + upsert?: Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput | Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.TransactionCreateManyUserInputEnvelope + set?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + disconnect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + delete?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + update?: Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput | Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutUserInput | Prisma.TransactionUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[] +} + +export type TransactionUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[] + upsert?: Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput | Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.TransactionCreateManyUserInputEnvelope + set?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + disconnect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + delete?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] + update?: Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput | Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutUserInput | Prisma.TransactionUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[] +} + +export type EnumTransactionScopeFieldUpdateOperationsInput = { + set?: $Enums.TransactionScope +} + +export type EnumTransactionTypeFieldUpdateOperationsInput = { + set?: $Enums.TransactionType +} + +export type EnumTransactionStatusFieldUpdateOperationsInput = { + set?: $Enums.TransactionStatus +} + +export type TransactionCreateWithoutExpenseInput = { + id?: string + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string + paymentMethod?: Prisma.PaymentMethodCreateNestedOneWithoutTransactionsInput + income?: Prisma.IncomeCreateNestedOneWithoutTransactionInput + user: Prisma.UserCreateNestedOneWithoutTransactionsInput + family?: Prisma.FamilyCreateNestedOneWithoutTransactionsInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTransactionInput +} + +export type TransactionUncheckedCreateWithoutExpenseInput = { + id?: string + userId: string + familyId?: string | null + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + paymentMethodId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + income?: Prisma.IncomeUncheckedCreateNestedOneWithoutTransactionInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTransactionInput +} + +export type TransactionCreateOrConnectWithoutExpenseInput = { + where: Prisma.TransactionWhereUniqueInput + create: Prisma.XOR +} + +export type TransactionUpsertWithoutExpenseInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.TransactionWhereInput +} + +export type TransactionUpdateToOneWithWhereWithoutExpenseInput = { + where?: Prisma.TransactionWhereInput + data: Prisma.XOR +} + +export type TransactionUpdateWithoutExpenseInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + paymentMethod?: Prisma.PaymentMethodUpdateOneWithoutTransactionsNestedInput + income?: Prisma.IncomeUpdateOneWithoutTransactionNestedInput + user?: Prisma.UserUpdateOneRequiredWithoutTransactionsNestedInput + family?: Prisma.FamilyUpdateOneWithoutTransactionsNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTransactionNestedInput +} + +export type TransactionUncheckedUpdateWithoutExpenseInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + income?: Prisma.IncomeUncheckedUpdateOneWithoutTransactionNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTransactionNestedInput +} + +export type TransactionCreateWithoutFamilyInput = { + id?: string + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string + paymentMethod?: Prisma.PaymentMethodCreateNestedOneWithoutTransactionsInput + expense?: Prisma.ExpenseCreateNestedOneWithoutTransactionInput + income?: Prisma.IncomeCreateNestedOneWithoutTransactionInput + user: Prisma.UserCreateNestedOneWithoutTransactionsInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTransactionInput +} + +export type TransactionUncheckedCreateWithoutFamilyInput = { + id?: string + userId: string + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + paymentMethodId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + expense?: Prisma.ExpenseUncheckedCreateNestedOneWithoutTransactionInput + income?: Prisma.IncomeUncheckedCreateNestedOneWithoutTransactionInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTransactionInput +} + +export type TransactionCreateOrConnectWithoutFamilyInput = { + where: Prisma.TransactionWhereUniqueInput + create: Prisma.XOR +} + +export type TransactionCreateManyFamilyInputEnvelope = { + data: Prisma.TransactionCreateManyFamilyInput | Prisma.TransactionCreateManyFamilyInput[] + skipDuplicates?: boolean +} + +export type TransactionUpsertWithWhereUniqueWithoutFamilyInput = { + where: Prisma.TransactionWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type TransactionUpdateWithWhereUniqueWithoutFamilyInput = { + where: Prisma.TransactionWhereUniqueInput + data: Prisma.XOR +} + +export type TransactionUpdateManyWithWhereWithoutFamilyInput = { + where: Prisma.TransactionScalarWhereInput + data: Prisma.XOR +} + +export type TransactionScalarWhereInput = { + AND?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[] + OR?: Prisma.TransactionScalarWhereInput[] + NOT?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[] + id?: Prisma.StringFilter<"Transaction"> | string + userId?: Prisma.StringFilter<"Transaction"> | string + familyId?: Prisma.StringNullableFilter<"Transaction"> | string | null + scope?: Prisma.EnumTransactionScopeFilter<"Transaction"> | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFilter<"Transaction"> | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFilter<"Transaction"> | $Enums.TransactionStatus + value?: Prisma.DecimalFilter<"Transaction"> | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.StringNullableFilter<"Transaction"> | string | null + recordedAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string + paymentMethodId?: Prisma.StringNullableFilter<"Transaction"> | string | null + createdAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string +} + +export type TransactionCreateWithoutIncomeInput = { + id?: string + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string + paymentMethod?: Prisma.PaymentMethodCreateNestedOneWithoutTransactionsInput + expense?: Prisma.ExpenseCreateNestedOneWithoutTransactionInput + user: Prisma.UserCreateNestedOneWithoutTransactionsInput + family?: Prisma.FamilyCreateNestedOneWithoutTransactionsInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTransactionInput +} + +export type TransactionUncheckedCreateWithoutIncomeInput = { + id?: string + userId: string + familyId?: string | null + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + paymentMethodId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + expense?: Prisma.ExpenseUncheckedCreateNestedOneWithoutTransactionInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTransactionInput +} + +export type TransactionCreateOrConnectWithoutIncomeInput = { + where: Prisma.TransactionWhereUniqueInput + create: Prisma.XOR +} + +export type TransactionUpsertWithoutIncomeInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.TransactionWhereInput +} + +export type TransactionUpdateToOneWithWhereWithoutIncomeInput = { + where?: Prisma.TransactionWhereInput + data: Prisma.XOR +} + +export type TransactionUpdateWithoutIncomeInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + paymentMethod?: Prisma.PaymentMethodUpdateOneWithoutTransactionsNestedInput + expense?: Prisma.ExpenseUpdateOneWithoutTransactionNestedInput + user?: Prisma.UserUpdateOneRequiredWithoutTransactionsNestedInput + family?: Prisma.FamilyUpdateOneWithoutTransactionsNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTransactionNestedInput +} + +export type TransactionUncheckedUpdateWithoutIncomeInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expense?: Prisma.ExpenseUncheckedUpdateOneWithoutTransactionNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTransactionNestedInput +} + +export type TransactionCreateWithoutNotificationsInput = { + id?: string + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string + paymentMethod?: Prisma.PaymentMethodCreateNestedOneWithoutTransactionsInput + expense?: Prisma.ExpenseCreateNestedOneWithoutTransactionInput + income?: Prisma.IncomeCreateNestedOneWithoutTransactionInput + user: Prisma.UserCreateNestedOneWithoutTransactionsInput + family?: Prisma.FamilyCreateNestedOneWithoutTransactionsInput +} + +export type TransactionUncheckedCreateWithoutNotificationsInput = { + id?: string + userId: string + familyId?: string | null + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + paymentMethodId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + expense?: Prisma.ExpenseUncheckedCreateNestedOneWithoutTransactionInput + income?: Prisma.IncomeUncheckedCreateNestedOneWithoutTransactionInput +} + +export type TransactionCreateOrConnectWithoutNotificationsInput = { + where: Prisma.TransactionWhereUniqueInput + create: Prisma.XOR +} + +export type TransactionUpsertWithoutNotificationsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.TransactionWhereInput +} + +export type TransactionUpdateToOneWithWhereWithoutNotificationsInput = { + where?: Prisma.TransactionWhereInput + data: Prisma.XOR +} + +export type TransactionUpdateWithoutNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + paymentMethod?: Prisma.PaymentMethodUpdateOneWithoutTransactionsNestedInput + expense?: Prisma.ExpenseUpdateOneWithoutTransactionNestedInput + income?: Prisma.IncomeUpdateOneWithoutTransactionNestedInput + user?: Prisma.UserUpdateOneRequiredWithoutTransactionsNestedInput + family?: Prisma.FamilyUpdateOneWithoutTransactionsNestedInput +} + +export type TransactionUncheckedUpdateWithoutNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expense?: Prisma.ExpenseUncheckedUpdateOneWithoutTransactionNestedInput + income?: Prisma.IncomeUncheckedUpdateOneWithoutTransactionNestedInput +} + +export type TransactionCreateWithoutPaymentMethodInput = { + id?: string + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string + expense?: Prisma.ExpenseCreateNestedOneWithoutTransactionInput + income?: Prisma.IncomeCreateNestedOneWithoutTransactionInput + user: Prisma.UserCreateNestedOneWithoutTransactionsInput + family?: Prisma.FamilyCreateNestedOneWithoutTransactionsInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTransactionInput +} + +export type TransactionUncheckedCreateWithoutPaymentMethodInput = { + id?: string + userId: string + familyId?: string | null + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string + expense?: Prisma.ExpenseUncheckedCreateNestedOneWithoutTransactionInput + income?: Prisma.IncomeUncheckedCreateNestedOneWithoutTransactionInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTransactionInput +} + +export type TransactionCreateOrConnectWithoutPaymentMethodInput = { + where: Prisma.TransactionWhereUniqueInput + create: Prisma.XOR +} + +export type TransactionCreateManyPaymentMethodInputEnvelope = { + data: Prisma.TransactionCreateManyPaymentMethodInput | Prisma.TransactionCreateManyPaymentMethodInput[] + skipDuplicates?: boolean +} + +export type TransactionUpsertWithWhereUniqueWithoutPaymentMethodInput = { + where: Prisma.TransactionWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type TransactionUpdateWithWhereUniqueWithoutPaymentMethodInput = { + where: Prisma.TransactionWhereUniqueInput + data: Prisma.XOR +} + +export type TransactionUpdateManyWithWhereWithoutPaymentMethodInput = { + where: Prisma.TransactionScalarWhereInput + data: Prisma.XOR +} + +export type TransactionCreateWithoutUserInput = { + id?: string + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string + paymentMethod?: Prisma.PaymentMethodCreateNestedOneWithoutTransactionsInput + expense?: Prisma.ExpenseCreateNestedOneWithoutTransactionInput + income?: Prisma.IncomeCreateNestedOneWithoutTransactionInput + family?: Prisma.FamilyCreateNestedOneWithoutTransactionsInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTransactionInput +} + +export type TransactionUncheckedCreateWithoutUserInput = { + id?: string + familyId?: string | null + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + paymentMethodId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + expense?: Prisma.ExpenseUncheckedCreateNestedOneWithoutTransactionInput + income?: Prisma.IncomeUncheckedCreateNestedOneWithoutTransactionInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTransactionInput +} + +export type TransactionCreateOrConnectWithoutUserInput = { + where: Prisma.TransactionWhereUniqueInput + create: Prisma.XOR +} + +export type TransactionCreateManyUserInputEnvelope = { + data: Prisma.TransactionCreateManyUserInput | Prisma.TransactionCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type TransactionUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.TransactionWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type TransactionUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.TransactionWhereUniqueInput + data: Prisma.XOR +} + +export type TransactionUpdateManyWithWhereWithoutUserInput = { + where: Prisma.TransactionScalarWhereInput + data: Prisma.XOR +} + +export type TransactionCreateManyFamilyInput = { + id?: string + userId: string + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + paymentMethodId?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type TransactionUpdateWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + paymentMethod?: Prisma.PaymentMethodUpdateOneWithoutTransactionsNestedInput + expense?: Prisma.ExpenseUpdateOneWithoutTransactionNestedInput + income?: Prisma.IncomeUpdateOneWithoutTransactionNestedInput + user?: Prisma.UserUpdateOneRequiredWithoutTransactionsNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTransactionNestedInput +} + +export type TransactionUncheckedUpdateWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expense?: Prisma.ExpenseUncheckedUpdateOneWithoutTransactionNestedInput + income?: Prisma.IncomeUncheckedUpdateOneWithoutTransactionNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTransactionNestedInput +} + +export type TransactionUncheckedUpdateManyWithoutFamilyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type TransactionCreateManyPaymentMethodInput = { + id?: string + userId: string + familyId?: string | null + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type TransactionUpdateWithoutPaymentMethodInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expense?: Prisma.ExpenseUpdateOneWithoutTransactionNestedInput + income?: Prisma.IncomeUpdateOneWithoutTransactionNestedInput + user?: Prisma.UserUpdateOneRequiredWithoutTransactionsNestedInput + family?: Prisma.FamilyUpdateOneWithoutTransactionsNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTransactionNestedInput +} + +export type TransactionUncheckedUpdateWithoutPaymentMethodInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expense?: Prisma.ExpenseUncheckedUpdateOneWithoutTransactionNestedInput + income?: Prisma.IncomeUncheckedUpdateOneWithoutTransactionNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTransactionNestedInput +} + +export type TransactionUncheckedUpdateManyWithoutPaymentMethodInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type TransactionCreateManyUserInput = { + id?: string + familyId?: string | null + scope?: $Enums.TransactionScope + type: $Enums.TransactionType + status?: $Enums.TransactionStatus + value: runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: string | null + recordedAt?: Date | string + paymentMethodId?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type TransactionUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + paymentMethod?: Prisma.PaymentMethodUpdateOneWithoutTransactionsNestedInput + expense?: Prisma.ExpenseUpdateOneWithoutTransactionNestedInput + income?: Prisma.IncomeUpdateOneWithoutTransactionNestedInput + family?: Prisma.FamilyUpdateOneWithoutTransactionsNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTransactionNestedInput +} + +export type TransactionUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expense?: Prisma.ExpenseUncheckedUpdateOneWithoutTransactionNestedInput + income?: Prisma.IncomeUncheckedUpdateOneWithoutTransactionNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTransactionNestedInput +} + +export type TransactionUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + familyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + scope?: Prisma.EnumTransactionScopeFieldUpdateOperationsInput | $Enums.TransactionScope + type?: Prisma.EnumTransactionTypeFieldUpdateOperationsInput | $Enums.TransactionType + status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus + value?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + +/** + * Count Type TransactionCountOutputType + */ + +export type TransactionCountOutputType = { + notifications: number +} + +export type TransactionCountOutputTypeSelect = { + notifications?: boolean | TransactionCountOutputTypeCountNotificationsArgs +} + +/** + * TransactionCountOutputType without action + */ +export type TransactionCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the TransactionCountOutputType + */ + select?: Prisma.TransactionCountOutputTypeSelect | null +} + +/** + * TransactionCountOutputType without action + */ +export type TransactionCountOutputTypeCountNotificationsArgs = { + where?: Prisma.NotificationWhereInput +} + + +export type TransactionSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + familyId?: boolean + scope?: boolean + type?: boolean + status?: boolean + value?: boolean + rejectionReason?: boolean + recordedAt?: boolean + paymentMethodId?: boolean + createdAt?: boolean + updatedAt?: boolean + paymentMethod?: boolean | Prisma.Transaction$paymentMethodArgs + expense?: boolean | Prisma.Transaction$expenseArgs + income?: boolean | Prisma.Transaction$incomeArgs + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Transaction$familyArgs + notifications?: boolean | Prisma.Transaction$notificationsArgs + _count?: boolean | Prisma.TransactionCountOutputTypeDefaultArgs +}, ExtArgs["result"]["transaction"]> + +export type TransactionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + familyId?: boolean + scope?: boolean + type?: boolean + status?: boolean + value?: boolean + rejectionReason?: boolean + recordedAt?: boolean + paymentMethodId?: boolean + createdAt?: boolean + updatedAt?: boolean + paymentMethod?: boolean | Prisma.Transaction$paymentMethodArgs + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Transaction$familyArgs +}, ExtArgs["result"]["transaction"]> + +export type TransactionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + familyId?: boolean + scope?: boolean + type?: boolean + status?: boolean + value?: boolean + rejectionReason?: boolean + recordedAt?: boolean + paymentMethodId?: boolean + createdAt?: boolean + updatedAt?: boolean + paymentMethod?: boolean | Prisma.Transaction$paymentMethodArgs + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Transaction$familyArgs +}, ExtArgs["result"]["transaction"]> + +export type TransactionSelectScalar = { + id?: boolean + userId?: boolean + familyId?: boolean + scope?: boolean + type?: boolean + status?: boolean + value?: boolean + rejectionReason?: boolean + recordedAt?: boolean + paymentMethodId?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type TransactionOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "familyId" | "scope" | "type" | "status" | "value" | "rejectionReason" | "recordedAt" | "paymentMethodId" | "createdAt" | "updatedAt", ExtArgs["result"]["transaction"]> +export type TransactionInclude = { + paymentMethod?: boolean | Prisma.Transaction$paymentMethodArgs + expense?: boolean | Prisma.Transaction$expenseArgs + income?: boolean | Prisma.Transaction$incomeArgs + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Transaction$familyArgs + notifications?: boolean | Prisma.Transaction$notificationsArgs + _count?: boolean | Prisma.TransactionCountOutputTypeDefaultArgs +} +export type TransactionIncludeCreateManyAndReturn = { + paymentMethod?: boolean | Prisma.Transaction$paymentMethodArgs + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Transaction$familyArgs +} +export type TransactionIncludeUpdateManyAndReturn = { + paymentMethod?: boolean | Prisma.Transaction$paymentMethodArgs + user?: boolean | Prisma.UserDefaultArgs + family?: boolean | Prisma.Transaction$familyArgs +} + +export type $TransactionPayload = { + name: "Transaction" + objects: { + paymentMethod: Prisma.$PaymentMethodPayload | null + expense: Prisma.$ExpensePayload | null + income: Prisma.$IncomePayload | null + user: Prisma.$UserPayload + family: Prisma.$FamilyPayload | null + notifications: Prisma.$NotificationPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + userId: string + familyId: string | null + scope: $Enums.TransactionScope + type: $Enums.TransactionType + status: $Enums.TransactionStatus + value: runtime.Decimal + rejectionReason: string | null + recordedAt: Date + paymentMethodId: string | null + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["transaction"]> + composites: {} +} + +export type TransactionGetPayload = runtime.Types.Result.GetResult + +export type TransactionCountArgs = + Omit & { + select?: TransactionCountAggregateInputType | true + } + +export interface TransactionDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Transaction'], meta: { name: 'Transaction' } } + /** + * Find zero or one Transaction that matches the filter. + * @param {TransactionFindUniqueArgs} args - Arguments to find a Transaction + * @example + * // Get one Transaction + * const transaction = await prisma.transaction.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TransactionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Transaction that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {TransactionFindUniqueOrThrowArgs} args - Arguments to find a Transaction + * @example + * // Get one Transaction + * const transaction = await prisma.transaction.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TransactionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Transaction 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 {TransactionFindFirstArgs} args - Arguments to find a Transaction + * @example + * // Get one Transaction + * const transaction = await prisma.transaction.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TransactionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Transaction 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 {TransactionFindFirstOrThrowArgs} args - Arguments to find a Transaction + * @example + * // Get one Transaction + * const transaction = await prisma.transaction.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TransactionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Transactions 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 {TransactionFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Transactions + * const transactions = await prisma.transaction.findMany() + * + * // Get first 10 Transactions + * const transactions = await prisma.transaction.findMany({ take: 10 }) + * + * // Only select the `id` + * const transactionWithIdOnly = await prisma.transaction.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Transaction. + * @param {TransactionCreateArgs} args - Arguments to create a Transaction. + * @example + * // Create one Transaction + * const Transaction = await prisma.transaction.create({ + * data: { + * // ... data to create a Transaction + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__TransactionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Transactions. + * @param {TransactionCreateManyArgs} args - Arguments to create many Transactions. + * @example + * // Create many Transactions + * const transaction = await prisma.transaction.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Transactions and returns the data saved in the database. + * @param {TransactionCreateManyAndReturnArgs} args - Arguments to create many Transactions. + * @example + * // Create many Transactions + * const transaction = await prisma.transaction.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Transactions and only return the `id` + * const transactionWithIdOnly = await prisma.transaction.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Transaction. + * @param {TransactionDeleteArgs} args - Arguments to delete one Transaction. + * @example + * // Delete one Transaction + * const Transaction = await prisma.transaction.delete({ + * where: { + * // ... filter to delete one Transaction + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__TransactionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Transaction. + * @param {TransactionUpdateArgs} args - Arguments to update one Transaction. + * @example + * // Update one Transaction + * const transaction = await prisma.transaction.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__TransactionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Transactions. + * @param {TransactionDeleteManyArgs} args - Arguments to filter Transactions to delete. + * @example + * // Delete a few Transactions + * const { count } = await prisma.transaction.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Transactions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TransactionUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Transactions + * const transaction = await prisma.transaction.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Transactions and returns the data updated in the database. + * @param {TransactionUpdateManyAndReturnArgs} args - Arguments to update many Transactions. + * @example + * // Update many Transactions + * const transaction = await prisma.transaction.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Transactions and only return the `id` + * const transactionWithIdOnly = await prisma.transaction.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Transaction. + * @param {TransactionUpsertArgs} args - Arguments to update or create a Transaction. + * @example + * // Update or create a Transaction + * const transaction = await prisma.transaction.upsert({ + * create: { + * // ... data to create a Transaction + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Transaction we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TransactionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Transactions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TransactionCountArgs} args - Arguments to filter Transactions to count. + * @example + * // Count the number of Transactions + * const count = await prisma.transaction.count({ + * where: { + * // ... the filter for the Transactions we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Transaction. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TransactionAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Transaction. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TransactionGroupByArgs} 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 TransactionGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: TransactionGroupByArgs['orderBy'] } + : { orderBy?: TransactionGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetTransactionGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Transaction model + */ +readonly fields: TransactionFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Transaction. + * 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__TransactionClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + paymentMethod = {}>(args?: Prisma.Subset>): Prisma.Prisma__PaymentMethodClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + expense = {}>(args?: Prisma.Subset>): Prisma.Prisma__ExpenseClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + income = {}>(args?: Prisma.Subset>): Prisma.Prisma__IncomeClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + family = {}>(args?: Prisma.Subset>): Prisma.Prisma__FamilyClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + notifications = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + /** + * 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the Transaction model + */ +export interface TransactionFieldRefs { + readonly id: Prisma.FieldRef<"Transaction", 'String'> + readonly userId: Prisma.FieldRef<"Transaction", 'String'> + readonly familyId: Prisma.FieldRef<"Transaction", 'String'> + readonly scope: Prisma.FieldRef<"Transaction", 'TransactionScope'> + readonly type: Prisma.FieldRef<"Transaction", 'TransactionType'> + readonly status: Prisma.FieldRef<"Transaction", 'TransactionStatus'> + readonly value: Prisma.FieldRef<"Transaction", 'Decimal'> + readonly rejectionReason: Prisma.FieldRef<"Transaction", 'String'> + readonly recordedAt: Prisma.FieldRef<"Transaction", 'DateTime'> + readonly paymentMethodId: Prisma.FieldRef<"Transaction", 'String'> + readonly createdAt: Prisma.FieldRef<"Transaction", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Transaction", 'DateTime'> +} + + +// Custom InputTypes +/** + * Transaction findUnique + */ +export type TransactionFindUniqueArgs = { + /** + * Select specific fields to fetch from the Transaction + */ + select?: Prisma.TransactionSelect | null + /** + * Omit specific fields from the Transaction + */ + omit?: Prisma.TransactionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TransactionInclude | null + /** + * Filter, which Transaction to fetch. + */ + where: Prisma.TransactionWhereUniqueInput +} + +/** + * Transaction findUniqueOrThrow + */ +export type TransactionFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Transaction + */ + select?: Prisma.TransactionSelect | null + /** + * Omit specific fields from the Transaction + */ + omit?: Prisma.TransactionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TransactionInclude | null + /** + * Filter, which Transaction to fetch. + */ + where: Prisma.TransactionWhereUniqueInput +} + +/** + * Transaction findFirst + */ +export type TransactionFindFirstArgs = { + /** + * Select specific fields to fetch from the Transaction + */ + select?: Prisma.TransactionSelect | null + /** + * Omit specific fields from the Transaction + */ + omit?: Prisma.TransactionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TransactionInclude | null + /** + * Filter, which Transaction to fetch. + */ + where?: Prisma.TransactionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Transactions to fetch. + */ + orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Transactions. + */ + cursor?: Prisma.TransactionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Transactions 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` Transactions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Transactions. + */ + distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[] +} + +/** + * Transaction findFirstOrThrow + */ +export type TransactionFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Transaction + */ + select?: Prisma.TransactionSelect | null + /** + * Omit specific fields from the Transaction + */ + omit?: Prisma.TransactionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TransactionInclude | null + /** + * Filter, which Transaction to fetch. + */ + where?: Prisma.TransactionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Transactions to fetch. + */ + orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Transactions. + */ + cursor?: Prisma.TransactionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Transactions 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` Transactions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Transactions. + */ + distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[] +} + +/** + * Transaction findMany + */ +export type TransactionFindManyArgs = { + /** + * Select specific fields to fetch from the Transaction + */ + select?: Prisma.TransactionSelect | null + /** + * Omit specific fields from the Transaction + */ + omit?: Prisma.TransactionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TransactionInclude | null + /** + * Filter, which Transactions to fetch. + */ + where?: Prisma.TransactionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Transactions to fetch. + */ + orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Transactions. + */ + cursor?: Prisma.TransactionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Transactions 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` Transactions. + */ + skip?: number + distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[] +} + +/** + * Transaction create + */ +export type TransactionCreateArgs = { + /** + * Select specific fields to fetch from the Transaction + */ + select?: Prisma.TransactionSelect | null + /** + * Omit specific fields from the Transaction + */ + omit?: Prisma.TransactionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TransactionInclude | null + /** + * The data needed to create a Transaction. + */ + data: Prisma.XOR +} + +/** + * Transaction createMany + */ +export type TransactionCreateManyArgs = { + /** + * The data used to create many Transactions. + */ + data: Prisma.TransactionCreateManyInput | Prisma.TransactionCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Transaction createManyAndReturn + */ +export type TransactionCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Transaction + */ + select?: Prisma.TransactionSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Transaction + */ + omit?: Prisma.TransactionOmit | null + /** + * The data used to create many Transactions. + */ + data: Prisma.TransactionCreateManyInput | Prisma.TransactionCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TransactionIncludeCreateManyAndReturn | null +} + +/** + * Transaction update + */ +export type TransactionUpdateArgs = { + /** + * Select specific fields to fetch from the Transaction + */ + select?: Prisma.TransactionSelect | null + /** + * Omit specific fields from the Transaction + */ + omit?: Prisma.TransactionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TransactionInclude | null + /** + * The data needed to update a Transaction. + */ + data: Prisma.XOR + /** + * Choose, which Transaction to update. + */ + where: Prisma.TransactionWhereUniqueInput +} + +/** + * Transaction updateMany + */ +export type TransactionUpdateManyArgs = { + /** + * The data used to update Transactions. + */ + data: Prisma.XOR + /** + * Filter which Transactions to update + */ + where?: Prisma.TransactionWhereInput + /** + * Limit how many Transactions to update. + */ + limit?: number +} + +/** + * Transaction updateManyAndReturn + */ +export type TransactionUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Transaction + */ + select?: Prisma.TransactionSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Transaction + */ + omit?: Prisma.TransactionOmit | null + /** + * The data used to update Transactions. + */ + data: Prisma.XOR + /** + * Filter which Transactions to update + */ + where?: Prisma.TransactionWhereInput + /** + * Limit how many Transactions to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TransactionIncludeUpdateManyAndReturn | null +} + +/** + * Transaction upsert + */ +export type TransactionUpsertArgs = { + /** + * Select specific fields to fetch from the Transaction + */ + select?: Prisma.TransactionSelect | null + /** + * Omit specific fields from the Transaction + */ + omit?: Prisma.TransactionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TransactionInclude | null + /** + * The filter to search for the Transaction to update in case it exists. + */ + where: Prisma.TransactionWhereUniqueInput + /** + * In case the Transaction found by the `where` argument doesn't exist, create a new Transaction with this data. + */ + create: Prisma.XOR + /** + * In case the Transaction was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Transaction delete + */ +export type TransactionDeleteArgs = { + /** + * Select specific fields to fetch from the Transaction + */ + select?: Prisma.TransactionSelect | null + /** + * Omit specific fields from the Transaction + */ + omit?: Prisma.TransactionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TransactionInclude | null + /** + * Filter which Transaction to delete. + */ + where: Prisma.TransactionWhereUniqueInput +} + +/** + * Transaction deleteMany + */ +export type TransactionDeleteManyArgs = { + /** + * Filter which Transactions to delete + */ + where?: Prisma.TransactionWhereInput + /** + * Limit how many Transactions to delete. + */ + limit?: number +} + +/** + * Transaction.paymentMethod + */ +export type Transaction$paymentMethodArgs = { + /** + * Select specific fields to fetch from the PaymentMethod + */ + select?: Prisma.PaymentMethodSelect | null + /** + * Omit specific fields from the PaymentMethod + */ + omit?: Prisma.PaymentMethodOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaymentMethodInclude | null + where?: Prisma.PaymentMethodWhereInput +} + +/** + * Transaction.expense + */ +export type Transaction$expenseArgs = { + /** + * Select specific fields to fetch from the Expense + */ + select?: Prisma.ExpenseSelect | null + /** + * Omit specific fields from the Expense + */ + omit?: Prisma.ExpenseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpenseInclude | null + where?: Prisma.ExpenseWhereInput +} + +/** + * Transaction.income + */ +export type Transaction$incomeArgs = { + /** + * Select specific fields to fetch from the Income + */ + select?: Prisma.IncomeSelect | null + /** + * Omit specific fields from the Income + */ + omit?: Prisma.IncomeOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.IncomeInclude | null + where?: Prisma.IncomeWhereInput +} + +/** + * Transaction.family + */ +export type Transaction$familyArgs = { + /** + * Select specific fields to fetch from the Family + */ + select?: Prisma.FamilySelect | null + /** + * Omit specific fields from the Family + */ + omit?: Prisma.FamilyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInclude | null + where?: Prisma.FamilyWhereInput +} + +/** + * Transaction.notifications + */ +export type Transaction$notificationsArgs = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + where?: Prisma.NotificationWhereInput + orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[] + cursor?: Prisma.NotificationWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * Transaction without action + */ +export type TransactionDefaultArgs = { + /** + * Select specific fields to fetch from the Transaction + */ + select?: Prisma.TransactionSelect | null + /** + * Omit specific fields from the Transaction + */ + omit?: Prisma.TransactionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TransactionInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/User.ts b/apps/backend/prisma/generated/generated/prisma/models/User.ts new file mode 100644 index 00000000..b399eaa8 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/User.ts @@ -0,0 +1,5155 @@ + +/* !!! 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 + +export type AggregateUser = { + _count: UserCountAggregateOutputType | null + _avg: UserAvgAggregateOutputType | null + _sum: UserSumAggregateOutputType | null + _min: UserMinAggregateOutputType | null + _max: UserMaxAggregateOutputType | null +} + +export type UserAvgAggregateOutputType = { + balance: runtime.Decimal | null +} + +export type UserSumAggregateOutputType = { + balance: runtime.Decimal | null +} + +export type UserMinAggregateOutputType = { + id: string | null + email: string | null + name: string | null + firstName: string | null + lastName: string | null + image: string | null + balance: runtime.Decimal | null + emailVerified: boolean | null + createdAt: Date | null + updatedAt: Date | null +} + +export type UserMaxAggregateOutputType = { + id: string | null + email: string | null + name: string | null + firstName: string | null + lastName: string | null + image: string | null + balance: runtime.Decimal | null + emailVerified: boolean | null + createdAt: Date | null + updatedAt: Date | null +} + +export type UserCountAggregateOutputType = { + id: number + email: number + name: number + firstName: number + lastName: number + image: number + balance: number + emailVerified: number + createdAt: number + updatedAt: number + _all: number +} + + +export type UserAvgAggregateInputType = { + balance?: true +} + +export type UserSumAggregateInputType = { + balance?: true +} + +export type UserMinAggregateInputType = { + id?: true + email?: true + name?: true + firstName?: true + lastName?: true + image?: true + balance?: true + emailVerified?: true + createdAt?: true + updatedAt?: true +} + +export type UserMaxAggregateInputType = { + id?: true + email?: true + name?: true + firstName?: true + lastName?: true + image?: true + balance?: true + emailVerified?: true + createdAt?: true + updatedAt?: true +} + +export type UserCountAggregateInputType = { + id?: true + email?: true + name?: true + firstName?: true + lastName?: true + image?: true + balance?: true + emailVerified?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type UserAggregateArgs = { + /** + * 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 average + **/ + _avg?: UserAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: UserSumAggregateInputType + /** + * {@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 = { + [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type UserGroupByArgs = { + where?: Prisma.UserWhereInput + orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[] + by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum + having?: Prisma.UserScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: UserCountAggregateInputType | true + _avg?: UserAvgAggregateInputType + _sum?: UserSumAggregateInputType + _min?: UserMinAggregateInputType + _max?: UserMaxAggregateInputType +} + +export type UserGroupByOutputType = { + id: string + email: string + name: string + firstName: string + lastName: string + image: string | null + balance: runtime.Decimal + emailVerified: boolean + createdAt: Date + updatedAt: Date + _count: UserCountAggregateOutputType | null + _avg: UserAvgAggregateOutputType | null + _sum: UserSumAggregateOutputType | null + _min: UserMinAggregateOutputType | null + _max: UserMaxAggregateOutputType | null +} + +type GetUserGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type UserWhereInput = { + AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + OR?: Prisma.UserWhereInput[] + NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + id?: Prisma.StringFilter<"User"> | string + email?: Prisma.StringFilter<"User"> | string + name?: Prisma.StringFilter<"User"> | string + firstName?: Prisma.StringFilter<"User"> | string + lastName?: Prisma.StringFilter<"User"> | string + image?: Prisma.StringNullableFilter<"User"> | string | null + balance?: Prisma.DecimalFilter<"User"> | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFilter<"User"> | boolean + createdAt?: Prisma.DateTimeFilter<"User"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string + transactions?: Prisma.TransactionListRelationFilter + accounts?: Prisma.AccountListRelationFilter + sessions?: Prisma.SessionListRelationFilter + familyMemberships?: Prisma.FamilyMemberListRelationFilter + sentInvitations?: Prisma.FamilyInvitationListRelationFilter + receivedInvitations?: Prisma.FamilyInvitationListRelationFilter + notifications?: Prisma.NotificationListRelationFilter + notificationPreference?: Prisma.XOR | null + deviceTokens?: Prisma.DeviceTokenListRelationFilter + webPushSubscriptions?: Prisma.WebPushSubscriptionListRelationFilter + baskets?: Prisma.BasketListRelationFilter + userExpenseCategories?: Prisma.UserExpenseCategoryListRelationFilter + userIncomeCategories?: Prisma.UserIncomeCategoryListRelationFilter + userStores?: Prisma.UserStoreListRelationFilter + userItems?: Prisma.UserItemListRelationFilter + userStoreItems?: Prisma.UserStoreItemListRelationFilter + userItemCategories?: Prisma.UserItemCategoryListRelationFilter + paymentMethods?: Prisma.PaymentMethodListRelationFilter + receipts?: Prisma.ReceiptListRelationFilter +} + +export type UserOrderByWithRelationInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + name?: Prisma.SortOrder + firstName?: Prisma.SortOrder + lastName?: Prisma.SortOrder + image?: Prisma.SortOrderInput | Prisma.SortOrder + balance?: Prisma.SortOrder + emailVerified?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + transactions?: Prisma.TransactionOrderByRelationAggregateInput + accounts?: Prisma.AccountOrderByRelationAggregateInput + sessions?: Prisma.SessionOrderByRelationAggregateInput + familyMemberships?: Prisma.FamilyMemberOrderByRelationAggregateInput + sentInvitations?: Prisma.FamilyInvitationOrderByRelationAggregateInput + receivedInvitations?: Prisma.FamilyInvitationOrderByRelationAggregateInput + notifications?: Prisma.NotificationOrderByRelationAggregateInput + notificationPreference?: Prisma.NotificationPreferenceOrderByWithRelationInput + deviceTokens?: Prisma.DeviceTokenOrderByRelationAggregateInput + webPushSubscriptions?: Prisma.WebPushSubscriptionOrderByRelationAggregateInput + baskets?: Prisma.BasketOrderByRelationAggregateInput + userExpenseCategories?: Prisma.UserExpenseCategoryOrderByRelationAggregateInput + userIncomeCategories?: Prisma.UserIncomeCategoryOrderByRelationAggregateInput + userStores?: Prisma.UserStoreOrderByRelationAggregateInput + userItems?: Prisma.UserItemOrderByRelationAggregateInput + userStoreItems?: Prisma.UserStoreItemOrderByRelationAggregateInput + userItemCategories?: Prisma.UserItemCategoryOrderByRelationAggregateInput + paymentMethods?: Prisma.PaymentMethodOrderByRelationAggregateInput + receipts?: Prisma.ReceiptOrderByRelationAggregateInput +} + +export type UserWhereUniqueInput = Prisma.AtLeast<{ + id?: string + email?: string + AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + OR?: Prisma.UserWhereInput[] + NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + name?: Prisma.StringFilter<"User"> | string + firstName?: Prisma.StringFilter<"User"> | string + lastName?: Prisma.StringFilter<"User"> | string + image?: Prisma.StringNullableFilter<"User"> | string | null + balance?: Prisma.DecimalFilter<"User"> | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFilter<"User"> | boolean + createdAt?: Prisma.DateTimeFilter<"User"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string + transactions?: Prisma.TransactionListRelationFilter + accounts?: Prisma.AccountListRelationFilter + sessions?: Prisma.SessionListRelationFilter + familyMemberships?: Prisma.FamilyMemberListRelationFilter + sentInvitations?: Prisma.FamilyInvitationListRelationFilter + receivedInvitations?: Prisma.FamilyInvitationListRelationFilter + notifications?: Prisma.NotificationListRelationFilter + notificationPreference?: Prisma.XOR | null + deviceTokens?: Prisma.DeviceTokenListRelationFilter + webPushSubscriptions?: Prisma.WebPushSubscriptionListRelationFilter + baskets?: Prisma.BasketListRelationFilter + userExpenseCategories?: Prisma.UserExpenseCategoryListRelationFilter + userIncomeCategories?: Prisma.UserIncomeCategoryListRelationFilter + userStores?: Prisma.UserStoreListRelationFilter + userItems?: Prisma.UserItemListRelationFilter + userStoreItems?: Prisma.UserStoreItemListRelationFilter + userItemCategories?: Prisma.UserItemCategoryListRelationFilter + paymentMethods?: Prisma.PaymentMethodListRelationFilter + receipts?: Prisma.ReceiptListRelationFilter +}, "id" | "email"> + +export type UserOrderByWithAggregationInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + name?: Prisma.SortOrder + firstName?: Prisma.SortOrder + lastName?: Prisma.SortOrder + image?: Prisma.SortOrderInput | Prisma.SortOrder + balance?: Prisma.SortOrder + emailVerified?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.UserCountOrderByAggregateInput + _avg?: Prisma.UserAvgOrderByAggregateInput + _max?: Prisma.UserMaxOrderByAggregateInput + _min?: Prisma.UserMinOrderByAggregateInput + _sum?: Prisma.UserSumOrderByAggregateInput +} + +export type UserScalarWhereWithAggregatesInput = { + AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] + OR?: Prisma.UserScalarWhereWithAggregatesInput[] + NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"User"> | string + email?: Prisma.StringWithAggregatesFilter<"User"> | string + name?: Prisma.StringWithAggregatesFilter<"User"> | string + firstName?: Prisma.StringWithAggregatesFilter<"User"> | string + lastName?: Prisma.StringWithAggregatesFilter<"User"> | string + image?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null + balance?: Prisma.DecimalWithAggregatesFilter<"User"> | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolWithAggregatesFilter<"User"> | boolean + createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string +} + +export type UserCreateInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateManyInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string +} + +export type UserUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserScalarRelationFilter = { + is?: Prisma.UserWhereInput + isNot?: Prisma.UserWhereInput +} + +export type UserNullableScalarRelationFilter = { + is?: Prisma.UserWhereInput | null + isNot?: Prisma.UserWhereInput | null +} + +export type UserCountOrderByAggregateInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + name?: Prisma.SortOrder + firstName?: Prisma.SortOrder + lastName?: Prisma.SortOrder + image?: Prisma.SortOrder + balance?: Prisma.SortOrder + emailVerified?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type UserAvgOrderByAggregateInput = { + balance?: Prisma.SortOrder +} + +export type UserMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + name?: Prisma.SortOrder + firstName?: Prisma.SortOrder + lastName?: Prisma.SortOrder + image?: Prisma.SortOrder + balance?: Prisma.SortOrder + emailVerified?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type UserMinOrderByAggregateInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + name?: Prisma.SortOrder + firstName?: Prisma.SortOrder + lastName?: Prisma.SortOrder + image?: Prisma.SortOrder + balance?: Prisma.SortOrder + emailVerified?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type UserSumOrderByAggregateInput = { + balance?: Prisma.SortOrder +} + +export type UserCreateNestedOneWithoutAccountsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutAccountsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutAccountsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutAccountsInput + upsert?: Prisma.UserUpsertWithoutAccountsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutAccountsInput> +} + +export type UserCreateNestedOneWithoutSessionsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutSessionsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput + upsert?: Prisma.UserUpsertWithoutSessionsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutSessionsInput> +} + +export type UserCreateNestedOneWithoutBasketsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutBasketsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutBasketsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutBasketsInput + upsert?: Prisma.UserUpsertWithoutBasketsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutBasketsInput> +} + +export type UserCreateNestedOneWithoutUserExpenseCategoriesInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserExpenseCategoriesInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutUserExpenseCategoriesNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserExpenseCategoriesInput + upsert?: Prisma.UserUpsertWithoutUserExpenseCategoriesInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutUserExpenseCategoriesInput> +} + +export type UserCreateNestedOneWithoutFamilyMembershipsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutFamilyMembershipsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutFamilyMembershipsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutFamilyMembershipsInput + upsert?: Prisma.UserUpsertWithoutFamilyMembershipsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutFamilyMembershipsInput> +} + +export type UserCreateNestedOneWithoutSentInvitationsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutSentInvitationsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserCreateNestedOneWithoutReceivedInvitationsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutReceivedInvitationsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutSentInvitationsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutSentInvitationsInput + upsert?: Prisma.UserUpsertWithoutSentInvitationsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutSentInvitationsInput> +} + +export type UserUpdateOneWithoutReceivedInvitationsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutReceivedInvitationsInput + upsert?: Prisma.UserUpsertWithoutReceivedInvitationsInput + disconnect?: Prisma.UserWhereInput | boolean + delete?: Prisma.UserWhereInput | boolean + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutReceivedInvitationsInput> +} + +export type UserCreateNestedOneWithoutUserIncomeCategoriesInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserIncomeCategoriesInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutUserIncomeCategoriesNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserIncomeCategoriesInput + upsert?: Prisma.UserUpsertWithoutUserIncomeCategoriesInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutUserIncomeCategoriesInput> +} + +export type UserCreateNestedOneWithoutNotificationsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutNotificationsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutNotificationsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutNotificationsInput + upsert?: Prisma.UserUpsertWithoutNotificationsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutNotificationsInput> +} + +export type UserCreateNestedOneWithoutNotificationPreferenceInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutNotificationPreferenceInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutNotificationPreferenceNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutNotificationPreferenceInput + upsert?: Prisma.UserUpsertWithoutNotificationPreferenceInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutNotificationPreferenceInput> +} + +export type UserCreateNestedOneWithoutDeviceTokensInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutDeviceTokensInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutDeviceTokensNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutDeviceTokensInput + upsert?: Prisma.UserUpsertWithoutDeviceTokensInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutDeviceTokensInput> +} + +export type UserCreateNestedOneWithoutWebPushSubscriptionsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutWebPushSubscriptionsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutWebPushSubscriptionsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutWebPushSubscriptionsInput + upsert?: Prisma.UserUpsertWithoutWebPushSubscriptionsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutWebPushSubscriptionsInput> +} + +export type UserCreateNestedOneWithoutPaymentMethodsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutPaymentMethodsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutPaymentMethodsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutPaymentMethodsInput + upsert?: Prisma.UserUpsertWithoutPaymentMethodsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutPaymentMethodsInput> +} + +export type UserCreateNestedOneWithoutReceiptsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutReceiptsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutReceiptsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutReceiptsInput + upsert?: Prisma.UserUpsertWithoutReceiptsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutReceiptsInput> +} + +export type UserCreateNestedOneWithoutUserStoresInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserStoresInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutUserStoresNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserStoresInput + upsert?: Prisma.UserUpsertWithoutUserStoresInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutUserStoresInput> +} + +export type UserCreateNestedOneWithoutUserItemsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserItemsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutUserItemsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserItemsInput + upsert?: Prisma.UserUpsertWithoutUserItemsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutUserItemsInput> +} + +export type UserCreateNestedOneWithoutUserStoreItemsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserStoreItemsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutUserStoreItemsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserStoreItemsInput + upsert?: Prisma.UserUpsertWithoutUserStoreItemsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutUserStoreItemsInput> +} + +export type UserCreateNestedOneWithoutUserItemCategoriesInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserItemCategoriesInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutUserItemCategoriesNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserItemCategoriesInput + upsert?: Prisma.UserUpsertWithoutUserItemCategoriesInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutUserItemCategoriesInput> +} + +export type UserCreateNestedOneWithoutTransactionsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutTransactionsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutTransactionsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutTransactionsInput + upsert?: Prisma.UserUpsertWithoutTransactionsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutTransactionsInput> +} + +export type UserCreateWithoutAccountsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutAccountsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutAccountsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutAccountsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutAccountsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutAccountsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutAccountsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutSessionsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutSessionsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutSessionsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutSessionsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutSessionsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutSessionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutSessionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutBasketsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutBasketsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutBasketsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutBasketsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutBasketsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutBasketsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutBasketsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutUserExpenseCategoriesInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutUserExpenseCategoriesInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutUserExpenseCategoriesInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutUserExpenseCategoriesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutUserExpenseCategoriesInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutUserExpenseCategoriesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutUserExpenseCategoriesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutFamilyMembershipsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutFamilyMembershipsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutFamilyMembershipsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutFamilyMembershipsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutFamilyMembershipsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutFamilyMembershipsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutFamilyMembershipsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutSentInvitationsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutSentInvitationsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutSentInvitationsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserCreateWithoutReceivedInvitationsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutReceivedInvitationsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutReceivedInvitationsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutSentInvitationsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutSentInvitationsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutSentInvitationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutSentInvitationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserUpsertWithoutReceivedInvitationsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutReceivedInvitationsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutReceivedInvitationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutReceivedInvitationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutUserIncomeCategoriesInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutUserIncomeCategoriesInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutUserIncomeCategoriesInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutUserIncomeCategoriesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutUserIncomeCategoriesInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutUserIncomeCategoriesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutUserIncomeCategoriesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutNotificationsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutNotificationsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutNotificationsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutNotificationsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutNotificationsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutNotificationPreferenceInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutNotificationPreferenceInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutNotificationPreferenceInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutNotificationPreferenceInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutNotificationPreferenceInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutNotificationPreferenceInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutNotificationPreferenceInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutDeviceTokensInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutDeviceTokensInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutDeviceTokensInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutDeviceTokensInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutDeviceTokensInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutDeviceTokensInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutDeviceTokensInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutWebPushSubscriptionsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutWebPushSubscriptionsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutWebPushSubscriptionsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutWebPushSubscriptionsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutWebPushSubscriptionsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutWebPushSubscriptionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutWebPushSubscriptionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutPaymentMethodsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutPaymentMethodsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutPaymentMethodsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutPaymentMethodsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutPaymentMethodsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutPaymentMethodsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutPaymentMethodsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutReceiptsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutReceiptsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutReceiptsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutReceiptsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutReceiptsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutReceiptsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutReceiptsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutUserStoresInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutUserStoresInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutUserStoresInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutUserStoresInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutUserStoresInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutUserStoresInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutUserStoresInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutUserItemsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutUserItemsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutUserItemsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutUserItemsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutUserItemsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutUserItemsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutUserItemsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutUserStoreItemsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutUserStoreItemsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutUserStoreItemsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutUserStoreItemsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutUserStoreItemsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutUserStoreItemsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutUserStoreItemsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutUserItemCategoriesInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutUserItemCategoriesInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutUserItemCategoriesInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutUserItemCategoriesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutUserItemCategoriesInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutUserItemCategoriesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutUserItemCategoriesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutTransactionsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutTransactionsInput = { + id?: string + email: string + name?: string + firstName?: string + lastName?: string + image?: string | null + balance?: runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: boolean + createdAt?: Date | string + updatedAt?: Date | string + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + familyMemberships?: Prisma.FamilyMemberUncheckedCreateNestedManyWithoutUserInput + sentInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviterInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedCreateNestedManyWithoutInviteeInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedCreateNestedOneWithoutUserInput + deviceTokens?: Prisma.DeviceTokenUncheckedCreateNestedManyWithoutUserInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput + baskets?: Prisma.BasketUncheckedCreateNestedManyWithoutUserInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput + userStores?: Prisma.UserStoreUncheckedCreateNestedManyWithoutUserInput + userItems?: Prisma.UserItemUncheckedCreateNestedManyWithoutUserInput + userStoreItems?: Prisma.UserStoreItemUncheckedCreateNestedManyWithoutUserInput + userItemCategories?: Prisma.UserItemCategoryUncheckedCreateNestedManyWithoutUserInput + paymentMethods?: Prisma.PaymentMethodUncheckedCreateNestedManyWithoutUserInput + receipts?: Prisma.ReceiptUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutTransactionsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutTransactionsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutTransactionsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutTransactionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutTransactionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.StringFieldUpdateOperationsInput | string + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + balance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + familyMemberships?: Prisma.FamilyMemberUncheckedUpdateManyWithoutUserNestedInput + sentInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviterNestedInput + receivedInvitations?: Prisma.FamilyInvitationUncheckedUpdateManyWithoutInviteeNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + notificationPreference?: Prisma.NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput + deviceTokens?: Prisma.DeviceTokenUncheckedUpdateManyWithoutUserNestedInput + webPushSubscriptions?: Prisma.WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput + baskets?: Prisma.BasketUncheckedUpdateManyWithoutUserNestedInput + userExpenseCategories?: Prisma.UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput + userIncomeCategories?: Prisma.UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput + userStores?: Prisma.UserStoreUncheckedUpdateManyWithoutUserNestedInput + userItems?: Prisma.UserItemUncheckedUpdateManyWithoutUserNestedInput + userStoreItems?: Prisma.UserStoreItemUncheckedUpdateManyWithoutUserNestedInput + userItemCategories?: Prisma.UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput + paymentMethods?: Prisma.PaymentMethodUncheckedUpdateManyWithoutUserNestedInput + receipts?: Prisma.ReceiptUncheckedUpdateManyWithoutUserNestedInput +} + + +/** + * Count Type UserCountOutputType + */ + +export type UserCountOutputType = { + transactions: number + accounts: number + sessions: number + familyMemberships: number + sentInvitations: number + receivedInvitations: number + notifications: number + deviceTokens: number + webPushSubscriptions: number + baskets: number + userExpenseCategories: number + userIncomeCategories: number + userStores: number + userItems: number + userStoreItems: number + userItemCategories: number + paymentMethods: number + receipts: number +} + +export type UserCountOutputTypeSelect = { + transactions?: boolean | UserCountOutputTypeCountTransactionsArgs + accounts?: boolean | UserCountOutputTypeCountAccountsArgs + sessions?: boolean | UserCountOutputTypeCountSessionsArgs + familyMemberships?: boolean | UserCountOutputTypeCountFamilyMembershipsArgs + sentInvitations?: boolean | UserCountOutputTypeCountSentInvitationsArgs + receivedInvitations?: boolean | UserCountOutputTypeCountReceivedInvitationsArgs + notifications?: boolean | UserCountOutputTypeCountNotificationsArgs + deviceTokens?: boolean | UserCountOutputTypeCountDeviceTokensArgs + webPushSubscriptions?: boolean | UserCountOutputTypeCountWebPushSubscriptionsArgs + baskets?: boolean | UserCountOutputTypeCountBasketsArgs + userExpenseCategories?: boolean | UserCountOutputTypeCountUserExpenseCategoriesArgs + userIncomeCategories?: boolean | UserCountOutputTypeCountUserIncomeCategoriesArgs + userStores?: boolean | UserCountOutputTypeCountUserStoresArgs + userItems?: boolean | UserCountOutputTypeCountUserItemsArgs + userStoreItems?: boolean | UserCountOutputTypeCountUserStoreItemsArgs + userItemCategories?: boolean | UserCountOutputTypeCountUserItemCategoriesArgs + paymentMethods?: boolean | UserCountOutputTypeCountPaymentMethodsArgs + receipts?: boolean | UserCountOutputTypeCountReceiptsArgs +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the UserCountOutputType + */ + select?: Prisma.UserCountOutputTypeSelect | null +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountTransactionsArgs = { + where?: Prisma.TransactionWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountAccountsArgs = { + where?: Prisma.AccountWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountSessionsArgs = { + where?: Prisma.SessionWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountFamilyMembershipsArgs = { + where?: Prisma.FamilyMemberWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountSentInvitationsArgs = { + where?: Prisma.FamilyInvitationWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountReceivedInvitationsArgs = { + where?: Prisma.FamilyInvitationWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountNotificationsArgs = { + where?: Prisma.NotificationWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountDeviceTokensArgs = { + where?: Prisma.DeviceTokenWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountWebPushSubscriptionsArgs = { + where?: Prisma.WebPushSubscriptionWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountBasketsArgs = { + where?: Prisma.BasketWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountUserExpenseCategoriesArgs = { + where?: Prisma.UserExpenseCategoryWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountUserIncomeCategoriesArgs = { + where?: Prisma.UserIncomeCategoryWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountUserStoresArgs = { + where?: Prisma.UserStoreWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountUserItemsArgs = { + where?: Prisma.UserItemWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountUserStoreItemsArgs = { + where?: Prisma.UserStoreItemWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountUserItemCategoriesArgs = { + where?: Prisma.UserItemCategoryWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountPaymentMethodsArgs = { + where?: Prisma.PaymentMethodWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountReceiptsArgs = { + where?: Prisma.ReceiptWhereInput +} + + +export type UserSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + email?: boolean + name?: boolean + firstName?: boolean + lastName?: boolean + image?: boolean + balance?: boolean + emailVerified?: boolean + createdAt?: boolean + updatedAt?: boolean + transactions?: boolean | Prisma.User$transactionsArgs + accounts?: boolean | Prisma.User$accountsArgs + sessions?: boolean | Prisma.User$sessionsArgs + familyMemberships?: boolean | Prisma.User$familyMembershipsArgs + sentInvitations?: boolean | Prisma.User$sentInvitationsArgs + receivedInvitations?: boolean | Prisma.User$receivedInvitationsArgs + notifications?: boolean | Prisma.User$notificationsArgs + notificationPreference?: boolean | Prisma.User$notificationPreferenceArgs + deviceTokens?: boolean | Prisma.User$deviceTokensArgs + webPushSubscriptions?: boolean | Prisma.User$webPushSubscriptionsArgs + baskets?: boolean | Prisma.User$basketsArgs + userExpenseCategories?: boolean | Prisma.User$userExpenseCategoriesArgs + userIncomeCategories?: boolean | Prisma.User$userIncomeCategoriesArgs + userStores?: boolean | Prisma.User$userStoresArgs + userItems?: boolean | Prisma.User$userItemsArgs + userStoreItems?: boolean | Prisma.User$userStoreItemsArgs + userItemCategories?: boolean | Prisma.User$userItemCategoriesArgs + paymentMethods?: boolean | Prisma.User$paymentMethodsArgs + receipts?: boolean | Prisma.User$receiptsArgs + _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs +}, ExtArgs["result"]["user"]> + +export type UserSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + email?: boolean + name?: boolean + firstName?: boolean + lastName?: boolean + image?: boolean + balance?: boolean + emailVerified?: boolean + createdAt?: boolean + updatedAt?: boolean +}, ExtArgs["result"]["user"]> + +export type UserSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + email?: boolean + name?: boolean + firstName?: boolean + lastName?: boolean + image?: boolean + balance?: boolean + emailVerified?: boolean + createdAt?: boolean + updatedAt?: boolean +}, ExtArgs["result"]["user"]> + +export type UserSelectScalar = { + id?: boolean + email?: boolean + name?: boolean + firstName?: boolean + lastName?: boolean + image?: boolean + balance?: boolean + emailVerified?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type UserOmit = runtime.Types.Extensions.GetOmit<"id" | "email" | "name" | "firstName" | "lastName" | "image" | "balance" | "emailVerified" | "createdAt" | "updatedAt", ExtArgs["result"]["user"]> +export type UserInclude = { + transactions?: boolean | Prisma.User$transactionsArgs + accounts?: boolean | Prisma.User$accountsArgs + sessions?: boolean | Prisma.User$sessionsArgs + familyMemberships?: boolean | Prisma.User$familyMembershipsArgs + sentInvitations?: boolean | Prisma.User$sentInvitationsArgs + receivedInvitations?: boolean | Prisma.User$receivedInvitationsArgs + notifications?: boolean | Prisma.User$notificationsArgs + notificationPreference?: boolean | Prisma.User$notificationPreferenceArgs + deviceTokens?: boolean | Prisma.User$deviceTokensArgs + webPushSubscriptions?: boolean | Prisma.User$webPushSubscriptionsArgs + baskets?: boolean | Prisma.User$basketsArgs + userExpenseCategories?: boolean | Prisma.User$userExpenseCategoriesArgs + userIncomeCategories?: boolean | Prisma.User$userIncomeCategoriesArgs + userStores?: boolean | Prisma.User$userStoresArgs + userItems?: boolean | Prisma.User$userItemsArgs + userStoreItems?: boolean | Prisma.User$userStoreItemsArgs + userItemCategories?: boolean | Prisma.User$userItemCategoriesArgs + paymentMethods?: boolean | Prisma.User$paymentMethodsArgs + receipts?: boolean | Prisma.User$receiptsArgs + _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs +} +export type UserIncludeCreateManyAndReturn = {} +export type UserIncludeUpdateManyAndReturn = {} + +export type $UserPayload = { + name: "User" + objects: { + transactions: Prisma.$TransactionPayload[] + accounts: Prisma.$AccountPayload[] + sessions: Prisma.$SessionPayload[] + familyMemberships: Prisma.$FamilyMemberPayload[] + sentInvitations: Prisma.$FamilyInvitationPayload[] + receivedInvitations: Prisma.$FamilyInvitationPayload[] + notifications: Prisma.$NotificationPayload[] + notificationPreference: Prisma.$NotificationPreferencePayload | null + deviceTokens: Prisma.$DeviceTokenPayload[] + webPushSubscriptions: Prisma.$WebPushSubscriptionPayload[] + baskets: Prisma.$BasketPayload[] + userExpenseCategories: Prisma.$UserExpenseCategoryPayload[] + userIncomeCategories: Prisma.$UserIncomeCategoryPayload[] + userStores: Prisma.$UserStorePayload[] + userItems: Prisma.$UserItemPayload[] + userStoreItems: Prisma.$UserStoreItemPayload[] + userItemCategories: Prisma.$UserItemCategoryPayload[] + paymentMethods: Prisma.$PaymentMethodPayload[] + receipts: Prisma.$ReceiptPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + email: string + name: string + firstName: string + lastName: string + image: string | null + balance: runtime.Decimal + emailVerified: boolean + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["user"]> + composites: {} +} + +export type UserGetPayload = runtime.Types.Result.GetResult + +export type UserCountArgs = + Omit & { + select?: UserCountAggregateInputType | true + } + +export interface UserDelegate { + [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, 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( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * 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>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: UserGroupByArgs['orderBy'] } + : { orderBy?: UserGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise +/** + * 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 extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + transactions = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + accounts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + sessions = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + familyMemberships = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + sentInvitations = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + receivedInvitations = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + notifications = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + notificationPreference = {}>(args?: Prisma.Subset>): Prisma.Prisma__NotificationPreferenceClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + deviceTokens = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + webPushSubscriptions = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + baskets = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + userExpenseCategories = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + userIncomeCategories = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + userStores = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + userItems = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + userStoreItems = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + userItemCategories = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + paymentMethods = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + receipts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + /** + * 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the User model + */ +export interface UserFieldRefs { + readonly id: Prisma.FieldRef<"User", 'String'> + readonly email: Prisma.FieldRef<"User", 'String'> + readonly name: Prisma.FieldRef<"User", 'String'> + readonly firstName: Prisma.FieldRef<"User", 'String'> + readonly lastName: Prisma.FieldRef<"User", 'String'> + readonly image: Prisma.FieldRef<"User", 'String'> + readonly balance: Prisma.FieldRef<"User", 'Decimal'> + readonly emailVerified: Prisma.FieldRef<"User", 'Boolean'> + readonly createdAt: Prisma.FieldRef<"User", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"User", 'DateTime'> +} + + +// Custom InputTypes +/** + * User findUnique + */ +export type UserFindUniqueArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which User to fetch. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User findUniqueOrThrow + */ +export type UserFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which User to fetch. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User findFirst + */ +export type UserFindFirstArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | 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 = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | 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 = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | 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 = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * The data needed to create a User. + */ + data: Prisma.XOR +} + +/** + * User createMany + */ +export type UserCreateManyArgs = { + /** + * The data used to create many Users. + */ + data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * User createManyAndReturn + */ +export type UserCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelectCreateManyAndReturn | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * The data used to create many Users. + */ + data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * User update + */ +export type UserUpdateArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * The data needed to update a User. + */ + data: Prisma.XOR + /** + * Choose, which User to update. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User updateMany + */ +export type UserUpdateManyArgs = { + /** + * The data used to update Users. + */ + data: Prisma.XOR + /** + * Filter which Users to update + */ + where?: Prisma.UserWhereInput + /** + * Limit how many Users to update. + */ + limit?: number +} + +/** + * User updateManyAndReturn + */ +export type UserUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * The data used to update Users. + */ + data: Prisma.XOR + /** + * Filter which Users to update + */ + where?: Prisma.UserWhereInput + /** + * Limit how many Users to update. + */ + limit?: number +} + +/** + * User upsert + */ +export type UserUpsertArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | 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 + /** + * In case the User was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * User delete + */ +export type UserDeleteArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter which User to delete. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User deleteMany + */ +export type UserDeleteManyArgs = { + /** + * Filter which Users to delete + */ + where?: Prisma.UserWhereInput + /** + * Limit how many Users to delete. + */ + limit?: number +} + +/** + * User.transactions + */ +export type User$transactionsArgs = { + /** + * Select specific fields to fetch from the Transaction + */ + select?: Prisma.TransactionSelect | null + /** + * Omit specific fields from the Transaction + */ + omit?: Prisma.TransactionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TransactionInclude | null + where?: Prisma.TransactionWhereInput + orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[] + cursor?: Prisma.TransactionWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[] +} + +/** + * User.accounts + */ +export type User$accountsArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | 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 = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + where?: Prisma.SessionWhereInput + orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] + cursor?: Prisma.SessionWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] +} + +/** + * User.familyMemberships + */ +export type User$familyMembershipsArgs = { + /** + * Select specific fields to fetch from the FamilyMember + */ + select?: Prisma.FamilyMemberSelect | null + /** + * Omit specific fields from the FamilyMember + */ + omit?: Prisma.FamilyMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyMemberInclude | null + where?: Prisma.FamilyMemberWhereInput + orderBy?: Prisma.FamilyMemberOrderByWithRelationInput | Prisma.FamilyMemberOrderByWithRelationInput[] + cursor?: Prisma.FamilyMemberWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.FamilyMemberScalarFieldEnum | Prisma.FamilyMemberScalarFieldEnum[] +} + +/** + * User.sentInvitations + */ +export type User$sentInvitationsArgs = { + /** + * Select specific fields to fetch from the FamilyInvitation + */ + select?: Prisma.FamilyInvitationSelect | null + /** + * Omit specific fields from the FamilyInvitation + */ + omit?: Prisma.FamilyInvitationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInvitationInclude | null + where?: Prisma.FamilyInvitationWhereInput + orderBy?: Prisma.FamilyInvitationOrderByWithRelationInput | Prisma.FamilyInvitationOrderByWithRelationInput[] + cursor?: Prisma.FamilyInvitationWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.FamilyInvitationScalarFieldEnum | Prisma.FamilyInvitationScalarFieldEnum[] +} + +/** + * User.receivedInvitations + */ +export type User$receivedInvitationsArgs = { + /** + * Select specific fields to fetch from the FamilyInvitation + */ + select?: Prisma.FamilyInvitationSelect | null + /** + * Omit specific fields from the FamilyInvitation + */ + omit?: Prisma.FamilyInvitationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FamilyInvitationInclude | null + where?: Prisma.FamilyInvitationWhereInput + orderBy?: Prisma.FamilyInvitationOrderByWithRelationInput | Prisma.FamilyInvitationOrderByWithRelationInput[] + cursor?: Prisma.FamilyInvitationWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.FamilyInvitationScalarFieldEnum | Prisma.FamilyInvitationScalarFieldEnum[] +} + +/** + * User.notifications + */ +export type User$notificationsArgs = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + where?: Prisma.NotificationWhereInput + orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[] + cursor?: Prisma.NotificationWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * User.notificationPreference + */ +export type User$notificationPreferenceArgs = { + /** + * Select specific fields to fetch from the NotificationPreference + */ + select?: Prisma.NotificationPreferenceSelect | null + /** + * Omit specific fields from the NotificationPreference + */ + omit?: Prisma.NotificationPreferenceOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationPreferenceInclude | null + where?: Prisma.NotificationPreferenceWhereInput +} + +/** + * User.deviceTokens + */ +export type User$deviceTokensArgs = { + /** + * Select specific fields to fetch from the DeviceToken + */ + select?: Prisma.DeviceTokenSelect | null + /** + * Omit specific fields from the DeviceToken + */ + omit?: Prisma.DeviceTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeviceTokenInclude | null + where?: Prisma.DeviceTokenWhereInput + orderBy?: Prisma.DeviceTokenOrderByWithRelationInput | Prisma.DeviceTokenOrderByWithRelationInput[] + cursor?: Prisma.DeviceTokenWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.DeviceTokenScalarFieldEnum | Prisma.DeviceTokenScalarFieldEnum[] +} + +/** + * User.webPushSubscriptions + */ +export type User$webPushSubscriptionsArgs = { + /** + * Select specific fields to fetch from the WebPushSubscription + */ + select?: Prisma.WebPushSubscriptionSelect | null + /** + * Omit specific fields from the WebPushSubscription + */ + omit?: Prisma.WebPushSubscriptionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.WebPushSubscriptionInclude | null + where?: Prisma.WebPushSubscriptionWhereInput + orderBy?: Prisma.WebPushSubscriptionOrderByWithRelationInput | Prisma.WebPushSubscriptionOrderByWithRelationInput[] + cursor?: Prisma.WebPushSubscriptionWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.WebPushSubscriptionScalarFieldEnum | Prisma.WebPushSubscriptionScalarFieldEnum[] +} + +/** + * User.baskets + */ +export type User$basketsArgs = { + /** + * Select specific fields to fetch from the Basket + */ + select?: Prisma.BasketSelect | null + /** + * Omit specific fields from the Basket + */ + omit?: Prisma.BasketOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BasketInclude | null + where?: Prisma.BasketWhereInput + orderBy?: Prisma.BasketOrderByWithRelationInput | Prisma.BasketOrderByWithRelationInput[] + cursor?: Prisma.BasketWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.BasketScalarFieldEnum | Prisma.BasketScalarFieldEnum[] +} + +/** + * User.userExpenseCategories + */ +export type User$userExpenseCategoriesArgs = { + /** + * Select specific fields to fetch from the UserExpenseCategory + */ + select?: Prisma.UserExpenseCategorySelect | null + /** + * Omit specific fields from the UserExpenseCategory + */ + omit?: Prisma.UserExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserExpenseCategoryInclude | null + where?: Prisma.UserExpenseCategoryWhereInput + orderBy?: Prisma.UserExpenseCategoryOrderByWithRelationInput | Prisma.UserExpenseCategoryOrderByWithRelationInput[] + cursor?: Prisma.UserExpenseCategoryWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.UserExpenseCategoryScalarFieldEnum | Prisma.UserExpenseCategoryScalarFieldEnum[] +} + +/** + * User.userIncomeCategories + */ +export type User$userIncomeCategoriesArgs = { + /** + * Select specific fields to fetch from the UserIncomeCategory + */ + select?: Prisma.UserIncomeCategorySelect | null + /** + * Omit specific fields from the UserIncomeCategory + */ + omit?: Prisma.UserIncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserIncomeCategoryInclude | null + where?: Prisma.UserIncomeCategoryWhereInput + orderBy?: Prisma.UserIncomeCategoryOrderByWithRelationInput | Prisma.UserIncomeCategoryOrderByWithRelationInput[] + cursor?: Prisma.UserIncomeCategoryWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.UserIncomeCategoryScalarFieldEnum | Prisma.UserIncomeCategoryScalarFieldEnum[] +} + +/** + * User.userStores + */ +export type User$userStoresArgs = { + /** + * Select specific fields to fetch from the UserStore + */ + select?: Prisma.UserStoreSelect | null + /** + * Omit specific fields from the UserStore + */ + omit?: Prisma.UserStoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreInclude | null + where?: Prisma.UserStoreWhereInput + orderBy?: Prisma.UserStoreOrderByWithRelationInput | Prisma.UserStoreOrderByWithRelationInput[] + cursor?: Prisma.UserStoreWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.UserStoreScalarFieldEnum | Prisma.UserStoreScalarFieldEnum[] +} + +/** + * User.userItems + */ +export type User$userItemsArgs = { + /** + * Select specific fields to fetch from the UserItem + */ + select?: Prisma.UserItemSelect | null + /** + * Omit specific fields from the UserItem + */ + omit?: Prisma.UserItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemInclude | null + where?: Prisma.UserItemWhereInput + orderBy?: Prisma.UserItemOrderByWithRelationInput | Prisma.UserItemOrderByWithRelationInput[] + cursor?: Prisma.UserItemWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.UserItemScalarFieldEnum | Prisma.UserItemScalarFieldEnum[] +} + +/** + * User.userStoreItems + */ +export type User$userStoreItemsArgs = { + /** + * Select specific fields to fetch from the UserStoreItem + */ + select?: Prisma.UserStoreItemSelect | null + /** + * Omit specific fields from the UserStoreItem + */ + omit?: Prisma.UserStoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreItemInclude | null + where?: Prisma.UserStoreItemWhereInput + orderBy?: Prisma.UserStoreItemOrderByWithRelationInput | Prisma.UserStoreItemOrderByWithRelationInput[] + cursor?: Prisma.UserStoreItemWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.UserStoreItemScalarFieldEnum | Prisma.UserStoreItemScalarFieldEnum[] +} + +/** + * User.userItemCategories + */ +export type User$userItemCategoriesArgs = { + /** + * Select specific fields to fetch from the UserItemCategory + */ + select?: Prisma.UserItemCategorySelect | null + /** + * Omit specific fields from the UserItemCategory + */ + omit?: Prisma.UserItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemCategoryInclude | null + where?: Prisma.UserItemCategoryWhereInput + orderBy?: Prisma.UserItemCategoryOrderByWithRelationInput | Prisma.UserItemCategoryOrderByWithRelationInput[] + cursor?: Prisma.UserItemCategoryWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.UserItemCategoryScalarFieldEnum | Prisma.UserItemCategoryScalarFieldEnum[] +} + +/** + * User.paymentMethods + */ +export type User$paymentMethodsArgs = { + /** + * Select specific fields to fetch from the PaymentMethod + */ + select?: Prisma.PaymentMethodSelect | null + /** + * Omit specific fields from the PaymentMethod + */ + omit?: Prisma.PaymentMethodOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaymentMethodInclude | null + where?: Prisma.PaymentMethodWhereInput + orderBy?: Prisma.PaymentMethodOrderByWithRelationInput | Prisma.PaymentMethodOrderByWithRelationInput[] + cursor?: Prisma.PaymentMethodWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.PaymentMethodScalarFieldEnum | Prisma.PaymentMethodScalarFieldEnum[] +} + +/** + * User.receipts + */ +export type User$receiptsArgs = { + /** + * Select specific fields to fetch from the Receipt + */ + select?: Prisma.ReceiptSelect | null + /** + * Omit specific fields from the Receipt + */ + omit?: Prisma.ReceiptOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ReceiptInclude | null + where?: Prisma.ReceiptWhereInput + orderBy?: Prisma.ReceiptOrderByWithRelationInput | Prisma.ReceiptOrderByWithRelationInput[] + cursor?: Prisma.ReceiptWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ReceiptScalarFieldEnum | Prisma.ReceiptScalarFieldEnum[] +} + +/** + * User without action + */ +export type UserDefaultArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/UserExpenseCategory.ts b/apps/backend/prisma/generated/generated/prisma/models/UserExpenseCategory.ts new file mode 100644 index 00000000..a052649e --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/UserExpenseCategory.ts @@ -0,0 +1,1425 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `UserExpenseCategory` 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 UserExpenseCategory + * + */ +export type UserExpenseCategoryModel = runtime.Types.Result.DefaultSelection + +export type AggregateUserExpenseCategory = { + _count: UserExpenseCategoryCountAggregateOutputType | null + _min: UserExpenseCategoryMinAggregateOutputType | null + _max: UserExpenseCategoryMaxAggregateOutputType | null +} + +export type UserExpenseCategoryMinAggregateOutputType = { + id: string | null + userId: string | null + categoryId: string | null + createdAt: Date | null +} + +export type UserExpenseCategoryMaxAggregateOutputType = { + id: string | null + userId: string | null + categoryId: string | null + createdAt: Date | null +} + +export type UserExpenseCategoryCountAggregateOutputType = { + id: number + userId: number + categoryId: number + createdAt: number + _all: number +} + + +export type UserExpenseCategoryMinAggregateInputType = { + id?: true + userId?: true + categoryId?: true + createdAt?: true +} + +export type UserExpenseCategoryMaxAggregateInputType = { + id?: true + userId?: true + categoryId?: true + createdAt?: true +} + +export type UserExpenseCategoryCountAggregateInputType = { + id?: true + userId?: true + categoryId?: true + createdAt?: true + _all?: true +} + +export type UserExpenseCategoryAggregateArgs = { + /** + * Filter which UserExpenseCategory to aggregate. + */ + where?: Prisma.UserExpenseCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserExpenseCategories to fetch. + */ + orderBy?: Prisma.UserExpenseCategoryOrderByWithRelationInput | Prisma.UserExpenseCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.UserExpenseCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserExpenseCategories 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` UserExpenseCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned UserExpenseCategories + **/ + _count?: true | UserExpenseCategoryCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: UserExpenseCategoryMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: UserExpenseCategoryMaxAggregateInputType +} + +export type GetUserExpenseCategoryAggregateType = { + [P in keyof T & keyof AggregateUserExpenseCategory]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type UserExpenseCategoryGroupByArgs = { + where?: Prisma.UserExpenseCategoryWhereInput + orderBy?: Prisma.UserExpenseCategoryOrderByWithAggregationInput | Prisma.UserExpenseCategoryOrderByWithAggregationInput[] + by: Prisma.UserExpenseCategoryScalarFieldEnum[] | Prisma.UserExpenseCategoryScalarFieldEnum + having?: Prisma.UserExpenseCategoryScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: UserExpenseCategoryCountAggregateInputType | true + _min?: UserExpenseCategoryMinAggregateInputType + _max?: UserExpenseCategoryMaxAggregateInputType +} + +export type UserExpenseCategoryGroupByOutputType = { + id: string + userId: string + categoryId: string + createdAt: Date + _count: UserExpenseCategoryCountAggregateOutputType | null + _min: UserExpenseCategoryMinAggregateOutputType | null + _max: UserExpenseCategoryMaxAggregateOutputType | null +} + +type GetUserExpenseCategoryGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof UserExpenseCategoryGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type UserExpenseCategoryWhereInput = { + AND?: Prisma.UserExpenseCategoryWhereInput | Prisma.UserExpenseCategoryWhereInput[] + OR?: Prisma.UserExpenseCategoryWhereInput[] + NOT?: Prisma.UserExpenseCategoryWhereInput | Prisma.UserExpenseCategoryWhereInput[] + id?: Prisma.StringFilter<"UserExpenseCategory"> | string + userId?: Prisma.StringFilter<"UserExpenseCategory"> | string + categoryId?: Prisma.StringFilter<"UserExpenseCategory"> | string + createdAt?: Prisma.DateTimeFilter<"UserExpenseCategory"> | Date | string + user?: Prisma.XOR + category?: Prisma.XOR +} + +export type UserExpenseCategoryOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput + category?: Prisma.ExpenseCategoryOrderByWithRelationInput +} + +export type UserExpenseCategoryWhereUniqueInput = Prisma.AtLeast<{ + id?: string + userId_categoryId?: Prisma.UserExpenseCategoryUserIdCategoryIdCompoundUniqueInput + AND?: Prisma.UserExpenseCategoryWhereInput | Prisma.UserExpenseCategoryWhereInput[] + OR?: Prisma.UserExpenseCategoryWhereInput[] + NOT?: Prisma.UserExpenseCategoryWhereInput | Prisma.UserExpenseCategoryWhereInput[] + userId?: Prisma.StringFilter<"UserExpenseCategory"> | string + categoryId?: Prisma.StringFilter<"UserExpenseCategory"> | string + createdAt?: Prisma.DateTimeFilter<"UserExpenseCategory"> | Date | string + user?: Prisma.XOR + category?: Prisma.XOR +}, "id" | "userId_categoryId"> + +export type UserExpenseCategoryOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + _count?: Prisma.UserExpenseCategoryCountOrderByAggregateInput + _max?: Prisma.UserExpenseCategoryMaxOrderByAggregateInput + _min?: Prisma.UserExpenseCategoryMinOrderByAggregateInput +} + +export type UserExpenseCategoryScalarWhereWithAggregatesInput = { + AND?: Prisma.UserExpenseCategoryScalarWhereWithAggregatesInput | Prisma.UserExpenseCategoryScalarWhereWithAggregatesInput[] + OR?: Prisma.UserExpenseCategoryScalarWhereWithAggregatesInput[] + NOT?: Prisma.UserExpenseCategoryScalarWhereWithAggregatesInput | Prisma.UserExpenseCategoryScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"UserExpenseCategory"> | string + userId?: Prisma.StringWithAggregatesFilter<"UserExpenseCategory"> | string + categoryId?: Prisma.StringWithAggregatesFilter<"UserExpenseCategory"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"UserExpenseCategory"> | Date | string +} + +export type UserExpenseCategoryCreateInput = { + id?: string + createdAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutUserExpenseCategoriesInput + category: Prisma.ExpenseCategoryCreateNestedOneWithoutUsersInput +} + +export type UserExpenseCategoryUncheckedCreateInput = { + id?: string + userId: string + categoryId: string + createdAt?: Date | string +} + +export type UserExpenseCategoryUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutUserExpenseCategoriesNestedInput + category?: Prisma.ExpenseCategoryUpdateOneRequiredWithoutUsersNestedInput +} + +export type UserExpenseCategoryUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserExpenseCategoryCreateManyInput = { + id?: string + userId: string + categoryId: string + createdAt?: Date | string +} + +export type UserExpenseCategoryUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserExpenseCategoryUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserExpenseCategoryListRelationFilter = { + every?: Prisma.UserExpenseCategoryWhereInput + some?: Prisma.UserExpenseCategoryWhereInput + none?: Prisma.UserExpenseCategoryWhereInput +} + +export type UserExpenseCategoryOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type UserExpenseCategoryUserIdCategoryIdCompoundUniqueInput = { + userId: string + categoryId: string +} + +export type UserExpenseCategoryCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserExpenseCategoryMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserExpenseCategoryMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserExpenseCategoryCreateNestedManyWithoutCategoryInput = { + create?: Prisma.XOR | Prisma.UserExpenseCategoryCreateWithoutCategoryInput[] | Prisma.UserExpenseCategoryUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.UserExpenseCategoryCreateOrConnectWithoutCategoryInput | Prisma.UserExpenseCategoryCreateOrConnectWithoutCategoryInput[] + createMany?: Prisma.UserExpenseCategoryCreateManyCategoryInputEnvelope + connect?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] +} + +export type UserExpenseCategoryUncheckedCreateNestedManyWithoutCategoryInput = { + create?: Prisma.XOR | Prisma.UserExpenseCategoryCreateWithoutCategoryInput[] | Prisma.UserExpenseCategoryUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.UserExpenseCategoryCreateOrConnectWithoutCategoryInput | Prisma.UserExpenseCategoryCreateOrConnectWithoutCategoryInput[] + createMany?: Prisma.UserExpenseCategoryCreateManyCategoryInputEnvelope + connect?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] +} + +export type UserExpenseCategoryUpdateManyWithoutCategoryNestedInput = { + create?: Prisma.XOR | Prisma.UserExpenseCategoryCreateWithoutCategoryInput[] | Prisma.UserExpenseCategoryUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.UserExpenseCategoryCreateOrConnectWithoutCategoryInput | Prisma.UserExpenseCategoryCreateOrConnectWithoutCategoryInput[] + upsert?: Prisma.UserExpenseCategoryUpsertWithWhereUniqueWithoutCategoryInput | Prisma.UserExpenseCategoryUpsertWithWhereUniqueWithoutCategoryInput[] + createMany?: Prisma.UserExpenseCategoryCreateManyCategoryInputEnvelope + set?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] + disconnect?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] + delete?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] + connect?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] + update?: Prisma.UserExpenseCategoryUpdateWithWhereUniqueWithoutCategoryInput | Prisma.UserExpenseCategoryUpdateWithWhereUniqueWithoutCategoryInput[] + updateMany?: Prisma.UserExpenseCategoryUpdateManyWithWhereWithoutCategoryInput | Prisma.UserExpenseCategoryUpdateManyWithWhereWithoutCategoryInput[] + deleteMany?: Prisma.UserExpenseCategoryScalarWhereInput | Prisma.UserExpenseCategoryScalarWhereInput[] +} + +export type UserExpenseCategoryUncheckedUpdateManyWithoutCategoryNestedInput = { + create?: Prisma.XOR | Prisma.UserExpenseCategoryCreateWithoutCategoryInput[] | Prisma.UserExpenseCategoryUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.UserExpenseCategoryCreateOrConnectWithoutCategoryInput | Prisma.UserExpenseCategoryCreateOrConnectWithoutCategoryInput[] + upsert?: Prisma.UserExpenseCategoryUpsertWithWhereUniqueWithoutCategoryInput | Prisma.UserExpenseCategoryUpsertWithWhereUniqueWithoutCategoryInput[] + createMany?: Prisma.UserExpenseCategoryCreateManyCategoryInputEnvelope + set?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] + disconnect?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] + delete?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] + connect?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] + update?: Prisma.UserExpenseCategoryUpdateWithWhereUniqueWithoutCategoryInput | Prisma.UserExpenseCategoryUpdateWithWhereUniqueWithoutCategoryInput[] + updateMany?: Prisma.UserExpenseCategoryUpdateManyWithWhereWithoutCategoryInput | Prisma.UserExpenseCategoryUpdateManyWithWhereWithoutCategoryInput[] + deleteMany?: Prisma.UserExpenseCategoryScalarWhereInput | Prisma.UserExpenseCategoryScalarWhereInput[] +} + +export type UserExpenseCategoryCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.UserExpenseCategoryCreateWithoutUserInput[] | Prisma.UserExpenseCategoryUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserExpenseCategoryCreateOrConnectWithoutUserInput | Prisma.UserExpenseCategoryCreateOrConnectWithoutUserInput[] + createMany?: Prisma.UserExpenseCategoryCreateManyUserInputEnvelope + connect?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] +} + +export type UserExpenseCategoryUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.UserExpenseCategoryCreateWithoutUserInput[] | Prisma.UserExpenseCategoryUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserExpenseCategoryCreateOrConnectWithoutUserInput | Prisma.UserExpenseCategoryCreateOrConnectWithoutUserInput[] + createMany?: Prisma.UserExpenseCategoryCreateManyUserInputEnvelope + connect?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] +} + +export type UserExpenseCategoryUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.UserExpenseCategoryCreateWithoutUserInput[] | Prisma.UserExpenseCategoryUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserExpenseCategoryCreateOrConnectWithoutUserInput | Prisma.UserExpenseCategoryCreateOrConnectWithoutUserInput[] + upsert?: Prisma.UserExpenseCategoryUpsertWithWhereUniqueWithoutUserInput | Prisma.UserExpenseCategoryUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.UserExpenseCategoryCreateManyUserInputEnvelope + set?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] + disconnect?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] + delete?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] + connect?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] + update?: Prisma.UserExpenseCategoryUpdateWithWhereUniqueWithoutUserInput | Prisma.UserExpenseCategoryUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.UserExpenseCategoryUpdateManyWithWhereWithoutUserInput | Prisma.UserExpenseCategoryUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.UserExpenseCategoryScalarWhereInput | Prisma.UserExpenseCategoryScalarWhereInput[] +} + +export type UserExpenseCategoryUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.UserExpenseCategoryCreateWithoutUserInput[] | Prisma.UserExpenseCategoryUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserExpenseCategoryCreateOrConnectWithoutUserInput | Prisma.UserExpenseCategoryCreateOrConnectWithoutUserInput[] + upsert?: Prisma.UserExpenseCategoryUpsertWithWhereUniqueWithoutUserInput | Prisma.UserExpenseCategoryUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.UserExpenseCategoryCreateManyUserInputEnvelope + set?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] + disconnect?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] + delete?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] + connect?: Prisma.UserExpenseCategoryWhereUniqueInput | Prisma.UserExpenseCategoryWhereUniqueInput[] + update?: Prisma.UserExpenseCategoryUpdateWithWhereUniqueWithoutUserInput | Prisma.UserExpenseCategoryUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.UserExpenseCategoryUpdateManyWithWhereWithoutUserInput | Prisma.UserExpenseCategoryUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.UserExpenseCategoryScalarWhereInput | Prisma.UserExpenseCategoryScalarWhereInput[] +} + +export type UserExpenseCategoryCreateWithoutCategoryInput = { + id?: string + createdAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutUserExpenseCategoriesInput +} + +export type UserExpenseCategoryUncheckedCreateWithoutCategoryInput = { + id?: string + userId: string + createdAt?: Date | string +} + +export type UserExpenseCategoryCreateOrConnectWithoutCategoryInput = { + where: Prisma.UserExpenseCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type UserExpenseCategoryCreateManyCategoryInputEnvelope = { + data: Prisma.UserExpenseCategoryCreateManyCategoryInput | Prisma.UserExpenseCategoryCreateManyCategoryInput[] + skipDuplicates?: boolean +} + +export type UserExpenseCategoryUpsertWithWhereUniqueWithoutCategoryInput = { + where: Prisma.UserExpenseCategoryWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type UserExpenseCategoryUpdateWithWhereUniqueWithoutCategoryInput = { + where: Prisma.UserExpenseCategoryWhereUniqueInput + data: Prisma.XOR +} + +export type UserExpenseCategoryUpdateManyWithWhereWithoutCategoryInput = { + where: Prisma.UserExpenseCategoryScalarWhereInput + data: Prisma.XOR +} + +export type UserExpenseCategoryScalarWhereInput = { + AND?: Prisma.UserExpenseCategoryScalarWhereInput | Prisma.UserExpenseCategoryScalarWhereInput[] + OR?: Prisma.UserExpenseCategoryScalarWhereInput[] + NOT?: Prisma.UserExpenseCategoryScalarWhereInput | Prisma.UserExpenseCategoryScalarWhereInput[] + id?: Prisma.StringFilter<"UserExpenseCategory"> | string + userId?: Prisma.StringFilter<"UserExpenseCategory"> | string + categoryId?: Prisma.StringFilter<"UserExpenseCategory"> | string + createdAt?: Prisma.DateTimeFilter<"UserExpenseCategory"> | Date | string +} + +export type UserExpenseCategoryCreateWithoutUserInput = { + id?: string + createdAt?: Date | string + category: Prisma.ExpenseCategoryCreateNestedOneWithoutUsersInput +} + +export type UserExpenseCategoryUncheckedCreateWithoutUserInput = { + id?: string + categoryId: string + createdAt?: Date | string +} + +export type UserExpenseCategoryCreateOrConnectWithoutUserInput = { + where: Prisma.UserExpenseCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type UserExpenseCategoryCreateManyUserInputEnvelope = { + data: Prisma.UserExpenseCategoryCreateManyUserInput | Prisma.UserExpenseCategoryCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type UserExpenseCategoryUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.UserExpenseCategoryWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type UserExpenseCategoryUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.UserExpenseCategoryWhereUniqueInput + data: Prisma.XOR +} + +export type UserExpenseCategoryUpdateManyWithWhereWithoutUserInput = { + where: Prisma.UserExpenseCategoryScalarWhereInput + data: Prisma.XOR +} + +export type UserExpenseCategoryCreateManyCategoryInput = { + id?: string + userId: string + createdAt?: Date | string +} + +export type UserExpenseCategoryUpdateWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutUserExpenseCategoriesNestedInput +} + +export type UserExpenseCategoryUncheckedUpdateWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserExpenseCategoryUncheckedUpdateManyWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserExpenseCategoryCreateManyUserInput = { + id?: string + categoryId: string + createdAt?: Date | string +} + +export type UserExpenseCategoryUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.ExpenseCategoryUpdateOneRequiredWithoutUsersNestedInput +} + +export type UserExpenseCategoryUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserExpenseCategoryUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type UserExpenseCategorySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + categoryId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.ExpenseCategoryDefaultArgs +}, ExtArgs["result"]["userExpenseCategory"]> + +export type UserExpenseCategorySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + categoryId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.ExpenseCategoryDefaultArgs +}, ExtArgs["result"]["userExpenseCategory"]> + +export type UserExpenseCategorySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + categoryId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.ExpenseCategoryDefaultArgs +}, ExtArgs["result"]["userExpenseCategory"]> + +export type UserExpenseCategorySelectScalar = { + id?: boolean + userId?: boolean + categoryId?: boolean + createdAt?: boolean +} + +export type UserExpenseCategoryOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "categoryId" | "createdAt", ExtArgs["result"]["userExpenseCategory"]> +export type UserExpenseCategoryInclude = { + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.ExpenseCategoryDefaultArgs +} +export type UserExpenseCategoryIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.ExpenseCategoryDefaultArgs +} +export type UserExpenseCategoryIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.ExpenseCategoryDefaultArgs +} + +export type $UserExpenseCategoryPayload = { + name: "UserExpenseCategory" + objects: { + user: Prisma.$UserPayload + category: Prisma.$ExpenseCategoryPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + userId: string + categoryId: string + createdAt: Date + }, ExtArgs["result"]["userExpenseCategory"]> + composites: {} +} + +export type UserExpenseCategoryGetPayload = runtime.Types.Result.GetResult + +export type UserExpenseCategoryCountArgs = + Omit & { + select?: UserExpenseCategoryCountAggregateInputType | true + } + +export interface UserExpenseCategoryDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['UserExpenseCategory'], meta: { name: 'UserExpenseCategory' } } + /** + * Find zero or one UserExpenseCategory that matches the filter. + * @param {UserExpenseCategoryFindUniqueArgs} args - Arguments to find a UserExpenseCategory + * @example + * // Get one UserExpenseCategory + * const userExpenseCategory = await prisma.userExpenseCategory.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserExpenseCategoryClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one UserExpenseCategory that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {UserExpenseCategoryFindUniqueOrThrowArgs} args - Arguments to find a UserExpenseCategory + * @example + * // Get one UserExpenseCategory + * const userExpenseCategory = await prisma.userExpenseCategory.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserExpenseCategoryClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first UserExpenseCategory 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 {UserExpenseCategoryFindFirstArgs} args - Arguments to find a UserExpenseCategory + * @example + * // Get one UserExpenseCategory + * const userExpenseCategory = await prisma.userExpenseCategory.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserExpenseCategoryClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first UserExpenseCategory 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 {UserExpenseCategoryFindFirstOrThrowArgs} args - Arguments to find a UserExpenseCategory + * @example + * // Get one UserExpenseCategory + * const userExpenseCategory = await prisma.userExpenseCategory.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserExpenseCategoryClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more UserExpenseCategories 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 {UserExpenseCategoryFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all UserExpenseCategories + * const userExpenseCategories = await prisma.userExpenseCategory.findMany() + * + * // Get first 10 UserExpenseCategories + * const userExpenseCategories = await prisma.userExpenseCategory.findMany({ take: 10 }) + * + * // Only select the `id` + * const userExpenseCategoryWithIdOnly = await prisma.userExpenseCategory.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a UserExpenseCategory. + * @param {UserExpenseCategoryCreateArgs} args - Arguments to create a UserExpenseCategory. + * @example + * // Create one UserExpenseCategory + * const UserExpenseCategory = await prisma.userExpenseCategory.create({ + * data: { + * // ... data to create a UserExpenseCategory + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__UserExpenseCategoryClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many UserExpenseCategories. + * @param {UserExpenseCategoryCreateManyArgs} args - Arguments to create many UserExpenseCategories. + * @example + * // Create many UserExpenseCategories + * const userExpenseCategory = await prisma.userExpenseCategory.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many UserExpenseCategories and returns the data saved in the database. + * @param {UserExpenseCategoryCreateManyAndReturnArgs} args - Arguments to create many UserExpenseCategories. + * @example + * // Create many UserExpenseCategories + * const userExpenseCategory = await prisma.userExpenseCategory.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many UserExpenseCategories and only return the `id` + * const userExpenseCategoryWithIdOnly = await prisma.userExpenseCategory.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a UserExpenseCategory. + * @param {UserExpenseCategoryDeleteArgs} args - Arguments to delete one UserExpenseCategory. + * @example + * // Delete one UserExpenseCategory + * const UserExpenseCategory = await prisma.userExpenseCategory.delete({ + * where: { + * // ... filter to delete one UserExpenseCategory + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserExpenseCategoryClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one UserExpenseCategory. + * @param {UserExpenseCategoryUpdateArgs} args - Arguments to update one UserExpenseCategory. + * @example + * // Update one UserExpenseCategory + * const userExpenseCategory = await prisma.userExpenseCategory.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__UserExpenseCategoryClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more UserExpenseCategories. + * @param {UserExpenseCategoryDeleteManyArgs} args - Arguments to filter UserExpenseCategories to delete. + * @example + * // Delete a few UserExpenseCategories + * const { count } = await prisma.userExpenseCategory.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more UserExpenseCategories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserExpenseCategoryUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many UserExpenseCategories + * const userExpenseCategory = await prisma.userExpenseCategory.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more UserExpenseCategories and returns the data updated in the database. + * @param {UserExpenseCategoryUpdateManyAndReturnArgs} args - Arguments to update many UserExpenseCategories. + * @example + * // Update many UserExpenseCategories + * const userExpenseCategory = await prisma.userExpenseCategory.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more UserExpenseCategories and only return the `id` + * const userExpenseCategoryWithIdOnly = await prisma.userExpenseCategory.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one UserExpenseCategory. + * @param {UserExpenseCategoryUpsertArgs} args - Arguments to update or create a UserExpenseCategory. + * @example + * // Update or create a UserExpenseCategory + * const userExpenseCategory = await prisma.userExpenseCategory.upsert({ + * create: { + * // ... data to create a UserExpenseCategory + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the UserExpenseCategory we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserExpenseCategoryClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of UserExpenseCategories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserExpenseCategoryCountArgs} args - Arguments to filter UserExpenseCategories to count. + * @example + * // Count the number of UserExpenseCategories + * const count = await prisma.userExpenseCategory.count({ + * where: { + * // ... the filter for the UserExpenseCategories we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a UserExpenseCategory. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserExpenseCategoryAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by UserExpenseCategory. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserExpenseCategoryGroupByArgs} 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 UserExpenseCategoryGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: UserExpenseCategoryGroupByArgs['orderBy'] } + : { orderBy?: UserExpenseCategoryGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetUserExpenseCategoryGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the UserExpenseCategory model + */ +readonly fields: UserExpenseCategoryFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for UserExpenseCategory. + * 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__UserExpenseCategoryClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + category = {}>(args?: Prisma.Subset>): Prisma.Prisma__ExpenseCategoryClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the UserExpenseCategory model + */ +export interface UserExpenseCategoryFieldRefs { + readonly id: Prisma.FieldRef<"UserExpenseCategory", 'String'> + readonly userId: Prisma.FieldRef<"UserExpenseCategory", 'String'> + readonly categoryId: Prisma.FieldRef<"UserExpenseCategory", 'String'> + readonly createdAt: Prisma.FieldRef<"UserExpenseCategory", 'DateTime'> +} + + +// Custom InputTypes +/** + * UserExpenseCategory findUnique + */ +export type UserExpenseCategoryFindUniqueArgs = { + /** + * Select specific fields to fetch from the UserExpenseCategory + */ + select?: Prisma.UserExpenseCategorySelect | null + /** + * Omit specific fields from the UserExpenseCategory + */ + omit?: Prisma.UserExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserExpenseCategoryInclude | null + /** + * Filter, which UserExpenseCategory to fetch. + */ + where: Prisma.UserExpenseCategoryWhereUniqueInput +} + +/** + * UserExpenseCategory findUniqueOrThrow + */ +export type UserExpenseCategoryFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the UserExpenseCategory + */ + select?: Prisma.UserExpenseCategorySelect | null + /** + * Omit specific fields from the UserExpenseCategory + */ + omit?: Prisma.UserExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserExpenseCategoryInclude | null + /** + * Filter, which UserExpenseCategory to fetch. + */ + where: Prisma.UserExpenseCategoryWhereUniqueInput +} + +/** + * UserExpenseCategory findFirst + */ +export type UserExpenseCategoryFindFirstArgs = { + /** + * Select specific fields to fetch from the UserExpenseCategory + */ + select?: Prisma.UserExpenseCategorySelect | null + /** + * Omit specific fields from the UserExpenseCategory + */ + omit?: Prisma.UserExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserExpenseCategoryInclude | null + /** + * Filter, which UserExpenseCategory to fetch. + */ + where?: Prisma.UserExpenseCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserExpenseCategories to fetch. + */ + orderBy?: Prisma.UserExpenseCategoryOrderByWithRelationInput | Prisma.UserExpenseCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for UserExpenseCategories. + */ + cursor?: Prisma.UserExpenseCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserExpenseCategories 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` UserExpenseCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of UserExpenseCategories. + */ + distinct?: Prisma.UserExpenseCategoryScalarFieldEnum | Prisma.UserExpenseCategoryScalarFieldEnum[] +} + +/** + * UserExpenseCategory findFirstOrThrow + */ +export type UserExpenseCategoryFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the UserExpenseCategory + */ + select?: Prisma.UserExpenseCategorySelect | null + /** + * Omit specific fields from the UserExpenseCategory + */ + omit?: Prisma.UserExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserExpenseCategoryInclude | null + /** + * Filter, which UserExpenseCategory to fetch. + */ + where?: Prisma.UserExpenseCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserExpenseCategories to fetch. + */ + orderBy?: Prisma.UserExpenseCategoryOrderByWithRelationInput | Prisma.UserExpenseCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for UserExpenseCategories. + */ + cursor?: Prisma.UserExpenseCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserExpenseCategories 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` UserExpenseCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of UserExpenseCategories. + */ + distinct?: Prisma.UserExpenseCategoryScalarFieldEnum | Prisma.UserExpenseCategoryScalarFieldEnum[] +} + +/** + * UserExpenseCategory findMany + */ +export type UserExpenseCategoryFindManyArgs = { + /** + * Select specific fields to fetch from the UserExpenseCategory + */ + select?: Prisma.UserExpenseCategorySelect | null + /** + * Omit specific fields from the UserExpenseCategory + */ + omit?: Prisma.UserExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserExpenseCategoryInclude | null + /** + * Filter, which UserExpenseCategories to fetch. + */ + where?: Prisma.UserExpenseCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserExpenseCategories to fetch. + */ + orderBy?: Prisma.UserExpenseCategoryOrderByWithRelationInput | Prisma.UserExpenseCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing UserExpenseCategories. + */ + cursor?: Prisma.UserExpenseCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserExpenseCategories 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` UserExpenseCategories. + */ + skip?: number + distinct?: Prisma.UserExpenseCategoryScalarFieldEnum | Prisma.UserExpenseCategoryScalarFieldEnum[] +} + +/** + * UserExpenseCategory create + */ +export type UserExpenseCategoryCreateArgs = { + /** + * Select specific fields to fetch from the UserExpenseCategory + */ + select?: Prisma.UserExpenseCategorySelect | null + /** + * Omit specific fields from the UserExpenseCategory + */ + omit?: Prisma.UserExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserExpenseCategoryInclude | null + /** + * The data needed to create a UserExpenseCategory. + */ + data: Prisma.XOR +} + +/** + * UserExpenseCategory createMany + */ +export type UserExpenseCategoryCreateManyArgs = { + /** + * The data used to create many UserExpenseCategories. + */ + data: Prisma.UserExpenseCategoryCreateManyInput | Prisma.UserExpenseCategoryCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * UserExpenseCategory createManyAndReturn + */ +export type UserExpenseCategoryCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the UserExpenseCategory + */ + select?: Prisma.UserExpenseCategorySelectCreateManyAndReturn | null + /** + * Omit specific fields from the UserExpenseCategory + */ + omit?: Prisma.UserExpenseCategoryOmit | null + /** + * The data used to create many UserExpenseCategories. + */ + data: Prisma.UserExpenseCategoryCreateManyInput | Prisma.UserExpenseCategoryCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserExpenseCategoryIncludeCreateManyAndReturn | null +} + +/** + * UserExpenseCategory update + */ +export type UserExpenseCategoryUpdateArgs = { + /** + * Select specific fields to fetch from the UserExpenseCategory + */ + select?: Prisma.UserExpenseCategorySelect | null + /** + * Omit specific fields from the UserExpenseCategory + */ + omit?: Prisma.UserExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserExpenseCategoryInclude | null + /** + * The data needed to update a UserExpenseCategory. + */ + data: Prisma.XOR + /** + * Choose, which UserExpenseCategory to update. + */ + where: Prisma.UserExpenseCategoryWhereUniqueInput +} + +/** + * UserExpenseCategory updateMany + */ +export type UserExpenseCategoryUpdateManyArgs = { + /** + * The data used to update UserExpenseCategories. + */ + data: Prisma.XOR + /** + * Filter which UserExpenseCategories to update + */ + where?: Prisma.UserExpenseCategoryWhereInput + /** + * Limit how many UserExpenseCategories to update. + */ + limit?: number +} + +/** + * UserExpenseCategory updateManyAndReturn + */ +export type UserExpenseCategoryUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the UserExpenseCategory + */ + select?: Prisma.UserExpenseCategorySelectUpdateManyAndReturn | null + /** + * Omit specific fields from the UserExpenseCategory + */ + omit?: Prisma.UserExpenseCategoryOmit | null + /** + * The data used to update UserExpenseCategories. + */ + data: Prisma.XOR + /** + * Filter which UserExpenseCategories to update + */ + where?: Prisma.UserExpenseCategoryWhereInput + /** + * Limit how many UserExpenseCategories to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserExpenseCategoryIncludeUpdateManyAndReturn | null +} + +/** + * UserExpenseCategory upsert + */ +export type UserExpenseCategoryUpsertArgs = { + /** + * Select specific fields to fetch from the UserExpenseCategory + */ + select?: Prisma.UserExpenseCategorySelect | null + /** + * Omit specific fields from the UserExpenseCategory + */ + omit?: Prisma.UserExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserExpenseCategoryInclude | null + /** + * The filter to search for the UserExpenseCategory to update in case it exists. + */ + where: Prisma.UserExpenseCategoryWhereUniqueInput + /** + * In case the UserExpenseCategory found by the `where` argument doesn't exist, create a new UserExpenseCategory with this data. + */ + create: Prisma.XOR + /** + * In case the UserExpenseCategory was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * UserExpenseCategory delete + */ +export type UserExpenseCategoryDeleteArgs = { + /** + * Select specific fields to fetch from the UserExpenseCategory + */ + select?: Prisma.UserExpenseCategorySelect | null + /** + * Omit specific fields from the UserExpenseCategory + */ + omit?: Prisma.UserExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserExpenseCategoryInclude | null + /** + * Filter which UserExpenseCategory to delete. + */ + where: Prisma.UserExpenseCategoryWhereUniqueInput +} + +/** + * UserExpenseCategory deleteMany + */ +export type UserExpenseCategoryDeleteManyArgs = { + /** + * Filter which UserExpenseCategories to delete + */ + where?: Prisma.UserExpenseCategoryWhereInput + /** + * Limit how many UserExpenseCategories to delete. + */ + limit?: number +} + +/** + * UserExpenseCategory without action + */ +export type UserExpenseCategoryDefaultArgs = { + /** + * Select specific fields to fetch from the UserExpenseCategory + */ + select?: Prisma.UserExpenseCategorySelect | null + /** + * Omit specific fields from the UserExpenseCategory + */ + omit?: Prisma.UserExpenseCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserExpenseCategoryInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/UserIncomeCategory.ts b/apps/backend/prisma/generated/generated/prisma/models/UserIncomeCategory.ts new file mode 100644 index 00000000..39f5020f --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/UserIncomeCategory.ts @@ -0,0 +1,1425 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `UserIncomeCategory` 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 UserIncomeCategory + * + */ +export type UserIncomeCategoryModel = runtime.Types.Result.DefaultSelection + +export type AggregateUserIncomeCategory = { + _count: UserIncomeCategoryCountAggregateOutputType | null + _min: UserIncomeCategoryMinAggregateOutputType | null + _max: UserIncomeCategoryMaxAggregateOutputType | null +} + +export type UserIncomeCategoryMinAggregateOutputType = { + id: string | null + userId: string | null + categoryId: string | null + createdAt: Date | null +} + +export type UserIncomeCategoryMaxAggregateOutputType = { + id: string | null + userId: string | null + categoryId: string | null + createdAt: Date | null +} + +export type UserIncomeCategoryCountAggregateOutputType = { + id: number + userId: number + categoryId: number + createdAt: number + _all: number +} + + +export type UserIncomeCategoryMinAggregateInputType = { + id?: true + userId?: true + categoryId?: true + createdAt?: true +} + +export type UserIncomeCategoryMaxAggregateInputType = { + id?: true + userId?: true + categoryId?: true + createdAt?: true +} + +export type UserIncomeCategoryCountAggregateInputType = { + id?: true + userId?: true + categoryId?: true + createdAt?: true + _all?: true +} + +export type UserIncomeCategoryAggregateArgs = { + /** + * Filter which UserIncomeCategory to aggregate. + */ + where?: Prisma.UserIncomeCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserIncomeCategories to fetch. + */ + orderBy?: Prisma.UserIncomeCategoryOrderByWithRelationInput | Prisma.UserIncomeCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.UserIncomeCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserIncomeCategories 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` UserIncomeCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned UserIncomeCategories + **/ + _count?: true | UserIncomeCategoryCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: UserIncomeCategoryMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: UserIncomeCategoryMaxAggregateInputType +} + +export type GetUserIncomeCategoryAggregateType = { + [P in keyof T & keyof AggregateUserIncomeCategory]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type UserIncomeCategoryGroupByArgs = { + where?: Prisma.UserIncomeCategoryWhereInput + orderBy?: Prisma.UserIncomeCategoryOrderByWithAggregationInput | Prisma.UserIncomeCategoryOrderByWithAggregationInput[] + by: Prisma.UserIncomeCategoryScalarFieldEnum[] | Prisma.UserIncomeCategoryScalarFieldEnum + having?: Prisma.UserIncomeCategoryScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: UserIncomeCategoryCountAggregateInputType | true + _min?: UserIncomeCategoryMinAggregateInputType + _max?: UserIncomeCategoryMaxAggregateInputType +} + +export type UserIncomeCategoryGroupByOutputType = { + id: string + userId: string + categoryId: string + createdAt: Date + _count: UserIncomeCategoryCountAggregateOutputType | null + _min: UserIncomeCategoryMinAggregateOutputType | null + _max: UserIncomeCategoryMaxAggregateOutputType | null +} + +type GetUserIncomeCategoryGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof UserIncomeCategoryGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type UserIncomeCategoryWhereInput = { + AND?: Prisma.UserIncomeCategoryWhereInput | Prisma.UserIncomeCategoryWhereInput[] + OR?: Prisma.UserIncomeCategoryWhereInput[] + NOT?: Prisma.UserIncomeCategoryWhereInput | Prisma.UserIncomeCategoryWhereInput[] + id?: Prisma.StringFilter<"UserIncomeCategory"> | string + userId?: Prisma.StringFilter<"UserIncomeCategory"> | string + categoryId?: Prisma.StringFilter<"UserIncomeCategory"> | string + createdAt?: Prisma.DateTimeFilter<"UserIncomeCategory"> | Date | string + user?: Prisma.XOR + category?: Prisma.XOR +} + +export type UserIncomeCategoryOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput + category?: Prisma.IncomeCategoryOrderByWithRelationInput +} + +export type UserIncomeCategoryWhereUniqueInput = Prisma.AtLeast<{ + id?: string + userId_categoryId?: Prisma.UserIncomeCategoryUserIdCategoryIdCompoundUniqueInput + AND?: Prisma.UserIncomeCategoryWhereInput | Prisma.UserIncomeCategoryWhereInput[] + OR?: Prisma.UserIncomeCategoryWhereInput[] + NOT?: Prisma.UserIncomeCategoryWhereInput | Prisma.UserIncomeCategoryWhereInput[] + userId?: Prisma.StringFilter<"UserIncomeCategory"> | string + categoryId?: Prisma.StringFilter<"UserIncomeCategory"> | string + createdAt?: Prisma.DateTimeFilter<"UserIncomeCategory"> | Date | string + user?: Prisma.XOR + category?: Prisma.XOR +}, "id" | "userId_categoryId"> + +export type UserIncomeCategoryOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + _count?: Prisma.UserIncomeCategoryCountOrderByAggregateInput + _max?: Prisma.UserIncomeCategoryMaxOrderByAggregateInput + _min?: Prisma.UserIncomeCategoryMinOrderByAggregateInput +} + +export type UserIncomeCategoryScalarWhereWithAggregatesInput = { + AND?: Prisma.UserIncomeCategoryScalarWhereWithAggregatesInput | Prisma.UserIncomeCategoryScalarWhereWithAggregatesInput[] + OR?: Prisma.UserIncomeCategoryScalarWhereWithAggregatesInput[] + NOT?: Prisma.UserIncomeCategoryScalarWhereWithAggregatesInput | Prisma.UserIncomeCategoryScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"UserIncomeCategory"> | string + userId?: Prisma.StringWithAggregatesFilter<"UserIncomeCategory"> | string + categoryId?: Prisma.StringWithAggregatesFilter<"UserIncomeCategory"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"UserIncomeCategory"> | Date | string +} + +export type UserIncomeCategoryCreateInput = { + id?: string + createdAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutUserIncomeCategoriesInput + category: Prisma.IncomeCategoryCreateNestedOneWithoutUsersInput +} + +export type UserIncomeCategoryUncheckedCreateInput = { + id?: string + userId: string + categoryId: string + createdAt?: Date | string +} + +export type UserIncomeCategoryUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutUserIncomeCategoriesNestedInput + category?: Prisma.IncomeCategoryUpdateOneRequiredWithoutUsersNestedInput +} + +export type UserIncomeCategoryUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserIncomeCategoryCreateManyInput = { + id?: string + userId: string + categoryId: string + createdAt?: Date | string +} + +export type UserIncomeCategoryUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserIncomeCategoryUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserIncomeCategoryListRelationFilter = { + every?: Prisma.UserIncomeCategoryWhereInput + some?: Prisma.UserIncomeCategoryWhereInput + none?: Prisma.UserIncomeCategoryWhereInput +} + +export type UserIncomeCategoryOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type UserIncomeCategoryUserIdCategoryIdCompoundUniqueInput = { + userId: string + categoryId: string +} + +export type UserIncomeCategoryCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserIncomeCategoryMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserIncomeCategoryMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserIncomeCategoryCreateNestedManyWithoutCategoryInput = { + create?: Prisma.XOR | Prisma.UserIncomeCategoryCreateWithoutCategoryInput[] | Prisma.UserIncomeCategoryUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.UserIncomeCategoryCreateOrConnectWithoutCategoryInput | Prisma.UserIncomeCategoryCreateOrConnectWithoutCategoryInput[] + createMany?: Prisma.UserIncomeCategoryCreateManyCategoryInputEnvelope + connect?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] +} + +export type UserIncomeCategoryUncheckedCreateNestedManyWithoutCategoryInput = { + create?: Prisma.XOR | Prisma.UserIncomeCategoryCreateWithoutCategoryInput[] | Prisma.UserIncomeCategoryUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.UserIncomeCategoryCreateOrConnectWithoutCategoryInput | Prisma.UserIncomeCategoryCreateOrConnectWithoutCategoryInput[] + createMany?: Prisma.UserIncomeCategoryCreateManyCategoryInputEnvelope + connect?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] +} + +export type UserIncomeCategoryUpdateManyWithoutCategoryNestedInput = { + create?: Prisma.XOR | Prisma.UserIncomeCategoryCreateWithoutCategoryInput[] | Prisma.UserIncomeCategoryUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.UserIncomeCategoryCreateOrConnectWithoutCategoryInput | Prisma.UserIncomeCategoryCreateOrConnectWithoutCategoryInput[] + upsert?: Prisma.UserIncomeCategoryUpsertWithWhereUniqueWithoutCategoryInput | Prisma.UserIncomeCategoryUpsertWithWhereUniqueWithoutCategoryInput[] + createMany?: Prisma.UserIncomeCategoryCreateManyCategoryInputEnvelope + set?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] + disconnect?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] + delete?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] + connect?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] + update?: Prisma.UserIncomeCategoryUpdateWithWhereUniqueWithoutCategoryInput | Prisma.UserIncomeCategoryUpdateWithWhereUniqueWithoutCategoryInput[] + updateMany?: Prisma.UserIncomeCategoryUpdateManyWithWhereWithoutCategoryInput | Prisma.UserIncomeCategoryUpdateManyWithWhereWithoutCategoryInput[] + deleteMany?: Prisma.UserIncomeCategoryScalarWhereInput | Prisma.UserIncomeCategoryScalarWhereInput[] +} + +export type UserIncomeCategoryUncheckedUpdateManyWithoutCategoryNestedInput = { + create?: Prisma.XOR | Prisma.UserIncomeCategoryCreateWithoutCategoryInput[] | Prisma.UserIncomeCategoryUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.UserIncomeCategoryCreateOrConnectWithoutCategoryInput | Prisma.UserIncomeCategoryCreateOrConnectWithoutCategoryInput[] + upsert?: Prisma.UserIncomeCategoryUpsertWithWhereUniqueWithoutCategoryInput | Prisma.UserIncomeCategoryUpsertWithWhereUniqueWithoutCategoryInput[] + createMany?: Prisma.UserIncomeCategoryCreateManyCategoryInputEnvelope + set?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] + disconnect?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] + delete?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] + connect?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] + update?: Prisma.UserIncomeCategoryUpdateWithWhereUniqueWithoutCategoryInput | Prisma.UserIncomeCategoryUpdateWithWhereUniqueWithoutCategoryInput[] + updateMany?: Prisma.UserIncomeCategoryUpdateManyWithWhereWithoutCategoryInput | Prisma.UserIncomeCategoryUpdateManyWithWhereWithoutCategoryInput[] + deleteMany?: Prisma.UserIncomeCategoryScalarWhereInput | Prisma.UserIncomeCategoryScalarWhereInput[] +} + +export type UserIncomeCategoryCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.UserIncomeCategoryCreateWithoutUserInput[] | Prisma.UserIncomeCategoryUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserIncomeCategoryCreateOrConnectWithoutUserInput | Prisma.UserIncomeCategoryCreateOrConnectWithoutUserInput[] + createMany?: Prisma.UserIncomeCategoryCreateManyUserInputEnvelope + connect?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] +} + +export type UserIncomeCategoryUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.UserIncomeCategoryCreateWithoutUserInput[] | Prisma.UserIncomeCategoryUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserIncomeCategoryCreateOrConnectWithoutUserInput | Prisma.UserIncomeCategoryCreateOrConnectWithoutUserInput[] + createMany?: Prisma.UserIncomeCategoryCreateManyUserInputEnvelope + connect?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] +} + +export type UserIncomeCategoryUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.UserIncomeCategoryCreateWithoutUserInput[] | Prisma.UserIncomeCategoryUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserIncomeCategoryCreateOrConnectWithoutUserInput | Prisma.UserIncomeCategoryCreateOrConnectWithoutUserInput[] + upsert?: Prisma.UserIncomeCategoryUpsertWithWhereUniqueWithoutUserInput | Prisma.UserIncomeCategoryUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.UserIncomeCategoryCreateManyUserInputEnvelope + set?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] + disconnect?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] + delete?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] + connect?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] + update?: Prisma.UserIncomeCategoryUpdateWithWhereUniqueWithoutUserInput | Prisma.UserIncomeCategoryUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.UserIncomeCategoryUpdateManyWithWhereWithoutUserInput | Prisma.UserIncomeCategoryUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.UserIncomeCategoryScalarWhereInput | Prisma.UserIncomeCategoryScalarWhereInput[] +} + +export type UserIncomeCategoryUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.UserIncomeCategoryCreateWithoutUserInput[] | Prisma.UserIncomeCategoryUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserIncomeCategoryCreateOrConnectWithoutUserInput | Prisma.UserIncomeCategoryCreateOrConnectWithoutUserInput[] + upsert?: Prisma.UserIncomeCategoryUpsertWithWhereUniqueWithoutUserInput | Prisma.UserIncomeCategoryUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.UserIncomeCategoryCreateManyUserInputEnvelope + set?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] + disconnect?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] + delete?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] + connect?: Prisma.UserIncomeCategoryWhereUniqueInput | Prisma.UserIncomeCategoryWhereUniqueInput[] + update?: Prisma.UserIncomeCategoryUpdateWithWhereUniqueWithoutUserInput | Prisma.UserIncomeCategoryUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.UserIncomeCategoryUpdateManyWithWhereWithoutUserInput | Prisma.UserIncomeCategoryUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.UserIncomeCategoryScalarWhereInput | Prisma.UserIncomeCategoryScalarWhereInput[] +} + +export type UserIncomeCategoryCreateWithoutCategoryInput = { + id?: string + createdAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutUserIncomeCategoriesInput +} + +export type UserIncomeCategoryUncheckedCreateWithoutCategoryInput = { + id?: string + userId: string + createdAt?: Date | string +} + +export type UserIncomeCategoryCreateOrConnectWithoutCategoryInput = { + where: Prisma.UserIncomeCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type UserIncomeCategoryCreateManyCategoryInputEnvelope = { + data: Prisma.UserIncomeCategoryCreateManyCategoryInput | Prisma.UserIncomeCategoryCreateManyCategoryInput[] + skipDuplicates?: boolean +} + +export type UserIncomeCategoryUpsertWithWhereUniqueWithoutCategoryInput = { + where: Prisma.UserIncomeCategoryWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type UserIncomeCategoryUpdateWithWhereUniqueWithoutCategoryInput = { + where: Prisma.UserIncomeCategoryWhereUniqueInput + data: Prisma.XOR +} + +export type UserIncomeCategoryUpdateManyWithWhereWithoutCategoryInput = { + where: Prisma.UserIncomeCategoryScalarWhereInput + data: Prisma.XOR +} + +export type UserIncomeCategoryScalarWhereInput = { + AND?: Prisma.UserIncomeCategoryScalarWhereInput | Prisma.UserIncomeCategoryScalarWhereInput[] + OR?: Prisma.UserIncomeCategoryScalarWhereInput[] + NOT?: Prisma.UserIncomeCategoryScalarWhereInput | Prisma.UserIncomeCategoryScalarWhereInput[] + id?: Prisma.StringFilter<"UserIncomeCategory"> | string + userId?: Prisma.StringFilter<"UserIncomeCategory"> | string + categoryId?: Prisma.StringFilter<"UserIncomeCategory"> | string + createdAt?: Prisma.DateTimeFilter<"UserIncomeCategory"> | Date | string +} + +export type UserIncomeCategoryCreateWithoutUserInput = { + id?: string + createdAt?: Date | string + category: Prisma.IncomeCategoryCreateNestedOneWithoutUsersInput +} + +export type UserIncomeCategoryUncheckedCreateWithoutUserInput = { + id?: string + categoryId: string + createdAt?: Date | string +} + +export type UserIncomeCategoryCreateOrConnectWithoutUserInput = { + where: Prisma.UserIncomeCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type UserIncomeCategoryCreateManyUserInputEnvelope = { + data: Prisma.UserIncomeCategoryCreateManyUserInput | Prisma.UserIncomeCategoryCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type UserIncomeCategoryUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.UserIncomeCategoryWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type UserIncomeCategoryUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.UserIncomeCategoryWhereUniqueInput + data: Prisma.XOR +} + +export type UserIncomeCategoryUpdateManyWithWhereWithoutUserInput = { + where: Prisma.UserIncomeCategoryScalarWhereInput + data: Prisma.XOR +} + +export type UserIncomeCategoryCreateManyCategoryInput = { + id?: string + userId: string + createdAt?: Date | string +} + +export type UserIncomeCategoryUpdateWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutUserIncomeCategoriesNestedInput +} + +export type UserIncomeCategoryUncheckedUpdateWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserIncomeCategoryUncheckedUpdateManyWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserIncomeCategoryCreateManyUserInput = { + id?: string + categoryId: string + createdAt?: Date | string +} + +export type UserIncomeCategoryUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.IncomeCategoryUpdateOneRequiredWithoutUsersNestedInput +} + +export type UserIncomeCategoryUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserIncomeCategoryUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type UserIncomeCategorySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + categoryId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.IncomeCategoryDefaultArgs +}, ExtArgs["result"]["userIncomeCategory"]> + +export type UserIncomeCategorySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + categoryId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.IncomeCategoryDefaultArgs +}, ExtArgs["result"]["userIncomeCategory"]> + +export type UserIncomeCategorySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + categoryId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.IncomeCategoryDefaultArgs +}, ExtArgs["result"]["userIncomeCategory"]> + +export type UserIncomeCategorySelectScalar = { + id?: boolean + userId?: boolean + categoryId?: boolean + createdAt?: boolean +} + +export type UserIncomeCategoryOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "categoryId" | "createdAt", ExtArgs["result"]["userIncomeCategory"]> +export type UserIncomeCategoryInclude = { + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.IncomeCategoryDefaultArgs +} +export type UserIncomeCategoryIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.IncomeCategoryDefaultArgs +} +export type UserIncomeCategoryIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.IncomeCategoryDefaultArgs +} + +export type $UserIncomeCategoryPayload = { + name: "UserIncomeCategory" + objects: { + user: Prisma.$UserPayload + category: Prisma.$IncomeCategoryPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + userId: string + categoryId: string + createdAt: Date + }, ExtArgs["result"]["userIncomeCategory"]> + composites: {} +} + +export type UserIncomeCategoryGetPayload = runtime.Types.Result.GetResult + +export type UserIncomeCategoryCountArgs = + Omit & { + select?: UserIncomeCategoryCountAggregateInputType | true + } + +export interface UserIncomeCategoryDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['UserIncomeCategory'], meta: { name: 'UserIncomeCategory' } } + /** + * Find zero or one UserIncomeCategory that matches the filter. + * @param {UserIncomeCategoryFindUniqueArgs} args - Arguments to find a UserIncomeCategory + * @example + * // Get one UserIncomeCategory + * const userIncomeCategory = await prisma.userIncomeCategory.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserIncomeCategoryClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one UserIncomeCategory that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {UserIncomeCategoryFindUniqueOrThrowArgs} args - Arguments to find a UserIncomeCategory + * @example + * // Get one UserIncomeCategory + * const userIncomeCategory = await prisma.userIncomeCategory.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserIncomeCategoryClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first UserIncomeCategory 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 {UserIncomeCategoryFindFirstArgs} args - Arguments to find a UserIncomeCategory + * @example + * // Get one UserIncomeCategory + * const userIncomeCategory = await prisma.userIncomeCategory.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserIncomeCategoryClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first UserIncomeCategory 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 {UserIncomeCategoryFindFirstOrThrowArgs} args - Arguments to find a UserIncomeCategory + * @example + * // Get one UserIncomeCategory + * const userIncomeCategory = await prisma.userIncomeCategory.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserIncomeCategoryClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more UserIncomeCategories 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 {UserIncomeCategoryFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all UserIncomeCategories + * const userIncomeCategories = await prisma.userIncomeCategory.findMany() + * + * // Get first 10 UserIncomeCategories + * const userIncomeCategories = await prisma.userIncomeCategory.findMany({ take: 10 }) + * + * // Only select the `id` + * const userIncomeCategoryWithIdOnly = await prisma.userIncomeCategory.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a UserIncomeCategory. + * @param {UserIncomeCategoryCreateArgs} args - Arguments to create a UserIncomeCategory. + * @example + * // Create one UserIncomeCategory + * const UserIncomeCategory = await prisma.userIncomeCategory.create({ + * data: { + * // ... data to create a UserIncomeCategory + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__UserIncomeCategoryClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many UserIncomeCategories. + * @param {UserIncomeCategoryCreateManyArgs} args - Arguments to create many UserIncomeCategories. + * @example + * // Create many UserIncomeCategories + * const userIncomeCategory = await prisma.userIncomeCategory.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many UserIncomeCategories and returns the data saved in the database. + * @param {UserIncomeCategoryCreateManyAndReturnArgs} args - Arguments to create many UserIncomeCategories. + * @example + * // Create many UserIncomeCategories + * const userIncomeCategory = await prisma.userIncomeCategory.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many UserIncomeCategories and only return the `id` + * const userIncomeCategoryWithIdOnly = await prisma.userIncomeCategory.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a UserIncomeCategory. + * @param {UserIncomeCategoryDeleteArgs} args - Arguments to delete one UserIncomeCategory. + * @example + * // Delete one UserIncomeCategory + * const UserIncomeCategory = await prisma.userIncomeCategory.delete({ + * where: { + * // ... filter to delete one UserIncomeCategory + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserIncomeCategoryClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one UserIncomeCategory. + * @param {UserIncomeCategoryUpdateArgs} args - Arguments to update one UserIncomeCategory. + * @example + * // Update one UserIncomeCategory + * const userIncomeCategory = await prisma.userIncomeCategory.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__UserIncomeCategoryClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more UserIncomeCategories. + * @param {UserIncomeCategoryDeleteManyArgs} args - Arguments to filter UserIncomeCategories to delete. + * @example + * // Delete a few UserIncomeCategories + * const { count } = await prisma.userIncomeCategory.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more UserIncomeCategories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserIncomeCategoryUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many UserIncomeCategories + * const userIncomeCategory = await prisma.userIncomeCategory.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more UserIncomeCategories and returns the data updated in the database. + * @param {UserIncomeCategoryUpdateManyAndReturnArgs} args - Arguments to update many UserIncomeCategories. + * @example + * // Update many UserIncomeCategories + * const userIncomeCategory = await prisma.userIncomeCategory.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more UserIncomeCategories and only return the `id` + * const userIncomeCategoryWithIdOnly = await prisma.userIncomeCategory.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one UserIncomeCategory. + * @param {UserIncomeCategoryUpsertArgs} args - Arguments to update or create a UserIncomeCategory. + * @example + * // Update or create a UserIncomeCategory + * const userIncomeCategory = await prisma.userIncomeCategory.upsert({ + * create: { + * // ... data to create a UserIncomeCategory + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the UserIncomeCategory we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserIncomeCategoryClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of UserIncomeCategories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserIncomeCategoryCountArgs} args - Arguments to filter UserIncomeCategories to count. + * @example + * // Count the number of UserIncomeCategories + * const count = await prisma.userIncomeCategory.count({ + * where: { + * // ... the filter for the UserIncomeCategories we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a UserIncomeCategory. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserIncomeCategoryAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by UserIncomeCategory. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserIncomeCategoryGroupByArgs} 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 UserIncomeCategoryGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: UserIncomeCategoryGroupByArgs['orderBy'] } + : { orderBy?: UserIncomeCategoryGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetUserIncomeCategoryGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the UserIncomeCategory model + */ +readonly fields: UserIncomeCategoryFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for UserIncomeCategory. + * 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__UserIncomeCategoryClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + category = {}>(args?: Prisma.Subset>): Prisma.Prisma__IncomeCategoryClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the UserIncomeCategory model + */ +export interface UserIncomeCategoryFieldRefs { + readonly id: Prisma.FieldRef<"UserIncomeCategory", 'String'> + readonly userId: Prisma.FieldRef<"UserIncomeCategory", 'String'> + readonly categoryId: Prisma.FieldRef<"UserIncomeCategory", 'String'> + readonly createdAt: Prisma.FieldRef<"UserIncomeCategory", 'DateTime'> +} + + +// Custom InputTypes +/** + * UserIncomeCategory findUnique + */ +export type UserIncomeCategoryFindUniqueArgs = { + /** + * Select specific fields to fetch from the UserIncomeCategory + */ + select?: Prisma.UserIncomeCategorySelect | null + /** + * Omit specific fields from the UserIncomeCategory + */ + omit?: Prisma.UserIncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserIncomeCategoryInclude | null + /** + * Filter, which UserIncomeCategory to fetch. + */ + where: Prisma.UserIncomeCategoryWhereUniqueInput +} + +/** + * UserIncomeCategory findUniqueOrThrow + */ +export type UserIncomeCategoryFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the UserIncomeCategory + */ + select?: Prisma.UserIncomeCategorySelect | null + /** + * Omit specific fields from the UserIncomeCategory + */ + omit?: Prisma.UserIncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserIncomeCategoryInclude | null + /** + * Filter, which UserIncomeCategory to fetch. + */ + where: Prisma.UserIncomeCategoryWhereUniqueInput +} + +/** + * UserIncomeCategory findFirst + */ +export type UserIncomeCategoryFindFirstArgs = { + /** + * Select specific fields to fetch from the UserIncomeCategory + */ + select?: Prisma.UserIncomeCategorySelect | null + /** + * Omit specific fields from the UserIncomeCategory + */ + omit?: Prisma.UserIncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserIncomeCategoryInclude | null + /** + * Filter, which UserIncomeCategory to fetch. + */ + where?: Prisma.UserIncomeCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserIncomeCategories to fetch. + */ + orderBy?: Prisma.UserIncomeCategoryOrderByWithRelationInput | Prisma.UserIncomeCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for UserIncomeCategories. + */ + cursor?: Prisma.UserIncomeCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserIncomeCategories 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` UserIncomeCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of UserIncomeCategories. + */ + distinct?: Prisma.UserIncomeCategoryScalarFieldEnum | Prisma.UserIncomeCategoryScalarFieldEnum[] +} + +/** + * UserIncomeCategory findFirstOrThrow + */ +export type UserIncomeCategoryFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the UserIncomeCategory + */ + select?: Prisma.UserIncomeCategorySelect | null + /** + * Omit specific fields from the UserIncomeCategory + */ + omit?: Prisma.UserIncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserIncomeCategoryInclude | null + /** + * Filter, which UserIncomeCategory to fetch. + */ + where?: Prisma.UserIncomeCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserIncomeCategories to fetch. + */ + orderBy?: Prisma.UserIncomeCategoryOrderByWithRelationInput | Prisma.UserIncomeCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for UserIncomeCategories. + */ + cursor?: Prisma.UserIncomeCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserIncomeCategories 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` UserIncomeCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of UserIncomeCategories. + */ + distinct?: Prisma.UserIncomeCategoryScalarFieldEnum | Prisma.UserIncomeCategoryScalarFieldEnum[] +} + +/** + * UserIncomeCategory findMany + */ +export type UserIncomeCategoryFindManyArgs = { + /** + * Select specific fields to fetch from the UserIncomeCategory + */ + select?: Prisma.UserIncomeCategorySelect | null + /** + * Omit specific fields from the UserIncomeCategory + */ + omit?: Prisma.UserIncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserIncomeCategoryInclude | null + /** + * Filter, which UserIncomeCategories to fetch. + */ + where?: Prisma.UserIncomeCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserIncomeCategories to fetch. + */ + orderBy?: Prisma.UserIncomeCategoryOrderByWithRelationInput | Prisma.UserIncomeCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing UserIncomeCategories. + */ + cursor?: Prisma.UserIncomeCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserIncomeCategories 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` UserIncomeCategories. + */ + skip?: number + distinct?: Prisma.UserIncomeCategoryScalarFieldEnum | Prisma.UserIncomeCategoryScalarFieldEnum[] +} + +/** + * UserIncomeCategory create + */ +export type UserIncomeCategoryCreateArgs = { + /** + * Select specific fields to fetch from the UserIncomeCategory + */ + select?: Prisma.UserIncomeCategorySelect | null + /** + * Omit specific fields from the UserIncomeCategory + */ + omit?: Prisma.UserIncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserIncomeCategoryInclude | null + /** + * The data needed to create a UserIncomeCategory. + */ + data: Prisma.XOR +} + +/** + * UserIncomeCategory createMany + */ +export type UserIncomeCategoryCreateManyArgs = { + /** + * The data used to create many UserIncomeCategories. + */ + data: Prisma.UserIncomeCategoryCreateManyInput | Prisma.UserIncomeCategoryCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * UserIncomeCategory createManyAndReturn + */ +export type UserIncomeCategoryCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the UserIncomeCategory + */ + select?: Prisma.UserIncomeCategorySelectCreateManyAndReturn | null + /** + * Omit specific fields from the UserIncomeCategory + */ + omit?: Prisma.UserIncomeCategoryOmit | null + /** + * The data used to create many UserIncomeCategories. + */ + data: Prisma.UserIncomeCategoryCreateManyInput | Prisma.UserIncomeCategoryCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserIncomeCategoryIncludeCreateManyAndReturn | null +} + +/** + * UserIncomeCategory update + */ +export type UserIncomeCategoryUpdateArgs = { + /** + * Select specific fields to fetch from the UserIncomeCategory + */ + select?: Prisma.UserIncomeCategorySelect | null + /** + * Omit specific fields from the UserIncomeCategory + */ + omit?: Prisma.UserIncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserIncomeCategoryInclude | null + /** + * The data needed to update a UserIncomeCategory. + */ + data: Prisma.XOR + /** + * Choose, which UserIncomeCategory to update. + */ + where: Prisma.UserIncomeCategoryWhereUniqueInput +} + +/** + * UserIncomeCategory updateMany + */ +export type UserIncomeCategoryUpdateManyArgs = { + /** + * The data used to update UserIncomeCategories. + */ + data: Prisma.XOR + /** + * Filter which UserIncomeCategories to update + */ + where?: Prisma.UserIncomeCategoryWhereInput + /** + * Limit how many UserIncomeCategories to update. + */ + limit?: number +} + +/** + * UserIncomeCategory updateManyAndReturn + */ +export type UserIncomeCategoryUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the UserIncomeCategory + */ + select?: Prisma.UserIncomeCategorySelectUpdateManyAndReturn | null + /** + * Omit specific fields from the UserIncomeCategory + */ + omit?: Prisma.UserIncomeCategoryOmit | null + /** + * The data used to update UserIncomeCategories. + */ + data: Prisma.XOR + /** + * Filter which UserIncomeCategories to update + */ + where?: Prisma.UserIncomeCategoryWhereInput + /** + * Limit how many UserIncomeCategories to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserIncomeCategoryIncludeUpdateManyAndReturn | null +} + +/** + * UserIncomeCategory upsert + */ +export type UserIncomeCategoryUpsertArgs = { + /** + * Select specific fields to fetch from the UserIncomeCategory + */ + select?: Prisma.UserIncomeCategorySelect | null + /** + * Omit specific fields from the UserIncomeCategory + */ + omit?: Prisma.UserIncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserIncomeCategoryInclude | null + /** + * The filter to search for the UserIncomeCategory to update in case it exists. + */ + where: Prisma.UserIncomeCategoryWhereUniqueInput + /** + * In case the UserIncomeCategory found by the `where` argument doesn't exist, create a new UserIncomeCategory with this data. + */ + create: Prisma.XOR + /** + * In case the UserIncomeCategory was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * UserIncomeCategory delete + */ +export type UserIncomeCategoryDeleteArgs = { + /** + * Select specific fields to fetch from the UserIncomeCategory + */ + select?: Prisma.UserIncomeCategorySelect | null + /** + * Omit specific fields from the UserIncomeCategory + */ + omit?: Prisma.UserIncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserIncomeCategoryInclude | null + /** + * Filter which UserIncomeCategory to delete. + */ + where: Prisma.UserIncomeCategoryWhereUniqueInput +} + +/** + * UserIncomeCategory deleteMany + */ +export type UserIncomeCategoryDeleteManyArgs = { + /** + * Filter which UserIncomeCategories to delete + */ + where?: Prisma.UserIncomeCategoryWhereInput + /** + * Limit how many UserIncomeCategories to delete. + */ + limit?: number +} + +/** + * UserIncomeCategory without action + */ +export type UserIncomeCategoryDefaultArgs = { + /** + * Select specific fields to fetch from the UserIncomeCategory + */ + select?: Prisma.UserIncomeCategorySelect | null + /** + * Omit specific fields from the UserIncomeCategory + */ + omit?: Prisma.UserIncomeCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserIncomeCategoryInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/UserItem.ts b/apps/backend/prisma/generated/generated/prisma/models/UserItem.ts new file mode 100644 index 00000000..9be6a590 --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/UserItem.ts @@ -0,0 +1,1425 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `UserItem` 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 UserItem + * + */ +export type UserItemModel = runtime.Types.Result.DefaultSelection + +export type AggregateUserItem = { + _count: UserItemCountAggregateOutputType | null + _min: UserItemMinAggregateOutputType | null + _max: UserItemMaxAggregateOutputType | null +} + +export type UserItemMinAggregateOutputType = { + id: string | null + userId: string | null + itemId: string | null + createdAt: Date | null +} + +export type UserItemMaxAggregateOutputType = { + id: string | null + userId: string | null + itemId: string | null + createdAt: Date | null +} + +export type UserItemCountAggregateOutputType = { + id: number + userId: number + itemId: number + createdAt: number + _all: number +} + + +export type UserItemMinAggregateInputType = { + id?: true + userId?: true + itemId?: true + createdAt?: true +} + +export type UserItemMaxAggregateInputType = { + id?: true + userId?: true + itemId?: true + createdAt?: true +} + +export type UserItemCountAggregateInputType = { + id?: true + userId?: true + itemId?: true + createdAt?: true + _all?: true +} + +export type UserItemAggregateArgs = { + /** + * Filter which UserItem to aggregate. + */ + where?: Prisma.UserItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserItems to fetch. + */ + orderBy?: Prisma.UserItemOrderByWithRelationInput | Prisma.UserItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.UserItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserItems 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` UserItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned UserItems + **/ + _count?: true | UserItemCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: UserItemMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: UserItemMaxAggregateInputType +} + +export type GetUserItemAggregateType = { + [P in keyof T & keyof AggregateUserItem]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type UserItemGroupByArgs = { + where?: Prisma.UserItemWhereInput + orderBy?: Prisma.UserItemOrderByWithAggregationInput | Prisma.UserItemOrderByWithAggregationInput[] + by: Prisma.UserItemScalarFieldEnum[] | Prisma.UserItemScalarFieldEnum + having?: Prisma.UserItemScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: UserItemCountAggregateInputType | true + _min?: UserItemMinAggregateInputType + _max?: UserItemMaxAggregateInputType +} + +export type UserItemGroupByOutputType = { + id: string + userId: string + itemId: string + createdAt: Date + _count: UserItemCountAggregateOutputType | null + _min: UserItemMinAggregateOutputType | null + _max: UserItemMaxAggregateOutputType | null +} + +type GetUserItemGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof UserItemGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type UserItemWhereInput = { + AND?: Prisma.UserItemWhereInput | Prisma.UserItemWhereInput[] + OR?: Prisma.UserItemWhereInput[] + NOT?: Prisma.UserItemWhereInput | Prisma.UserItemWhereInput[] + id?: Prisma.StringFilter<"UserItem"> | string + userId?: Prisma.StringFilter<"UserItem"> | string + itemId?: Prisma.StringFilter<"UserItem"> | string + createdAt?: Prisma.DateTimeFilter<"UserItem"> | Date | string + user?: Prisma.XOR + item?: Prisma.XOR +} + +export type UserItemOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + itemId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput + item?: Prisma.ItemOrderByWithRelationInput +} + +export type UserItemWhereUniqueInput = Prisma.AtLeast<{ + id?: string + userId_itemId?: Prisma.UserItemUserIdItemIdCompoundUniqueInput + AND?: Prisma.UserItemWhereInput | Prisma.UserItemWhereInput[] + OR?: Prisma.UserItemWhereInput[] + NOT?: Prisma.UserItemWhereInput | Prisma.UserItemWhereInput[] + userId?: Prisma.StringFilter<"UserItem"> | string + itemId?: Prisma.StringFilter<"UserItem"> | string + createdAt?: Prisma.DateTimeFilter<"UserItem"> | Date | string + user?: Prisma.XOR + item?: Prisma.XOR +}, "id" | "userId_itemId"> + +export type UserItemOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + itemId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + _count?: Prisma.UserItemCountOrderByAggregateInput + _max?: Prisma.UserItemMaxOrderByAggregateInput + _min?: Prisma.UserItemMinOrderByAggregateInput +} + +export type UserItemScalarWhereWithAggregatesInput = { + AND?: Prisma.UserItemScalarWhereWithAggregatesInput | Prisma.UserItemScalarWhereWithAggregatesInput[] + OR?: Prisma.UserItemScalarWhereWithAggregatesInput[] + NOT?: Prisma.UserItemScalarWhereWithAggregatesInput | Prisma.UserItemScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"UserItem"> | string + userId?: Prisma.StringWithAggregatesFilter<"UserItem"> | string + itemId?: Prisma.StringWithAggregatesFilter<"UserItem"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"UserItem"> | Date | string +} + +export type UserItemCreateInput = { + id?: string + createdAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutUserItemsInput + item: Prisma.ItemCreateNestedOneWithoutUsersInput +} + +export type UserItemUncheckedCreateInput = { + id?: string + userId: string + itemId: string + createdAt?: Date | string +} + +export type UserItemUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutUserItemsNestedInput + item?: Prisma.ItemUpdateOneRequiredWithoutUsersNestedInput +} + +export type UserItemUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserItemCreateManyInput = { + id?: string + userId: string + itemId: string + createdAt?: Date | string +} + +export type UserItemUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserItemUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserItemListRelationFilter = { + every?: Prisma.UserItemWhereInput + some?: Prisma.UserItemWhereInput + none?: Prisma.UserItemWhereInput +} + +export type UserItemOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type UserItemUserIdItemIdCompoundUniqueInput = { + userId: string + itemId: string +} + +export type UserItemCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + itemId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserItemMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + itemId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserItemMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + itemId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserItemCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.UserItemCreateWithoutUserInput[] | Prisma.UserItemUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserItemCreateOrConnectWithoutUserInput | Prisma.UserItemCreateOrConnectWithoutUserInput[] + createMany?: Prisma.UserItemCreateManyUserInputEnvelope + connect?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] +} + +export type UserItemUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.UserItemCreateWithoutUserInput[] | Prisma.UserItemUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserItemCreateOrConnectWithoutUserInput | Prisma.UserItemCreateOrConnectWithoutUserInput[] + createMany?: Prisma.UserItemCreateManyUserInputEnvelope + connect?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] +} + +export type UserItemUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.UserItemCreateWithoutUserInput[] | Prisma.UserItemUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserItemCreateOrConnectWithoutUserInput | Prisma.UserItemCreateOrConnectWithoutUserInput[] + upsert?: Prisma.UserItemUpsertWithWhereUniqueWithoutUserInput | Prisma.UserItemUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.UserItemCreateManyUserInputEnvelope + set?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] + disconnect?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] + delete?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] + connect?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] + update?: Prisma.UserItemUpdateWithWhereUniqueWithoutUserInput | Prisma.UserItemUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.UserItemUpdateManyWithWhereWithoutUserInput | Prisma.UserItemUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.UserItemScalarWhereInput | Prisma.UserItemScalarWhereInput[] +} + +export type UserItemUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.UserItemCreateWithoutUserInput[] | Prisma.UserItemUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserItemCreateOrConnectWithoutUserInput | Prisma.UserItemCreateOrConnectWithoutUserInput[] + upsert?: Prisma.UserItemUpsertWithWhereUniqueWithoutUserInput | Prisma.UserItemUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.UserItemCreateManyUserInputEnvelope + set?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] + disconnect?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] + delete?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] + connect?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] + update?: Prisma.UserItemUpdateWithWhereUniqueWithoutUserInput | Prisma.UserItemUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.UserItemUpdateManyWithWhereWithoutUserInput | Prisma.UserItemUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.UserItemScalarWhereInput | Prisma.UserItemScalarWhereInput[] +} + +export type UserItemCreateNestedManyWithoutItemInput = { + create?: Prisma.XOR | Prisma.UserItemCreateWithoutItemInput[] | Prisma.UserItemUncheckedCreateWithoutItemInput[] + connectOrCreate?: Prisma.UserItemCreateOrConnectWithoutItemInput | Prisma.UserItemCreateOrConnectWithoutItemInput[] + createMany?: Prisma.UserItemCreateManyItemInputEnvelope + connect?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] +} + +export type UserItemUncheckedCreateNestedManyWithoutItemInput = { + create?: Prisma.XOR | Prisma.UserItemCreateWithoutItemInput[] | Prisma.UserItemUncheckedCreateWithoutItemInput[] + connectOrCreate?: Prisma.UserItemCreateOrConnectWithoutItemInput | Prisma.UserItemCreateOrConnectWithoutItemInput[] + createMany?: Prisma.UserItemCreateManyItemInputEnvelope + connect?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] +} + +export type UserItemUpdateManyWithoutItemNestedInput = { + create?: Prisma.XOR | Prisma.UserItemCreateWithoutItemInput[] | Prisma.UserItemUncheckedCreateWithoutItemInput[] + connectOrCreate?: Prisma.UserItemCreateOrConnectWithoutItemInput | Prisma.UserItemCreateOrConnectWithoutItemInput[] + upsert?: Prisma.UserItemUpsertWithWhereUniqueWithoutItemInput | Prisma.UserItemUpsertWithWhereUniqueWithoutItemInput[] + createMany?: Prisma.UserItemCreateManyItemInputEnvelope + set?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] + disconnect?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] + delete?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] + connect?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] + update?: Prisma.UserItemUpdateWithWhereUniqueWithoutItemInput | Prisma.UserItemUpdateWithWhereUniqueWithoutItemInput[] + updateMany?: Prisma.UserItemUpdateManyWithWhereWithoutItemInput | Prisma.UserItemUpdateManyWithWhereWithoutItemInput[] + deleteMany?: Prisma.UserItemScalarWhereInput | Prisma.UserItemScalarWhereInput[] +} + +export type UserItemUncheckedUpdateManyWithoutItemNestedInput = { + create?: Prisma.XOR | Prisma.UserItemCreateWithoutItemInput[] | Prisma.UserItemUncheckedCreateWithoutItemInput[] + connectOrCreate?: Prisma.UserItemCreateOrConnectWithoutItemInput | Prisma.UserItemCreateOrConnectWithoutItemInput[] + upsert?: Prisma.UserItemUpsertWithWhereUniqueWithoutItemInput | Prisma.UserItemUpsertWithWhereUniqueWithoutItemInput[] + createMany?: Prisma.UserItemCreateManyItemInputEnvelope + set?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] + disconnect?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] + delete?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] + connect?: Prisma.UserItemWhereUniqueInput | Prisma.UserItemWhereUniqueInput[] + update?: Prisma.UserItemUpdateWithWhereUniqueWithoutItemInput | Prisma.UserItemUpdateWithWhereUniqueWithoutItemInput[] + updateMany?: Prisma.UserItemUpdateManyWithWhereWithoutItemInput | Prisma.UserItemUpdateManyWithWhereWithoutItemInput[] + deleteMany?: Prisma.UserItemScalarWhereInput | Prisma.UserItemScalarWhereInput[] +} + +export type UserItemCreateWithoutUserInput = { + id?: string + createdAt?: Date | string + item: Prisma.ItemCreateNestedOneWithoutUsersInput +} + +export type UserItemUncheckedCreateWithoutUserInput = { + id?: string + itemId: string + createdAt?: Date | string +} + +export type UserItemCreateOrConnectWithoutUserInput = { + where: Prisma.UserItemWhereUniqueInput + create: Prisma.XOR +} + +export type UserItemCreateManyUserInputEnvelope = { + data: Prisma.UserItemCreateManyUserInput | Prisma.UserItemCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type UserItemUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.UserItemWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type UserItemUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.UserItemWhereUniqueInput + data: Prisma.XOR +} + +export type UserItemUpdateManyWithWhereWithoutUserInput = { + where: Prisma.UserItemScalarWhereInput + data: Prisma.XOR +} + +export type UserItemScalarWhereInput = { + AND?: Prisma.UserItemScalarWhereInput | Prisma.UserItemScalarWhereInput[] + OR?: Prisma.UserItemScalarWhereInput[] + NOT?: Prisma.UserItemScalarWhereInput | Prisma.UserItemScalarWhereInput[] + id?: Prisma.StringFilter<"UserItem"> | string + userId?: Prisma.StringFilter<"UserItem"> | string + itemId?: Prisma.StringFilter<"UserItem"> | string + createdAt?: Prisma.DateTimeFilter<"UserItem"> | Date | string +} + +export type UserItemCreateWithoutItemInput = { + id?: string + createdAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutUserItemsInput +} + +export type UserItemUncheckedCreateWithoutItemInput = { + id?: string + userId: string + createdAt?: Date | string +} + +export type UserItemCreateOrConnectWithoutItemInput = { + where: Prisma.UserItemWhereUniqueInput + create: Prisma.XOR +} + +export type UserItemCreateManyItemInputEnvelope = { + data: Prisma.UserItemCreateManyItemInput | Prisma.UserItemCreateManyItemInput[] + skipDuplicates?: boolean +} + +export type UserItemUpsertWithWhereUniqueWithoutItemInput = { + where: Prisma.UserItemWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type UserItemUpdateWithWhereUniqueWithoutItemInput = { + where: Prisma.UserItemWhereUniqueInput + data: Prisma.XOR +} + +export type UserItemUpdateManyWithWhereWithoutItemInput = { + where: Prisma.UserItemScalarWhereInput + data: Prisma.XOR +} + +export type UserItemCreateManyUserInput = { + id?: string + itemId: string + createdAt?: Date | string +} + +export type UserItemUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + item?: Prisma.ItemUpdateOneRequiredWithoutUsersNestedInput +} + +export type UserItemUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserItemUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + itemId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserItemCreateManyItemInput = { + id?: string + userId: string + createdAt?: Date | string +} + +export type UserItemUpdateWithoutItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutUserItemsNestedInput +} + +export type UserItemUncheckedUpdateWithoutItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserItemUncheckedUpdateManyWithoutItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type UserItemSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + itemId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + item?: boolean | Prisma.ItemDefaultArgs +}, ExtArgs["result"]["userItem"]> + +export type UserItemSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + itemId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + item?: boolean | Prisma.ItemDefaultArgs +}, ExtArgs["result"]["userItem"]> + +export type UserItemSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + itemId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + item?: boolean | Prisma.ItemDefaultArgs +}, ExtArgs["result"]["userItem"]> + +export type UserItemSelectScalar = { + id?: boolean + userId?: boolean + itemId?: boolean + createdAt?: boolean +} + +export type UserItemOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "itemId" | "createdAt", ExtArgs["result"]["userItem"]> +export type UserItemInclude = { + user?: boolean | Prisma.UserDefaultArgs + item?: boolean | Prisma.ItemDefaultArgs +} +export type UserItemIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + item?: boolean | Prisma.ItemDefaultArgs +} +export type UserItemIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + item?: boolean | Prisma.ItemDefaultArgs +} + +export type $UserItemPayload = { + name: "UserItem" + objects: { + user: Prisma.$UserPayload + item: Prisma.$ItemPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + userId: string + itemId: string + createdAt: Date + }, ExtArgs["result"]["userItem"]> + composites: {} +} + +export type UserItemGetPayload = runtime.Types.Result.GetResult + +export type UserItemCountArgs = + Omit & { + select?: UserItemCountAggregateInputType | true + } + +export interface UserItemDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['UserItem'], meta: { name: 'UserItem' } } + /** + * Find zero or one UserItem that matches the filter. + * @param {UserItemFindUniqueArgs} args - Arguments to find a UserItem + * @example + * // Get one UserItem + * const userItem = await prisma.userItem.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserItemClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one UserItem that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {UserItemFindUniqueOrThrowArgs} args - Arguments to find a UserItem + * @example + * // Get one UserItem + * const userItem = await prisma.userItem.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserItemClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first UserItem 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 {UserItemFindFirstArgs} args - Arguments to find a UserItem + * @example + * // Get one UserItem + * const userItem = await prisma.userItem.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserItemClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first UserItem 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 {UserItemFindFirstOrThrowArgs} args - Arguments to find a UserItem + * @example + * // Get one UserItem + * const userItem = await prisma.userItem.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserItemClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more UserItems 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 {UserItemFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all UserItems + * const userItems = await prisma.userItem.findMany() + * + * // Get first 10 UserItems + * const userItems = await prisma.userItem.findMany({ take: 10 }) + * + * // Only select the `id` + * const userItemWithIdOnly = await prisma.userItem.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a UserItem. + * @param {UserItemCreateArgs} args - Arguments to create a UserItem. + * @example + * // Create one UserItem + * const UserItem = await prisma.userItem.create({ + * data: { + * // ... data to create a UserItem + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__UserItemClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many UserItems. + * @param {UserItemCreateManyArgs} args - Arguments to create many UserItems. + * @example + * // Create many UserItems + * const userItem = await prisma.userItem.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many UserItems and returns the data saved in the database. + * @param {UserItemCreateManyAndReturnArgs} args - Arguments to create many UserItems. + * @example + * // Create many UserItems + * const userItem = await prisma.userItem.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many UserItems and only return the `id` + * const userItemWithIdOnly = await prisma.userItem.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a UserItem. + * @param {UserItemDeleteArgs} args - Arguments to delete one UserItem. + * @example + * // Delete one UserItem + * const UserItem = await prisma.userItem.delete({ + * where: { + * // ... filter to delete one UserItem + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserItemClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one UserItem. + * @param {UserItemUpdateArgs} args - Arguments to update one UserItem. + * @example + * // Update one UserItem + * const userItem = await prisma.userItem.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__UserItemClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more UserItems. + * @param {UserItemDeleteManyArgs} args - Arguments to filter UserItems to delete. + * @example + * // Delete a few UserItems + * const { count } = await prisma.userItem.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more UserItems. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserItemUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many UserItems + * const userItem = await prisma.userItem.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more UserItems and returns the data updated in the database. + * @param {UserItemUpdateManyAndReturnArgs} args - Arguments to update many UserItems. + * @example + * // Update many UserItems + * const userItem = await prisma.userItem.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more UserItems and only return the `id` + * const userItemWithIdOnly = await prisma.userItem.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one UserItem. + * @param {UserItemUpsertArgs} args - Arguments to update or create a UserItem. + * @example + * // Update or create a UserItem + * const userItem = await prisma.userItem.upsert({ + * create: { + * // ... data to create a UserItem + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the UserItem we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserItemClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of UserItems. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserItemCountArgs} args - Arguments to filter UserItems to count. + * @example + * // Count the number of UserItems + * const count = await prisma.userItem.count({ + * where: { + * // ... the filter for the UserItems we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a UserItem. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserItemAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by UserItem. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserItemGroupByArgs} 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 UserItemGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: UserItemGroupByArgs['orderBy'] } + : { orderBy?: UserItemGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetUserItemGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the UserItem model + */ +readonly fields: UserItemFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for UserItem. + * 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__UserItemClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + item = {}>(args?: Prisma.Subset>): Prisma.Prisma__ItemClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the UserItem model + */ +export interface UserItemFieldRefs { + readonly id: Prisma.FieldRef<"UserItem", 'String'> + readonly userId: Prisma.FieldRef<"UserItem", 'String'> + readonly itemId: Prisma.FieldRef<"UserItem", 'String'> + readonly createdAt: Prisma.FieldRef<"UserItem", 'DateTime'> +} + + +// Custom InputTypes +/** + * UserItem findUnique + */ +export type UserItemFindUniqueArgs = { + /** + * Select specific fields to fetch from the UserItem + */ + select?: Prisma.UserItemSelect | null + /** + * Omit specific fields from the UserItem + */ + omit?: Prisma.UserItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemInclude | null + /** + * Filter, which UserItem to fetch. + */ + where: Prisma.UserItemWhereUniqueInput +} + +/** + * UserItem findUniqueOrThrow + */ +export type UserItemFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the UserItem + */ + select?: Prisma.UserItemSelect | null + /** + * Omit specific fields from the UserItem + */ + omit?: Prisma.UserItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemInclude | null + /** + * Filter, which UserItem to fetch. + */ + where: Prisma.UserItemWhereUniqueInput +} + +/** + * UserItem findFirst + */ +export type UserItemFindFirstArgs = { + /** + * Select specific fields to fetch from the UserItem + */ + select?: Prisma.UserItemSelect | null + /** + * Omit specific fields from the UserItem + */ + omit?: Prisma.UserItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemInclude | null + /** + * Filter, which UserItem to fetch. + */ + where?: Prisma.UserItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserItems to fetch. + */ + orderBy?: Prisma.UserItemOrderByWithRelationInput | Prisma.UserItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for UserItems. + */ + cursor?: Prisma.UserItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserItems 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` UserItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of UserItems. + */ + distinct?: Prisma.UserItemScalarFieldEnum | Prisma.UserItemScalarFieldEnum[] +} + +/** + * UserItem findFirstOrThrow + */ +export type UserItemFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the UserItem + */ + select?: Prisma.UserItemSelect | null + /** + * Omit specific fields from the UserItem + */ + omit?: Prisma.UserItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemInclude | null + /** + * Filter, which UserItem to fetch. + */ + where?: Prisma.UserItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserItems to fetch. + */ + orderBy?: Prisma.UserItemOrderByWithRelationInput | Prisma.UserItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for UserItems. + */ + cursor?: Prisma.UserItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserItems 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` UserItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of UserItems. + */ + distinct?: Prisma.UserItemScalarFieldEnum | Prisma.UserItemScalarFieldEnum[] +} + +/** + * UserItem findMany + */ +export type UserItemFindManyArgs = { + /** + * Select specific fields to fetch from the UserItem + */ + select?: Prisma.UserItemSelect | null + /** + * Omit specific fields from the UserItem + */ + omit?: Prisma.UserItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemInclude | null + /** + * Filter, which UserItems to fetch. + */ + where?: Prisma.UserItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserItems to fetch. + */ + orderBy?: Prisma.UserItemOrderByWithRelationInput | Prisma.UserItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing UserItems. + */ + cursor?: Prisma.UserItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserItems 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` UserItems. + */ + skip?: number + distinct?: Prisma.UserItemScalarFieldEnum | Prisma.UserItemScalarFieldEnum[] +} + +/** + * UserItem create + */ +export type UserItemCreateArgs = { + /** + * Select specific fields to fetch from the UserItem + */ + select?: Prisma.UserItemSelect | null + /** + * Omit specific fields from the UserItem + */ + omit?: Prisma.UserItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemInclude | null + /** + * The data needed to create a UserItem. + */ + data: Prisma.XOR +} + +/** + * UserItem createMany + */ +export type UserItemCreateManyArgs = { + /** + * The data used to create many UserItems. + */ + data: Prisma.UserItemCreateManyInput | Prisma.UserItemCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * UserItem createManyAndReturn + */ +export type UserItemCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the UserItem + */ + select?: Prisma.UserItemSelectCreateManyAndReturn | null + /** + * Omit specific fields from the UserItem + */ + omit?: Prisma.UserItemOmit | null + /** + * The data used to create many UserItems. + */ + data: Prisma.UserItemCreateManyInput | Prisma.UserItemCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemIncludeCreateManyAndReturn | null +} + +/** + * UserItem update + */ +export type UserItemUpdateArgs = { + /** + * Select specific fields to fetch from the UserItem + */ + select?: Prisma.UserItemSelect | null + /** + * Omit specific fields from the UserItem + */ + omit?: Prisma.UserItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemInclude | null + /** + * The data needed to update a UserItem. + */ + data: Prisma.XOR + /** + * Choose, which UserItem to update. + */ + where: Prisma.UserItemWhereUniqueInput +} + +/** + * UserItem updateMany + */ +export type UserItemUpdateManyArgs = { + /** + * The data used to update UserItems. + */ + data: Prisma.XOR + /** + * Filter which UserItems to update + */ + where?: Prisma.UserItemWhereInput + /** + * Limit how many UserItems to update. + */ + limit?: number +} + +/** + * UserItem updateManyAndReturn + */ +export type UserItemUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the UserItem + */ + select?: Prisma.UserItemSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the UserItem + */ + omit?: Prisma.UserItemOmit | null + /** + * The data used to update UserItems. + */ + data: Prisma.XOR + /** + * Filter which UserItems to update + */ + where?: Prisma.UserItemWhereInput + /** + * Limit how many UserItems to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemIncludeUpdateManyAndReturn | null +} + +/** + * UserItem upsert + */ +export type UserItemUpsertArgs = { + /** + * Select specific fields to fetch from the UserItem + */ + select?: Prisma.UserItemSelect | null + /** + * Omit specific fields from the UserItem + */ + omit?: Prisma.UserItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemInclude | null + /** + * The filter to search for the UserItem to update in case it exists. + */ + where: Prisma.UserItemWhereUniqueInput + /** + * In case the UserItem found by the `where` argument doesn't exist, create a new UserItem with this data. + */ + create: Prisma.XOR + /** + * In case the UserItem was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * UserItem delete + */ +export type UserItemDeleteArgs = { + /** + * Select specific fields to fetch from the UserItem + */ + select?: Prisma.UserItemSelect | null + /** + * Omit specific fields from the UserItem + */ + omit?: Prisma.UserItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemInclude | null + /** + * Filter which UserItem to delete. + */ + where: Prisma.UserItemWhereUniqueInput +} + +/** + * UserItem deleteMany + */ +export type UserItemDeleteManyArgs = { + /** + * Filter which UserItems to delete + */ + where?: Prisma.UserItemWhereInput + /** + * Limit how many UserItems to delete. + */ + limit?: number +} + +/** + * UserItem without action + */ +export type UserItemDefaultArgs = { + /** + * Select specific fields to fetch from the UserItem + */ + select?: Prisma.UserItemSelect | null + /** + * Omit specific fields from the UserItem + */ + omit?: Prisma.UserItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/UserItemCategory.ts b/apps/backend/prisma/generated/generated/prisma/models/UserItemCategory.ts new file mode 100644 index 00000000..e7406b2a --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/UserItemCategory.ts @@ -0,0 +1,1425 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `UserItemCategory` 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 UserItemCategory + * + */ +export type UserItemCategoryModel = runtime.Types.Result.DefaultSelection + +export type AggregateUserItemCategory = { + _count: UserItemCategoryCountAggregateOutputType | null + _min: UserItemCategoryMinAggregateOutputType | null + _max: UserItemCategoryMaxAggregateOutputType | null +} + +export type UserItemCategoryMinAggregateOutputType = { + id: string | null + userId: string | null + categoryId: string | null + createdAt: Date | null +} + +export type UserItemCategoryMaxAggregateOutputType = { + id: string | null + userId: string | null + categoryId: string | null + createdAt: Date | null +} + +export type UserItemCategoryCountAggregateOutputType = { + id: number + userId: number + categoryId: number + createdAt: number + _all: number +} + + +export type UserItemCategoryMinAggregateInputType = { + id?: true + userId?: true + categoryId?: true + createdAt?: true +} + +export type UserItemCategoryMaxAggregateInputType = { + id?: true + userId?: true + categoryId?: true + createdAt?: true +} + +export type UserItemCategoryCountAggregateInputType = { + id?: true + userId?: true + categoryId?: true + createdAt?: true + _all?: true +} + +export type UserItemCategoryAggregateArgs = { + /** + * Filter which UserItemCategory to aggregate. + */ + where?: Prisma.UserItemCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserItemCategories to fetch. + */ + orderBy?: Prisma.UserItemCategoryOrderByWithRelationInput | Prisma.UserItemCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.UserItemCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserItemCategories 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` UserItemCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned UserItemCategories + **/ + _count?: true | UserItemCategoryCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: UserItemCategoryMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: UserItemCategoryMaxAggregateInputType +} + +export type GetUserItemCategoryAggregateType = { + [P in keyof T & keyof AggregateUserItemCategory]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type UserItemCategoryGroupByArgs = { + where?: Prisma.UserItemCategoryWhereInput + orderBy?: Prisma.UserItemCategoryOrderByWithAggregationInput | Prisma.UserItemCategoryOrderByWithAggregationInput[] + by: Prisma.UserItemCategoryScalarFieldEnum[] | Prisma.UserItemCategoryScalarFieldEnum + having?: Prisma.UserItemCategoryScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: UserItemCategoryCountAggregateInputType | true + _min?: UserItemCategoryMinAggregateInputType + _max?: UserItemCategoryMaxAggregateInputType +} + +export type UserItemCategoryGroupByOutputType = { + id: string + userId: string + categoryId: string + createdAt: Date + _count: UserItemCategoryCountAggregateOutputType | null + _min: UserItemCategoryMinAggregateOutputType | null + _max: UserItemCategoryMaxAggregateOutputType | null +} + +type GetUserItemCategoryGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof UserItemCategoryGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type UserItemCategoryWhereInput = { + AND?: Prisma.UserItemCategoryWhereInput | Prisma.UserItemCategoryWhereInput[] + OR?: Prisma.UserItemCategoryWhereInput[] + NOT?: Prisma.UserItemCategoryWhereInput | Prisma.UserItemCategoryWhereInput[] + id?: Prisma.StringFilter<"UserItemCategory"> | string + userId?: Prisma.StringFilter<"UserItemCategory"> | string + categoryId?: Prisma.StringFilter<"UserItemCategory"> | string + createdAt?: Prisma.DateTimeFilter<"UserItemCategory"> | Date | string + user?: Prisma.XOR + category?: Prisma.XOR +} + +export type UserItemCategoryOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput + category?: Prisma.ItemCategoryOrderByWithRelationInput +} + +export type UserItemCategoryWhereUniqueInput = Prisma.AtLeast<{ + id?: string + userId_categoryId?: Prisma.UserItemCategoryUserIdCategoryIdCompoundUniqueInput + AND?: Prisma.UserItemCategoryWhereInput | Prisma.UserItemCategoryWhereInput[] + OR?: Prisma.UserItemCategoryWhereInput[] + NOT?: Prisma.UserItemCategoryWhereInput | Prisma.UserItemCategoryWhereInput[] + userId?: Prisma.StringFilter<"UserItemCategory"> | string + categoryId?: Prisma.StringFilter<"UserItemCategory"> | string + createdAt?: Prisma.DateTimeFilter<"UserItemCategory"> | Date | string + user?: Prisma.XOR + category?: Prisma.XOR +}, "id" | "userId_categoryId"> + +export type UserItemCategoryOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + _count?: Prisma.UserItemCategoryCountOrderByAggregateInput + _max?: Prisma.UserItemCategoryMaxOrderByAggregateInput + _min?: Prisma.UserItemCategoryMinOrderByAggregateInput +} + +export type UserItemCategoryScalarWhereWithAggregatesInput = { + AND?: Prisma.UserItemCategoryScalarWhereWithAggregatesInput | Prisma.UserItemCategoryScalarWhereWithAggregatesInput[] + OR?: Prisma.UserItemCategoryScalarWhereWithAggregatesInput[] + NOT?: Prisma.UserItemCategoryScalarWhereWithAggregatesInput | Prisma.UserItemCategoryScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"UserItemCategory"> | string + userId?: Prisma.StringWithAggregatesFilter<"UserItemCategory"> | string + categoryId?: Prisma.StringWithAggregatesFilter<"UserItemCategory"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"UserItemCategory"> | Date | string +} + +export type UserItemCategoryCreateInput = { + id?: string + createdAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutUserItemCategoriesInput + category: Prisma.ItemCategoryCreateNestedOneWithoutUsersInput +} + +export type UserItemCategoryUncheckedCreateInput = { + id?: string + userId: string + categoryId: string + createdAt?: Date | string +} + +export type UserItemCategoryUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutUserItemCategoriesNestedInput + category?: Prisma.ItemCategoryUpdateOneRequiredWithoutUsersNestedInput +} + +export type UserItemCategoryUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserItemCategoryCreateManyInput = { + id?: string + userId: string + categoryId: string + createdAt?: Date | string +} + +export type UserItemCategoryUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserItemCategoryUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserItemCategoryListRelationFilter = { + every?: Prisma.UserItemCategoryWhereInput + some?: Prisma.UserItemCategoryWhereInput + none?: Prisma.UserItemCategoryWhereInput +} + +export type UserItemCategoryOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type UserItemCategoryUserIdCategoryIdCompoundUniqueInput = { + userId: string + categoryId: string +} + +export type UserItemCategoryCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserItemCategoryMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserItemCategoryMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserItemCategoryCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.UserItemCategoryCreateWithoutUserInput[] | Prisma.UserItemCategoryUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserItemCategoryCreateOrConnectWithoutUserInput | Prisma.UserItemCategoryCreateOrConnectWithoutUserInput[] + createMany?: Prisma.UserItemCategoryCreateManyUserInputEnvelope + connect?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] +} + +export type UserItemCategoryUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.UserItemCategoryCreateWithoutUserInput[] | Prisma.UserItemCategoryUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserItemCategoryCreateOrConnectWithoutUserInput | Prisma.UserItemCategoryCreateOrConnectWithoutUserInput[] + createMany?: Prisma.UserItemCategoryCreateManyUserInputEnvelope + connect?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] +} + +export type UserItemCategoryUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.UserItemCategoryCreateWithoutUserInput[] | Prisma.UserItemCategoryUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserItemCategoryCreateOrConnectWithoutUserInput | Prisma.UserItemCategoryCreateOrConnectWithoutUserInput[] + upsert?: Prisma.UserItemCategoryUpsertWithWhereUniqueWithoutUserInput | Prisma.UserItemCategoryUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.UserItemCategoryCreateManyUserInputEnvelope + set?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] + disconnect?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] + delete?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] + connect?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] + update?: Prisma.UserItemCategoryUpdateWithWhereUniqueWithoutUserInput | Prisma.UserItemCategoryUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.UserItemCategoryUpdateManyWithWhereWithoutUserInput | Prisma.UserItemCategoryUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.UserItemCategoryScalarWhereInput | Prisma.UserItemCategoryScalarWhereInput[] +} + +export type UserItemCategoryUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.UserItemCategoryCreateWithoutUserInput[] | Prisma.UserItemCategoryUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserItemCategoryCreateOrConnectWithoutUserInput | Prisma.UserItemCategoryCreateOrConnectWithoutUserInput[] + upsert?: Prisma.UserItemCategoryUpsertWithWhereUniqueWithoutUserInput | Prisma.UserItemCategoryUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.UserItemCategoryCreateManyUserInputEnvelope + set?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] + disconnect?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] + delete?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] + connect?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] + update?: Prisma.UserItemCategoryUpdateWithWhereUniqueWithoutUserInput | Prisma.UserItemCategoryUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.UserItemCategoryUpdateManyWithWhereWithoutUserInput | Prisma.UserItemCategoryUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.UserItemCategoryScalarWhereInput | Prisma.UserItemCategoryScalarWhereInput[] +} + +export type UserItemCategoryCreateNestedManyWithoutCategoryInput = { + create?: Prisma.XOR | Prisma.UserItemCategoryCreateWithoutCategoryInput[] | Prisma.UserItemCategoryUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.UserItemCategoryCreateOrConnectWithoutCategoryInput | Prisma.UserItemCategoryCreateOrConnectWithoutCategoryInput[] + createMany?: Prisma.UserItemCategoryCreateManyCategoryInputEnvelope + connect?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] +} + +export type UserItemCategoryUncheckedCreateNestedManyWithoutCategoryInput = { + create?: Prisma.XOR | Prisma.UserItemCategoryCreateWithoutCategoryInput[] | Prisma.UserItemCategoryUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.UserItemCategoryCreateOrConnectWithoutCategoryInput | Prisma.UserItemCategoryCreateOrConnectWithoutCategoryInput[] + createMany?: Prisma.UserItemCategoryCreateManyCategoryInputEnvelope + connect?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] +} + +export type UserItemCategoryUpdateManyWithoutCategoryNestedInput = { + create?: Prisma.XOR | Prisma.UserItemCategoryCreateWithoutCategoryInput[] | Prisma.UserItemCategoryUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.UserItemCategoryCreateOrConnectWithoutCategoryInput | Prisma.UserItemCategoryCreateOrConnectWithoutCategoryInput[] + upsert?: Prisma.UserItemCategoryUpsertWithWhereUniqueWithoutCategoryInput | Prisma.UserItemCategoryUpsertWithWhereUniqueWithoutCategoryInput[] + createMany?: Prisma.UserItemCategoryCreateManyCategoryInputEnvelope + set?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] + disconnect?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] + delete?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] + connect?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] + update?: Prisma.UserItemCategoryUpdateWithWhereUniqueWithoutCategoryInput | Prisma.UserItemCategoryUpdateWithWhereUniqueWithoutCategoryInput[] + updateMany?: Prisma.UserItemCategoryUpdateManyWithWhereWithoutCategoryInput | Prisma.UserItemCategoryUpdateManyWithWhereWithoutCategoryInput[] + deleteMany?: Prisma.UserItemCategoryScalarWhereInput | Prisma.UserItemCategoryScalarWhereInput[] +} + +export type UserItemCategoryUncheckedUpdateManyWithoutCategoryNestedInput = { + create?: Prisma.XOR | Prisma.UserItemCategoryCreateWithoutCategoryInput[] | Prisma.UserItemCategoryUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.UserItemCategoryCreateOrConnectWithoutCategoryInput | Prisma.UserItemCategoryCreateOrConnectWithoutCategoryInput[] + upsert?: Prisma.UserItemCategoryUpsertWithWhereUniqueWithoutCategoryInput | Prisma.UserItemCategoryUpsertWithWhereUniqueWithoutCategoryInput[] + createMany?: Prisma.UserItemCategoryCreateManyCategoryInputEnvelope + set?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] + disconnect?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] + delete?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] + connect?: Prisma.UserItemCategoryWhereUniqueInput | Prisma.UserItemCategoryWhereUniqueInput[] + update?: Prisma.UserItemCategoryUpdateWithWhereUniqueWithoutCategoryInput | Prisma.UserItemCategoryUpdateWithWhereUniqueWithoutCategoryInput[] + updateMany?: Prisma.UserItemCategoryUpdateManyWithWhereWithoutCategoryInput | Prisma.UserItemCategoryUpdateManyWithWhereWithoutCategoryInput[] + deleteMany?: Prisma.UserItemCategoryScalarWhereInput | Prisma.UserItemCategoryScalarWhereInput[] +} + +export type UserItemCategoryCreateWithoutUserInput = { + id?: string + createdAt?: Date | string + category: Prisma.ItemCategoryCreateNestedOneWithoutUsersInput +} + +export type UserItemCategoryUncheckedCreateWithoutUserInput = { + id?: string + categoryId: string + createdAt?: Date | string +} + +export type UserItemCategoryCreateOrConnectWithoutUserInput = { + where: Prisma.UserItemCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type UserItemCategoryCreateManyUserInputEnvelope = { + data: Prisma.UserItemCategoryCreateManyUserInput | Prisma.UserItemCategoryCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type UserItemCategoryUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.UserItemCategoryWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type UserItemCategoryUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.UserItemCategoryWhereUniqueInput + data: Prisma.XOR +} + +export type UserItemCategoryUpdateManyWithWhereWithoutUserInput = { + where: Prisma.UserItemCategoryScalarWhereInput + data: Prisma.XOR +} + +export type UserItemCategoryScalarWhereInput = { + AND?: Prisma.UserItemCategoryScalarWhereInput | Prisma.UserItemCategoryScalarWhereInput[] + OR?: Prisma.UserItemCategoryScalarWhereInput[] + NOT?: Prisma.UserItemCategoryScalarWhereInput | Prisma.UserItemCategoryScalarWhereInput[] + id?: Prisma.StringFilter<"UserItemCategory"> | string + userId?: Prisma.StringFilter<"UserItemCategory"> | string + categoryId?: Prisma.StringFilter<"UserItemCategory"> | string + createdAt?: Prisma.DateTimeFilter<"UserItemCategory"> | Date | string +} + +export type UserItemCategoryCreateWithoutCategoryInput = { + id?: string + createdAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutUserItemCategoriesInput +} + +export type UserItemCategoryUncheckedCreateWithoutCategoryInput = { + id?: string + userId: string + createdAt?: Date | string +} + +export type UserItemCategoryCreateOrConnectWithoutCategoryInput = { + where: Prisma.UserItemCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type UserItemCategoryCreateManyCategoryInputEnvelope = { + data: Prisma.UserItemCategoryCreateManyCategoryInput | Prisma.UserItemCategoryCreateManyCategoryInput[] + skipDuplicates?: boolean +} + +export type UserItemCategoryUpsertWithWhereUniqueWithoutCategoryInput = { + where: Prisma.UserItemCategoryWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type UserItemCategoryUpdateWithWhereUniqueWithoutCategoryInput = { + where: Prisma.UserItemCategoryWhereUniqueInput + data: Prisma.XOR +} + +export type UserItemCategoryUpdateManyWithWhereWithoutCategoryInput = { + where: Prisma.UserItemCategoryScalarWhereInput + data: Prisma.XOR +} + +export type UserItemCategoryCreateManyUserInput = { + id?: string + categoryId: string + createdAt?: Date | string +} + +export type UserItemCategoryUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.ItemCategoryUpdateOneRequiredWithoutUsersNestedInput +} + +export type UserItemCategoryUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserItemCategoryUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + categoryId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserItemCategoryCreateManyCategoryInput = { + id?: string + userId: string + createdAt?: Date | string +} + +export type UserItemCategoryUpdateWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutUserItemCategoriesNestedInput +} + +export type UserItemCategoryUncheckedUpdateWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserItemCategoryUncheckedUpdateManyWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type UserItemCategorySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + categoryId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.ItemCategoryDefaultArgs +}, ExtArgs["result"]["userItemCategory"]> + +export type UserItemCategorySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + categoryId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.ItemCategoryDefaultArgs +}, ExtArgs["result"]["userItemCategory"]> + +export type UserItemCategorySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + categoryId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.ItemCategoryDefaultArgs +}, ExtArgs["result"]["userItemCategory"]> + +export type UserItemCategorySelectScalar = { + id?: boolean + userId?: boolean + categoryId?: boolean + createdAt?: boolean +} + +export type UserItemCategoryOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "categoryId" | "createdAt", ExtArgs["result"]["userItemCategory"]> +export type UserItemCategoryInclude = { + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.ItemCategoryDefaultArgs +} +export type UserItemCategoryIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.ItemCategoryDefaultArgs +} +export type UserItemCategoryIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + category?: boolean | Prisma.ItemCategoryDefaultArgs +} + +export type $UserItemCategoryPayload = { + name: "UserItemCategory" + objects: { + user: Prisma.$UserPayload + category: Prisma.$ItemCategoryPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + userId: string + categoryId: string + createdAt: Date + }, ExtArgs["result"]["userItemCategory"]> + composites: {} +} + +export type UserItemCategoryGetPayload = runtime.Types.Result.GetResult + +export type UserItemCategoryCountArgs = + Omit & { + select?: UserItemCategoryCountAggregateInputType | true + } + +export interface UserItemCategoryDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['UserItemCategory'], meta: { name: 'UserItemCategory' } } + /** + * Find zero or one UserItemCategory that matches the filter. + * @param {UserItemCategoryFindUniqueArgs} args - Arguments to find a UserItemCategory + * @example + * // Get one UserItemCategory + * const userItemCategory = await prisma.userItemCategory.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserItemCategoryClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one UserItemCategory that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {UserItemCategoryFindUniqueOrThrowArgs} args - Arguments to find a UserItemCategory + * @example + * // Get one UserItemCategory + * const userItemCategory = await prisma.userItemCategory.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserItemCategoryClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first UserItemCategory 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 {UserItemCategoryFindFirstArgs} args - Arguments to find a UserItemCategory + * @example + * // Get one UserItemCategory + * const userItemCategory = await prisma.userItemCategory.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserItemCategoryClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first UserItemCategory 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 {UserItemCategoryFindFirstOrThrowArgs} args - Arguments to find a UserItemCategory + * @example + * // Get one UserItemCategory + * const userItemCategory = await prisma.userItemCategory.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserItemCategoryClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more UserItemCategories 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 {UserItemCategoryFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all UserItemCategories + * const userItemCategories = await prisma.userItemCategory.findMany() + * + * // Get first 10 UserItemCategories + * const userItemCategories = await prisma.userItemCategory.findMany({ take: 10 }) + * + * // Only select the `id` + * const userItemCategoryWithIdOnly = await prisma.userItemCategory.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a UserItemCategory. + * @param {UserItemCategoryCreateArgs} args - Arguments to create a UserItemCategory. + * @example + * // Create one UserItemCategory + * const UserItemCategory = await prisma.userItemCategory.create({ + * data: { + * // ... data to create a UserItemCategory + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__UserItemCategoryClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many UserItemCategories. + * @param {UserItemCategoryCreateManyArgs} args - Arguments to create many UserItemCategories. + * @example + * // Create many UserItemCategories + * const userItemCategory = await prisma.userItemCategory.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many UserItemCategories and returns the data saved in the database. + * @param {UserItemCategoryCreateManyAndReturnArgs} args - Arguments to create many UserItemCategories. + * @example + * // Create many UserItemCategories + * const userItemCategory = await prisma.userItemCategory.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many UserItemCategories and only return the `id` + * const userItemCategoryWithIdOnly = await prisma.userItemCategory.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a UserItemCategory. + * @param {UserItemCategoryDeleteArgs} args - Arguments to delete one UserItemCategory. + * @example + * // Delete one UserItemCategory + * const UserItemCategory = await prisma.userItemCategory.delete({ + * where: { + * // ... filter to delete one UserItemCategory + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserItemCategoryClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one UserItemCategory. + * @param {UserItemCategoryUpdateArgs} args - Arguments to update one UserItemCategory. + * @example + * // Update one UserItemCategory + * const userItemCategory = await prisma.userItemCategory.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__UserItemCategoryClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more UserItemCategories. + * @param {UserItemCategoryDeleteManyArgs} args - Arguments to filter UserItemCategories to delete. + * @example + * // Delete a few UserItemCategories + * const { count } = await prisma.userItemCategory.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more UserItemCategories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserItemCategoryUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many UserItemCategories + * const userItemCategory = await prisma.userItemCategory.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more UserItemCategories and returns the data updated in the database. + * @param {UserItemCategoryUpdateManyAndReturnArgs} args - Arguments to update many UserItemCategories. + * @example + * // Update many UserItemCategories + * const userItemCategory = await prisma.userItemCategory.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more UserItemCategories and only return the `id` + * const userItemCategoryWithIdOnly = await prisma.userItemCategory.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one UserItemCategory. + * @param {UserItemCategoryUpsertArgs} args - Arguments to update or create a UserItemCategory. + * @example + * // Update or create a UserItemCategory + * const userItemCategory = await prisma.userItemCategory.upsert({ + * create: { + * // ... data to create a UserItemCategory + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the UserItemCategory we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserItemCategoryClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of UserItemCategories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserItemCategoryCountArgs} args - Arguments to filter UserItemCategories to count. + * @example + * // Count the number of UserItemCategories + * const count = await prisma.userItemCategory.count({ + * where: { + * // ... the filter for the UserItemCategories we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a UserItemCategory. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserItemCategoryAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by UserItemCategory. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserItemCategoryGroupByArgs} 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 UserItemCategoryGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: UserItemCategoryGroupByArgs['orderBy'] } + : { orderBy?: UserItemCategoryGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetUserItemCategoryGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the UserItemCategory model + */ +readonly fields: UserItemCategoryFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for UserItemCategory. + * 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__UserItemCategoryClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + category = {}>(args?: Prisma.Subset>): Prisma.Prisma__ItemCategoryClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the UserItemCategory model + */ +export interface UserItemCategoryFieldRefs { + readonly id: Prisma.FieldRef<"UserItemCategory", 'String'> + readonly userId: Prisma.FieldRef<"UserItemCategory", 'String'> + readonly categoryId: Prisma.FieldRef<"UserItemCategory", 'String'> + readonly createdAt: Prisma.FieldRef<"UserItemCategory", 'DateTime'> +} + + +// Custom InputTypes +/** + * UserItemCategory findUnique + */ +export type UserItemCategoryFindUniqueArgs = { + /** + * Select specific fields to fetch from the UserItemCategory + */ + select?: Prisma.UserItemCategorySelect | null + /** + * Omit specific fields from the UserItemCategory + */ + omit?: Prisma.UserItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemCategoryInclude | null + /** + * Filter, which UserItemCategory to fetch. + */ + where: Prisma.UserItemCategoryWhereUniqueInput +} + +/** + * UserItemCategory findUniqueOrThrow + */ +export type UserItemCategoryFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the UserItemCategory + */ + select?: Prisma.UserItemCategorySelect | null + /** + * Omit specific fields from the UserItemCategory + */ + omit?: Prisma.UserItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemCategoryInclude | null + /** + * Filter, which UserItemCategory to fetch. + */ + where: Prisma.UserItemCategoryWhereUniqueInput +} + +/** + * UserItemCategory findFirst + */ +export type UserItemCategoryFindFirstArgs = { + /** + * Select specific fields to fetch from the UserItemCategory + */ + select?: Prisma.UserItemCategorySelect | null + /** + * Omit specific fields from the UserItemCategory + */ + omit?: Prisma.UserItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemCategoryInclude | null + /** + * Filter, which UserItemCategory to fetch. + */ + where?: Prisma.UserItemCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserItemCategories to fetch. + */ + orderBy?: Prisma.UserItemCategoryOrderByWithRelationInput | Prisma.UserItemCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for UserItemCategories. + */ + cursor?: Prisma.UserItemCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserItemCategories 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` UserItemCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of UserItemCategories. + */ + distinct?: Prisma.UserItemCategoryScalarFieldEnum | Prisma.UserItemCategoryScalarFieldEnum[] +} + +/** + * UserItemCategory findFirstOrThrow + */ +export type UserItemCategoryFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the UserItemCategory + */ + select?: Prisma.UserItemCategorySelect | null + /** + * Omit specific fields from the UserItemCategory + */ + omit?: Prisma.UserItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemCategoryInclude | null + /** + * Filter, which UserItemCategory to fetch. + */ + where?: Prisma.UserItemCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserItemCategories to fetch. + */ + orderBy?: Prisma.UserItemCategoryOrderByWithRelationInput | Prisma.UserItemCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for UserItemCategories. + */ + cursor?: Prisma.UserItemCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserItemCategories 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` UserItemCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of UserItemCategories. + */ + distinct?: Prisma.UserItemCategoryScalarFieldEnum | Prisma.UserItemCategoryScalarFieldEnum[] +} + +/** + * UserItemCategory findMany + */ +export type UserItemCategoryFindManyArgs = { + /** + * Select specific fields to fetch from the UserItemCategory + */ + select?: Prisma.UserItemCategorySelect | null + /** + * Omit specific fields from the UserItemCategory + */ + omit?: Prisma.UserItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemCategoryInclude | null + /** + * Filter, which UserItemCategories to fetch. + */ + where?: Prisma.UserItemCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserItemCategories to fetch. + */ + orderBy?: Prisma.UserItemCategoryOrderByWithRelationInput | Prisma.UserItemCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing UserItemCategories. + */ + cursor?: Prisma.UserItemCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserItemCategories 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` UserItemCategories. + */ + skip?: number + distinct?: Prisma.UserItemCategoryScalarFieldEnum | Prisma.UserItemCategoryScalarFieldEnum[] +} + +/** + * UserItemCategory create + */ +export type UserItemCategoryCreateArgs = { + /** + * Select specific fields to fetch from the UserItemCategory + */ + select?: Prisma.UserItemCategorySelect | null + /** + * Omit specific fields from the UserItemCategory + */ + omit?: Prisma.UserItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemCategoryInclude | null + /** + * The data needed to create a UserItemCategory. + */ + data: Prisma.XOR +} + +/** + * UserItemCategory createMany + */ +export type UserItemCategoryCreateManyArgs = { + /** + * The data used to create many UserItemCategories. + */ + data: Prisma.UserItemCategoryCreateManyInput | Prisma.UserItemCategoryCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * UserItemCategory createManyAndReturn + */ +export type UserItemCategoryCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the UserItemCategory + */ + select?: Prisma.UserItemCategorySelectCreateManyAndReturn | null + /** + * Omit specific fields from the UserItemCategory + */ + omit?: Prisma.UserItemCategoryOmit | null + /** + * The data used to create many UserItemCategories. + */ + data: Prisma.UserItemCategoryCreateManyInput | Prisma.UserItemCategoryCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemCategoryIncludeCreateManyAndReturn | null +} + +/** + * UserItemCategory update + */ +export type UserItemCategoryUpdateArgs = { + /** + * Select specific fields to fetch from the UserItemCategory + */ + select?: Prisma.UserItemCategorySelect | null + /** + * Omit specific fields from the UserItemCategory + */ + omit?: Prisma.UserItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemCategoryInclude | null + /** + * The data needed to update a UserItemCategory. + */ + data: Prisma.XOR + /** + * Choose, which UserItemCategory to update. + */ + where: Prisma.UserItemCategoryWhereUniqueInput +} + +/** + * UserItemCategory updateMany + */ +export type UserItemCategoryUpdateManyArgs = { + /** + * The data used to update UserItemCategories. + */ + data: Prisma.XOR + /** + * Filter which UserItemCategories to update + */ + where?: Prisma.UserItemCategoryWhereInput + /** + * Limit how many UserItemCategories to update. + */ + limit?: number +} + +/** + * UserItemCategory updateManyAndReturn + */ +export type UserItemCategoryUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the UserItemCategory + */ + select?: Prisma.UserItemCategorySelectUpdateManyAndReturn | null + /** + * Omit specific fields from the UserItemCategory + */ + omit?: Prisma.UserItemCategoryOmit | null + /** + * The data used to update UserItemCategories. + */ + data: Prisma.XOR + /** + * Filter which UserItemCategories to update + */ + where?: Prisma.UserItemCategoryWhereInput + /** + * Limit how many UserItemCategories to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemCategoryIncludeUpdateManyAndReturn | null +} + +/** + * UserItemCategory upsert + */ +export type UserItemCategoryUpsertArgs = { + /** + * Select specific fields to fetch from the UserItemCategory + */ + select?: Prisma.UserItemCategorySelect | null + /** + * Omit specific fields from the UserItemCategory + */ + omit?: Prisma.UserItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemCategoryInclude | null + /** + * The filter to search for the UserItemCategory to update in case it exists. + */ + where: Prisma.UserItemCategoryWhereUniqueInput + /** + * In case the UserItemCategory found by the `where` argument doesn't exist, create a new UserItemCategory with this data. + */ + create: Prisma.XOR + /** + * In case the UserItemCategory was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * UserItemCategory delete + */ +export type UserItemCategoryDeleteArgs = { + /** + * Select specific fields to fetch from the UserItemCategory + */ + select?: Prisma.UserItemCategorySelect | null + /** + * Omit specific fields from the UserItemCategory + */ + omit?: Prisma.UserItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemCategoryInclude | null + /** + * Filter which UserItemCategory to delete. + */ + where: Prisma.UserItemCategoryWhereUniqueInput +} + +/** + * UserItemCategory deleteMany + */ +export type UserItemCategoryDeleteManyArgs = { + /** + * Filter which UserItemCategories to delete + */ + where?: Prisma.UserItemCategoryWhereInput + /** + * Limit how many UserItemCategories to delete. + */ + limit?: number +} + +/** + * UserItemCategory without action + */ +export type UserItemCategoryDefaultArgs = { + /** + * Select specific fields to fetch from the UserItemCategory + */ + select?: Prisma.UserItemCategorySelect | null + /** + * Omit specific fields from the UserItemCategory + */ + omit?: Prisma.UserItemCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserItemCategoryInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/UserStore.ts b/apps/backend/prisma/generated/generated/prisma/models/UserStore.ts new file mode 100644 index 00000000..91a15ecb --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/UserStore.ts @@ -0,0 +1,1425 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `UserStore` 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 UserStore + * + */ +export type UserStoreModel = runtime.Types.Result.DefaultSelection + +export type AggregateUserStore = { + _count: UserStoreCountAggregateOutputType | null + _min: UserStoreMinAggregateOutputType | null + _max: UserStoreMaxAggregateOutputType | null +} + +export type UserStoreMinAggregateOutputType = { + id: string | null + userId: string | null + storeId: string | null + createdAt: Date | null +} + +export type UserStoreMaxAggregateOutputType = { + id: string | null + userId: string | null + storeId: string | null + createdAt: Date | null +} + +export type UserStoreCountAggregateOutputType = { + id: number + userId: number + storeId: number + createdAt: number + _all: number +} + + +export type UserStoreMinAggregateInputType = { + id?: true + userId?: true + storeId?: true + createdAt?: true +} + +export type UserStoreMaxAggregateInputType = { + id?: true + userId?: true + storeId?: true + createdAt?: true +} + +export type UserStoreCountAggregateInputType = { + id?: true + userId?: true + storeId?: true + createdAt?: true + _all?: true +} + +export type UserStoreAggregateArgs = { + /** + * Filter which UserStore to aggregate. + */ + where?: Prisma.UserStoreWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserStores to fetch. + */ + orderBy?: Prisma.UserStoreOrderByWithRelationInput | Prisma.UserStoreOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.UserStoreWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserStores 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` UserStores. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned UserStores + **/ + _count?: true | UserStoreCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: UserStoreMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: UserStoreMaxAggregateInputType +} + +export type GetUserStoreAggregateType = { + [P in keyof T & keyof AggregateUserStore]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type UserStoreGroupByArgs = { + where?: Prisma.UserStoreWhereInput + orderBy?: Prisma.UserStoreOrderByWithAggregationInput | Prisma.UserStoreOrderByWithAggregationInput[] + by: Prisma.UserStoreScalarFieldEnum[] | Prisma.UserStoreScalarFieldEnum + having?: Prisma.UserStoreScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: UserStoreCountAggregateInputType | true + _min?: UserStoreMinAggregateInputType + _max?: UserStoreMaxAggregateInputType +} + +export type UserStoreGroupByOutputType = { + id: string + userId: string + storeId: string + createdAt: Date + _count: UserStoreCountAggregateOutputType | null + _min: UserStoreMinAggregateOutputType | null + _max: UserStoreMaxAggregateOutputType | null +} + +type GetUserStoreGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof UserStoreGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type UserStoreWhereInput = { + AND?: Prisma.UserStoreWhereInput | Prisma.UserStoreWhereInput[] + OR?: Prisma.UserStoreWhereInput[] + NOT?: Prisma.UserStoreWhereInput | Prisma.UserStoreWhereInput[] + id?: Prisma.StringFilter<"UserStore"> | string + userId?: Prisma.StringFilter<"UserStore"> | string + storeId?: Prisma.StringFilter<"UserStore"> | string + createdAt?: Prisma.DateTimeFilter<"UserStore"> | Date | string + user?: Prisma.XOR + store?: Prisma.XOR +} + +export type UserStoreOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput + store?: Prisma.StoreOrderByWithRelationInput +} + +export type UserStoreWhereUniqueInput = Prisma.AtLeast<{ + id?: string + userId_storeId?: Prisma.UserStoreUserIdStoreIdCompoundUniqueInput + AND?: Prisma.UserStoreWhereInput | Prisma.UserStoreWhereInput[] + OR?: Prisma.UserStoreWhereInput[] + NOT?: Prisma.UserStoreWhereInput | Prisma.UserStoreWhereInput[] + userId?: Prisma.StringFilter<"UserStore"> | string + storeId?: Prisma.StringFilter<"UserStore"> | string + createdAt?: Prisma.DateTimeFilter<"UserStore"> | Date | string + user?: Prisma.XOR + store?: Prisma.XOR +}, "id" | "userId_storeId"> + +export type UserStoreOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + _count?: Prisma.UserStoreCountOrderByAggregateInput + _max?: Prisma.UserStoreMaxOrderByAggregateInput + _min?: Prisma.UserStoreMinOrderByAggregateInput +} + +export type UserStoreScalarWhereWithAggregatesInput = { + AND?: Prisma.UserStoreScalarWhereWithAggregatesInput | Prisma.UserStoreScalarWhereWithAggregatesInput[] + OR?: Prisma.UserStoreScalarWhereWithAggregatesInput[] + NOT?: Prisma.UserStoreScalarWhereWithAggregatesInput | Prisma.UserStoreScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"UserStore"> | string + userId?: Prisma.StringWithAggregatesFilter<"UserStore"> | string + storeId?: Prisma.StringWithAggregatesFilter<"UserStore"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"UserStore"> | Date | string +} + +export type UserStoreCreateInput = { + id?: string + createdAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutUserStoresInput + store: Prisma.StoreCreateNestedOneWithoutUsersInput +} + +export type UserStoreUncheckedCreateInput = { + id?: string + userId: string + storeId: string + createdAt?: Date | string +} + +export type UserStoreUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutUserStoresNestedInput + store?: Prisma.StoreUpdateOneRequiredWithoutUsersNestedInput +} + +export type UserStoreUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserStoreCreateManyInput = { + id?: string + userId: string + storeId: string + createdAt?: Date | string +} + +export type UserStoreUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserStoreUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserStoreListRelationFilter = { + every?: Prisma.UserStoreWhereInput + some?: Prisma.UserStoreWhereInput + none?: Prisma.UserStoreWhereInput +} + +export type UserStoreOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type UserStoreUserIdStoreIdCompoundUniqueInput = { + userId: string + storeId: string +} + +export type UserStoreCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserStoreMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserStoreMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + storeId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserStoreCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.UserStoreCreateWithoutUserInput[] | Prisma.UserStoreUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserStoreCreateOrConnectWithoutUserInput | Prisma.UserStoreCreateOrConnectWithoutUserInput[] + createMany?: Prisma.UserStoreCreateManyUserInputEnvelope + connect?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] +} + +export type UserStoreUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.UserStoreCreateWithoutUserInput[] | Prisma.UserStoreUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserStoreCreateOrConnectWithoutUserInput | Prisma.UserStoreCreateOrConnectWithoutUserInput[] + createMany?: Prisma.UserStoreCreateManyUserInputEnvelope + connect?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] +} + +export type UserStoreUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.UserStoreCreateWithoutUserInput[] | Prisma.UserStoreUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserStoreCreateOrConnectWithoutUserInput | Prisma.UserStoreCreateOrConnectWithoutUserInput[] + upsert?: Prisma.UserStoreUpsertWithWhereUniqueWithoutUserInput | Prisma.UserStoreUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.UserStoreCreateManyUserInputEnvelope + set?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] + disconnect?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] + delete?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] + connect?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] + update?: Prisma.UserStoreUpdateWithWhereUniqueWithoutUserInput | Prisma.UserStoreUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.UserStoreUpdateManyWithWhereWithoutUserInput | Prisma.UserStoreUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.UserStoreScalarWhereInput | Prisma.UserStoreScalarWhereInput[] +} + +export type UserStoreUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.UserStoreCreateWithoutUserInput[] | Prisma.UserStoreUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserStoreCreateOrConnectWithoutUserInput | Prisma.UserStoreCreateOrConnectWithoutUserInput[] + upsert?: Prisma.UserStoreUpsertWithWhereUniqueWithoutUserInput | Prisma.UserStoreUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.UserStoreCreateManyUserInputEnvelope + set?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] + disconnect?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] + delete?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] + connect?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] + update?: Prisma.UserStoreUpdateWithWhereUniqueWithoutUserInput | Prisma.UserStoreUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.UserStoreUpdateManyWithWhereWithoutUserInput | Prisma.UserStoreUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.UserStoreScalarWhereInput | Prisma.UserStoreScalarWhereInput[] +} + +export type UserStoreCreateNestedManyWithoutStoreInput = { + create?: Prisma.XOR | Prisma.UserStoreCreateWithoutStoreInput[] | Prisma.UserStoreUncheckedCreateWithoutStoreInput[] + connectOrCreate?: Prisma.UserStoreCreateOrConnectWithoutStoreInput | Prisma.UserStoreCreateOrConnectWithoutStoreInput[] + createMany?: Prisma.UserStoreCreateManyStoreInputEnvelope + connect?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] +} + +export type UserStoreUncheckedCreateNestedManyWithoutStoreInput = { + create?: Prisma.XOR | Prisma.UserStoreCreateWithoutStoreInput[] | Prisma.UserStoreUncheckedCreateWithoutStoreInput[] + connectOrCreate?: Prisma.UserStoreCreateOrConnectWithoutStoreInput | Prisma.UserStoreCreateOrConnectWithoutStoreInput[] + createMany?: Prisma.UserStoreCreateManyStoreInputEnvelope + connect?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] +} + +export type UserStoreUpdateManyWithoutStoreNestedInput = { + create?: Prisma.XOR | Prisma.UserStoreCreateWithoutStoreInput[] | Prisma.UserStoreUncheckedCreateWithoutStoreInput[] + connectOrCreate?: Prisma.UserStoreCreateOrConnectWithoutStoreInput | Prisma.UserStoreCreateOrConnectWithoutStoreInput[] + upsert?: Prisma.UserStoreUpsertWithWhereUniqueWithoutStoreInput | Prisma.UserStoreUpsertWithWhereUniqueWithoutStoreInput[] + createMany?: Prisma.UserStoreCreateManyStoreInputEnvelope + set?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] + disconnect?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] + delete?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] + connect?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] + update?: Prisma.UserStoreUpdateWithWhereUniqueWithoutStoreInput | Prisma.UserStoreUpdateWithWhereUniqueWithoutStoreInput[] + updateMany?: Prisma.UserStoreUpdateManyWithWhereWithoutStoreInput | Prisma.UserStoreUpdateManyWithWhereWithoutStoreInput[] + deleteMany?: Prisma.UserStoreScalarWhereInput | Prisma.UserStoreScalarWhereInput[] +} + +export type UserStoreUncheckedUpdateManyWithoutStoreNestedInput = { + create?: Prisma.XOR | Prisma.UserStoreCreateWithoutStoreInput[] | Prisma.UserStoreUncheckedCreateWithoutStoreInput[] + connectOrCreate?: Prisma.UserStoreCreateOrConnectWithoutStoreInput | Prisma.UserStoreCreateOrConnectWithoutStoreInput[] + upsert?: Prisma.UserStoreUpsertWithWhereUniqueWithoutStoreInput | Prisma.UserStoreUpsertWithWhereUniqueWithoutStoreInput[] + createMany?: Prisma.UserStoreCreateManyStoreInputEnvelope + set?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] + disconnect?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] + delete?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] + connect?: Prisma.UserStoreWhereUniqueInput | Prisma.UserStoreWhereUniqueInput[] + update?: Prisma.UserStoreUpdateWithWhereUniqueWithoutStoreInput | Prisma.UserStoreUpdateWithWhereUniqueWithoutStoreInput[] + updateMany?: Prisma.UserStoreUpdateManyWithWhereWithoutStoreInput | Prisma.UserStoreUpdateManyWithWhereWithoutStoreInput[] + deleteMany?: Prisma.UserStoreScalarWhereInput | Prisma.UserStoreScalarWhereInput[] +} + +export type UserStoreCreateWithoutUserInput = { + id?: string + createdAt?: Date | string + store: Prisma.StoreCreateNestedOneWithoutUsersInput +} + +export type UserStoreUncheckedCreateWithoutUserInput = { + id?: string + storeId: string + createdAt?: Date | string +} + +export type UserStoreCreateOrConnectWithoutUserInput = { + where: Prisma.UserStoreWhereUniqueInput + create: Prisma.XOR +} + +export type UserStoreCreateManyUserInputEnvelope = { + data: Prisma.UserStoreCreateManyUserInput | Prisma.UserStoreCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type UserStoreUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.UserStoreWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type UserStoreUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.UserStoreWhereUniqueInput + data: Prisma.XOR +} + +export type UserStoreUpdateManyWithWhereWithoutUserInput = { + where: Prisma.UserStoreScalarWhereInput + data: Prisma.XOR +} + +export type UserStoreScalarWhereInput = { + AND?: Prisma.UserStoreScalarWhereInput | Prisma.UserStoreScalarWhereInput[] + OR?: Prisma.UserStoreScalarWhereInput[] + NOT?: Prisma.UserStoreScalarWhereInput | Prisma.UserStoreScalarWhereInput[] + id?: Prisma.StringFilter<"UserStore"> | string + userId?: Prisma.StringFilter<"UserStore"> | string + storeId?: Prisma.StringFilter<"UserStore"> | string + createdAt?: Prisma.DateTimeFilter<"UserStore"> | Date | string +} + +export type UserStoreCreateWithoutStoreInput = { + id?: string + createdAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutUserStoresInput +} + +export type UserStoreUncheckedCreateWithoutStoreInput = { + id?: string + userId: string + createdAt?: Date | string +} + +export type UserStoreCreateOrConnectWithoutStoreInput = { + where: Prisma.UserStoreWhereUniqueInput + create: Prisma.XOR +} + +export type UserStoreCreateManyStoreInputEnvelope = { + data: Prisma.UserStoreCreateManyStoreInput | Prisma.UserStoreCreateManyStoreInput[] + skipDuplicates?: boolean +} + +export type UserStoreUpsertWithWhereUniqueWithoutStoreInput = { + where: Prisma.UserStoreWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type UserStoreUpdateWithWhereUniqueWithoutStoreInput = { + where: Prisma.UserStoreWhereUniqueInput + data: Prisma.XOR +} + +export type UserStoreUpdateManyWithWhereWithoutStoreInput = { + where: Prisma.UserStoreScalarWhereInput + data: Prisma.XOR +} + +export type UserStoreCreateManyUserInput = { + id?: string + storeId: string + createdAt?: Date | string +} + +export type UserStoreUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + store?: Prisma.StoreUpdateOneRequiredWithoutUsersNestedInput +} + +export type UserStoreUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserStoreUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + storeId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserStoreCreateManyStoreInput = { + id?: string + userId: string + createdAt?: Date | string +} + +export type UserStoreUpdateWithoutStoreInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutUserStoresNestedInput +} + +export type UserStoreUncheckedUpdateWithoutStoreInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserStoreUncheckedUpdateManyWithoutStoreInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type UserStoreSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + storeId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + store?: boolean | Prisma.StoreDefaultArgs +}, ExtArgs["result"]["userStore"]> + +export type UserStoreSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + storeId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + store?: boolean | Prisma.StoreDefaultArgs +}, ExtArgs["result"]["userStore"]> + +export type UserStoreSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + storeId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + store?: boolean | Prisma.StoreDefaultArgs +}, ExtArgs["result"]["userStore"]> + +export type UserStoreSelectScalar = { + id?: boolean + userId?: boolean + storeId?: boolean + createdAt?: boolean +} + +export type UserStoreOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "storeId" | "createdAt", ExtArgs["result"]["userStore"]> +export type UserStoreInclude = { + user?: boolean | Prisma.UserDefaultArgs + store?: boolean | Prisma.StoreDefaultArgs +} +export type UserStoreIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + store?: boolean | Prisma.StoreDefaultArgs +} +export type UserStoreIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + store?: boolean | Prisma.StoreDefaultArgs +} + +export type $UserStorePayload = { + name: "UserStore" + objects: { + user: Prisma.$UserPayload + store: Prisma.$StorePayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + userId: string + storeId: string + createdAt: Date + }, ExtArgs["result"]["userStore"]> + composites: {} +} + +export type UserStoreGetPayload = runtime.Types.Result.GetResult + +export type UserStoreCountArgs = + Omit & { + select?: UserStoreCountAggregateInputType | true + } + +export interface UserStoreDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['UserStore'], meta: { name: 'UserStore' } } + /** + * Find zero or one UserStore that matches the filter. + * @param {UserStoreFindUniqueArgs} args - Arguments to find a UserStore + * @example + * // Get one UserStore + * const userStore = await prisma.userStore.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserStoreClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one UserStore that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {UserStoreFindUniqueOrThrowArgs} args - Arguments to find a UserStore + * @example + * // Get one UserStore + * const userStore = await prisma.userStore.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserStoreClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first UserStore 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 {UserStoreFindFirstArgs} args - Arguments to find a UserStore + * @example + * // Get one UserStore + * const userStore = await prisma.userStore.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserStoreClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first UserStore 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 {UserStoreFindFirstOrThrowArgs} args - Arguments to find a UserStore + * @example + * // Get one UserStore + * const userStore = await prisma.userStore.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserStoreClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more UserStores 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 {UserStoreFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all UserStores + * const userStores = await prisma.userStore.findMany() + * + * // Get first 10 UserStores + * const userStores = await prisma.userStore.findMany({ take: 10 }) + * + * // Only select the `id` + * const userStoreWithIdOnly = await prisma.userStore.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a UserStore. + * @param {UserStoreCreateArgs} args - Arguments to create a UserStore. + * @example + * // Create one UserStore + * const UserStore = await prisma.userStore.create({ + * data: { + * // ... data to create a UserStore + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__UserStoreClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many UserStores. + * @param {UserStoreCreateManyArgs} args - Arguments to create many UserStores. + * @example + * // Create many UserStores + * const userStore = await prisma.userStore.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many UserStores and returns the data saved in the database. + * @param {UserStoreCreateManyAndReturnArgs} args - Arguments to create many UserStores. + * @example + * // Create many UserStores + * const userStore = await prisma.userStore.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many UserStores and only return the `id` + * const userStoreWithIdOnly = await prisma.userStore.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a UserStore. + * @param {UserStoreDeleteArgs} args - Arguments to delete one UserStore. + * @example + * // Delete one UserStore + * const UserStore = await prisma.userStore.delete({ + * where: { + * // ... filter to delete one UserStore + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserStoreClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one UserStore. + * @param {UserStoreUpdateArgs} args - Arguments to update one UserStore. + * @example + * // Update one UserStore + * const userStore = await prisma.userStore.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__UserStoreClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more UserStores. + * @param {UserStoreDeleteManyArgs} args - Arguments to filter UserStores to delete. + * @example + * // Delete a few UserStores + * const { count } = await prisma.userStore.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more UserStores. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserStoreUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many UserStores + * const userStore = await prisma.userStore.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more UserStores and returns the data updated in the database. + * @param {UserStoreUpdateManyAndReturnArgs} args - Arguments to update many UserStores. + * @example + * // Update many UserStores + * const userStore = await prisma.userStore.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more UserStores and only return the `id` + * const userStoreWithIdOnly = await prisma.userStore.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one UserStore. + * @param {UserStoreUpsertArgs} args - Arguments to update or create a UserStore. + * @example + * // Update or create a UserStore + * const userStore = await prisma.userStore.upsert({ + * create: { + * // ... data to create a UserStore + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the UserStore we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserStoreClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of UserStores. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserStoreCountArgs} args - Arguments to filter UserStores to count. + * @example + * // Count the number of UserStores + * const count = await prisma.userStore.count({ + * where: { + * // ... the filter for the UserStores we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a UserStore. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserStoreAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by UserStore. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserStoreGroupByArgs} 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 UserStoreGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: UserStoreGroupByArgs['orderBy'] } + : { orderBy?: UserStoreGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetUserStoreGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the UserStore model + */ +readonly fields: UserStoreFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for UserStore. + * 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__UserStoreClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + store = {}>(args?: Prisma.Subset>): Prisma.Prisma__StoreClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the UserStore model + */ +export interface UserStoreFieldRefs { + readonly id: Prisma.FieldRef<"UserStore", 'String'> + readonly userId: Prisma.FieldRef<"UserStore", 'String'> + readonly storeId: Prisma.FieldRef<"UserStore", 'String'> + readonly createdAt: Prisma.FieldRef<"UserStore", 'DateTime'> +} + + +// Custom InputTypes +/** + * UserStore findUnique + */ +export type UserStoreFindUniqueArgs = { + /** + * Select specific fields to fetch from the UserStore + */ + select?: Prisma.UserStoreSelect | null + /** + * Omit specific fields from the UserStore + */ + omit?: Prisma.UserStoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreInclude | null + /** + * Filter, which UserStore to fetch. + */ + where: Prisma.UserStoreWhereUniqueInput +} + +/** + * UserStore findUniqueOrThrow + */ +export type UserStoreFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the UserStore + */ + select?: Prisma.UserStoreSelect | null + /** + * Omit specific fields from the UserStore + */ + omit?: Prisma.UserStoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreInclude | null + /** + * Filter, which UserStore to fetch. + */ + where: Prisma.UserStoreWhereUniqueInput +} + +/** + * UserStore findFirst + */ +export type UserStoreFindFirstArgs = { + /** + * Select specific fields to fetch from the UserStore + */ + select?: Prisma.UserStoreSelect | null + /** + * Omit specific fields from the UserStore + */ + omit?: Prisma.UserStoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreInclude | null + /** + * Filter, which UserStore to fetch. + */ + where?: Prisma.UserStoreWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserStores to fetch. + */ + orderBy?: Prisma.UserStoreOrderByWithRelationInput | Prisma.UserStoreOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for UserStores. + */ + cursor?: Prisma.UserStoreWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserStores 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` UserStores. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of UserStores. + */ + distinct?: Prisma.UserStoreScalarFieldEnum | Prisma.UserStoreScalarFieldEnum[] +} + +/** + * UserStore findFirstOrThrow + */ +export type UserStoreFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the UserStore + */ + select?: Prisma.UserStoreSelect | null + /** + * Omit specific fields from the UserStore + */ + omit?: Prisma.UserStoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreInclude | null + /** + * Filter, which UserStore to fetch. + */ + where?: Prisma.UserStoreWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserStores to fetch. + */ + orderBy?: Prisma.UserStoreOrderByWithRelationInput | Prisma.UserStoreOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for UserStores. + */ + cursor?: Prisma.UserStoreWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserStores 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` UserStores. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of UserStores. + */ + distinct?: Prisma.UserStoreScalarFieldEnum | Prisma.UserStoreScalarFieldEnum[] +} + +/** + * UserStore findMany + */ +export type UserStoreFindManyArgs = { + /** + * Select specific fields to fetch from the UserStore + */ + select?: Prisma.UserStoreSelect | null + /** + * Omit specific fields from the UserStore + */ + omit?: Prisma.UserStoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreInclude | null + /** + * Filter, which UserStores to fetch. + */ + where?: Prisma.UserStoreWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserStores to fetch. + */ + orderBy?: Prisma.UserStoreOrderByWithRelationInput | Prisma.UserStoreOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing UserStores. + */ + cursor?: Prisma.UserStoreWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserStores 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` UserStores. + */ + skip?: number + distinct?: Prisma.UserStoreScalarFieldEnum | Prisma.UserStoreScalarFieldEnum[] +} + +/** + * UserStore create + */ +export type UserStoreCreateArgs = { + /** + * Select specific fields to fetch from the UserStore + */ + select?: Prisma.UserStoreSelect | null + /** + * Omit specific fields from the UserStore + */ + omit?: Prisma.UserStoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreInclude | null + /** + * The data needed to create a UserStore. + */ + data: Prisma.XOR +} + +/** + * UserStore createMany + */ +export type UserStoreCreateManyArgs = { + /** + * The data used to create many UserStores. + */ + data: Prisma.UserStoreCreateManyInput | Prisma.UserStoreCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * UserStore createManyAndReturn + */ +export type UserStoreCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the UserStore + */ + select?: Prisma.UserStoreSelectCreateManyAndReturn | null + /** + * Omit specific fields from the UserStore + */ + omit?: Prisma.UserStoreOmit | null + /** + * The data used to create many UserStores. + */ + data: Prisma.UserStoreCreateManyInput | Prisma.UserStoreCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreIncludeCreateManyAndReturn | null +} + +/** + * UserStore update + */ +export type UserStoreUpdateArgs = { + /** + * Select specific fields to fetch from the UserStore + */ + select?: Prisma.UserStoreSelect | null + /** + * Omit specific fields from the UserStore + */ + omit?: Prisma.UserStoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreInclude | null + /** + * The data needed to update a UserStore. + */ + data: Prisma.XOR + /** + * Choose, which UserStore to update. + */ + where: Prisma.UserStoreWhereUniqueInput +} + +/** + * UserStore updateMany + */ +export type UserStoreUpdateManyArgs = { + /** + * The data used to update UserStores. + */ + data: Prisma.XOR + /** + * Filter which UserStores to update + */ + where?: Prisma.UserStoreWhereInput + /** + * Limit how many UserStores to update. + */ + limit?: number +} + +/** + * UserStore updateManyAndReturn + */ +export type UserStoreUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the UserStore + */ + select?: Prisma.UserStoreSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the UserStore + */ + omit?: Prisma.UserStoreOmit | null + /** + * The data used to update UserStores. + */ + data: Prisma.XOR + /** + * Filter which UserStores to update + */ + where?: Prisma.UserStoreWhereInput + /** + * Limit how many UserStores to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreIncludeUpdateManyAndReturn | null +} + +/** + * UserStore upsert + */ +export type UserStoreUpsertArgs = { + /** + * Select specific fields to fetch from the UserStore + */ + select?: Prisma.UserStoreSelect | null + /** + * Omit specific fields from the UserStore + */ + omit?: Prisma.UserStoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreInclude | null + /** + * The filter to search for the UserStore to update in case it exists. + */ + where: Prisma.UserStoreWhereUniqueInput + /** + * In case the UserStore found by the `where` argument doesn't exist, create a new UserStore with this data. + */ + create: Prisma.XOR + /** + * In case the UserStore was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * UserStore delete + */ +export type UserStoreDeleteArgs = { + /** + * Select specific fields to fetch from the UserStore + */ + select?: Prisma.UserStoreSelect | null + /** + * Omit specific fields from the UserStore + */ + omit?: Prisma.UserStoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreInclude | null + /** + * Filter which UserStore to delete. + */ + where: Prisma.UserStoreWhereUniqueInput +} + +/** + * UserStore deleteMany + */ +export type UserStoreDeleteManyArgs = { + /** + * Filter which UserStores to delete + */ + where?: Prisma.UserStoreWhereInput + /** + * Limit how many UserStores to delete. + */ + limit?: number +} + +/** + * UserStore without action + */ +export type UserStoreDefaultArgs = { + /** + * Select specific fields to fetch from the UserStore + */ + select?: Prisma.UserStoreSelect | null + /** + * Omit specific fields from the UserStore + */ + omit?: Prisma.UserStoreOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/UserStoreItem.ts b/apps/backend/prisma/generated/generated/prisma/models/UserStoreItem.ts new file mode 100644 index 00000000..cee5a16f --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/UserStoreItem.ts @@ -0,0 +1,1425 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `UserStoreItem` 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 UserStoreItem + * + */ +export type UserStoreItemModel = runtime.Types.Result.DefaultSelection + +export type AggregateUserStoreItem = { + _count: UserStoreItemCountAggregateOutputType | null + _min: UserStoreItemMinAggregateOutputType | null + _max: UserStoreItemMaxAggregateOutputType | null +} + +export type UserStoreItemMinAggregateOutputType = { + id: string | null + userId: string | null + storeItemId: string | null + createdAt: Date | null +} + +export type UserStoreItemMaxAggregateOutputType = { + id: string | null + userId: string | null + storeItemId: string | null + createdAt: Date | null +} + +export type UserStoreItemCountAggregateOutputType = { + id: number + userId: number + storeItemId: number + createdAt: number + _all: number +} + + +export type UserStoreItemMinAggregateInputType = { + id?: true + userId?: true + storeItemId?: true + createdAt?: true +} + +export type UserStoreItemMaxAggregateInputType = { + id?: true + userId?: true + storeItemId?: true + createdAt?: true +} + +export type UserStoreItemCountAggregateInputType = { + id?: true + userId?: true + storeItemId?: true + createdAt?: true + _all?: true +} + +export type UserStoreItemAggregateArgs = { + /** + * Filter which UserStoreItem to aggregate. + */ + where?: Prisma.UserStoreItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserStoreItems to fetch. + */ + orderBy?: Prisma.UserStoreItemOrderByWithRelationInput | Prisma.UserStoreItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.UserStoreItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserStoreItems 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` UserStoreItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned UserStoreItems + **/ + _count?: true | UserStoreItemCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: UserStoreItemMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: UserStoreItemMaxAggregateInputType +} + +export type GetUserStoreItemAggregateType = { + [P in keyof T & keyof AggregateUserStoreItem]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type UserStoreItemGroupByArgs = { + where?: Prisma.UserStoreItemWhereInput + orderBy?: Prisma.UserStoreItemOrderByWithAggregationInput | Prisma.UserStoreItemOrderByWithAggregationInput[] + by: Prisma.UserStoreItemScalarFieldEnum[] | Prisma.UserStoreItemScalarFieldEnum + having?: Prisma.UserStoreItemScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: UserStoreItemCountAggregateInputType | true + _min?: UserStoreItemMinAggregateInputType + _max?: UserStoreItemMaxAggregateInputType +} + +export type UserStoreItemGroupByOutputType = { + id: string + userId: string + storeItemId: string + createdAt: Date + _count: UserStoreItemCountAggregateOutputType | null + _min: UserStoreItemMinAggregateOutputType | null + _max: UserStoreItemMaxAggregateOutputType | null +} + +type GetUserStoreItemGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof UserStoreItemGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type UserStoreItemWhereInput = { + AND?: Prisma.UserStoreItemWhereInput | Prisma.UserStoreItemWhereInput[] + OR?: Prisma.UserStoreItemWhereInput[] + NOT?: Prisma.UserStoreItemWhereInput | Prisma.UserStoreItemWhereInput[] + id?: Prisma.StringFilter<"UserStoreItem"> | string + userId?: Prisma.StringFilter<"UserStoreItem"> | string + storeItemId?: Prisma.StringFilter<"UserStoreItem"> | string + createdAt?: Prisma.DateTimeFilter<"UserStoreItem"> | Date | string + user?: Prisma.XOR + storeItem?: Prisma.XOR +} + +export type UserStoreItemOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + storeItemId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput + storeItem?: Prisma.StoreItemOrderByWithRelationInput +} + +export type UserStoreItemWhereUniqueInput = Prisma.AtLeast<{ + id?: string + userId_storeItemId?: Prisma.UserStoreItemUserIdStoreItemIdCompoundUniqueInput + AND?: Prisma.UserStoreItemWhereInput | Prisma.UserStoreItemWhereInput[] + OR?: Prisma.UserStoreItemWhereInput[] + NOT?: Prisma.UserStoreItemWhereInput | Prisma.UserStoreItemWhereInput[] + userId?: Prisma.StringFilter<"UserStoreItem"> | string + storeItemId?: Prisma.StringFilter<"UserStoreItem"> | string + createdAt?: Prisma.DateTimeFilter<"UserStoreItem"> | Date | string + user?: Prisma.XOR + storeItem?: Prisma.XOR +}, "id" | "userId_storeItemId"> + +export type UserStoreItemOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + storeItemId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + _count?: Prisma.UserStoreItemCountOrderByAggregateInput + _max?: Prisma.UserStoreItemMaxOrderByAggregateInput + _min?: Prisma.UserStoreItemMinOrderByAggregateInput +} + +export type UserStoreItemScalarWhereWithAggregatesInput = { + AND?: Prisma.UserStoreItemScalarWhereWithAggregatesInput | Prisma.UserStoreItemScalarWhereWithAggregatesInput[] + OR?: Prisma.UserStoreItemScalarWhereWithAggregatesInput[] + NOT?: Prisma.UserStoreItemScalarWhereWithAggregatesInput | Prisma.UserStoreItemScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"UserStoreItem"> | string + userId?: Prisma.StringWithAggregatesFilter<"UserStoreItem"> | string + storeItemId?: Prisma.StringWithAggregatesFilter<"UserStoreItem"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"UserStoreItem"> | Date | string +} + +export type UserStoreItemCreateInput = { + id?: string + createdAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutUserStoreItemsInput + storeItem: Prisma.StoreItemCreateNestedOneWithoutUsersInput +} + +export type UserStoreItemUncheckedCreateInput = { + id?: string + userId: string + storeItemId: string + createdAt?: Date | string +} + +export type UserStoreItemUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutUserStoreItemsNestedInput + storeItem?: Prisma.StoreItemUpdateOneRequiredWithoutUsersNestedInput +} + +export type UserStoreItemUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + storeItemId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserStoreItemCreateManyInput = { + id?: string + userId: string + storeItemId: string + createdAt?: Date | string +} + +export type UserStoreItemUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserStoreItemUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + storeItemId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserStoreItemListRelationFilter = { + every?: Prisma.UserStoreItemWhereInput + some?: Prisma.UserStoreItemWhereInput + none?: Prisma.UserStoreItemWhereInput +} + +export type UserStoreItemOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type UserStoreItemUserIdStoreItemIdCompoundUniqueInput = { + userId: string + storeItemId: string +} + +export type UserStoreItemCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + storeItemId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserStoreItemMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + storeItemId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserStoreItemMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + storeItemId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserStoreItemCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.UserStoreItemCreateWithoutUserInput[] | Prisma.UserStoreItemUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserStoreItemCreateOrConnectWithoutUserInput | Prisma.UserStoreItemCreateOrConnectWithoutUserInput[] + createMany?: Prisma.UserStoreItemCreateManyUserInputEnvelope + connect?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] +} + +export type UserStoreItemUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.UserStoreItemCreateWithoutUserInput[] | Prisma.UserStoreItemUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserStoreItemCreateOrConnectWithoutUserInput | Prisma.UserStoreItemCreateOrConnectWithoutUserInput[] + createMany?: Prisma.UserStoreItemCreateManyUserInputEnvelope + connect?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] +} + +export type UserStoreItemUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.UserStoreItemCreateWithoutUserInput[] | Prisma.UserStoreItemUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserStoreItemCreateOrConnectWithoutUserInput | Prisma.UserStoreItemCreateOrConnectWithoutUserInput[] + upsert?: Prisma.UserStoreItemUpsertWithWhereUniqueWithoutUserInput | Prisma.UserStoreItemUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.UserStoreItemCreateManyUserInputEnvelope + set?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] + disconnect?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] + delete?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] + connect?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] + update?: Prisma.UserStoreItemUpdateWithWhereUniqueWithoutUserInput | Prisma.UserStoreItemUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.UserStoreItemUpdateManyWithWhereWithoutUserInput | Prisma.UserStoreItemUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.UserStoreItemScalarWhereInput | Prisma.UserStoreItemScalarWhereInput[] +} + +export type UserStoreItemUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.UserStoreItemCreateWithoutUserInput[] | Prisma.UserStoreItemUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.UserStoreItemCreateOrConnectWithoutUserInput | Prisma.UserStoreItemCreateOrConnectWithoutUserInput[] + upsert?: Prisma.UserStoreItemUpsertWithWhereUniqueWithoutUserInput | Prisma.UserStoreItemUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.UserStoreItemCreateManyUserInputEnvelope + set?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] + disconnect?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] + delete?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] + connect?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] + update?: Prisma.UserStoreItemUpdateWithWhereUniqueWithoutUserInput | Prisma.UserStoreItemUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.UserStoreItemUpdateManyWithWhereWithoutUserInput | Prisma.UserStoreItemUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.UserStoreItemScalarWhereInput | Prisma.UserStoreItemScalarWhereInput[] +} + +export type UserStoreItemCreateNestedManyWithoutStoreItemInput = { + create?: Prisma.XOR | Prisma.UserStoreItemCreateWithoutStoreItemInput[] | Prisma.UserStoreItemUncheckedCreateWithoutStoreItemInput[] + connectOrCreate?: Prisma.UserStoreItemCreateOrConnectWithoutStoreItemInput | Prisma.UserStoreItemCreateOrConnectWithoutStoreItemInput[] + createMany?: Prisma.UserStoreItemCreateManyStoreItemInputEnvelope + connect?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] +} + +export type UserStoreItemUncheckedCreateNestedManyWithoutStoreItemInput = { + create?: Prisma.XOR | Prisma.UserStoreItemCreateWithoutStoreItemInput[] | Prisma.UserStoreItemUncheckedCreateWithoutStoreItemInput[] + connectOrCreate?: Prisma.UserStoreItemCreateOrConnectWithoutStoreItemInput | Prisma.UserStoreItemCreateOrConnectWithoutStoreItemInput[] + createMany?: Prisma.UserStoreItemCreateManyStoreItemInputEnvelope + connect?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] +} + +export type UserStoreItemUpdateManyWithoutStoreItemNestedInput = { + create?: Prisma.XOR | Prisma.UserStoreItemCreateWithoutStoreItemInput[] | Prisma.UserStoreItemUncheckedCreateWithoutStoreItemInput[] + connectOrCreate?: Prisma.UserStoreItemCreateOrConnectWithoutStoreItemInput | Prisma.UserStoreItemCreateOrConnectWithoutStoreItemInput[] + upsert?: Prisma.UserStoreItemUpsertWithWhereUniqueWithoutStoreItemInput | Prisma.UserStoreItemUpsertWithWhereUniqueWithoutStoreItemInput[] + createMany?: Prisma.UserStoreItemCreateManyStoreItemInputEnvelope + set?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] + disconnect?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] + delete?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] + connect?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] + update?: Prisma.UserStoreItemUpdateWithWhereUniqueWithoutStoreItemInput | Prisma.UserStoreItemUpdateWithWhereUniqueWithoutStoreItemInput[] + updateMany?: Prisma.UserStoreItemUpdateManyWithWhereWithoutStoreItemInput | Prisma.UserStoreItemUpdateManyWithWhereWithoutStoreItemInput[] + deleteMany?: Prisma.UserStoreItemScalarWhereInput | Prisma.UserStoreItemScalarWhereInput[] +} + +export type UserStoreItemUncheckedUpdateManyWithoutStoreItemNestedInput = { + create?: Prisma.XOR | Prisma.UserStoreItemCreateWithoutStoreItemInput[] | Prisma.UserStoreItemUncheckedCreateWithoutStoreItemInput[] + connectOrCreate?: Prisma.UserStoreItemCreateOrConnectWithoutStoreItemInput | Prisma.UserStoreItemCreateOrConnectWithoutStoreItemInput[] + upsert?: Prisma.UserStoreItemUpsertWithWhereUniqueWithoutStoreItemInput | Prisma.UserStoreItemUpsertWithWhereUniqueWithoutStoreItemInput[] + createMany?: Prisma.UserStoreItemCreateManyStoreItemInputEnvelope + set?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] + disconnect?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] + delete?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] + connect?: Prisma.UserStoreItemWhereUniqueInput | Prisma.UserStoreItemWhereUniqueInput[] + update?: Prisma.UserStoreItemUpdateWithWhereUniqueWithoutStoreItemInput | Prisma.UserStoreItemUpdateWithWhereUniqueWithoutStoreItemInput[] + updateMany?: Prisma.UserStoreItemUpdateManyWithWhereWithoutStoreItemInput | Prisma.UserStoreItemUpdateManyWithWhereWithoutStoreItemInput[] + deleteMany?: Prisma.UserStoreItemScalarWhereInput | Prisma.UserStoreItemScalarWhereInput[] +} + +export type UserStoreItemCreateWithoutUserInput = { + id?: string + createdAt?: Date | string + storeItem: Prisma.StoreItemCreateNestedOneWithoutUsersInput +} + +export type UserStoreItemUncheckedCreateWithoutUserInput = { + id?: string + storeItemId: string + createdAt?: Date | string +} + +export type UserStoreItemCreateOrConnectWithoutUserInput = { + where: Prisma.UserStoreItemWhereUniqueInput + create: Prisma.XOR +} + +export type UserStoreItemCreateManyUserInputEnvelope = { + data: Prisma.UserStoreItemCreateManyUserInput | Prisma.UserStoreItemCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type UserStoreItemUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.UserStoreItemWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type UserStoreItemUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.UserStoreItemWhereUniqueInput + data: Prisma.XOR +} + +export type UserStoreItemUpdateManyWithWhereWithoutUserInput = { + where: Prisma.UserStoreItemScalarWhereInput + data: Prisma.XOR +} + +export type UserStoreItemScalarWhereInput = { + AND?: Prisma.UserStoreItemScalarWhereInput | Prisma.UserStoreItemScalarWhereInput[] + OR?: Prisma.UserStoreItemScalarWhereInput[] + NOT?: Prisma.UserStoreItemScalarWhereInput | Prisma.UserStoreItemScalarWhereInput[] + id?: Prisma.StringFilter<"UserStoreItem"> | string + userId?: Prisma.StringFilter<"UserStoreItem"> | string + storeItemId?: Prisma.StringFilter<"UserStoreItem"> | string + createdAt?: Prisma.DateTimeFilter<"UserStoreItem"> | Date | string +} + +export type UserStoreItemCreateWithoutStoreItemInput = { + id?: string + createdAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutUserStoreItemsInput +} + +export type UserStoreItemUncheckedCreateWithoutStoreItemInput = { + id?: string + userId: string + createdAt?: Date | string +} + +export type UserStoreItemCreateOrConnectWithoutStoreItemInput = { + where: Prisma.UserStoreItemWhereUniqueInput + create: Prisma.XOR +} + +export type UserStoreItemCreateManyStoreItemInputEnvelope = { + data: Prisma.UserStoreItemCreateManyStoreItemInput | Prisma.UserStoreItemCreateManyStoreItemInput[] + skipDuplicates?: boolean +} + +export type UserStoreItemUpsertWithWhereUniqueWithoutStoreItemInput = { + where: Prisma.UserStoreItemWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type UserStoreItemUpdateWithWhereUniqueWithoutStoreItemInput = { + where: Prisma.UserStoreItemWhereUniqueInput + data: Prisma.XOR +} + +export type UserStoreItemUpdateManyWithWhereWithoutStoreItemInput = { + where: Prisma.UserStoreItemScalarWhereInput + data: Prisma.XOR +} + +export type UserStoreItemCreateManyUserInput = { + id?: string + storeItemId: string + createdAt?: Date | string +} + +export type UserStoreItemUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + storeItem?: Prisma.StoreItemUpdateOneRequiredWithoutUsersNestedInput +} + +export type UserStoreItemUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + storeItemId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserStoreItemUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + storeItemId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserStoreItemCreateManyStoreItemInput = { + id?: string + userId: string + createdAt?: Date | string +} + +export type UserStoreItemUpdateWithoutStoreItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutUserStoreItemsNestedInput +} + +export type UserStoreItemUncheckedUpdateWithoutStoreItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserStoreItemUncheckedUpdateManyWithoutStoreItemInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type UserStoreItemSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + storeItemId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + storeItem?: boolean | Prisma.StoreItemDefaultArgs +}, ExtArgs["result"]["userStoreItem"]> + +export type UserStoreItemSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + storeItemId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + storeItem?: boolean | Prisma.StoreItemDefaultArgs +}, ExtArgs["result"]["userStoreItem"]> + +export type UserStoreItemSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + storeItemId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + storeItem?: boolean | Prisma.StoreItemDefaultArgs +}, ExtArgs["result"]["userStoreItem"]> + +export type UserStoreItemSelectScalar = { + id?: boolean + userId?: boolean + storeItemId?: boolean + createdAt?: boolean +} + +export type UserStoreItemOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "storeItemId" | "createdAt", ExtArgs["result"]["userStoreItem"]> +export type UserStoreItemInclude = { + user?: boolean | Prisma.UserDefaultArgs + storeItem?: boolean | Prisma.StoreItemDefaultArgs +} +export type UserStoreItemIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + storeItem?: boolean | Prisma.StoreItemDefaultArgs +} +export type UserStoreItemIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + storeItem?: boolean | Prisma.StoreItemDefaultArgs +} + +export type $UserStoreItemPayload = { + name: "UserStoreItem" + objects: { + user: Prisma.$UserPayload + storeItem: Prisma.$StoreItemPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + userId: string + storeItemId: string + createdAt: Date + }, ExtArgs["result"]["userStoreItem"]> + composites: {} +} + +export type UserStoreItemGetPayload = runtime.Types.Result.GetResult + +export type UserStoreItemCountArgs = + Omit & { + select?: UserStoreItemCountAggregateInputType | true + } + +export interface UserStoreItemDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['UserStoreItem'], meta: { name: 'UserStoreItem' } } + /** + * Find zero or one UserStoreItem that matches the filter. + * @param {UserStoreItemFindUniqueArgs} args - Arguments to find a UserStoreItem + * @example + * // Get one UserStoreItem + * const userStoreItem = await prisma.userStoreItem.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserStoreItemClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one UserStoreItem that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {UserStoreItemFindUniqueOrThrowArgs} args - Arguments to find a UserStoreItem + * @example + * // Get one UserStoreItem + * const userStoreItem = await prisma.userStoreItem.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserStoreItemClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first UserStoreItem 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 {UserStoreItemFindFirstArgs} args - Arguments to find a UserStoreItem + * @example + * // Get one UserStoreItem + * const userStoreItem = await prisma.userStoreItem.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserStoreItemClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first UserStoreItem 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 {UserStoreItemFindFirstOrThrowArgs} args - Arguments to find a UserStoreItem + * @example + * // Get one UserStoreItem + * const userStoreItem = await prisma.userStoreItem.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserStoreItemClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more UserStoreItems 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 {UserStoreItemFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all UserStoreItems + * const userStoreItems = await prisma.userStoreItem.findMany() + * + * // Get first 10 UserStoreItems + * const userStoreItems = await prisma.userStoreItem.findMany({ take: 10 }) + * + * // Only select the `id` + * const userStoreItemWithIdOnly = await prisma.userStoreItem.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a UserStoreItem. + * @param {UserStoreItemCreateArgs} args - Arguments to create a UserStoreItem. + * @example + * // Create one UserStoreItem + * const UserStoreItem = await prisma.userStoreItem.create({ + * data: { + * // ... data to create a UserStoreItem + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__UserStoreItemClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many UserStoreItems. + * @param {UserStoreItemCreateManyArgs} args - Arguments to create many UserStoreItems. + * @example + * // Create many UserStoreItems + * const userStoreItem = await prisma.userStoreItem.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many UserStoreItems and returns the data saved in the database. + * @param {UserStoreItemCreateManyAndReturnArgs} args - Arguments to create many UserStoreItems. + * @example + * // Create many UserStoreItems + * const userStoreItem = await prisma.userStoreItem.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many UserStoreItems and only return the `id` + * const userStoreItemWithIdOnly = await prisma.userStoreItem.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a UserStoreItem. + * @param {UserStoreItemDeleteArgs} args - Arguments to delete one UserStoreItem. + * @example + * // Delete one UserStoreItem + * const UserStoreItem = await prisma.userStoreItem.delete({ + * where: { + * // ... filter to delete one UserStoreItem + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserStoreItemClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one UserStoreItem. + * @param {UserStoreItemUpdateArgs} args - Arguments to update one UserStoreItem. + * @example + * // Update one UserStoreItem + * const userStoreItem = await prisma.userStoreItem.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__UserStoreItemClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more UserStoreItems. + * @param {UserStoreItemDeleteManyArgs} args - Arguments to filter UserStoreItems to delete. + * @example + * // Delete a few UserStoreItems + * const { count } = await prisma.userStoreItem.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more UserStoreItems. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserStoreItemUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many UserStoreItems + * const userStoreItem = await prisma.userStoreItem.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more UserStoreItems and returns the data updated in the database. + * @param {UserStoreItemUpdateManyAndReturnArgs} args - Arguments to update many UserStoreItems. + * @example + * // Update many UserStoreItems + * const userStoreItem = await prisma.userStoreItem.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more UserStoreItems and only return the `id` + * const userStoreItemWithIdOnly = await prisma.userStoreItem.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one UserStoreItem. + * @param {UserStoreItemUpsertArgs} args - Arguments to update or create a UserStoreItem. + * @example + * // Update or create a UserStoreItem + * const userStoreItem = await prisma.userStoreItem.upsert({ + * create: { + * // ... data to create a UserStoreItem + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the UserStoreItem we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserStoreItemClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of UserStoreItems. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserStoreItemCountArgs} args - Arguments to filter UserStoreItems to count. + * @example + * // Count the number of UserStoreItems + * const count = await prisma.userStoreItem.count({ + * where: { + * // ... the filter for the UserStoreItems we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a UserStoreItem. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserStoreItemAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by UserStoreItem. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserStoreItemGroupByArgs} 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 UserStoreItemGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: UserStoreItemGroupByArgs['orderBy'] } + : { orderBy?: UserStoreItemGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetUserStoreItemGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the UserStoreItem model + */ +readonly fields: UserStoreItemFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for UserStoreItem. + * 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__UserStoreItemClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + storeItem = {}>(args?: Prisma.Subset>): Prisma.Prisma__StoreItemClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the UserStoreItem model + */ +export interface UserStoreItemFieldRefs { + readonly id: Prisma.FieldRef<"UserStoreItem", 'String'> + readonly userId: Prisma.FieldRef<"UserStoreItem", 'String'> + readonly storeItemId: Prisma.FieldRef<"UserStoreItem", 'String'> + readonly createdAt: Prisma.FieldRef<"UserStoreItem", 'DateTime'> +} + + +// Custom InputTypes +/** + * UserStoreItem findUnique + */ +export type UserStoreItemFindUniqueArgs = { + /** + * Select specific fields to fetch from the UserStoreItem + */ + select?: Prisma.UserStoreItemSelect | null + /** + * Omit specific fields from the UserStoreItem + */ + omit?: Prisma.UserStoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreItemInclude | null + /** + * Filter, which UserStoreItem to fetch. + */ + where: Prisma.UserStoreItemWhereUniqueInput +} + +/** + * UserStoreItem findUniqueOrThrow + */ +export type UserStoreItemFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the UserStoreItem + */ + select?: Prisma.UserStoreItemSelect | null + /** + * Omit specific fields from the UserStoreItem + */ + omit?: Prisma.UserStoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreItemInclude | null + /** + * Filter, which UserStoreItem to fetch. + */ + where: Prisma.UserStoreItemWhereUniqueInput +} + +/** + * UserStoreItem findFirst + */ +export type UserStoreItemFindFirstArgs = { + /** + * Select specific fields to fetch from the UserStoreItem + */ + select?: Prisma.UserStoreItemSelect | null + /** + * Omit specific fields from the UserStoreItem + */ + omit?: Prisma.UserStoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreItemInclude | null + /** + * Filter, which UserStoreItem to fetch. + */ + where?: Prisma.UserStoreItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserStoreItems to fetch. + */ + orderBy?: Prisma.UserStoreItemOrderByWithRelationInput | Prisma.UserStoreItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for UserStoreItems. + */ + cursor?: Prisma.UserStoreItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserStoreItems 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` UserStoreItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of UserStoreItems. + */ + distinct?: Prisma.UserStoreItemScalarFieldEnum | Prisma.UserStoreItemScalarFieldEnum[] +} + +/** + * UserStoreItem findFirstOrThrow + */ +export type UserStoreItemFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the UserStoreItem + */ + select?: Prisma.UserStoreItemSelect | null + /** + * Omit specific fields from the UserStoreItem + */ + omit?: Prisma.UserStoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreItemInclude | null + /** + * Filter, which UserStoreItem to fetch. + */ + where?: Prisma.UserStoreItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserStoreItems to fetch. + */ + orderBy?: Prisma.UserStoreItemOrderByWithRelationInput | Prisma.UserStoreItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for UserStoreItems. + */ + cursor?: Prisma.UserStoreItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserStoreItems 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` UserStoreItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of UserStoreItems. + */ + distinct?: Prisma.UserStoreItemScalarFieldEnum | Prisma.UserStoreItemScalarFieldEnum[] +} + +/** + * UserStoreItem findMany + */ +export type UserStoreItemFindManyArgs = { + /** + * Select specific fields to fetch from the UserStoreItem + */ + select?: Prisma.UserStoreItemSelect | null + /** + * Omit specific fields from the UserStoreItem + */ + omit?: Prisma.UserStoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreItemInclude | null + /** + * Filter, which UserStoreItems to fetch. + */ + where?: Prisma.UserStoreItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserStoreItems to fetch. + */ + orderBy?: Prisma.UserStoreItemOrderByWithRelationInput | Prisma.UserStoreItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing UserStoreItems. + */ + cursor?: Prisma.UserStoreItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserStoreItems 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` UserStoreItems. + */ + skip?: number + distinct?: Prisma.UserStoreItemScalarFieldEnum | Prisma.UserStoreItemScalarFieldEnum[] +} + +/** + * UserStoreItem create + */ +export type UserStoreItemCreateArgs = { + /** + * Select specific fields to fetch from the UserStoreItem + */ + select?: Prisma.UserStoreItemSelect | null + /** + * Omit specific fields from the UserStoreItem + */ + omit?: Prisma.UserStoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreItemInclude | null + /** + * The data needed to create a UserStoreItem. + */ + data: Prisma.XOR +} + +/** + * UserStoreItem createMany + */ +export type UserStoreItemCreateManyArgs = { + /** + * The data used to create many UserStoreItems. + */ + data: Prisma.UserStoreItemCreateManyInput | Prisma.UserStoreItemCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * UserStoreItem createManyAndReturn + */ +export type UserStoreItemCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the UserStoreItem + */ + select?: Prisma.UserStoreItemSelectCreateManyAndReturn | null + /** + * Omit specific fields from the UserStoreItem + */ + omit?: Prisma.UserStoreItemOmit | null + /** + * The data used to create many UserStoreItems. + */ + data: Prisma.UserStoreItemCreateManyInput | Prisma.UserStoreItemCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreItemIncludeCreateManyAndReturn | null +} + +/** + * UserStoreItem update + */ +export type UserStoreItemUpdateArgs = { + /** + * Select specific fields to fetch from the UserStoreItem + */ + select?: Prisma.UserStoreItemSelect | null + /** + * Omit specific fields from the UserStoreItem + */ + omit?: Prisma.UserStoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreItemInclude | null + /** + * The data needed to update a UserStoreItem. + */ + data: Prisma.XOR + /** + * Choose, which UserStoreItem to update. + */ + where: Prisma.UserStoreItemWhereUniqueInput +} + +/** + * UserStoreItem updateMany + */ +export type UserStoreItemUpdateManyArgs = { + /** + * The data used to update UserStoreItems. + */ + data: Prisma.XOR + /** + * Filter which UserStoreItems to update + */ + where?: Prisma.UserStoreItemWhereInput + /** + * Limit how many UserStoreItems to update. + */ + limit?: number +} + +/** + * UserStoreItem updateManyAndReturn + */ +export type UserStoreItemUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the UserStoreItem + */ + select?: Prisma.UserStoreItemSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the UserStoreItem + */ + omit?: Prisma.UserStoreItemOmit | null + /** + * The data used to update UserStoreItems. + */ + data: Prisma.XOR + /** + * Filter which UserStoreItems to update + */ + where?: Prisma.UserStoreItemWhereInput + /** + * Limit how many UserStoreItems to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreItemIncludeUpdateManyAndReturn | null +} + +/** + * UserStoreItem upsert + */ +export type UserStoreItemUpsertArgs = { + /** + * Select specific fields to fetch from the UserStoreItem + */ + select?: Prisma.UserStoreItemSelect | null + /** + * Omit specific fields from the UserStoreItem + */ + omit?: Prisma.UserStoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreItemInclude | null + /** + * The filter to search for the UserStoreItem to update in case it exists. + */ + where: Prisma.UserStoreItemWhereUniqueInput + /** + * In case the UserStoreItem found by the `where` argument doesn't exist, create a new UserStoreItem with this data. + */ + create: Prisma.XOR + /** + * In case the UserStoreItem was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * UserStoreItem delete + */ +export type UserStoreItemDeleteArgs = { + /** + * Select specific fields to fetch from the UserStoreItem + */ + select?: Prisma.UserStoreItemSelect | null + /** + * Omit specific fields from the UserStoreItem + */ + omit?: Prisma.UserStoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreItemInclude | null + /** + * Filter which UserStoreItem to delete. + */ + where: Prisma.UserStoreItemWhereUniqueInput +} + +/** + * UserStoreItem deleteMany + */ +export type UserStoreItemDeleteManyArgs = { + /** + * Filter which UserStoreItems to delete + */ + where?: Prisma.UserStoreItemWhereInput + /** + * Limit how many UserStoreItems to delete. + */ + limit?: number +} + +/** + * UserStoreItem without action + */ +export type UserStoreItemDefaultArgs = { + /** + * Select specific fields to fetch from the UserStoreItem + */ + select?: Prisma.UserStoreItemSelect | null + /** + * Omit specific fields from the UserStoreItem + */ + omit?: Prisma.UserStoreItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserStoreItemInclude | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/Verification.ts b/apps/backend/prisma/generated/generated/prisma/models/Verification.ts new file mode 100644 index 00000000..d949829d --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/Verification.ts @@ -0,0 +1,1178 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Verification` 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 Verification + * + */ +export type VerificationModel = runtime.Types.Result.DefaultSelection + +export type AggregateVerification = { + _count: VerificationCountAggregateOutputType | null + _min: VerificationMinAggregateOutputType | null + _max: VerificationMaxAggregateOutputType | null +} + +export type VerificationMinAggregateOutputType = { + id: string | null + identifier: string | null + value: string | null + expiresAt: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type VerificationMaxAggregateOutputType = { + id: string | null + identifier: string | null + value: string | null + expiresAt: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type VerificationCountAggregateOutputType = { + id: number + identifier: number + value: number + expiresAt: number + createdAt: number + updatedAt: number + _all: number +} + + +export type VerificationMinAggregateInputType = { + id?: true + identifier?: true + value?: true + expiresAt?: true + createdAt?: true + updatedAt?: true +} + +export type VerificationMaxAggregateInputType = { + id?: true + identifier?: true + value?: true + expiresAt?: true + createdAt?: true + updatedAt?: true +} + +export type VerificationCountAggregateInputType = { + id?: true + identifier?: true + value?: true + expiresAt?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type VerificationAggregateArgs = { + /** + * Filter which Verification to aggregate. + */ + where?: Prisma.VerificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Verifications to fetch. + */ + orderBy?: Prisma.VerificationOrderByWithRelationInput | Prisma.VerificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.VerificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Verifications 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` Verifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Verifications + **/ + _count?: true | VerificationCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: VerificationMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: VerificationMaxAggregateInputType +} + +export type GetVerificationAggregateType = { + [P in keyof T & keyof AggregateVerification]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type VerificationGroupByArgs = { + where?: Prisma.VerificationWhereInput + orderBy?: Prisma.VerificationOrderByWithAggregationInput | Prisma.VerificationOrderByWithAggregationInput[] + by: Prisma.VerificationScalarFieldEnum[] | Prisma.VerificationScalarFieldEnum + having?: Prisma.VerificationScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: VerificationCountAggregateInputType | true + _min?: VerificationMinAggregateInputType + _max?: VerificationMaxAggregateInputType +} + +export type VerificationGroupByOutputType = { + id: string + identifier: string + value: string + expiresAt: Date + createdAt: Date + updatedAt: Date + _count: VerificationCountAggregateOutputType | null + _min: VerificationMinAggregateOutputType | null + _max: VerificationMaxAggregateOutputType | null +} + +type GetVerificationGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof VerificationGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type VerificationWhereInput = { + AND?: Prisma.VerificationWhereInput | Prisma.VerificationWhereInput[] + OR?: Prisma.VerificationWhereInput[] + NOT?: Prisma.VerificationWhereInput | Prisma.VerificationWhereInput[] + id?: Prisma.StringFilter<"Verification"> | string + identifier?: Prisma.StringFilter<"Verification"> | string + value?: Prisma.StringFilter<"Verification"> | string + expiresAt?: Prisma.DateTimeFilter<"Verification"> | Date | string + createdAt?: Prisma.DateTimeFilter<"Verification"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Verification"> | Date | string +} + +export type VerificationOrderByWithRelationInput = { + id?: Prisma.SortOrder + identifier?: Prisma.SortOrder + value?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type VerificationWhereUniqueInput = Prisma.AtLeast<{ + id?: string + identifier_value?: Prisma.VerificationIdentifierValueCompoundUniqueInput + AND?: Prisma.VerificationWhereInput | Prisma.VerificationWhereInput[] + OR?: Prisma.VerificationWhereInput[] + NOT?: Prisma.VerificationWhereInput | Prisma.VerificationWhereInput[] + identifier?: Prisma.StringFilter<"Verification"> | string + value?: Prisma.StringFilter<"Verification"> | string + expiresAt?: Prisma.DateTimeFilter<"Verification"> | Date | string + createdAt?: Prisma.DateTimeFilter<"Verification"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Verification"> | Date | string +}, "id" | "identifier_value"> + +export type VerificationOrderByWithAggregationInput = { + id?: Prisma.SortOrder + identifier?: Prisma.SortOrder + value?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.VerificationCountOrderByAggregateInput + _max?: Prisma.VerificationMaxOrderByAggregateInput + _min?: Prisma.VerificationMinOrderByAggregateInput +} + +export type VerificationScalarWhereWithAggregatesInput = { + AND?: Prisma.VerificationScalarWhereWithAggregatesInput | Prisma.VerificationScalarWhereWithAggregatesInput[] + OR?: Prisma.VerificationScalarWhereWithAggregatesInput[] + NOT?: Prisma.VerificationScalarWhereWithAggregatesInput | Prisma.VerificationScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Verification"> | string + identifier?: Prisma.StringWithAggregatesFilter<"Verification"> | string + value?: Prisma.StringWithAggregatesFilter<"Verification"> | string + expiresAt?: Prisma.DateTimeWithAggregatesFilter<"Verification"> | Date | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Verification"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Verification"> | Date | string +} + +export type VerificationCreateInput = { + id?: string + identifier: string + value: string + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type VerificationUncheckedCreateInput = { + id?: string + identifier: string + value: string + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type VerificationUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + identifier?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type VerificationUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + identifier?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type VerificationCreateManyInput = { + id?: string + identifier: string + value: string + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type VerificationUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + identifier?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type VerificationUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + identifier?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type VerificationIdentifierValueCompoundUniqueInput = { + identifier: string + value: string +} + +export type VerificationCountOrderByAggregateInput = { + id?: Prisma.SortOrder + identifier?: Prisma.SortOrder + value?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type VerificationMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + identifier?: Prisma.SortOrder + value?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type VerificationMinOrderByAggregateInput = { + id?: Prisma.SortOrder + identifier?: Prisma.SortOrder + value?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + + + +export type VerificationSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + identifier?: boolean + value?: boolean + expiresAt?: boolean + createdAt?: boolean + updatedAt?: boolean +}, ExtArgs["result"]["verification"]> + +export type VerificationSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + identifier?: boolean + value?: boolean + expiresAt?: boolean + createdAt?: boolean + updatedAt?: boolean +}, ExtArgs["result"]["verification"]> + +export type VerificationSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + identifier?: boolean + value?: boolean + expiresAt?: boolean + createdAt?: boolean + updatedAt?: boolean +}, ExtArgs["result"]["verification"]> + +export type VerificationSelectScalar = { + id?: boolean + identifier?: boolean + value?: boolean + expiresAt?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type VerificationOmit = runtime.Types.Extensions.GetOmit<"id" | "identifier" | "value" | "expiresAt" | "createdAt" | "updatedAt", ExtArgs["result"]["verification"]> + +export type $VerificationPayload = { + name: "Verification" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + identifier: string + value: string + expiresAt: Date + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["verification"]> + composites: {} +} + +export type VerificationGetPayload = runtime.Types.Result.GetResult + +export type VerificationCountArgs = + Omit & { + select?: VerificationCountAggregateInputType | true + } + +export interface VerificationDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Verification'], meta: { name: 'Verification' } } + /** + * Find zero or one Verification that matches the filter. + * @param {VerificationFindUniqueArgs} args - Arguments to find a Verification + * @example + * // Get one Verification + * const verification = await prisma.verification.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Verification that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {VerificationFindUniqueOrThrowArgs} args - Arguments to find a Verification + * @example + * // Get one Verification + * const verification = await prisma.verification.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Verification 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 {VerificationFindFirstArgs} args - Arguments to find a Verification + * @example + * // Get one Verification + * const verification = await prisma.verification.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__VerificationClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Verification 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 {VerificationFindFirstOrThrowArgs} args - Arguments to find a Verification + * @example + * // Get one Verification + * const verification = await prisma.verification.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__VerificationClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Verifications 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 {VerificationFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Verifications + * const verifications = await prisma.verification.findMany() + * + * // Get first 10 Verifications + * const verifications = await prisma.verification.findMany({ take: 10 }) + * + * // Only select the `id` + * const verificationWithIdOnly = await prisma.verification.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Verification. + * @param {VerificationCreateArgs} args - Arguments to create a Verification. + * @example + * // Create one Verification + * const Verification = await prisma.verification.create({ + * data: { + * // ... data to create a Verification + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Verifications. + * @param {VerificationCreateManyArgs} args - Arguments to create many Verifications. + * @example + * // Create many Verifications + * const verification = await prisma.verification.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Verifications and returns the data saved in the database. + * @param {VerificationCreateManyAndReturnArgs} args - Arguments to create many Verifications. + * @example + * // Create many Verifications + * const verification = await prisma.verification.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Verifications and only return the `id` + * const verificationWithIdOnly = await prisma.verification.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Verification. + * @param {VerificationDeleteArgs} args - Arguments to delete one Verification. + * @example + * // Delete one Verification + * const Verification = await prisma.verification.delete({ + * where: { + * // ... filter to delete one Verification + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Verification. + * @param {VerificationUpdateArgs} args - Arguments to update one Verification. + * @example + * // Update one Verification + * const verification = await prisma.verification.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Verifications. + * @param {VerificationDeleteManyArgs} args - Arguments to filter Verifications to delete. + * @example + * // Delete a few Verifications + * const { count } = await prisma.verification.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Verifications. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VerificationUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Verifications + * const verification = await prisma.verification.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Verifications and returns the data updated in the database. + * @param {VerificationUpdateManyAndReturnArgs} args - Arguments to update many Verifications. + * @example + * // Update many Verifications + * const verification = await prisma.verification.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Verifications and only return the `id` + * const verificationWithIdOnly = await prisma.verification.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Verification. + * @param {VerificationUpsertArgs} args - Arguments to update or create a Verification. + * @example + * // Update or create a Verification + * const verification = await prisma.verification.upsert({ + * create: { + * // ... data to create a Verification + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Verification we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Verifications. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VerificationCountArgs} args - Arguments to filter Verifications to count. + * @example + * // Count the number of Verifications + * const count = await prisma.verification.count({ + * where: { + * // ... the filter for the Verifications we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Verification. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VerificationAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Verification. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VerificationGroupByArgs} 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 VerificationGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: VerificationGroupByArgs['orderBy'] } + : { orderBy?: VerificationGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetVerificationGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Verification model + */ +readonly fields: VerificationFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Verification. + * 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__VerificationClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + /** + * 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the Verification model + */ +export interface VerificationFieldRefs { + readonly id: Prisma.FieldRef<"Verification", 'String'> + readonly identifier: Prisma.FieldRef<"Verification", 'String'> + readonly value: Prisma.FieldRef<"Verification", 'String'> + readonly expiresAt: Prisma.FieldRef<"Verification", 'DateTime'> + readonly createdAt: Prisma.FieldRef<"Verification", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Verification", 'DateTime'> +} + + +// Custom InputTypes +/** + * Verification findUnique + */ +export type VerificationFindUniqueArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter, which Verification to fetch. + */ + where: Prisma.VerificationWhereUniqueInput +} + +/** + * Verification findUniqueOrThrow + */ +export type VerificationFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter, which Verification to fetch. + */ + where: Prisma.VerificationWhereUniqueInput +} + +/** + * Verification findFirst + */ +export type VerificationFindFirstArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter, which Verification to fetch. + */ + where?: Prisma.VerificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Verifications to fetch. + */ + orderBy?: Prisma.VerificationOrderByWithRelationInput | Prisma.VerificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Verifications. + */ + cursor?: Prisma.VerificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Verifications 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` Verifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Verifications. + */ + distinct?: Prisma.VerificationScalarFieldEnum | Prisma.VerificationScalarFieldEnum[] +} + +/** + * Verification findFirstOrThrow + */ +export type VerificationFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter, which Verification to fetch. + */ + where?: Prisma.VerificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Verifications to fetch. + */ + orderBy?: Prisma.VerificationOrderByWithRelationInput | Prisma.VerificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Verifications. + */ + cursor?: Prisma.VerificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Verifications 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` Verifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Verifications. + */ + distinct?: Prisma.VerificationScalarFieldEnum | Prisma.VerificationScalarFieldEnum[] +} + +/** + * Verification findMany + */ +export type VerificationFindManyArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter, which Verifications to fetch. + */ + where?: Prisma.VerificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Verifications to fetch. + */ + orderBy?: Prisma.VerificationOrderByWithRelationInput | Prisma.VerificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Verifications. + */ + cursor?: Prisma.VerificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Verifications 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` Verifications. + */ + skip?: number + distinct?: Prisma.VerificationScalarFieldEnum | Prisma.VerificationScalarFieldEnum[] +} + +/** + * Verification create + */ +export type VerificationCreateArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * The data needed to create a Verification. + */ + data: Prisma.XOR +} + +/** + * Verification createMany + */ +export type VerificationCreateManyArgs = { + /** + * The data used to create many Verifications. + */ + data: Prisma.VerificationCreateManyInput | Prisma.VerificationCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Verification createManyAndReturn + */ +export type VerificationCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * The data used to create many Verifications. + */ + data: Prisma.VerificationCreateManyInput | Prisma.VerificationCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Verification update + */ +export type VerificationUpdateArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * The data needed to update a Verification. + */ + data: Prisma.XOR + /** + * Choose, which Verification to update. + */ + where: Prisma.VerificationWhereUniqueInput +} + +/** + * Verification updateMany + */ +export type VerificationUpdateManyArgs = { + /** + * The data used to update Verifications. + */ + data: Prisma.XOR + /** + * Filter which Verifications to update + */ + where?: Prisma.VerificationWhereInput + /** + * Limit how many Verifications to update. + */ + limit?: number +} + +/** + * Verification updateManyAndReturn + */ +export type VerificationUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * The data used to update Verifications. + */ + data: Prisma.XOR + /** + * Filter which Verifications to update + */ + where?: Prisma.VerificationWhereInput + /** + * Limit how many Verifications to update. + */ + limit?: number +} + +/** + * Verification upsert + */ +export type VerificationUpsertArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * The filter to search for the Verification to update in case it exists. + */ + where: Prisma.VerificationWhereUniqueInput + /** + * In case the Verification found by the `where` argument doesn't exist, create a new Verification with this data. + */ + create: Prisma.XOR + /** + * In case the Verification was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Verification delete + */ +export type VerificationDeleteArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter which Verification to delete. + */ + where: Prisma.VerificationWhereUniqueInput +} + +/** + * Verification deleteMany + */ +export type VerificationDeleteManyArgs = { + /** + * Filter which Verifications to delete + */ + where?: Prisma.VerificationWhereInput + /** + * Limit how many Verifications to delete. + */ + limit?: number +} + +/** + * Verification without action + */ +export type VerificationDefaultArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null +} diff --git a/apps/backend/prisma/generated/generated/prisma/models/WebPushSubscription.ts b/apps/backend/prisma/generated/generated/prisma/models/WebPushSubscription.ts new file mode 100644 index 00000000..f24c6f5c --- /dev/null +++ b/apps/backend/prisma/generated/generated/prisma/models/WebPushSubscription.ts @@ -0,0 +1,1515 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `WebPushSubscription` 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 WebPushSubscription + * + */ +export type WebPushSubscriptionModel = runtime.Types.Result.DefaultSelection + +export type AggregateWebPushSubscription = { + _count: WebPushSubscriptionCountAggregateOutputType | null + _min: WebPushSubscriptionMinAggregateOutputType | null + _max: WebPushSubscriptionMaxAggregateOutputType | null +} + +export type WebPushSubscriptionMinAggregateOutputType = { + id: string | null + userId: string | null + endpoint: string | null + p256dh: string | null + auth: string | null + userAgent: string | null + isActive: boolean | null + lastUsed: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type WebPushSubscriptionMaxAggregateOutputType = { + id: string | null + userId: string | null + endpoint: string | null + p256dh: string | null + auth: string | null + userAgent: string | null + isActive: boolean | null + lastUsed: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type WebPushSubscriptionCountAggregateOutputType = { + id: number + userId: number + endpoint: number + p256dh: number + auth: number + userAgent: number + isActive: number + lastUsed: number + createdAt: number + updatedAt: number + _all: number +} + + +export type WebPushSubscriptionMinAggregateInputType = { + id?: true + userId?: true + endpoint?: true + p256dh?: true + auth?: true + userAgent?: true + isActive?: true + lastUsed?: true + createdAt?: true + updatedAt?: true +} + +export type WebPushSubscriptionMaxAggregateInputType = { + id?: true + userId?: true + endpoint?: true + p256dh?: true + auth?: true + userAgent?: true + isActive?: true + lastUsed?: true + createdAt?: true + updatedAt?: true +} + +export type WebPushSubscriptionCountAggregateInputType = { + id?: true + userId?: true + endpoint?: true + p256dh?: true + auth?: true + userAgent?: true + isActive?: true + lastUsed?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type WebPushSubscriptionAggregateArgs = { + /** + * Filter which WebPushSubscription to aggregate. + */ + where?: Prisma.WebPushSubscriptionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of WebPushSubscriptions to fetch. + */ + orderBy?: Prisma.WebPushSubscriptionOrderByWithRelationInput | Prisma.WebPushSubscriptionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.WebPushSubscriptionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` WebPushSubscriptions 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` WebPushSubscriptions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned WebPushSubscriptions + **/ + _count?: true | WebPushSubscriptionCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: WebPushSubscriptionMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: WebPushSubscriptionMaxAggregateInputType +} + +export type GetWebPushSubscriptionAggregateType = { + [P in keyof T & keyof AggregateWebPushSubscription]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type WebPushSubscriptionGroupByArgs = { + where?: Prisma.WebPushSubscriptionWhereInput + orderBy?: Prisma.WebPushSubscriptionOrderByWithAggregationInput | Prisma.WebPushSubscriptionOrderByWithAggregationInput[] + by: Prisma.WebPushSubscriptionScalarFieldEnum[] | Prisma.WebPushSubscriptionScalarFieldEnum + having?: Prisma.WebPushSubscriptionScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: WebPushSubscriptionCountAggregateInputType | true + _min?: WebPushSubscriptionMinAggregateInputType + _max?: WebPushSubscriptionMaxAggregateInputType +} + +export type WebPushSubscriptionGroupByOutputType = { + id: string + userId: string + endpoint: string + p256dh: string + auth: string + userAgent: string | null + isActive: boolean + lastUsed: Date + createdAt: Date + updatedAt: Date + _count: WebPushSubscriptionCountAggregateOutputType | null + _min: WebPushSubscriptionMinAggregateOutputType | null + _max: WebPushSubscriptionMaxAggregateOutputType | null +} + +type GetWebPushSubscriptionGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof WebPushSubscriptionGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type WebPushSubscriptionWhereInput = { + AND?: Prisma.WebPushSubscriptionWhereInput | Prisma.WebPushSubscriptionWhereInput[] + OR?: Prisma.WebPushSubscriptionWhereInput[] + NOT?: Prisma.WebPushSubscriptionWhereInput | Prisma.WebPushSubscriptionWhereInput[] + id?: Prisma.StringFilter<"WebPushSubscription"> | string + userId?: Prisma.StringFilter<"WebPushSubscription"> | string + endpoint?: Prisma.StringFilter<"WebPushSubscription"> | string + p256dh?: Prisma.StringFilter<"WebPushSubscription"> | string + auth?: Prisma.StringFilter<"WebPushSubscription"> | string + userAgent?: Prisma.StringNullableFilter<"WebPushSubscription"> | string | null + isActive?: Prisma.BoolFilter<"WebPushSubscription"> | boolean + lastUsed?: Prisma.DateTimeFilter<"WebPushSubscription"> | Date | string + createdAt?: Prisma.DateTimeFilter<"WebPushSubscription"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"WebPushSubscription"> | Date | string + user?: Prisma.XOR +} + +export type WebPushSubscriptionOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + endpoint?: Prisma.SortOrder + p256dh?: Prisma.SortOrder + auth?: Prisma.SortOrder + userAgent?: Prisma.SortOrderInput | Prisma.SortOrder + isActive?: Prisma.SortOrder + lastUsed?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput +} + +export type WebPushSubscriptionWhereUniqueInput = Prisma.AtLeast<{ + id?: string + endpoint?: string + AND?: Prisma.WebPushSubscriptionWhereInput | Prisma.WebPushSubscriptionWhereInput[] + OR?: Prisma.WebPushSubscriptionWhereInput[] + NOT?: Prisma.WebPushSubscriptionWhereInput | Prisma.WebPushSubscriptionWhereInput[] + userId?: Prisma.StringFilter<"WebPushSubscription"> | string + p256dh?: Prisma.StringFilter<"WebPushSubscription"> | string + auth?: Prisma.StringFilter<"WebPushSubscription"> | string + userAgent?: Prisma.StringNullableFilter<"WebPushSubscription"> | string | null + isActive?: Prisma.BoolFilter<"WebPushSubscription"> | boolean + lastUsed?: Prisma.DateTimeFilter<"WebPushSubscription"> | Date | string + createdAt?: Prisma.DateTimeFilter<"WebPushSubscription"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"WebPushSubscription"> | Date | string + user?: Prisma.XOR +}, "id" | "endpoint"> + +export type WebPushSubscriptionOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + endpoint?: Prisma.SortOrder + p256dh?: Prisma.SortOrder + auth?: Prisma.SortOrder + userAgent?: Prisma.SortOrderInput | Prisma.SortOrder + isActive?: Prisma.SortOrder + lastUsed?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.WebPushSubscriptionCountOrderByAggregateInput + _max?: Prisma.WebPushSubscriptionMaxOrderByAggregateInput + _min?: Prisma.WebPushSubscriptionMinOrderByAggregateInput +} + +export type WebPushSubscriptionScalarWhereWithAggregatesInput = { + AND?: Prisma.WebPushSubscriptionScalarWhereWithAggregatesInput | Prisma.WebPushSubscriptionScalarWhereWithAggregatesInput[] + OR?: Prisma.WebPushSubscriptionScalarWhereWithAggregatesInput[] + NOT?: Prisma.WebPushSubscriptionScalarWhereWithAggregatesInput | Prisma.WebPushSubscriptionScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"WebPushSubscription"> | string + userId?: Prisma.StringWithAggregatesFilter<"WebPushSubscription"> | string + endpoint?: Prisma.StringWithAggregatesFilter<"WebPushSubscription"> | string + p256dh?: Prisma.StringWithAggregatesFilter<"WebPushSubscription"> | string + auth?: Prisma.StringWithAggregatesFilter<"WebPushSubscription"> | string + userAgent?: Prisma.StringNullableWithAggregatesFilter<"WebPushSubscription"> | string | null + isActive?: Prisma.BoolWithAggregatesFilter<"WebPushSubscription"> | boolean + lastUsed?: Prisma.DateTimeWithAggregatesFilter<"WebPushSubscription"> | Date | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"WebPushSubscription"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"WebPushSubscription"> | Date | string +} + +export type WebPushSubscriptionCreateInput = { + id?: string + endpoint: string + p256dh: string + auth: string + userAgent?: string | null + isActive?: boolean + lastUsed?: Date | string + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutWebPushSubscriptionsInput +} + +export type WebPushSubscriptionUncheckedCreateInput = { + id?: string + userId: string + endpoint: string + p256dh: string + auth: string + userAgent?: string | null + isActive?: boolean + lastUsed?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type WebPushSubscriptionUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + endpoint?: Prisma.StringFieldUpdateOperationsInput | string + p256dh?: Prisma.StringFieldUpdateOperationsInput | string + auth?: Prisma.StringFieldUpdateOperationsInput | string + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean + lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutWebPushSubscriptionsNestedInput +} + +export type WebPushSubscriptionUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + endpoint?: Prisma.StringFieldUpdateOperationsInput | string + p256dh?: Prisma.StringFieldUpdateOperationsInput | string + auth?: Prisma.StringFieldUpdateOperationsInput | string + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean + lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type WebPushSubscriptionCreateManyInput = { + id?: string + userId: string + endpoint: string + p256dh: string + auth: string + userAgent?: string | null + isActive?: boolean + lastUsed?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type WebPushSubscriptionUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + endpoint?: Prisma.StringFieldUpdateOperationsInput | string + p256dh?: Prisma.StringFieldUpdateOperationsInput | string + auth?: Prisma.StringFieldUpdateOperationsInput | string + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean + lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type WebPushSubscriptionUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + endpoint?: Prisma.StringFieldUpdateOperationsInput | string + p256dh?: Prisma.StringFieldUpdateOperationsInput | string + auth?: Prisma.StringFieldUpdateOperationsInput | string + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean + lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type WebPushSubscriptionCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + endpoint?: Prisma.SortOrder + p256dh?: Prisma.SortOrder + auth?: Prisma.SortOrder + userAgent?: Prisma.SortOrder + isActive?: Prisma.SortOrder + lastUsed?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type WebPushSubscriptionMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + endpoint?: Prisma.SortOrder + p256dh?: Prisma.SortOrder + auth?: Prisma.SortOrder + userAgent?: Prisma.SortOrder + isActive?: Prisma.SortOrder + lastUsed?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type WebPushSubscriptionMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + endpoint?: Prisma.SortOrder + p256dh?: Prisma.SortOrder + auth?: Prisma.SortOrder + userAgent?: Prisma.SortOrder + isActive?: Prisma.SortOrder + lastUsed?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type WebPushSubscriptionListRelationFilter = { + every?: Prisma.WebPushSubscriptionWhereInput + some?: Prisma.WebPushSubscriptionWhereInput + none?: Prisma.WebPushSubscriptionWhereInput +} + +export type WebPushSubscriptionOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type WebPushSubscriptionCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.WebPushSubscriptionCreateWithoutUserInput[] | Prisma.WebPushSubscriptionUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.WebPushSubscriptionCreateOrConnectWithoutUserInput | Prisma.WebPushSubscriptionCreateOrConnectWithoutUserInput[] + createMany?: Prisma.WebPushSubscriptionCreateManyUserInputEnvelope + connect?: Prisma.WebPushSubscriptionWhereUniqueInput | Prisma.WebPushSubscriptionWhereUniqueInput[] +} + +export type WebPushSubscriptionUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.WebPushSubscriptionCreateWithoutUserInput[] | Prisma.WebPushSubscriptionUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.WebPushSubscriptionCreateOrConnectWithoutUserInput | Prisma.WebPushSubscriptionCreateOrConnectWithoutUserInput[] + createMany?: Prisma.WebPushSubscriptionCreateManyUserInputEnvelope + connect?: Prisma.WebPushSubscriptionWhereUniqueInput | Prisma.WebPushSubscriptionWhereUniqueInput[] +} + +export type WebPushSubscriptionUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.WebPushSubscriptionCreateWithoutUserInput[] | Prisma.WebPushSubscriptionUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.WebPushSubscriptionCreateOrConnectWithoutUserInput | Prisma.WebPushSubscriptionCreateOrConnectWithoutUserInput[] + upsert?: Prisma.WebPushSubscriptionUpsertWithWhereUniqueWithoutUserInput | Prisma.WebPushSubscriptionUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.WebPushSubscriptionCreateManyUserInputEnvelope + set?: Prisma.WebPushSubscriptionWhereUniqueInput | Prisma.WebPushSubscriptionWhereUniqueInput[] + disconnect?: Prisma.WebPushSubscriptionWhereUniqueInput | Prisma.WebPushSubscriptionWhereUniqueInput[] + delete?: Prisma.WebPushSubscriptionWhereUniqueInput | Prisma.WebPushSubscriptionWhereUniqueInput[] + connect?: Prisma.WebPushSubscriptionWhereUniqueInput | Prisma.WebPushSubscriptionWhereUniqueInput[] + update?: Prisma.WebPushSubscriptionUpdateWithWhereUniqueWithoutUserInput | Prisma.WebPushSubscriptionUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.WebPushSubscriptionUpdateManyWithWhereWithoutUserInput | Prisma.WebPushSubscriptionUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.WebPushSubscriptionScalarWhereInput | Prisma.WebPushSubscriptionScalarWhereInput[] +} + +export type WebPushSubscriptionUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.WebPushSubscriptionCreateWithoutUserInput[] | Prisma.WebPushSubscriptionUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.WebPushSubscriptionCreateOrConnectWithoutUserInput | Prisma.WebPushSubscriptionCreateOrConnectWithoutUserInput[] + upsert?: Prisma.WebPushSubscriptionUpsertWithWhereUniqueWithoutUserInput | Prisma.WebPushSubscriptionUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.WebPushSubscriptionCreateManyUserInputEnvelope + set?: Prisma.WebPushSubscriptionWhereUniqueInput | Prisma.WebPushSubscriptionWhereUniqueInput[] + disconnect?: Prisma.WebPushSubscriptionWhereUniqueInput | Prisma.WebPushSubscriptionWhereUniqueInput[] + delete?: Prisma.WebPushSubscriptionWhereUniqueInput | Prisma.WebPushSubscriptionWhereUniqueInput[] + connect?: Prisma.WebPushSubscriptionWhereUniqueInput | Prisma.WebPushSubscriptionWhereUniqueInput[] + update?: Prisma.WebPushSubscriptionUpdateWithWhereUniqueWithoutUserInput | Prisma.WebPushSubscriptionUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.WebPushSubscriptionUpdateManyWithWhereWithoutUserInput | Prisma.WebPushSubscriptionUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.WebPushSubscriptionScalarWhereInput | Prisma.WebPushSubscriptionScalarWhereInput[] +} + +export type WebPushSubscriptionCreateWithoutUserInput = { + id?: string + endpoint: string + p256dh: string + auth: string + userAgent?: string | null + isActive?: boolean + lastUsed?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type WebPushSubscriptionUncheckedCreateWithoutUserInput = { + id?: string + endpoint: string + p256dh: string + auth: string + userAgent?: string | null + isActive?: boolean + lastUsed?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type WebPushSubscriptionCreateOrConnectWithoutUserInput = { + where: Prisma.WebPushSubscriptionWhereUniqueInput + create: Prisma.XOR +} + +export type WebPushSubscriptionCreateManyUserInputEnvelope = { + data: Prisma.WebPushSubscriptionCreateManyUserInput | Prisma.WebPushSubscriptionCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type WebPushSubscriptionUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.WebPushSubscriptionWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type WebPushSubscriptionUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.WebPushSubscriptionWhereUniqueInput + data: Prisma.XOR +} + +export type WebPushSubscriptionUpdateManyWithWhereWithoutUserInput = { + where: Prisma.WebPushSubscriptionScalarWhereInput + data: Prisma.XOR +} + +export type WebPushSubscriptionScalarWhereInput = { + AND?: Prisma.WebPushSubscriptionScalarWhereInput | Prisma.WebPushSubscriptionScalarWhereInput[] + OR?: Prisma.WebPushSubscriptionScalarWhereInput[] + NOT?: Prisma.WebPushSubscriptionScalarWhereInput | Prisma.WebPushSubscriptionScalarWhereInput[] + id?: Prisma.StringFilter<"WebPushSubscription"> | string + userId?: Prisma.StringFilter<"WebPushSubscription"> | string + endpoint?: Prisma.StringFilter<"WebPushSubscription"> | string + p256dh?: Prisma.StringFilter<"WebPushSubscription"> | string + auth?: Prisma.StringFilter<"WebPushSubscription"> | string + userAgent?: Prisma.StringNullableFilter<"WebPushSubscription"> | string | null + isActive?: Prisma.BoolFilter<"WebPushSubscription"> | boolean + lastUsed?: Prisma.DateTimeFilter<"WebPushSubscription"> | Date | string + createdAt?: Prisma.DateTimeFilter<"WebPushSubscription"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"WebPushSubscription"> | Date | string +} + +export type WebPushSubscriptionCreateManyUserInput = { + id?: string + endpoint: string + p256dh: string + auth: string + userAgent?: string | null + isActive?: boolean + lastUsed?: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type WebPushSubscriptionUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + endpoint?: Prisma.StringFieldUpdateOperationsInput | string + p256dh?: Prisma.StringFieldUpdateOperationsInput | string + auth?: Prisma.StringFieldUpdateOperationsInput | string + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean + lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type WebPushSubscriptionUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + endpoint?: Prisma.StringFieldUpdateOperationsInput | string + p256dh?: Prisma.StringFieldUpdateOperationsInput | string + auth?: Prisma.StringFieldUpdateOperationsInput | string + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean + lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type WebPushSubscriptionUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + endpoint?: Prisma.StringFieldUpdateOperationsInput | string + p256dh?: Prisma.StringFieldUpdateOperationsInput | string + auth?: Prisma.StringFieldUpdateOperationsInput | string + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean + lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type WebPushSubscriptionSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + endpoint?: boolean + p256dh?: boolean + auth?: boolean + userAgent?: boolean + isActive?: boolean + lastUsed?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["webPushSubscription"]> + +export type WebPushSubscriptionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + endpoint?: boolean + p256dh?: boolean + auth?: boolean + userAgent?: boolean + isActive?: boolean + lastUsed?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["webPushSubscription"]> + +export type WebPushSubscriptionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + endpoint?: boolean + p256dh?: boolean + auth?: boolean + userAgent?: boolean + isActive?: boolean + lastUsed?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["webPushSubscription"]> + +export type WebPushSubscriptionSelectScalar = { + id?: boolean + userId?: boolean + endpoint?: boolean + p256dh?: boolean + auth?: boolean + userAgent?: boolean + isActive?: boolean + lastUsed?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type WebPushSubscriptionOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "endpoint" | "p256dh" | "auth" | "userAgent" | "isActive" | "lastUsed" | "createdAt" | "updatedAt", ExtArgs["result"]["webPushSubscription"]> +export type WebPushSubscriptionInclude = { + user?: boolean | Prisma.UserDefaultArgs +} +export type WebPushSubscriptionIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs +} +export type WebPushSubscriptionIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs +} + +export type $WebPushSubscriptionPayload = { + name: "WebPushSubscription" + objects: { + user: Prisma.$UserPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + userId: string + endpoint: string + p256dh: string + auth: string + userAgent: string | null + isActive: boolean + lastUsed: Date + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["webPushSubscription"]> + composites: {} +} + +export type WebPushSubscriptionGetPayload = runtime.Types.Result.GetResult + +export type WebPushSubscriptionCountArgs = + Omit & { + select?: WebPushSubscriptionCountAggregateInputType | true + } + +export interface WebPushSubscriptionDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['WebPushSubscription'], meta: { name: 'WebPushSubscription' } } + /** + * Find zero or one WebPushSubscription that matches the filter. + * @param {WebPushSubscriptionFindUniqueArgs} args - Arguments to find a WebPushSubscription + * @example + * // Get one WebPushSubscription + * const webPushSubscription = await prisma.webPushSubscription.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__WebPushSubscriptionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one WebPushSubscription that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {WebPushSubscriptionFindUniqueOrThrowArgs} args - Arguments to find a WebPushSubscription + * @example + * // Get one WebPushSubscription + * const webPushSubscription = await prisma.webPushSubscription.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__WebPushSubscriptionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first WebPushSubscription 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 {WebPushSubscriptionFindFirstArgs} args - Arguments to find a WebPushSubscription + * @example + * // Get one WebPushSubscription + * const webPushSubscription = await prisma.webPushSubscription.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__WebPushSubscriptionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first WebPushSubscription 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 {WebPushSubscriptionFindFirstOrThrowArgs} args - Arguments to find a WebPushSubscription + * @example + * // Get one WebPushSubscription + * const webPushSubscription = await prisma.webPushSubscription.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__WebPushSubscriptionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more WebPushSubscriptions 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 {WebPushSubscriptionFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all WebPushSubscriptions + * const webPushSubscriptions = await prisma.webPushSubscription.findMany() + * + * // Get first 10 WebPushSubscriptions + * const webPushSubscriptions = await prisma.webPushSubscription.findMany({ take: 10 }) + * + * // Only select the `id` + * const webPushSubscriptionWithIdOnly = await prisma.webPushSubscription.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a WebPushSubscription. + * @param {WebPushSubscriptionCreateArgs} args - Arguments to create a WebPushSubscription. + * @example + * // Create one WebPushSubscription + * const WebPushSubscription = await prisma.webPushSubscription.create({ + * data: { + * // ... data to create a WebPushSubscription + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__WebPushSubscriptionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many WebPushSubscriptions. + * @param {WebPushSubscriptionCreateManyArgs} args - Arguments to create many WebPushSubscriptions. + * @example + * // Create many WebPushSubscriptions + * const webPushSubscription = await prisma.webPushSubscription.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many WebPushSubscriptions and returns the data saved in the database. + * @param {WebPushSubscriptionCreateManyAndReturnArgs} args - Arguments to create many WebPushSubscriptions. + * @example + * // Create many WebPushSubscriptions + * const webPushSubscription = await prisma.webPushSubscription.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many WebPushSubscriptions and only return the `id` + * const webPushSubscriptionWithIdOnly = await prisma.webPushSubscription.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a WebPushSubscription. + * @param {WebPushSubscriptionDeleteArgs} args - Arguments to delete one WebPushSubscription. + * @example + * // Delete one WebPushSubscription + * const WebPushSubscription = await prisma.webPushSubscription.delete({ + * where: { + * // ... filter to delete one WebPushSubscription + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__WebPushSubscriptionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one WebPushSubscription. + * @param {WebPushSubscriptionUpdateArgs} args - Arguments to update one WebPushSubscription. + * @example + * // Update one WebPushSubscription + * const webPushSubscription = await prisma.webPushSubscription.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__WebPushSubscriptionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more WebPushSubscriptions. + * @param {WebPushSubscriptionDeleteManyArgs} args - Arguments to filter WebPushSubscriptions to delete. + * @example + * // Delete a few WebPushSubscriptions + * const { count } = await prisma.webPushSubscription.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more WebPushSubscriptions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {WebPushSubscriptionUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many WebPushSubscriptions + * const webPushSubscription = await prisma.webPushSubscription.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more WebPushSubscriptions and returns the data updated in the database. + * @param {WebPushSubscriptionUpdateManyAndReturnArgs} args - Arguments to update many WebPushSubscriptions. + * @example + * // Update many WebPushSubscriptions + * const webPushSubscription = await prisma.webPushSubscription.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more WebPushSubscriptions and only return the `id` + * const webPushSubscriptionWithIdOnly = await prisma.webPushSubscription.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one WebPushSubscription. + * @param {WebPushSubscriptionUpsertArgs} args - Arguments to update or create a WebPushSubscription. + * @example + * // Update or create a WebPushSubscription + * const webPushSubscription = await prisma.webPushSubscription.upsert({ + * create: { + * // ... data to create a WebPushSubscription + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the WebPushSubscription we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__WebPushSubscriptionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of WebPushSubscriptions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {WebPushSubscriptionCountArgs} args - Arguments to filter WebPushSubscriptions to count. + * @example + * // Count the number of WebPushSubscriptions + * const count = await prisma.webPushSubscription.count({ + * where: { + * // ... the filter for the WebPushSubscriptions we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a WebPushSubscription. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {WebPushSubscriptionAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by WebPushSubscription. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {WebPushSubscriptionGroupByArgs} 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 WebPushSubscriptionGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: WebPushSubscriptionGroupByArgs['orderBy'] } + : { orderBy?: WebPushSubscriptionGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + 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 + ? 'orderBy' extends Prisma.Keys + ? 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 + ? 'orderBy' extends Prisma.Keys + ? 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 & InputErrors): {} extends InputErrors ? GetWebPushSubscriptionGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the WebPushSubscription model + */ +readonly fields: WebPushSubscriptionFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for WebPushSubscription. + * 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__WebPushSubscriptionClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * 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 +} + + + + +/** + * Fields of the WebPushSubscription model + */ +export interface WebPushSubscriptionFieldRefs { + readonly id: Prisma.FieldRef<"WebPushSubscription", 'String'> + readonly userId: Prisma.FieldRef<"WebPushSubscription", 'String'> + readonly endpoint: Prisma.FieldRef<"WebPushSubscription", 'String'> + readonly p256dh: Prisma.FieldRef<"WebPushSubscription", 'String'> + readonly auth: Prisma.FieldRef<"WebPushSubscription", 'String'> + readonly userAgent: Prisma.FieldRef<"WebPushSubscription", 'String'> + readonly isActive: Prisma.FieldRef<"WebPushSubscription", 'Boolean'> + readonly lastUsed: Prisma.FieldRef<"WebPushSubscription", 'DateTime'> + readonly createdAt: Prisma.FieldRef<"WebPushSubscription", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"WebPushSubscription", 'DateTime'> +} + + +// Custom InputTypes +/** + * WebPushSubscription findUnique + */ +export type WebPushSubscriptionFindUniqueArgs = { + /** + * Select specific fields to fetch from the WebPushSubscription + */ + select?: Prisma.WebPushSubscriptionSelect | null + /** + * Omit specific fields from the WebPushSubscription + */ + omit?: Prisma.WebPushSubscriptionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.WebPushSubscriptionInclude | null + /** + * Filter, which WebPushSubscription to fetch. + */ + where: Prisma.WebPushSubscriptionWhereUniqueInput +} + +/** + * WebPushSubscription findUniqueOrThrow + */ +export type WebPushSubscriptionFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the WebPushSubscription + */ + select?: Prisma.WebPushSubscriptionSelect | null + /** + * Omit specific fields from the WebPushSubscription + */ + omit?: Prisma.WebPushSubscriptionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.WebPushSubscriptionInclude | null + /** + * Filter, which WebPushSubscription to fetch. + */ + where: Prisma.WebPushSubscriptionWhereUniqueInput +} + +/** + * WebPushSubscription findFirst + */ +export type WebPushSubscriptionFindFirstArgs = { + /** + * Select specific fields to fetch from the WebPushSubscription + */ + select?: Prisma.WebPushSubscriptionSelect | null + /** + * Omit specific fields from the WebPushSubscription + */ + omit?: Prisma.WebPushSubscriptionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.WebPushSubscriptionInclude | null + /** + * Filter, which WebPushSubscription to fetch. + */ + where?: Prisma.WebPushSubscriptionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of WebPushSubscriptions to fetch. + */ + orderBy?: Prisma.WebPushSubscriptionOrderByWithRelationInput | Prisma.WebPushSubscriptionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for WebPushSubscriptions. + */ + cursor?: Prisma.WebPushSubscriptionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` WebPushSubscriptions 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` WebPushSubscriptions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of WebPushSubscriptions. + */ + distinct?: Prisma.WebPushSubscriptionScalarFieldEnum | Prisma.WebPushSubscriptionScalarFieldEnum[] +} + +/** + * WebPushSubscription findFirstOrThrow + */ +export type WebPushSubscriptionFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the WebPushSubscription + */ + select?: Prisma.WebPushSubscriptionSelect | null + /** + * Omit specific fields from the WebPushSubscription + */ + omit?: Prisma.WebPushSubscriptionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.WebPushSubscriptionInclude | null + /** + * Filter, which WebPushSubscription to fetch. + */ + where?: Prisma.WebPushSubscriptionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of WebPushSubscriptions to fetch. + */ + orderBy?: Prisma.WebPushSubscriptionOrderByWithRelationInput | Prisma.WebPushSubscriptionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for WebPushSubscriptions. + */ + cursor?: Prisma.WebPushSubscriptionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` WebPushSubscriptions 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` WebPushSubscriptions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of WebPushSubscriptions. + */ + distinct?: Prisma.WebPushSubscriptionScalarFieldEnum | Prisma.WebPushSubscriptionScalarFieldEnum[] +} + +/** + * WebPushSubscription findMany + */ +export type WebPushSubscriptionFindManyArgs = { + /** + * Select specific fields to fetch from the WebPushSubscription + */ + select?: Prisma.WebPushSubscriptionSelect | null + /** + * Omit specific fields from the WebPushSubscription + */ + omit?: Prisma.WebPushSubscriptionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.WebPushSubscriptionInclude | null + /** + * Filter, which WebPushSubscriptions to fetch. + */ + where?: Prisma.WebPushSubscriptionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of WebPushSubscriptions to fetch. + */ + orderBy?: Prisma.WebPushSubscriptionOrderByWithRelationInput | Prisma.WebPushSubscriptionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing WebPushSubscriptions. + */ + cursor?: Prisma.WebPushSubscriptionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` WebPushSubscriptions 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` WebPushSubscriptions. + */ + skip?: number + distinct?: Prisma.WebPushSubscriptionScalarFieldEnum | Prisma.WebPushSubscriptionScalarFieldEnum[] +} + +/** + * WebPushSubscription create + */ +export type WebPushSubscriptionCreateArgs = { + /** + * Select specific fields to fetch from the WebPushSubscription + */ + select?: Prisma.WebPushSubscriptionSelect | null + /** + * Omit specific fields from the WebPushSubscription + */ + omit?: Prisma.WebPushSubscriptionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.WebPushSubscriptionInclude | null + /** + * The data needed to create a WebPushSubscription. + */ + data: Prisma.XOR +} + +/** + * WebPushSubscription createMany + */ +export type WebPushSubscriptionCreateManyArgs = { + /** + * The data used to create many WebPushSubscriptions. + */ + data: Prisma.WebPushSubscriptionCreateManyInput | Prisma.WebPushSubscriptionCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * WebPushSubscription createManyAndReturn + */ +export type WebPushSubscriptionCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the WebPushSubscription + */ + select?: Prisma.WebPushSubscriptionSelectCreateManyAndReturn | null + /** + * Omit specific fields from the WebPushSubscription + */ + omit?: Prisma.WebPushSubscriptionOmit | null + /** + * The data used to create many WebPushSubscriptions. + */ + data: Prisma.WebPushSubscriptionCreateManyInput | Prisma.WebPushSubscriptionCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.WebPushSubscriptionIncludeCreateManyAndReturn | null +} + +/** + * WebPushSubscription update + */ +export type WebPushSubscriptionUpdateArgs = { + /** + * Select specific fields to fetch from the WebPushSubscription + */ + select?: Prisma.WebPushSubscriptionSelect | null + /** + * Omit specific fields from the WebPushSubscription + */ + omit?: Prisma.WebPushSubscriptionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.WebPushSubscriptionInclude | null + /** + * The data needed to update a WebPushSubscription. + */ + data: Prisma.XOR + /** + * Choose, which WebPushSubscription to update. + */ + where: Prisma.WebPushSubscriptionWhereUniqueInput +} + +/** + * WebPushSubscription updateMany + */ +export type WebPushSubscriptionUpdateManyArgs = { + /** + * The data used to update WebPushSubscriptions. + */ + data: Prisma.XOR + /** + * Filter which WebPushSubscriptions to update + */ + where?: Prisma.WebPushSubscriptionWhereInput + /** + * Limit how many WebPushSubscriptions to update. + */ + limit?: number +} + +/** + * WebPushSubscription updateManyAndReturn + */ +export type WebPushSubscriptionUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the WebPushSubscription + */ + select?: Prisma.WebPushSubscriptionSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the WebPushSubscription + */ + omit?: Prisma.WebPushSubscriptionOmit | null + /** + * The data used to update WebPushSubscriptions. + */ + data: Prisma.XOR + /** + * Filter which WebPushSubscriptions to update + */ + where?: Prisma.WebPushSubscriptionWhereInput + /** + * Limit how many WebPushSubscriptions to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.WebPushSubscriptionIncludeUpdateManyAndReturn | null +} + +/** + * WebPushSubscription upsert + */ +export type WebPushSubscriptionUpsertArgs = { + /** + * Select specific fields to fetch from the WebPushSubscription + */ + select?: Prisma.WebPushSubscriptionSelect | null + /** + * Omit specific fields from the WebPushSubscription + */ + omit?: Prisma.WebPushSubscriptionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.WebPushSubscriptionInclude | null + /** + * The filter to search for the WebPushSubscription to update in case it exists. + */ + where: Prisma.WebPushSubscriptionWhereUniqueInput + /** + * In case the WebPushSubscription found by the `where` argument doesn't exist, create a new WebPushSubscription with this data. + */ + create: Prisma.XOR + /** + * In case the WebPushSubscription was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * WebPushSubscription delete + */ +export type WebPushSubscriptionDeleteArgs = { + /** + * Select specific fields to fetch from the WebPushSubscription + */ + select?: Prisma.WebPushSubscriptionSelect | null + /** + * Omit specific fields from the WebPushSubscription + */ + omit?: Prisma.WebPushSubscriptionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.WebPushSubscriptionInclude | null + /** + * Filter which WebPushSubscription to delete. + */ + where: Prisma.WebPushSubscriptionWhereUniqueInput +} + +/** + * WebPushSubscription deleteMany + */ +export type WebPushSubscriptionDeleteManyArgs = { + /** + * Filter which WebPushSubscriptions to delete + */ + where?: Prisma.WebPushSubscriptionWhereInput + /** + * Limit how many WebPushSubscriptions to delete. + */ + limit?: number +} + +/** + * WebPushSubscription without action + */ +export type WebPushSubscriptionDefaultArgs = { + /** + * Select specific fields to fetch from the WebPushSubscription + */ + select?: Prisma.WebPushSubscriptionSelect | null + /** + * Omit specific fields from the WebPushSubscription + */ + omit?: Prisma.WebPushSubscriptionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.WebPushSubscriptionInclude | null +} diff --git a/apps/backend/src/feature/expense-item/core/domain/services/expense-total.calculator.spec.ts b/apps/backend/src/feature/expense-item/core/domain/services/expense-total.calculator.spec.ts index c061565b..50b8d92b 100644 --- a/apps/backend/src/feature/expense-item/core/domain/services/expense-total.calculator.spec.ts +++ b/apps/backend/src/feature/expense-item/core/domain/services/expense-total.calculator.spec.ts @@ -1,5 +1,6 @@ import { Decimal } from 'prisma/generated/prisma/internal/prismaNamespace'; import { ExpenseTotalCalculator } from './expense-total.calculator'; +import { ExpenseItem } from '../entities/expense-item.entity'; describe('ExpenseTotalCalculator', () => { describe('lineTotal', () => { @@ -71,6 +72,181 @@ describe('ExpenseTotalCalculator', () => { }); }); + describe('the discount formula the web app and the backend disagreed on', () => { + const DIVERGENT_LINE = { price: 10, discount: 2, quantity: 3 }; + + it('charges the discount once per unit', () => { + expect( + ExpenseTotalCalculator.lineTotal(DIVERGENT_LINE).toString(), + ).toBe('24'); + }); + + it('is not the price * quantity - discount value the backend used to store', () => { + expect( + ExpenseTotalCalculator.lineTotal(DIVERGENT_LINE).toNumber(), + ).not.toBe(28); + }); + + it('is not the undiscounted price * quantity value', () => { + expect( + ExpenseTotalCalculator.lineTotal(DIVERGENT_LINE).toNumber(), + ).not.toBe(30); + }); + + it('agrees with what the expense item entity reports for the same line', () => { + const item = new ExpenseItem({ + id: 'item-1', + itemId: 'catalog-1', + itemName: 'Coffee', + expenseId: 'expense-1', + categoryId: 'category-1', + price: new Decimal('10'), + discount: new Decimal('2'), + quantity: new Decimal('3'), + createdAt: new Date(), + updatedAt: new Date(), + }); + + expect(item.getFinalPrice().toString()).toBe( + ExpenseTotalCalculator.lineTotal(DIVERGENT_LINE).toString(), + ); + }); + }); + + describe('discount edge cases', () => { + it('leaves the line at price * quantity when the discount is zero', () => { + expect( + ExpenseTotalCalculator.lineTotal({ + price: '12.99', + discount: 0, + quantity: 4, + }).toString(), + ).toBe('51.96'); + }); + + it('treats an explicit zero discount and an omitted one identically', () => { + const withZero = ExpenseTotalCalculator.lineTotal({ + price: '3.70', + discount: '0', + quantity: '2', + }); + const withoutDiscount = ExpenseTotalCalculator.lineTotal({ + price: '3.70', + quantity: '2', + }); + + expect(withZero.toString()).toBe(withoutDiscount.toString()); + }); + + it('zeroes the whole line when the discount equals the price', () => { + expect( + ExpenseTotalCalculator.lineTotal({ + price: '19.99', + discount: '19.99', + quantity: '250', + }).toString(), + ).toBe('0'); + }); + + it('zeroes a free line inside a larger basket instead of dropping it', () => { + expect( + ExpenseTotalCalculator.total([ + { price: '5', discount: '5', quantity: '2' }, + { price: '5', discount: '0', quantity: '2' }, + ]).toString(), + ).toBe('10'); + }); + + it('does not clamp a discount above the price, which the entity rejects instead', () => { + expect( + ExpenseTotalCalculator.lineTotal({ + price: '5', + discount: '8', + quantity: '2', + }).toString(), + ).toBe('-6'); + }); + }); + + describe('rounding', () => { + it('does not round a line total to cents', () => { + expect( + ExpenseTotalCalculator.lineTotal({ + price: '0.335', + discount: '0', + quantity: '3', + }).toString(), + ).toBe('1.005'); + }); + + it('does not round a per-unit discount away before multiplying', () => { + expect( + ExpenseTotalCalculator.lineTotal({ + price: '1.005', + discount: '0.005', + quantity: '1000', + }).toString(), + ).toBe('1000'); + }); + + it('keeps sub-cent lines instead of collapsing them to zero', () => { + expect( + ExpenseTotalCalculator.total( + Array.from({ length: 200 }, () => ({ price: '0.005' })), + ).toString(), + ).toBe('1'); + }); + + it('sums many two-decimal lines without floating point drift', () => { + const lines = Array.from({ length: 100 }, () => ({ price: '0.07' })); + const floatSum = lines.reduce((sum) => sum + 0.07, 0); + + expect(ExpenseTotalCalculator.total(lines).toString()).toBe('7'); + expect(floatSum).not.toBe(7); + }); + + it('rounds only where a caller asks for it', () => { + const total = ExpenseTotalCalculator.total([ + { price: '0.59', quantity: '3.115' }, + ]); + + expect(total.toString()).toBe('1.83785'); + expect(total.toDecimalPlaces(2).toString()).toBe('1.84'); + }); + }); + + describe('fractional quantities', () => { + it('prices a weighed item to the gram', () => { + expect( + ExpenseTotalCalculator.lineTotal({ + price: '4.50', + discount: '0.50', + quantity: '0.327', + }).toString(), + ).toBe('1.308'); + }); + + it('prices a fractional quantity of a fully discounted item at zero', () => { + expect( + ExpenseTotalCalculator.lineTotal({ + price: '4.50', + discount: '4.50', + quantity: '0.327', + }).toString(), + ).toBe('0'); + }); + + it('mixes fractional and whole quantities in one basket', () => { + expect( + ExpenseTotalCalculator.total([ + { price: '4.50', discount: '0.50', quantity: '0.327' }, + { price: '10', discount: '2', quantity: '3' }, + { price: '1.99' }, + ]).toString(), + ).toBe('27.298'); + }); + }); + describe('total', () => { it('sums line totals', () => { const total = ExpenseTotalCalculator.total([ diff --git a/apps/backend/src/feature/family/rest/controllers/family-role-matrix.spec.ts b/apps/backend/src/feature/family/rest/controllers/family-role-matrix.spec.ts new file mode 100644 index 00000000..c2920b2f --- /dev/null +++ b/apps/backend/src/feature/family/rest/controllers/family-role-matrix.spec.ts @@ -0,0 +1,309 @@ +import { ExecutionContext } from '@nestjs/common'; +import { Decimal } from 'prisma/generated/prisma/internal/prismaNamespace'; +import { Reflector } from '@nestjs/core'; +import { IFamilyMembershipRepository } from '~common/authorization/domain/repositories/family-membership.repository.interface'; +import { FamilyMemberRole } from '~common/authorization/domain/family-role'; +import { VerifyFamilyAccessUseCase } from '~common/authorization/application/use-cases/verify-family-access.use-case'; +import { FamilyScopeGuard } from '~common/authorization/rest/guards/family-scope.guard'; +import { DomainForbiddenException } from '~common/exceptions/domain.exceptions'; +import { ExpenseAuthService } from '~feature/expense/core/application/services/expense-auth.service'; +import { CancelInvitationUseCase } from '../../core/application/use-cases/cancel-invitation.use-case'; +import { FamilyMember } from '../../core/domain/entities/family-member.entity'; +import { + FamilyInvitation, + FamilyInvitationStatus, +} from '../../core/domain/entities/family-invitation.entity'; +import { FamilyController } from './family.controller'; + +const FAMILY = 'family-1'; +const SUBMITTER = 'submitter-1'; +const OUTSIDER = 'outsider-1'; + +const ACTORS: Record = { + [FamilyMemberRole.OWNER]: 'owner-1', + [FamilyMemberRole.ADMIN]: 'admin-1', + [FamilyMemberRole.MEMBER]: 'member-1', +}; + +const ROLE_OF = new Map([ + [ACTORS[FamilyMemberRole.OWNER], FamilyMemberRole.OWNER], + [ACTORS[FamilyMemberRole.ADMIN], FamilyMemberRole.ADMIN], + [ACTORS[FamilyMemberRole.MEMBER], FamilyMemberRole.MEMBER], + [SUBMITTER, FamilyMemberRole.OWNER], +]); + +const EVERY_ROLE = [ + FamilyMemberRole.OWNER, + FamilyMemberRole.ADMIN, + FamilyMemberRole.MEMBER, +] as const; + +const membershipRepository: IFamilyMembershipRepository = { + isMember: (familyId, userId) => + Promise.resolve(familyId === FAMILY && ROLE_OF.has(userId)), + findRole: (familyId, userId) => + Promise.resolve(familyId === FAMILY ? (ROLE_OF.get(userId) ?? null) : null), + findFamilyIds: () => Promise.resolve([FAMILY]), + findCoMemberUserIds: () => Promise.resolve([...ROLE_OF.keys()]), +}; + +type FamilyRouteHandler = keyof FamilyController; + +function contextForRoute( + handler: FamilyRouteHandler, + userId: string, +): ExecutionContext { + return { + getType: () => 'http', + switchToHttp: () => ({ + getRequest: () => ({ + method: 'POST', + user: { id: userId }, + params: { familyId: FAMILY }, + query: {}, + body: {}, + }), + }), + getHandler: () => FamilyController.prototype[handler], + getClass: () => FamilyController, + } as unknown as ExecutionContext; +} + +function memberWithRole(userId: string, role: FamilyMemberRole): FamilyMember { + return new FamilyMember({ + id: `membership-${userId}`, + familyId: FAMILY, + userId, + role, + balance: new Decimal(0), + joinedAt: new Date(), + createdAt: new Date(), + updatedAt: new Date(), + }); +} + +describe('family role matrix', () => { + let guard: FamilyScopeGuard; + + const routeAllows = async ( + handler: FamilyRouteHandler, + userId: string, + ): Promise => { + try { + return await guard.canActivate(contextForRoute(handler, userId)); + } catch (error) { + expect(error).toBeInstanceOf(DomainForbiddenException); + return false; + } + }; + + beforeEach(() => { + guard = new FamilyScopeGuard( + new Reflector(), + new VerifyFamilyAccessUseCase(membershipRepository), + ); + }); + + describe('invite', () => { + it.each([ + [FamilyMemberRole.OWNER, true], + [FamilyMemberRole.ADMIN, true], + [FamilyMemberRole.MEMBER, false], + ])('%s inviting a member is allowed: %s', async (role, allowed) => { + await expect(routeAllows('inviteMember', ACTORS[role])).resolves.toBe( + allowed, + ); + }); + + it('denies a user who is in no family at all', async () => { + await expect(routeAllows('inviteMember', OUTSIDER)).resolves.toBe(false); + }); + }); + + describe('remove', () => { + it.each([ + [FamilyMemberRole.OWNER, true], + [FamilyMemberRole.ADMIN, true], + [FamilyMemberRole.MEMBER, false], + ])('%s removing a member is allowed: %s', async (role, allowed) => { + await expect(routeAllows('removeMember', ACTORS[role])).resolves.toBe( + allowed, + ); + }); + + it('denies a user who is in no family at all', async () => { + await expect(routeAllows('removeMember', OUTSIDER)).resolves.toBe(false); + }); + + it('lets every role leave on their own account', async () => { + for (const role of EVERY_ROLE) { + await expect(routeAllows('leaveFamily', ACTORS[role])).resolves.toBe( + true, + ); + } + }); + + it('still denies a stranger the leave route', async () => { + await expect(routeAllows('leaveFamily', OUTSIDER)).resolves.toBe(false); + }); + }); + + describe('approve and reject', () => { + let expenseAuthService: ExpenseAuthService; + + const pendingExpenseOf = (userId: string) => + ({ id: 'transaction-1', userId, familyId: FAMILY }) as never; + + const approvalAllowed = async ( + approverId: string, + submitterId = SUBMITTER, + ): Promise => { + try { + await expenseAuthService.verifyApprovalAuthority( + pendingExpenseOf(submitterId), + approverId, + ); + return true; + } catch (error) { + expect(error).toBeInstanceOf(DomainForbiddenException); + return false; + } + }; + + beforeEach(() => { + expenseAuthService = new ExpenseAuthService( + membershipRepository as never, + ); + }); + + it.each([ + [FamilyMemberRole.OWNER, true], + [FamilyMemberRole.ADMIN, true], + [FamilyMemberRole.MEMBER, false], + ])( + '%s approving another member expense is allowed: %s', + async (role, allowed) => { + await expect(approvalAllowed(ACTORS[role])).resolves.toBe(allowed); + }, + ); + + it('denies a user who is in no family at all', async () => { + await expect(approvalAllowed(OUTSIDER)).resolves.toBe(false); + }); + + it('denies every role approving an expense they submitted themselves', async () => { + for (const role of EVERY_ROLE) { + await expect(approvalAllowed(ACTORS[role], ACTORS[role])).resolves.toBe( + false, + ); + } + }); + + it('separates duties even for the owner, who can approve everyone else', async () => { + const owner = ACTORS[FamilyMemberRole.OWNER]; + + await expect(approvalAllowed(owner, owner)).resolves.toBe(false); + await expect( + approvalAllowed(owner, ACTORS[FamilyMemberRole.MEMBER]), + ).resolves.toBe(true); + }); + + it('rejects a pending expense the same way it approves one', async () => { + const member = ACTORS[FamilyMemberRole.MEMBER]; + const admin = ACTORS[FamilyMemberRole.ADMIN]; + + await expect(approvalAllowed(member, admin)).resolves.toBe(false); + await expect(approvalAllowed(admin, member)).resolves.toBe(true); + }); + }); + + describe('cancel an outgoing invitation', () => { + let invitationRepository: { findById: jest.Mock; update: jest.Mock }; + let familyRepository: { findMember: jest.Mock }; + let cancelInvitation: CancelInvitationUseCase; + + const cancelAllowed = async (userId: string): Promise => { + try { + await cancelInvitation.execute('invitation-1', userId); + return true; + } catch { + return false; + } + }; + + beforeEach(() => { + invitationRepository = { + findById: jest.fn().mockResolvedValue( + new FamilyInvitation({ + id: 'invitation-1', + familyId: FAMILY, + inviterId: ACTORS[FamilyMemberRole.OWNER], + inviteeEmail: 'invitee@example.com', + status: FamilyInvitationStatus.PENDING, + expiresAt: new Date(Date.now() + 86_400_000), + createdAt: new Date(), + updatedAt: new Date(), + }), + ), + update: jest.fn().mockResolvedValue(undefined), + }; + familyRepository = { + findMember: jest + .fn() + .mockImplementation((familyId: string, userId: string) => { + const role = ROLE_OF.get(userId); + return Promise.resolve( + familyId === FAMILY && role ? memberWithRole(userId, role) : null, + ); + }), + }; + cancelInvitation = new CancelInvitationUseCase( + invitationRepository as never, + familyRepository as never, + ); + }); + + it.each([ + [FamilyMemberRole.OWNER, true], + [FamilyMemberRole.ADMIN, true], + [FamilyMemberRole.MEMBER, false], + ])('%s cancelling an invitation is allowed: %s', async (role, allowed) => { + await expect(cancelAllowed(ACTORS[role])).resolves.toBe(allowed); + expect(invitationRepository.update).toHaveBeenCalledTimes( + allowed ? 1 : 0, + ); + }); + + it('denies a user who is in no family at all', async () => { + await expect(cancelAllowed(OUTSIDER)).resolves.toBe(false); + expect(invitationRepository.update).not.toHaveBeenCalled(); + }); + }); + + describe('the routes carry the role requirement the matrix relies on', () => { + const reflector = new Reflector(); + + const ruleFor = (handler: FamilyRouteHandler) => + reflector.get<{ roles?: FamilyMemberRole[]; required?: boolean }>( + 'family_scope_rule', + FamilyController.prototype[handler], + ); + + it.each(['inviteMember', 'removeMember'] as const)( + '%s is restricted to owners and admins', + (handler) => { + expect(ruleFor(handler)?.roles).toEqual([ + FamilyMemberRole.OWNER, + FamilyMemberRole.ADMIN, + ]); + }, + ); + + it('leaveFamily requires membership but no particular role', () => { + const rule = ruleFor('leaveFamily'); + + expect(rule?.required).toBe(true); + expect(rule?.roles).toBeUndefined(); + }); + }); +}); diff --git a/plans/backend-review-2026-09-09.md b/plans/backend-review-2026-09-09.md new file mode 100644 index 00000000..951a84a6 --- /dev/null +++ b/plans/backend-review-2026-09-09.md @@ -0,0 +1,548 @@ +# Fynans backend review — findings and remediation plan + +Reviewed: `apps/backend` (NestJS 11 + Prisma 7 + Postgres + BullMQ + MinIO), with +cross-checks against `apps/web`. ~26k LOC, 23 controllers, 12 Prisma schema files. + +## Verdict + +The structure is genuinely good: hexagonal layering (`core`/`rest`, +`domain`/`application`/`infrastructure`), one use case per operation, repositories +behind interfaces, DTOs at every boundary. There is no god class — the largest file +is 365 lines. The problem is not the shape of the code, it is that **the shape is not +enforced**, so the same decision is made differently in each feature. + +The single most serious consequence: `AuthGuard` is the only global guard and it does +**authentication only**. There is no authorization layer. Every ownership and +membership check is hand-written inside individual use cases, and a large number of +them are simply missing. Nine separate cross-tenant holes are reachable today by any +authenticated user. + +Second most serious: the expense total is computed in **five places with three +different formulas**, two of which disagree numerically. + +--- + +# P0 — Security. Exploitable by any logged-in user. + +### S1. Anyone can join any family +`accept-invitation.use-case.ts` loads the invitation by ID, checks `canBeAccepted()`, +then adds **the caller** as a member. It never compares `invitation.inviteeEmail` / +`inviteeId` against the authenticated user. + +``` +POST /families/invitations//accept → you are now in that family +``` + +`decline-invitation.use-case.ts` has the same gap (grief/DoS: cancel other people's +invitations). Once inside a family, `getVisibleUserIds()` exposes every member's +categories, items and stores, and family expense/income listings become readable. + +**Fix:** in both use cases, require +`invitation.inviteeId === userId || invitation.inviteeEmail === user.email`. Also +reject when the user is already a member (currently a raw unique-constraint 500). + +### S2. Income can be attached to another user's transaction +`IncomeController.create` injects `@CurrentUser() user` and **never uses it** — +`createDto.toCoreDto()` takes no arguments. `CreateIncomeUseCase` accepts a +client-supplied `transactionId` and only checks that no income exists for it yet. + +``` +POST /incomes { transactionId: "", storeId, categoryId } +``` + +This writes an Income row onto the victim's transaction, links the category to the +victim's user id, and fires family notifications as the victim. + +**Fix:** pass `user.id` through and verify `transaction.userId === userId` before +creating. (Note `findById`/`update`/`delete` *are* protected — via +`IncomeService.validateOwnership` — so only `create` is open.) + +### S3. Cross-family read via `?familyId=` +`BaseFilters.fromQuery` sets `userId: query.familyId ? undefined : userId`. Whenever a +`familyId` is supplied the user filter is dropped entirely, and the caller is +responsible for verifying membership. Two callers do; two do not: + +| Endpoint | Membership verified? | +|---|---| +| `GET /expenses` | yes (`ListExpensesUseCase`) | +| `GET /incomes` | yes (`ListIncomesUseCase`) | +| `GET /expenses/statistics` | **no** — `GetExpenseStatisticsUseCase` has no check | +| `GET /transactions` | **no** — `ListTransactionsUseCase` has no check | +| `GET /transactions/statistics` | n/a — leaks nothing, but see D9 | + +`PrismaExpenseRepository.getStatistics(userId, filters)` accepts a `userId` argument +and **never reads it** — `buildWhereClause(filters)` is the only scoping. So +`GET /expenses/statistics?familyId=` returns another family's totals, +per-category breakdown and per-store breakdown. `GET /transactions?familyId=` +returns their full transaction list. + +**Fix:** move the membership check out of individual use cases into a +`FamilyScopeGuard`/interceptor that fires whenever `familyId` is present on any +request, and delete the unused `userId` parameter from the repository signature so it +cannot be mistaken for scoping. + +### S4. Receipt jobs are readable by anyone who has a job id +`GET /receipts/jobs/:jobId` and `GET /receipts/jobs/:jobId/stream` never compare +`job.data.userId` to the caller. Job ids are sequential BullMQ integers. Any +authenticated user can enumerate them and stream another user's parsed receipt — +store, line items, prices, totals. + +**Fix:** load the job, compare `job.data.userId` to `user.id`, 404 otherwise. + +### S5. Categories are global rows that anyone can rename or delete +`ExpenseCategory.name`, `IncomeCategory.name` and `Item.name` are `@unique` +**globally**, and categories are shared across all users through junction tables +(`UserExpenseCategory` etc.). `CreateExpenseCategoryUseCase` silently returns and +links the *existing global row* when the name matches. + +Worse, `ExpenseCategoryService.update(id, dto)` and `.delete(id)` take **no userId at +all**, and neither does the controller: + +```ts +@Put(':id') +async update(@Param('id') id: string, @Body() updateDto: UpdateExpenseCategoryRequestDto) { + const category = await this.expenseCategoryService.update(id, coreDto); +``` + +Any user can rename or delete any category in the system, for every user who shares it. +Identical in `income-category.controller.ts`. + +**Fix (short term):** require a `UserExpenseCategory` link for the caller before +update/delete. **Fix (proper):** see DB2 — categories should be user- or family-owned +rows, not global rows behind a junction table. + +### S6. Payment methods are never checked for ownership +`paymentMethodId` flows from the request through `CreateExpenseUseCase` → +`CreateTransactionUseCase` → `transaction.create` with no validation, then +`paymentMethodService.recalculateBalance(paymentMethodId)` is called on it. Passing +another user's payment method id attaches your spending to their account and rewrites +their balance. Same on expense update, resubmit, update-pending, and transaction +create/update. + +**Fix:** verify ownership in `CreateTransactionUseCase` (single choke point) — it +already verifies family membership there, so this is the right place. + +### S7. Approval workflow has no separation of duties +`ApprovePendingExpenseUseCase` calls `ExpenseAuthService.verifyTransactionAccess`, +which only asserts the caller is *a member* of the family. There is no role check and +no check that the approver is not the submitter. A `MEMBER` can submit a pending +expense and immediately approve it. `FamilyMember.canManageMembers()` exists and is +used for invites/removals but not here. + +**Fix:** require `canManageMembers()` (OWNER/ADMIN) **and** `userId !== transaction.userId` +to approve or reject. + +### S8. Receipt linking does not check the target expense +`LinkReceiptToExpenseUseCase` verifies you own the *receipt* but not the *expense*. +You can attach your receipt to any expense id; `ExpenseController.withReceiptUrl` then +hands that expense's owner a presigned download URL to your image. + +**Fix:** verify expense ownership too. + +### S9. Receipt upload trusts `familyId` +`ReceiptController.processReceipt` passes `body.familyId` straight to +`SaveReceiptFileUseCase`, which writes `Receipt.familyId` unverified. Combined with the +family-scoped receipt listing this plants records in a family you do not belong to. + +### S10. Missing baseline hardening +- No `helmet`, no `@nestjs/throttler`. OCR + LLM upload is unauthenticated-expensive + and unthrottled. +- Upload limit is `100 * 1024 * 1024` — 100 MB for a receipt photo, held in memory + (`file.buffer`) and then base64'd into Redis (+33%). +- `fileFilter` matches `file.mimetype.match(/image\/(jpeg|jpg|png)/)` — client-supplied, + unanchored regex, no magic-byte check. +- Swagger `/docs` mounted unconditionally, including production. +- `better-auth.config.ts` hardcodes `useSecureCookies: true` / `sameSite: 'none'` + regardless of environment. +- `NotificationGateway` uses `cors: { origin: '*' }` while HTTP CORS uses an allowlist. +- SSE handler logs full item names and prices at `log`/`debug` — financial data in logs. +- Receipt OCR text is interpolated straight into LLM prompts + (`Item: "${cleaned}"`) with no delimiting — prompt-injection surface that can drive + automatic category creation. + +--- + +# P1 — Money correctness and data integrity + +### D1. Five total calculations, three formulas, two disagree +| Site | Formula | Type | +|---|---|---| +| `CreateExpenseUseCase` | `price * qty - discount` | JS float | +| `PrismaExpenseItemRepository.calculateExpenseTotal` | `(price - discount) * qty` | Decimal | +| `CheckoutBasketItemsUseCase` | `price * qty` | JS float | +| `ReceiptProcessingWorker` | `price * qty` | JS float | +| `apps/web/src/utils/calculations.ts` | `(price - discount) * qty` | JS float | + +For `price=10, discount=2, qty=3` the web app shows **24** and the backend stores **28**. +And because `AddItemToExpenseUseCase` recomputes the whole expense via +`calculateExpenseTotal`, **adding one item silently changes the total of the items +already there**. + +**Fix:** one `ExpenseTotalCalculator` domain service using `Decimal`, called by +create, add-item, checkout and the worker. Delete `apps/web/src/utils/calculations.ts` +and return the total from the API. + +### D2. Money is JS `number` everywhere above the repository +DTOs (`CreateExpenseDto.amount`, `UpdateExpenseDto.amount`, `ExpenseStatistics.*`, +`FamilyMember.balance`, `BalanceResult.*`) all use `number`, and every aggregation is a +float `reduce`. `Decimal` is only used at the Prisma boundary. + +**Fix:** `Decimal` (or integer minor units) through the domain and application layers; +convert to `number` only in the response DTO. + +### D3. Expense creation is not atomic +`CreateExpenseUseCase` performs: create transaction → create expense → create N items +→ notify → recalc balance, with **no `$transaction`**. A failure after step 1 leaves an +orphan `Transaction` with a value and no `Expense`, which still counts in +`transaction.aggregate` balances and statistics. + +`CheckoutBasketItemsUseCase` (create expense, then remove basket items) and +`AcceptInvitationUseCase` (add member, then update invitation) have the same shape. + +### D4. Items are silently discarded when no store resolves +```ts +if (store) { + await Promise.all(items.map(item => this.expenseItemService.create(...))); +} +``` +If the category is not `isConnectedToStore` and no `storeId`/`storeName` was sent, the +transaction is created with the full total but **zero items are persisted**, with no +error. Only the web app's client-side `canSubmit()` prevents this today. + +### D5. Balance updates lose writes and drift +- `FamilyBalanceService.updateBalancesAfterTransaction` does read-modify-write + (`family.balance + delta`) outside a transaction — two concurrent expenses lose one. + Should be an atomic `{ increment }` inside `$transaction`. +- `UpdateExpenseUseCase` changes `transaction.value` but never recalculates the payment + method or family balances. +- `DeleteExpenseUseCase` recalculates the payment method but **not** family/member + balances. +- `RecalculateBalanceUseCase` wraps everything in `try {} catch {}` and swallows all + errors silently. +- `FamilyBalanceService.recalculateBalances` has a comment admitting member balances + are not recalculated. + +Four denormalized balances exist (`User.balance`, `Family.balance`, +`FamilyMember.balance`, `PaymentMethod.currentBalance`) with no reconciliation job and +no invariant test. `User.balance` appears to be written nowhere at all. + +### D6. Income creation from the web app is broken +`useIncomeSubmission` posts to `POST /transactions` with +`{ type, value, description, categoryId, recordedAt, familyId, paymentMethodId }` plus +`pending: true` for review. `CreateTransactionRequestDto` declares only +`type, value, recordedAt, familyId, paymentMethodId`, and the global `ValidationPipe` +runs with `forbidNonWhitelisted: true` — so `description`, `categoryId` and `pending` +cause a **400**. + +Even if it passed, that endpoint creates a bare `Transaction` and never an `Income` +row, so the income would never appear in income listings or category reports. Income +creation is a two-call client-orchestrated flow (`POST /transactions` then +`POST /incomes`) that the web app does not actually perform. + +**Fix:** add `POST /incomes` that takes amount/category/note and creates transaction + +income server-side in one call, mirroring `POST /expenses`. + +### D7. Statistics and trends are computed in JavaScript over full table scans +`getStatistics` runs `findMany` with **no pagination** and aggregates category and +store totals in a JS `Map`. `getTrends` does the same. At a few thousand expenses this +is slow; at scale it is an OOM. + +**Fix:** `prisma.expense.groupBy` / `aggregate`, or raw SQL with `date_trunc`. + +### D8. Trend buckets mix timezones +`getDateKey` uses local-time `getFullYear()/getMonth()` for month keys but +`toISOString()` (UTC) for day and week keys. Near midnight, entries land in the wrong +bucket, and month vs day totals will not reconcile. + +### D9. The same filter means three different things +For `?familyId=X`: `findAll` returns the whole family's expenses, `getStatistics` +returns the whole family's totals (unchecked), and `getTrends` force-injects +`userId` so it returns **only your own** expenses in that family. The three panels of +a family dashboard therefore disagree with each other. + +### D10. `buildWhereClause` fails open +```ts +if (!filters) return { transaction: { status: CONFIRMED } }; +``` +`findAll()` with no filters returns every expense in the database. Safe only because +callers happen to pass filters. + +--- + +# P2 — Prisma schema and database design + +### DB1. `Income.storeId` is a required column with no relation +```prisma +model Income { + storeId String @map("store_id") // no `store Store @relation(...)` +} +``` +Required, unenforced, and semantically wrong — an income does not have a store. The +API rejects income creation without one (`'Store ID is required'`), so clients must +invent a store id. + +### DB2. Global uniqueness breaks multi-tenancy +`ExpenseCategory.name @unique`, `IncomeCategory.name @unique`, `Item.name @unique` are +system-wide. User A creating "Groceries" claims the name for everyone; user B gets A's +row including A's `parentId` and `isConnectedToStore`. `DeleteExpenseCategoryUseCase` +counts expenses **globally**, so a category becomes undeletable because a stranger used +it. Combined with S5 this is the root cause of the cross-tenant mutation problem. + +**Fix:** own the rows. Either `userId` on the category with +`@@unique([userId, name])`, or an explicit "system/global" flag for a seeded taxonomy +plus user-owned overrides. The junction tables become unnecessary. + +### DB3. No decimal precision anywhere +Every money column is bare `Decimal`, which Prisma maps to Postgres +`DECIMAL(65,30)`. Should be `@db.Decimal(12,2)` (and `@db.Decimal(12,3)` for quantity). + +### DB4. Missing indexes on foreign keys actually used in filters +Not indexed: `Expense.categoryId`, `Expense.storeId`, `ExpenseItem.expenseId`, +`ExpenseItem.itemId`, `Income.categoryId`, `StoreItem.itemId`, `StoreItem.storeId`, +`StoreItemDiscount.storeItemId`, `ExpenseCategory.parentId`, `IncomeCategory.parentId`, +`ItemCategory.parentId`, `Transaction.recordedAt` (the default sort key on every list). + +### DB5. Basket uniqueness is wrong for multi-family users +```prisma +@@unique([userId, scope], name: "personal_basket") +``` +With `scope = FAMILY`, this permits a user **one family basket total**. A user in two +families cannot have a basket in both. Should be `@@unique([userId])` filtered to +`PERSONAL`, plus `@@unique([familyId])` for family baskets. + +### DB6. Cascade rules leave orphans +- `Transaction.familyId onDelete: SetNull` while `scope` stays `FAMILY` → transactions + with `scope=FAMILY, familyId=null`. +- `ExpenseItem → Expense` has no `onDelete`; deletion only works because + `DeleteExpenseUseCase` manually deletes items first. +- `Receipt.expenseId onDelete: SetNull` orphans the file's link. + +### DB7. Ad-hoc primary keys +`Expense`, `Income` and `StoreItemDiscount` declare `id String` with `@@id([id])` and +**no `@default(uuid())`**, forcing every call site to `uuid()` manually. Inconsistent +with every other model. + +### DB8. No audit trail +Financial records are mutated and hard-deleted in place. There is no soft delete, no +history table, and no record of who approved or edited what. For a finance app this is +a gap regardless of the bugs above. + +--- + +# P3 — Architecture, abstraction, API design + +### A1. The dependency rule is inverted in the domain layer +`expense.entity.ts`, `transaction.entity.ts`, `expense-item.entity.ts` import from +`prisma/generated/prisma/client` and expose `static fromPrisma(...)`. The domain +depends on the ORM. Mappers exist for some features (`family`, `income`, +`notification`, `transaction`) and not others — so both patterns coexist. + +**Fix:** pick mappers. Move every `fromPrisma` into `infrastructure/mappers/`. + +### A2. Three exception dialects, mixed within single features +- `DomainNotFoundException` etc. → handled by `DomainExceptionFilter` +- `NotFoundException` / `ForbiddenException` / `BadRequestException` from + `@nestjs/common`, imported directly into **core/application** use cases + (`remove-family-member`, `leave-family`, `accept-invitation`, `cancel-invitation`, + `get-family-with-members`, all payment-method use cases, `update-income`, + all receipt use cases) +- Plain `throw new Error(...)` in entity `validate()` — these become **500s** where a + 400 is correct. + +`family` uses domain exceptions in `invite-member` and Nest exceptions in +`remove-family-member`. There is also no fallback filter, so Prisma errors (P2002 +unique violation, P2025 not found) surface as bare 500s. + +**Fix:** domain exceptions only below `rest/`; add an `AllExceptionsFilter` that maps +Prisma error codes and logs with a correlation id. + +### A3. Pass-through service facades, with authorization hiding inside them +`ExpenseService` is 132 lines of one-line delegations to 12 use cases. +`PaymentMethodService`, `IncomeService`, `FamilyService`, `TransactionService` are the +same. The layer would be harmless indirection except that **authorization is +inconsistently placed**: + +- `IncomeService.validateOwnership` — in the *service* +- `GetExpenseByIdUseCase.verifyOwnership` — in the *use case* +- `ListExpensesUseCase.verifyMembership` — in the *use case* +- `GetExpenseStatisticsUseCase` — **nowhere** +- `TransactionService.findById(id, userId?)` — optional parameter, defaults to no check + +Optional `userId?` parameters that silently skip the check are a fail-open design. + +**Fix:** delete the facades, inject use cases into controllers directly, and move +authorization to one explicit place — guards/policies for coarse checks, a mandatory +non-optional `actor` argument on use cases for fine ones. + +### A4. Business logic in controllers +`ExpenseController.withReceiptUrl` calls the storage provider to presign URLs, and +`findAll` filters `matchedItems` by lowercase substring match — search semantics +implemented in the REST layer, duplicating the repository's `search` filter. + +### A5. Repositories bypassed +`DeleteExpenseUseCase` and `GetBalanceUseCase` inject `PrismaService` directly and +write queries inline, alongside the repository abstraction they are meant to use. + +### A6. Types duplicated three times +`ExpenseFilters` is declared in `common/dto/base-filters.dto.ts`, +`core/application/dto/expense-filters.dto.ts`, and again as an interface in +`domain/repositories/expense.repository.interface.ts`. `ExpenseStatistics` likewise +exists in the repository interface, the application DTO, and the REST DTO. + +### A7. Dead and misleading API surface +- `CreateExpenseRequestDto.scope` is validated, documented in Swagger, and **never read** + by `toCoreDto()` — scope is derived from `familyId`. +- `CreateExpenseDto.storeId` is used by the worker but cannot be sent over REST. +- `Expense.description` is written by `UpdateExpenseUseCase` and is not in the entity, + `toJSON()`, or any response DTO — write-only field. +- `COPILOT_TIMEOUT` is in `.env.example` and the zod schema; the service hardcodes 15s. +- `class-validator` decorators on `CreatePaymentMethodDto` (a *core* DTO) never execute. +- `@Type(() => Boolean)` on `pending` means `"false"` coerces to `true`. + +### A8. Two controllers share one base path +`ReceiptController` and `StoredReceiptController` are both `@Controller('receipts')`. +`GET /receipts/jobs/:jobId` and `GET /receipts/:id` compete; correctness depends on +module registration order. + +### A9. Configuration is validated then ignored +`validateEnv()` runs in `main.ts` and its result is used for `PORT` and `CORS_ORIGIN` +only. `ConfigModule.forRoot({ isGlobal: true })` is not given the schema, and +`process.env` is read directly in 15 places including `PrismaService` and +`better-auth.config.ts`. `RECEIPT_NORMALIZE_NAMES` is in `.env.example` but not in the +schema. + +Also missing: no `setGlobalPrefix('api')`, so business routes are at `/expenses` while +auth is at `/api/auth`. + +### A10. Performance +- `AuthGuard` calls `betterAuth.api.getSession()` **plus** a `user.findUnique` on every + single request. No caching. +- `getVisibleUserIds()` issues 2 queries and is called per repository method. +- `GetBalanceUseCase` fetches the balance summary, then fetches all payment methods + again just to attach `type`, then does one `findMember` query per family. +- `ReceiptJobQueueService.streamJobProgress` constructs a **new `QueueEvents` Redis + connection per SSE subscriber**. +- Receipt images are base64-encoded into the Redis job payload rather than passed by + storage key. +- `notify-family-members` and `remove-family-member` create notifications in loops. + +### A11. Tests +Six spec files exist. They cover the OCR HTTP client, the LLM parser, the job queue, +the worker, one mapper, and `AppController`. **Nothing covers expenses, incomes, +transactions, balances, families, permissions or auth.** The money and authorization +logic has zero coverage. + +--- + +# Remediation plan + +## Phase 0 — Stop the bleeding (days, ship immediately) + +Security patches only, minimal diff, each with a regression test. + +1. `accept-invitation` / `decline-invitation`: assert the caller is the invitee. **[S1]** +2. `IncomeController.create`: pass `user.id`; verify transaction ownership. **[S2]** +3. `GetExpenseStatisticsUseCase` + `ListTransactionsUseCase`: verify family + membership. **[S3]** +4. Receipt job status + SSE: compare `job.data.userId` to the caller. **[S4]** +5. Category `update`/`delete` (expense, income, item): require a user link. **[S5]** +6. `CreateTransactionUseCase`: verify `paymentMethodId` belongs to the user. **[S6]** +7. `ApprovePendingExpenseUseCase` / `RejectPendingExpenseUseCase`: require + `canManageMembers()` and approver ≠ submitter. **[S7]** +8. `LinkReceiptToExpenseUseCase`: verify expense ownership. **[S8]** +9. `SaveReceiptFileUseCase`: verify `familyId` membership. **[S9]** +10. Add `helmet` + `@nestjs/throttler` (tight limit on `/receipts/process`), drop upload + limit to 10 MB, exact mime allowlist + magic-byte check, gate `/docs` behind + `NODE_ENV !== 'production'`, environment-aware cookie flags, restrict WebSocket + CORS, remove item/price logging. **[S10]** + +**Exit criteria:** an integration test per hole, asserting 403/404 for a second user. + +## Phase 1 — Make authorization structural (1–2 weeks) + +The point is that Phase 0 must not be repeatable. Remove the possibility of forgetting. + +11. Introduce `@RequiresFamilyMembership()` / `@RequiresFamilyRole(OWNER, ADMIN)` + decorators plus a `FamilyScopeGuard` that fires on any request carrying `familyId` + (body, query or param). Delete the hand-rolled checks it replaces. +12. Introduce a `ResourceOwnershipGuard` (or a mandatory `actor: AuthUser` first + argument on every use case). **Ban optional `userId?` parameters** — make the + signature force the decision. +13. Delete the pass-through service facades; inject use cases into controllers. Where a + facade held the only auth check (`IncomeService`), move it into the guard/use case + first. **[A3]** +14. Make `buildWhereClause` fail closed: require an explicit scope + (`userId` or verified `familyId`) or throw. **[D10]** +15. Cache session validation in `AuthGuard` (short-TTL Redis, keyed by token). **[A10]** + +## Phase 2 — Money correctness (1–2 weeks) + +16. One `ExpenseTotalCalculator` domain service on `Decimal`; delete the other four + implementations including `apps/web/src/utils/calculations.ts`. Decide the formula + explicitly — `(price - discount) * quantity` matches the UI and the item + entity's own `discount <= price` invariant. **[D1]** +17. Push `Decimal` up through application DTOs; convert to `number` only in response + DTOs. **[D2]** +18. Wrap expense create, basket checkout, invitation accept and expense delete in + `prisma.$transaction`. **[D3]** +19. Fix D4: either persist items without a store or reject the request — no silent drop. +20. Replace balance read-modify-write with atomic `increment` inside transactions; + recalculate family and payment-method balances on **update and delete**, not just + create; stop swallowing errors in `RecalculateBalanceUseCase`; write a + reconciliation job plus an invariant test + (`sum(transactions) == cached balance`). **[D5]** +21. Add a real `POST /incomes` that creates transaction + income server-side; fix the + web app to use it. **[D6]** +22. Move statistics and trends to SQL (`groupBy` / `date_trunc`), and fix the timezone + mixing with an explicit, configurable timezone. **[D7, D8]** +23. Make `familyId` mean one thing across list, statistics and trends. **[D9]** + +## Phase 3 — Schema (needs migrations; sequence carefully) + +24. Add `@db.Decimal(12,2)` to all money columns, `@db.Decimal(12,3)` to quantity. **[DB3]** +25. Add the missing FK and `recordedAt` indexes. **[DB4]** *(cheap, do it with Phase 2)* +26. Fix `Income.storeId` — make it optional with a real relation, or drop it. **[DB1]** +27. Re-own categories/items per user or family; replace global `@unique(name)` with + `@@unique([ownerId, name])`; migrate existing shared rows by duplicating per linked + user. Largest single migration — plan it on its own. **[DB2, S5]** +28. Fix basket uniqueness. **[DB5]** +29. Fix cascade rules; add `@default(uuid())` to `Expense`/`Income`/`StoreItemDiscount`. **[DB6, DB7]** +30. Add soft delete + an audit log for financial mutations and approvals. **[DB8]** + +## Phase 4 — Architecture cleanup (ongoing) + +31. Move every `fromPrisma` out of domain entities into mappers. **[A1]** +32. Domain exceptions only below `rest/`; entity `validate()` throws + `DomainValidationException`; add an `AllExceptionsFilter` mapping Prisma codes, + with correlation-id logging. **[A2]** +33. Move `withReceiptUrl` and `matchedItems` out of the controller into the use + case/response mapper. **[A4]** +34. Remove direct `PrismaService` use from use cases. **[A5]** +35. Collapse the triplicate `ExpenseFilters` / `ExpenseStatistics` definitions. **[A6]** +36. Remove dead API surface (`scope`, `description`, core-DTO validators); fix the + `pending` boolean coercion; honour `COPILOT_TIMEOUT`. **[A7]** +37. Split the two `receipts` controllers onto distinct paths. **[A8]** +38. Wire the zod schema into `ConfigModule.forRoot({ validate })`; ban direct + `process.env`; add `setGlobalPrefix('api')` (coordinate with the generated + clients). **[A9]** +39. Share one `QueueEvents` instance; pass receipts to the queue by storage key rather + than base64; batch notification creation; fix the `GetBalanceUseCase` N+1. **[A10]** +40. Delimit and escape OCR text in LLM prompts. **[S10]** + +## Phase 5 — Tests + +41. Integration tests per endpoint asserting a second user gets 403/404 — this is the + regression net for Phase 0/1. +42. Unit tests for the total calculator (including the discount edge cases that + currently diverge). +43. Balance invariant tests across create/update/delete/approve/reject. +44. Family role matrix tests (OWNER/ADMIN/MEMBER × invite/remove/approve/reject). + +--- + +## Suggested ordering + +Phase 0 ships first and alone. Phase 1 and Phase 2 can run in parallel — they touch +different seams. Phase 3 item 27 (category re-ownership) is the riskiest change in the +whole plan and should not be bundled with anything else. Phase 4 is continuous cleanup; +Phase 5 items 41–42 should land *with* Phases 0–2 rather than after them. From 64f0391799822fb320521891dfd40f294bdc1018 Mon Sep 17 00:00:00 2001 From: blendonl Date: Wed, 9 Sep 2026 03:48:16 +0200 Subject: [PATCH 2/6] test(backend): close the remaining second-user gaps on money-bearing endpoints The endpoint list Phase 5 names was already covered by the earlier phases. What was not covered is payment method read/update/delete and the basket, whose checkout turns basket items into a real expense. --- .../use-cases/basket-authorization.spec.ts | 217 ++++++++++++++++++ .../payment-method-authorization.spec.ts | 124 ++++++++++ 2 files changed, 341 insertions(+) create mode 100644 apps/backend/src/feature/basket/core/application/use-cases/basket-authorization.spec.ts create mode 100644 apps/backend/src/feature/payment-method/core/application/use-cases/payment-method-authorization.spec.ts diff --git a/apps/backend/src/feature/basket/core/application/use-cases/basket-authorization.spec.ts b/apps/backend/src/feature/basket/core/application/use-cases/basket-authorization.spec.ts new file mode 100644 index 00000000..a38794e9 --- /dev/null +++ b/apps/backend/src/feature/basket/core/application/use-cases/basket-authorization.spec.ts @@ -0,0 +1,217 @@ +import { createPrismaServiceDouble } from '~test/prisma-service.double'; +import { DomainForbiddenException } from '~common/exceptions/domain.exceptions'; +import { BasketScope } from '../../domain/entities/basket.entity'; +import { UpdateBasketItemUseCase } from './update-basket-item.use-case'; +import { RemoveBasketItemUseCase } from './remove-basket-item.use-case'; +import { CheckoutBasketItemsUseCase } from './checkout-basket-items.use-case'; +import { UpdateBasketItemDto } from '../dto/update-basket-item.dto'; +import { CheckoutBasketItemsDto } from '../dto/checkout-basket-items.dto'; + +const OWNER = 'owner-1'; +const CO_MEMBER = 'co-member-1'; +const SECOND_USER = 'second-user-1'; +const FAMILY = 'family-1'; +const PERSONAL_BASKET = 'basket-personal'; +const FAMILY_BASKET = 'basket-family'; +const ITEM = 'basket-item-1'; + +const baskets = { + [PERSONAL_BASKET]: { + id: PERSONAL_BASKET, + scope: BasketScope.PERSONAL, + userId: OWNER, + familyId: null, + }, + [FAMILY_BASKET]: { + id: FAMILY_BASKET, + scope: BasketScope.FAMILY, + userId: OWNER, + familyId: FAMILY, + }, +}; + +const basketItem = (basketId: string) => ({ + id: ITEM, + basketId, + name: 'Milk', + price: 1.5, + quantity: 2, + categoryId: 'category-1', + update: jest.fn(), +}); + +describe('basket authorization', () => { + let basketRepository: { + findById: jest.Mock; + findItemById: jest.Mock; + findItemsByIds: jest.Mock; + updateItem: jest.Mock; + removeItem: jest.Mock; + removeItemsByIds: jest.Mock; + }; + let familyService: { findMember: jest.Mock }; + let createExpenseUseCase: { execute: jest.Mock }; + let updateItem: UpdateBasketItemUseCase; + let removeItem: RemoveBasketItemUseCase; + let checkout: CheckoutBasketItemsUseCase; + + const givenBasket = (basketId: keyof typeof baskets) => { + basketRepository.findById.mockResolvedValue(baskets[basketId]); + basketRepository.findItemById.mockResolvedValue(basketItem(basketId)); + basketRepository.findItemsByIds.mockResolvedValue([basketItem(basketId)]); + }; + + const checkoutDtoFor = (basketId: string, userId: string) => + new CheckoutBasketItemsDto({ + basketId, + itemIds: [ITEM], + categoryId: 'category-1', + storeId: 'store-1', + userId, + }); + + beforeEach(() => { + basketRepository = { + findById: jest.fn(), + findItemById: jest.fn(), + findItemsByIds: jest.fn(), + updateItem: jest.fn().mockResolvedValue({ id: ITEM }), + removeItem: jest.fn().mockResolvedValue(undefined), + removeItemsByIds: jest.fn().mockResolvedValue(undefined), + }; + familyService = { + findMember: jest + .fn() + .mockImplementation((familyId: string, userId: string) => + Promise.resolve( + familyId === FAMILY && [OWNER, CO_MEMBER].includes(userId) + ? { familyId, userId } + : null, + ), + ), + }; + createExpenseUseCase = { + execute: jest.fn().mockResolvedValue({ id: 'expense-1' }), + }; + + updateItem = new UpdateBasketItemUseCase( + basketRepository as never, + familyService as never, + ); + removeItem = new RemoveBasketItemUseCase( + basketRepository as never, + familyService as never, + ); + checkout = new CheckoutBasketItemsUseCase( + basketRepository as never, + familyService as never, + createExpenseUseCase as never, + { notify: jest.fn().mockResolvedValue(undefined) } as never, + createPrismaServiceDouble(), + ); + }); + + describe("a second user against another user's personal basket", () => { + beforeEach(() => givenBasket(PERSONAL_BASKET)); + + it('cannot reprice an item', async () => { + await expect( + updateItem.execute( + ITEM, + new UpdateBasketItemDto({ price: 999 }), + SECOND_USER, + ), + ).rejects.toBeInstanceOf(DomainForbiddenException); + + expect(basketRepository.updateItem).not.toHaveBeenCalled(); + }); + + it('cannot remove an item', async () => { + await expect( + removeItem.execute(ITEM, SECOND_USER), + ).rejects.toBeInstanceOf(DomainForbiddenException); + + expect(basketRepository.removeItem).not.toHaveBeenCalled(); + }); + + it('cannot check it out into an expense of their own', async () => { + await expect( + checkout.execute(checkoutDtoFor(PERSONAL_BASKET, SECOND_USER)), + ).rejects.toBeInstanceOf(DomainForbiddenException); + + expect(createExpenseUseCase.execute).not.toHaveBeenCalled(); + expect(basketRepository.removeItemsByIds).not.toHaveBeenCalled(); + }); + + it('lets the owner do all three', async () => { + await updateItem.execute( + ITEM, + new UpdateBasketItemDto({ price: 2 }), + OWNER, + ); + await removeItem.execute(ITEM, OWNER); + await checkout.execute(checkoutDtoFor(PERSONAL_BASKET, OWNER)); + + expect(basketRepository.updateItem).toHaveBeenCalled(); + expect(basketRepository.removeItem).toHaveBeenCalledWith(ITEM); + expect(createExpenseUseCase.execute).toHaveBeenCalled(); + }); + + it('does not let a family co-member reach a personal basket', async () => { + await expect(removeItem.execute(ITEM, CO_MEMBER)).rejects.toBeInstanceOf( + DomainForbiddenException, + ); + }); + }); + + describe('a family basket', () => { + beforeEach(() => givenBasket(FAMILY_BASKET)); + + it('refuses a user who does not belong to the family', async () => { + await expect( + updateItem.execute( + ITEM, + new UpdateBasketItemDto({ price: 999 }), + SECOND_USER, + ), + ).rejects.toBeInstanceOf(DomainForbiddenException); + + await expect( + removeItem.execute(ITEM, SECOND_USER), + ).rejects.toBeInstanceOf(DomainForbiddenException); + + await expect( + checkout.execute(checkoutDtoFor(FAMILY_BASKET, SECOND_USER)), + ).rejects.toBeInstanceOf(DomainForbiddenException); + }); + + it('admits a co-member', async () => { + await expect( + removeItem.execute(ITEM, CO_MEMBER), + ).resolves.toBeUndefined(); + }); + + it('books a co-member checkout against the family, not their personal scope', async () => { + await checkout.execute(checkoutDtoFor(FAMILY_BASKET, CO_MEMBER)); + + expect(createExpenseUseCase.execute).toHaveBeenCalledWith( + expect.objectContaining({ userId: CO_MEMBER, familyId: FAMILY }), + ); + }); + }); + + describe('items borrowed from another basket', () => { + it('refuses to check out items that belong to a different basket', async () => { + basketRepository.findById.mockResolvedValue(baskets[PERSONAL_BASKET]); + basketRepository.findItemsByIds.mockResolvedValue([ + basketItem(FAMILY_BASKET), + ]); + + await expect( + checkout.execute(checkoutDtoFor(PERSONAL_BASKET, OWNER)), + ).rejects.toThrow('Some items do not belong to this basket'); + + expect(createExpenseUseCase.execute).not.toHaveBeenCalled(); + }); + }); +}); diff --git a/apps/backend/src/feature/payment-method/core/application/use-cases/payment-method-authorization.spec.ts b/apps/backend/src/feature/payment-method/core/application/use-cases/payment-method-authorization.spec.ts new file mode 100644 index 00000000..d45715cf --- /dev/null +++ b/apps/backend/src/feature/payment-method/core/application/use-cases/payment-method-authorization.spec.ts @@ -0,0 +1,124 @@ +import { NotFoundException } from '@nestjs/common'; +import { DomainForbiddenException } from '~common/exceptions/domain.exceptions'; +import { GetPaymentMethodByIdUseCase } from './get-payment-method-by-id.use-case'; +import { UpdatePaymentMethodUseCase } from './update-payment-method.use-case'; +import { DeletePaymentMethodUseCase } from './delete-payment-method.use-case'; +import { VerifyPaymentMethodOwnershipUseCase } from './verify-payment-method-ownership.use-case'; +import { UpdatePaymentMethodDto } from '../dto/update-payment-method.dto'; + +const OWNER = 'owner-1'; +const SECOND_USER = 'second-user-1'; +const CARD = 'payment-method-1'; + +describe('payment method authorization', () => { + let paymentMethodRepository: { + findById: jest.Mock; + findByUserIdAndName: jest.Mock; + update: jest.Mock; + delete: jest.Mock; + recalculateBalance: jest.Mock; + }; + let findOne: GetPaymentMethodByIdUseCase; + let update: UpdatePaymentMethodUseCase; + let remove: DeletePaymentMethodUseCase; + let verifyOwnership: VerifyPaymentMethodOwnershipUseCase; + + beforeEach(() => { + paymentMethodRepository = { + findById: jest + .fn() + .mockResolvedValue({ id: CARD, userId: OWNER, name: 'Card' }), + findByUserIdAndName: jest.fn().mockResolvedValue(null), + update: jest.fn().mockResolvedValue({ id: CARD, userId: OWNER }), + delete: jest.fn().mockResolvedValue(undefined), + recalculateBalance: jest.fn().mockResolvedValue(undefined), + }; + + findOne = new GetPaymentMethodByIdUseCase(paymentMethodRepository as never); + update = new UpdatePaymentMethodUseCase(paymentMethodRepository as never); + remove = new DeletePaymentMethodUseCase(paymentMethodRepository as never); + verifyOwnership = new VerifyPaymentMethodOwnershipUseCase( + paymentMethodRepository as never, + ); + }); + + describe('a second user', () => { + it('cannot read the account', async () => { + await expect(findOne.execute(CARD, SECOND_USER)).rejects.toBeInstanceOf( + NotFoundException, + ); + }); + + it('cannot rename it or rewrite its opening balance', async () => { + await expect( + update.execute( + CARD, + SECOND_USER, + new UpdatePaymentMethodDto({ name: 'Seized', initialBalance: 9999 }), + ), + ).rejects.toBeInstanceOf(NotFoundException); + + expect(paymentMethodRepository.update).not.toHaveBeenCalled(); + }); + + it('cannot delete it', async () => { + await expect(remove.execute(CARD, SECOND_USER)).rejects.toBeInstanceOf( + NotFoundException, + ); + + expect(paymentMethodRepository.delete).not.toHaveBeenCalled(); + }); + + it('cannot attach a transaction to it', async () => { + await expect( + verifyOwnership.execute(CARD, SECOND_USER), + ).rejects.toBeInstanceOf(DomainForbiddenException); + }); + + it('is told the account is missing rather than that it is forbidden', async () => { + paymentMethodRepository.findById.mockResolvedValueOnce(null); + + const missing = await findOne + .execute('no-such-card', OWNER) + .catch((error: Error) => error); + const forbidden = await findOne + .execute(CARD, SECOND_USER) + .catch((error: Error) => error); + + expect(missing).toBeInstanceOf(NotFoundException); + expect((forbidden as Error).message).toBe((missing as Error).message); + }); + }); + + describe('the owner', () => { + it('reads the account', async () => { + await expect(findOne.execute(CARD, OWNER)).resolves.toEqual( + expect.objectContaining({ id: CARD }), + ); + }); + + it('updates the account', async () => { + await update.execute( + CARD, + OWNER, + new UpdatePaymentMethodDto({ name: 'Everyday card' }), + ); + + expect(paymentMethodRepository.update).toHaveBeenCalledWith(CARD, { + name: 'Everyday card', + }); + }); + + it('deletes the account', async () => { + await remove.execute(CARD, OWNER); + + expect(paymentMethodRepository.delete).toHaveBeenCalledWith(CARD); + }); + + it('may attach a transaction to it', async () => { + await expect( + verifyOwnership.execute(CARD, OWNER), + ).resolves.toBeUndefined(); + }); + }); +}); From 73ff6f60f1199888b07205c73b6778db6dd00947 Mon Sep 17 00:00:00 2001 From: blendonl Date: Wed, 9 Sep 2026 03:50:33 +0200 Subject: [PATCH 3/6] test(backend): assert every cached balance against its transactions Phase 2 covered Family.balance and FamilyMember.balance in isolation. This runs the real update, delete, approve and reject use cases over one ledger and checks all three caches together, including PaymentMethod.currentBalance, after each step of a create/approve/update/delete sequence. --- .../use-cases/balance-invariant.spec.ts | 533 ++++++++++++++++++ 1 file changed, 533 insertions(+) create mode 100644 apps/backend/src/feature/expense/core/application/use-cases/balance-invariant.spec.ts diff --git a/apps/backend/src/feature/expense/core/application/use-cases/balance-invariant.spec.ts b/apps/backend/src/feature/expense/core/application/use-cases/balance-invariant.spec.ts new file mode 100644 index 00000000..8daa5a32 --- /dev/null +++ b/apps/backend/src/feature/expense/core/application/use-cases/balance-invariant.spec.ts @@ -0,0 +1,533 @@ +import { readFileSync } from 'node:fs'; +import { join } from 'node:path'; +import { Decimal } from 'prisma/generated/prisma/internal/prismaNamespace'; +import { createPrismaServiceDouble } from '~test/prisma-service.double'; +import { TransactionAmountNormalizer } from '~feature/transaction/core/domain/services/transaction-amount.normalizer'; +import { TransactionStatus } from '~feature/transaction/core/domain/value-objects/transaction-status.vo'; +import { TransactionType } from '~feature/transaction/core/domain/value-objects/transaction-type.vo'; +import { UpdateExpenseUseCase } from './update-expense.use-case'; +import { DeleteExpenseUseCase } from './delete-expense.use-case'; +import { ApprovePendingExpenseUseCase } from './approve-pending-expense.use-case'; +import { RejectPendingExpenseUseCase } from './reject-pending-expense.use-case'; +import { UpdateExpenseDto } from '../dto/update-expense.dto'; + +const FAMILY = 'family-1'; +const ALICE = 'alice'; +const BOB = 'bob'; +const CARD = 'card'; +const CASH = 'cash'; + +const OPENING_BALANCES: Record = { + [CARD]: '500', + [CASH]: '80', +}; + +interface LedgerTransaction { + id: string; + userId: string; + familyId: string | null; + paymentMethodId: string | null; + type: TransactionType; + status: TransactionStatus; + value: Decimal; +} + +class Ledger { + private readonly transactions = new Map(); + private readonly expenses = new Map(); + private cachedFamilyBalance = new Decimal(0); + private readonly cachedMemberBalances = new Map([ + [ALICE, new Decimal(0)], + [BOB, new Decimal(0)], + ]); + private readonly cachedPaymentMethodBalances = new Map([ + [CARD, new Decimal(OPENING_BALANCES[CARD])], + [CASH, new Decimal(OPENING_BALANCES[CASH])], + ]); + + seed( + expenseId: string, + transaction: Omit & { value: string }, + ): void { + this.transactions.set(transaction.id, { + ...transaction, + value: new Decimal(transaction.value), + }); + this.expenses.set(expenseId, transaction.id); + + if (transaction.status === TransactionStatus.CONFIRMED) { + this.applyToCaches(transaction.id); + } + } + + expense(expenseId: string) { + const transactionId = this.expenses.get(expenseId); + const entry = transactionId + ? this.transactions.get(transactionId) + : undefined; + + if (!entry) { + return null; + } + + return { + id: expenseId, + transactionId: entry.id, + transaction: { + ...entry, + isPending: () => entry.status === TransactionStatus.PENDING, + }, + }; + } + + updateTransaction(id: string, changes: Record): void { + const entry = this.transactions.get(id)!; + + if (changes.value !== undefined) { + entry.value = new Decimal(changes.value as string); + } + if (changes.paymentMethodId !== undefined) { + entry.paymentMethodId = changes.paymentMethodId as string; + } + } + + confirm(id: string): LedgerTransaction { + const entry = this.transactions.get(id)!; + entry.status = TransactionStatus.CONFIRMED; + return entry; + } + + reject(id: string): LedgerTransaction { + const entry = this.transactions.get(id)!; + entry.status = TransactionStatus.REJECTED; + return entry; + } + + removeExpense(expenseId: string): void { + const transactionId = this.expenses.get(expenseId)!; + this.transactions.delete(transactionId); + this.expenses.delete(expenseId); + } + + incrementFamilyBalances( + familyId: string, + userId: string, + delta: Decimal, + ): void { + expect(familyId).toBe(FAMILY); + this.cachedFamilyBalance = this.cachedFamilyBalance.plus(delta); + this.cachedMemberBalances.set( + userId, + (this.cachedMemberBalances.get(userId) ?? new Decimal(0)).plus(delta), + ); + } + + recalculateFamilyBalances(familyId: string): void { + expect(familyId).toBe(FAMILY); + const computed = this.computeFamilyBalances(); + this.cachedFamilyBalance = computed.balance; + for (const [userId, balance] of computed.memberBalances) { + this.cachedMemberBalances.set(userId, balance); + } + } + + recalculatePaymentMethodBalance(paymentMethodId: string): void { + this.cachedPaymentMethodBalances.set( + paymentMethodId, + this.computePaymentMethodBalance(paymentMethodId), + ); + } + + cachedFamily(): Decimal { + return this.cachedFamilyBalance; + } + + cachedMember(userId: string): Decimal { + return this.cachedMemberBalances.get(userId) ?? new Decimal(0); + } + + cachedPaymentMethod(paymentMethodId: string): Decimal { + return ( + this.cachedPaymentMethodBalances.get(paymentMethodId) ?? new Decimal(0) + ); + } + + computeFamilyBalances(): { + balance: Decimal; + memberBalances: Map; + } { + const memberBalances = new Map([ + [ALICE, new Decimal(0)], + [BOB, new Decimal(0)], + ]); + let balance = new Decimal(0); + + for (const entry of this.confirmed()) { + if (entry.familyId !== FAMILY) continue; + + const signed = TransactionAmountNormalizer.signedTotal( + entry.type, + TransactionAmountNormalizer.normalize(entry), + ); + memberBalances.set( + entry.userId, + (memberBalances.get(entry.userId) ?? new Decimal(0)).plus(signed), + ); + balance = balance.plus(signed); + } + + return { balance, memberBalances }; + } + + computePaymentMethodBalance(paymentMethodId: string): Decimal { + return this.confirmed() + .filter((entry) => entry.paymentMethodId === paymentMethodId) + .reduce( + (balance, entry) => + entry.type === TransactionType.INCOME + ? balance.plus(entry.value) + : balance.minus(entry.value), + new Decimal(OPENING_BALANCES[paymentMethodId] ?? '0'), + ); + } + + private applyToCaches(transactionId: string): void { + const entry = this.transactions.get(transactionId)!; + const signed = TransactionAmountNormalizer.signedTotal( + entry.type, + TransactionAmountNormalizer.normalize(entry), + ); + + if (entry.familyId === FAMILY) { + this.incrementFamilyBalances(FAMILY, entry.userId, signed); + } + if (entry.paymentMethodId) { + this.recalculatePaymentMethodBalance(entry.paymentMethodId); + } + } + + private confirmed(): LedgerTransaction[] { + return [...this.transactions.values()].filter( + (entry) => entry.status === TransactionStatus.CONFIRMED, + ); + } +} + +describe('every cached balance equals the sum of its transactions', () => { + let ledger: Ledger; + let expenseRepository: Record; + let transactionRepository: Record; + let paymentMethodService: Record; + let familyBalanceService: Record; + + const expectBalanced = () => { + const computed = ledger.computeFamilyBalances(); + + expect(ledger.cachedFamily().toString()).toBe(computed.balance.toString()); + for (const [userId, balance] of computed.memberBalances) { + expect(ledger.cachedMember(userId).toString()).toBe(balance.toString()); + } + for (const paymentMethodId of [CARD, CASH]) { + expect(ledger.cachedPaymentMethod(paymentMethodId).toString()).toBe( + ledger.computePaymentMethodBalance(paymentMethodId).toString(), + ); + } + }; + + beforeEach(() => { + ledger = new Ledger(); + + expenseRepository = { + findById: jest + .fn() + .mockImplementation((id: string) => + Promise.resolve(ledger.expense(id)), + ), + verifyOwnership: jest.fn().mockResolvedValue(true), + update: jest + .fn() + .mockImplementation((id: string) => Promise.resolve({ id })), + }; + transactionRepository = { + update: jest + .fn() + .mockImplementation((id: string, data: Record) => { + ledger.updateTransaction(id, data); + return Promise.resolve(undefined); + }), + updateStatus: jest + .fn() + .mockImplementation((id: string, status: TransactionStatus) => + Promise.resolve( + status === TransactionStatus.CONFIRMED + ? ledger.confirm(id) + : ledger.reject(id), + ), + ), + }; + paymentMethodService = { + verifyOwnership: jest.fn().mockResolvedValue(undefined), + recalculateBalance: jest.fn().mockImplementation((id: string) => { + ledger.recalculatePaymentMethodBalance(id); + return Promise.resolve(undefined); + }), + }; + familyBalanceService = { + recalculateBalances: jest.fn().mockImplementation((familyId: string) => { + ledger.recalculateFamilyBalances(familyId); + return Promise.resolve(undefined); + }), + updateBalancesAfterTransaction: jest + .fn() + .mockImplementation( + ( + familyId: string, + userId: string, + transaction: LedgerTransaction, + ) => { + ledger.incrementFamilyBalances( + familyId, + userId, + TransactionAmountNormalizer.signedDelta(transaction as never), + ); + return Promise.resolve(undefined); + }, + ), + }; + }); + + const updateExpense = () => + new UpdateExpenseUseCase( + expenseRepository as never, + { findById: jest.fn().mockResolvedValue({ id: 'category-1' }) } as never, + transactionRepository as never, + { findById: jest.fn().mockResolvedValue({ id: 'store-1' }) } as never, + paymentMethodService as never, + familyBalanceService as never, + createPrismaServiceDouble(), + ); + + const deleteExpense = () => + new DeleteExpenseUseCase( + expenseRepository as never, + createPrismaServiceDouble({ + expenseItem: { deleteMany: jest.fn().mockResolvedValue(undefined) }, + expense: { + delete: jest + .fn() + .mockImplementation(({ where }: { where: { id: string } }) => { + ledger.removeExpense(where.id); + return Promise.resolve(undefined); + }), + }, + transaction: { delete: jest.fn().mockResolvedValue(undefined) }, + }), + paymentMethodService as never, + familyBalanceService as never, + ); + + const approveExpense = () => + new ApprovePendingExpenseUseCase( + expenseRepository as never, + transactionRepository as never, + { + verifyApprovalAuthority: jest.fn().mockResolvedValue(undefined), + } as never, + familyBalanceService as never, + paymentMethodService as never, + { notify: jest.fn().mockResolvedValue(undefined) } as never, + { execute: jest.fn().mockResolvedValue(undefined) } as never, + createPrismaServiceDouble(), + ); + + const rejectExpense = () => + new RejectPendingExpenseUseCase( + expenseRepository as never, + transactionRepository as never, + { + verifyApprovalAuthority: jest.fn().mockResolvedValue(undefined), + } as never, + { execute: jest.fn().mockResolvedValue(undefined) } as never, + ); + + const confirmedExpense = ( + expenseId: string, + overrides: Partial> & { value: string }, + ) => + ledger.seed(expenseId, { + id: `transaction-${expenseId}`, + userId: ALICE, + familyId: FAMILY, + paymentMethodId: CARD, + type: TransactionType.EXPENSE, + status: TransactionStatus.CONFIRMED, + ...overrides, + }); + + it('holds on the opening state, before anything happens', () => { + expectBalanced(); + expect(ledger.cachedPaymentMethod(CARD).toString()).toBe('500'); + }); + + it('holds after seeding confirmed expenses and incomes', () => { + confirmedExpense('expense-1', { value: '25.50' }); + confirmedExpense('expense-2', { + userId: BOB, + value: '10', + paymentMethodId: CASH, + }); + confirmedExpense('expense-3', { + value: '200', + type: TransactionType.INCOME, + }); + + expectBalanced(); + expect(ledger.cachedFamily().toString()).toBe('164.5'); + expect(ledger.cachedPaymentMethod(CARD).toString()).toBe('674.5'); + expect(ledger.cachedPaymentMethod(CASH).toString()).toBe('70'); + }); + + it('holds after an expense amount is updated', async () => { + confirmedExpense('expense-1', { value: '25' }); + + await updateExpense().execute( + 'expense-1', + ALICE, + new UpdateExpenseDto({ amount: new Decimal('75') }), + ); + + expectBalanced(); + expect(ledger.cachedFamily().toString()).toBe('-75'); + expect(ledger.cachedPaymentMethod(CARD).toString()).toBe('425'); + }); + + it('holds after an expense is moved to another payment method', async () => { + confirmedExpense('expense-1', { value: '25' }); + + await updateExpense().execute( + 'expense-1', + ALICE, + new UpdateExpenseDto({ paymentMethodId: CASH }), + ); + + expectBalanced(); + expect(ledger.cachedPaymentMethod(CARD).toString()).toBe('500'); + expect(ledger.cachedPaymentMethod(CASH).toString()).toBe('55'); + }); + + it('holds after an expense is deleted', async () => { + confirmedExpense('expense-1', { value: '25' }); + confirmedExpense('expense-2', { userId: BOB, value: '10' }); + + await deleteExpense().execute('expense-1', ALICE); + + expectBalanced(); + expect(ledger.cachedFamily().toString()).toBe('-10'); + expect(ledger.cachedMember(ALICE).toString()).toBe('0'); + expect(ledger.cachedPaymentMethod(CARD).toString()).toBe('490'); + }); + + it('holds while a pending expense sits unapproved', () => { + confirmedExpense('expense-1', { + value: '40', + status: TransactionStatus.PENDING, + }); + + expectBalanced(); + expect(ledger.cachedFamily().toString()).toBe('0'); + expect(ledger.cachedPaymentMethod(CARD).toString()).toBe('500'); + }); + + it('holds after a pending expense is approved', async () => { + confirmedExpense('expense-1', { + value: '40', + status: TransactionStatus.PENDING, + }); + + await approveExpense().execute('expense-1', BOB); + + expectBalanced(); + expect(ledger.cachedFamily().toString()).toBe('-40'); + expect(ledger.cachedMember(ALICE).toString()).toBe('-40'); + expect(ledger.cachedPaymentMethod(CARD).toString()).toBe('460'); + }); + + it('holds after a pending expense is rejected', async () => { + confirmedExpense('expense-1', { + value: '40', + status: TransactionStatus.PENDING, + }); + + await rejectExpense().execute('expense-1', BOB, 'not ours'); + + expectBalanced(); + expect(ledger.cachedFamily().toString()).toBe('0'); + expect(ledger.cachedPaymentMethod(CARD).toString()).toBe('500'); + }); + + it('holds across a create, approve, update, delete sequence', async () => { + confirmedExpense('expense-1', { value: '12.35' }); + confirmedExpense('expense-2', { + userId: BOB, + value: '40', + paymentMethodId: CASH, + status: TransactionStatus.PENDING, + }); + confirmedExpense('expense-3', { + value: '300', + type: TransactionType.INCOME, + }); + expectBalanced(); + + await approveExpense().execute('expense-2', ALICE); + expectBalanced(); + + await updateExpense().execute( + 'expense-1', + ALICE, + new UpdateExpenseDto({ amount: new Decimal('99.99') }), + ); + expectBalanced(); + + await deleteExpense().execute('expense-3', ALICE); + expectBalanced(); + + expect(ledger.cachedFamily().toString()).toBe('-139.99'); + expect(ledger.cachedMember(ALICE).toString()).toBe('-99.99'); + expect(ledger.cachedMember(BOB).toString()).toBe('-40'); + expect(ledger.cachedPaymentMethod(CARD).toString()).toBe('400.01'); + expect(ledger.cachedPaymentMethod(CASH).toString()).toBe('40'); + }); + + it('holds when a rejected expense is later deleted', async () => { + confirmedExpense('expense-1', { + value: '40', + status: TransactionStatus.PENDING, + }); + + await rejectExpense().execute('expense-1', BOB, 'not ours'); + await deleteExpense().execute('expense-1', ALICE); + + expectBalanced(); + expect(ledger.cachedFamily().toString()).toBe('0'); + }); + + it('has no fourth cache to reconcile, because User.balance is gone', () => { + const schema = readFileSync( + join(__dirname, '../../../../../../prisma/schema/schema.prisma'), + 'utf8', + ); + const userModel = /model User \{[^}]*\}/.exec(schema)?.[0]; + + expect(userModel).toBeDefined(); + expect(userModel).not.toMatch(/^\s*balance\s/m); + }); + + it('would catch an update that changed the amount without recalculating', () => { + confirmedExpense('expense-1', { value: '25' }); + + ledger.updateTransaction('transaction-expense-1', { value: '75' }); + + expect(() => expectBalanced()).toThrow(); + }); +}); From 013d62315ee4bcdf47cc2407e6112bc13b53165a Mon Sep 17 00:00:00 2001 From: blendonl Date: Wed, 9 Sep 2026 04:05:09 +0200 Subject: [PATCH 4/6] fix(backend): keep an expense transaction equal to the sum of its items Editing a line item's price or discount, adding one, or deleting one left the stored Transaction.value untouched: UpdateExpenseItemUseCase and DeleteExpenseItemUseCase never recalculated, and CalculateExpenseTotalUseCase was only reachable through a getExpenseTotal method nothing called on those paths. A receipt line corrected from 10 to 20 kept the old total forever. SyncExpenseTotalUseCase recomputes the total from the items and writes it to the transaction, then refreshes the family and payment method balances that depend on it. The three item mutations run it inside their own database transaction. --- .../services/expense-item.service.ts | 17 +- .../use-cases/add-expense-item.use-case.ts | 33 ++ .../use-cases/delete-expense-item.use-case.ts | 9 +- .../use-cases/expense-total-invariant.spec.ts | 334 ++++++++++++++++++ .../use-cases/sync-expense-total.use-case.ts | 58 +++ .../use-cases/update-expense-item.use-case.ts | 21 +- .../expense-item.repository.interface.ts | 10 + .../core/expense-item-core.module.ts | 10 + .../prisma-expense-item.repository.ts | 21 ++ .../expense-item.controller.spec.ts | 8 +- .../controllers/expense-item.controller.ts | 18 +- .../use-cases/expense-update-total.spec.ts | 118 +++++++ 12 files changed, 642 insertions(+), 15 deletions(-) create mode 100644 apps/backend/src/feature/expense-item/core/application/use-cases/add-expense-item.use-case.ts create mode 100644 apps/backend/src/feature/expense-item/core/application/use-cases/expense-total-invariant.spec.ts create mode 100644 apps/backend/src/feature/expense-item/core/application/use-cases/sync-expense-total.use-case.ts create mode 100644 apps/backend/src/feature/expense/core/application/use-cases/expense-update-total.spec.ts diff --git a/apps/backend/src/feature/expense-item/core/application/services/expense-item.service.ts b/apps/backend/src/feature/expense-item/core/application/services/expense-item.service.ts index 11e3dd75..74ee1b9d 100644 --- a/apps/backend/src/feature/expense-item/core/application/services/expense-item.service.ts +++ b/apps/backend/src/feature/expense-item/core/application/services/expense-item.service.ts @@ -1,6 +1,7 @@ import { Injectable } from '@nestjs/common'; import { DomainValidationException } from '~common/exceptions/domain.exceptions'; import { CreateExpenseItemUseCase } from '../use-cases/create-expense-item.use-case'; +import { AddExpenseItemUseCase } from '../use-cases/add-expense-item.use-case'; import { GetExpenseItemByIdUseCase } from '../use-cases/get-expense-item-by-id.use-case'; import { ListExpenseItemsUseCase } from '../use-cases/list-expense-items.use-case'; import { UpdateExpenseItemUseCase } from '../use-cases/update-expense-item.use-case'; @@ -17,6 +18,7 @@ import { Decimal } from 'prisma/generated/prisma/internal/prismaNamespace'; export class ExpenseItemService { constructor( private readonly createExpenseItemUseCase: CreateExpenseItemUseCase, + private readonly addExpenseItemUseCase: AddExpenseItemUseCase, private readonly getExpenseItemByIdUseCase: GetExpenseItemByIdUseCase, private readonly listExpenseItemsUseCase: ListExpenseItemsUseCase, private readonly updateExpenseItemUseCase: UpdateExpenseItemUseCase, @@ -29,6 +31,20 @@ export class ExpenseItemService { storeId: string, userId: string, ): Promise { + this.validateNewItem(dto, storeId); + return this.createExpenseItemUseCase.execute(dto, storeId, userId); + } + + async addToExpense( + dto: CreateExpenseItemDto, + storeId: string, + userId: string, + ): Promise { + this.validateNewItem(dto, storeId); + return this.addExpenseItemUseCase.execute(dto, storeId, userId); + } + + private validateNewItem(dto: CreateExpenseItemDto, storeId: string): void { if (!dto.expenseId || dto.expenseId.trim() === '') { throw new DomainValidationException('Expense ID is required'); } @@ -38,7 +54,6 @@ export class ExpenseItemService { if (dto.itemPrice < 0) { throw new DomainValidationException('Item price must be non-negative'); } - return this.createExpenseItemUseCase.execute(dto, storeId, userId); } async findById(id: string): Promise { diff --git a/apps/backend/src/feature/expense-item/core/application/use-cases/add-expense-item.use-case.ts b/apps/backend/src/feature/expense-item/core/application/use-cases/add-expense-item.use-case.ts new file mode 100644 index 00000000..15fc63d0 --- /dev/null +++ b/apps/backend/src/feature/expense-item/core/application/use-cases/add-expense-item.use-case.ts @@ -0,0 +1,33 @@ +import { Injectable } from '@nestjs/common'; +import { PrismaService } from '~common/prisma/prisma.service'; +import { CreateExpenseItemDto } from '../dto/create-expense-item.dto'; +import { ExpenseItem } from '../../domain/entities/expense-item.entity'; +import { CreateExpenseItemUseCase } from './create-expense-item.use-case'; +import { SyncExpenseTotalUseCase } from './sync-expense-total.use-case'; + +@Injectable() +export class AddExpenseItemUseCase { + constructor( + private readonly createExpenseItemUseCase: CreateExpenseItemUseCase, + private readonly syncExpenseTotalUseCase: SyncExpenseTotalUseCase, + private readonly prisma: PrismaService, + ) {} + + async execute( + dto: CreateExpenseItemDto, + storeId: string, + userId: string, + ): Promise { + return this.prisma.runInTransaction(async () => { + const item = await this.createExpenseItemUseCase.execute( + dto, + storeId, + userId, + ); + + await this.syncExpenseTotalUseCase.execute(dto.expenseId); + + return item; + }); + } +} diff --git a/apps/backend/src/feature/expense-item/core/application/use-cases/delete-expense-item.use-case.ts b/apps/backend/src/feature/expense-item/core/application/use-cases/delete-expense-item.use-case.ts index 0fa384bc..a316249f 100644 --- a/apps/backend/src/feature/expense-item/core/application/use-cases/delete-expense-item.use-case.ts +++ b/apps/backend/src/feature/expense-item/core/application/use-cases/delete-expense-item.use-case.ts @@ -1,12 +1,16 @@ import { Injectable, Inject } from '@nestjs/common'; import { DomainNotFoundException } from '~common/exceptions/domain.exceptions'; +import { PrismaService } from '~common/prisma/prisma.service'; import { type IExpenseItemRepository } from '../../domain/repositories/expense-item.repository.interface'; +import { SyncExpenseTotalUseCase } from './sync-expense-total.use-case'; @Injectable() export class DeleteExpenseItemUseCase { constructor( @Inject('ExpenseItemRepository') private readonly expenseItemRepository: IExpenseItemRepository, + private readonly syncExpenseTotalUseCase: SyncExpenseTotalUseCase, + private readonly prisma: PrismaService, ) {} async execute(id: string): Promise { @@ -16,6 +20,9 @@ export class DeleteExpenseItemUseCase { throw new DomainNotFoundException('Expense item not found'); } - await this.expenseItemRepository.delete(id); + await this.prisma.runInTransaction(async () => { + await this.expenseItemRepository.delete(id); + await this.syncExpenseTotalUseCase.execute(item.expenseId); + }); } } diff --git a/apps/backend/src/feature/expense-item/core/application/use-cases/expense-total-invariant.spec.ts b/apps/backend/src/feature/expense-item/core/application/use-cases/expense-total-invariant.spec.ts new file mode 100644 index 00000000..12b8c335 --- /dev/null +++ b/apps/backend/src/feature/expense-item/core/application/use-cases/expense-total-invariant.spec.ts @@ -0,0 +1,334 @@ +import { Decimal } from 'prisma/generated/prisma/internal/prismaNamespace'; +import { createPrismaServiceDouble } from '~test/prisma-service.double'; +import { ExpenseTotalCalculator } from '../../domain/services/expense-total.calculator'; +import { AddExpenseItemUseCase } from './add-expense-item.use-case'; +import { CreateExpenseItemUseCase } from './create-expense-item.use-case'; +import { UpdateExpenseItemUseCase } from './update-expense-item.use-case'; +import { DeleteExpenseItemUseCase } from './delete-expense-item.use-case'; +import { SyncExpenseTotalUseCase } from './sync-expense-total.use-case'; +import { CreateExpenseItemDto } from '../dto/create-expense-item.dto'; +import { UpdateExpenseItemDto } from '../dto/update-expense-item.dto'; + +const EXPENSE = 'expense-1'; +const TRANSACTION = 'transaction-1'; +const FAMILY = 'family-1'; +const PAYMENT_METHOD = 'payment-method-1'; +const OWNER = 'owner-1'; +const STORE = 'store-1'; + +interface StoredItem { + id: string; + expenseId: string; + itemId: string; + price: Decimal; + discount: Decimal; + quantity: Decimal; +} + +class ExpenseBooks { + private readonly items = new Map(); + private sequence = 0; + transactionValue = new Decimal(0); + + seed( + price: string, + discount: string, + quantity: string, + id = `item-${++this.sequence}`, + ): StoredItem { + const item = { + id, + expenseId: EXPENSE, + itemId: `catalog-${id}`, + price: new Decimal(price), + discount: new Decimal(discount), + quantity: new Decimal(quantity), + }; + this.items.set(id, item); + return item; + } + + seedConsistent(...lines: [string, string, string][]): void { + for (const [price, discount, quantity] of lines) { + this.seed(price, discount, quantity); + } + this.transactionValue = this.sumOfItems(); + } + + create(data: Omit): StoredItem { + const item = { ...data, id: `item-${++this.sequence}` }; + this.items.set(item.id, item); + return item; + } + + find(id: string): StoredItem | null { + return this.items.get(id) ?? null; + } + + update(id: string, data: Partial): StoredItem { + const defined = Object.fromEntries( + Object.entries(data).filter(([, value]) => value !== undefined), + ); + const item = { ...this.items.get(id)!, ...defined }; + this.items.set(id, item); + return item; + } + + remove(id: string): void { + this.items.delete(id); + } + + sumOfItems(): Decimal { + return ExpenseTotalCalculator.total([...this.items.values()]); + } +} + +describe('the stored transaction value equals the sum of the expense items', () => { + let books: ExpenseBooks; + let expenseItemRepository: Record; + let transactionRepository: Record; + let familyBalanceService: Record; + let paymentMethodService: Record; + let sync: SyncExpenseTotalUseCase; + + const expectInvariant = () => { + expect(books.transactionValue.toString()).toBe( + books.sumOfItems().toString(), + ); + }; + + beforeEach(() => { + books = new ExpenseBooks(); + + expenseItemRepository = { + create: jest + .fn() + .mockImplementation((data: Omit) => + Promise.resolve(books.create(data)), + ), + findById: jest + .fn() + .mockImplementation((id: string) => Promise.resolve(books.find(id))), + update: jest + .fn() + .mockImplementation((id: string, data: Partial) => + Promise.resolve(books.update(id, data)), + ), + delete: jest.fn().mockImplementation((id: string) => { + books.remove(id); + return Promise.resolve(undefined); + }), + calculateExpenseTotal: jest + .fn() + .mockImplementation(() => Promise.resolve(books.sumOfItems())), + findExpenseTransaction: jest.fn().mockImplementation(() => + Promise.resolve({ + id: TRANSACTION, + value: books.transactionValue, + familyId: FAMILY, + paymentMethodId: PAYMENT_METHOD, + }), + ), + }; + transactionRepository = { + update: jest + .fn() + .mockImplementation((_id: string, data: { value: Decimal }) => { + books.transactionValue = data.value; + return Promise.resolve(undefined); + }), + }; + familyBalanceService = { + recalculateBalances: jest.fn().mockResolvedValue(undefined), + }; + paymentMethodService = { + recalculateBalance: jest.fn().mockResolvedValue(undefined), + }; + + sync = new SyncExpenseTotalUseCase( + expenseItemRepository as never, + transactionRepository as never, + familyBalanceService as never, + paymentMethodService as never, + createPrismaServiceDouble(), + ); + }); + + const addItem = () => + new AddExpenseItemUseCase( + new CreateExpenseItemUseCase( + expenseItemRepository as never, + { + findById: jest.fn().mockResolvedValue({ id: 'category-1' }), + linkToUser: jest.fn().mockResolvedValue(undefined), + } as never, + { + createOrFind: jest.fn().mockResolvedValue({ id: 'catalog-new' }), + findById: jest.fn().mockResolvedValue({ id: 'catalog-new' }), + } as never, + ), + sync, + createPrismaServiceDouble(), + ); + + const updateItem = () => + new UpdateExpenseItemUseCase( + expenseItemRepository as never, + { findById: jest.fn().mockResolvedValue({ id: 'category-1' }) } as never, + sync, + createPrismaServiceDouble(), + ); + + const deleteItem = () => + new DeleteExpenseItemUseCase( + expenseItemRepository as never, + sync, + createPrismaServiceDouble(), + ); + + const newItemDto = ( + itemPrice: number, + discount?: number, + quantity?: number, + ) => + new CreateExpenseItemDto({ + expenseId: EXPENSE, + categoryId: 'category-1', + itemName: 'Coffee', + itemPrice, + discount, + quantity, + }); + + it('holds on a freshly composed expense', () => { + books.seedConsistent(['10', '2', '3'], ['5', '0', '2']); + + expectInvariant(); + expect(books.transactionValue.toString()).toBe('34'); + }); + + it('holds after an item is added', async () => { + books.seedConsistent(['10', '2', '3']); + + await addItem().execute(newItemDto(5, 0, 2), STORE, OWNER); + + expectInvariant(); + expect(books.transactionValue.toString()).toBe('34'); + }); + + it('holds after a second item is added to an empty expense', async () => { + await addItem().execute(newItemDto(1.99), STORE, OWNER); + await addItem().execute(newItemDto(0.59, 0, 3.115), STORE, OWNER); + + expectInvariant(); + expect(books.transactionValue.toString()).toBe('3.82785'); + }); + + it("holds after an item's price is updated", async () => { + books.seedConsistent(['10', '2', '3'], ['5', '0', '2']); + + await updateItem().execute( + 'item-1', + new UpdateExpenseItemDto({ price: 20 }), + ); + + expectInvariant(); + expect(books.transactionValue.toString()).toBe('64'); + }); + + it("holds after an item's discount is updated", async () => { + books.seedConsistent(['10', '2', '3']); + + await updateItem().execute( + 'item-1', + new UpdateExpenseItemDto({ discount: 4 }), + ); + + expectInvariant(); + expect(books.transactionValue.toString()).toBe('18'); + }); + + it('holds after a discount is cleared back to zero', async () => { + books.seedConsistent(['10', '2', '3']); + + await updateItem().execute( + 'item-1', + new UpdateExpenseItemDto({ discount: 0 }), + ); + + expectInvariant(); + expect(books.transactionValue.toString()).toBe('30'); + }); + + it('holds after an item is deleted', async () => { + books.seedConsistent(['10', '2', '3'], ['5', '0', '2']); + + await deleteItem().execute('item-2'); + + expectInvariant(); + expect(books.transactionValue.toString()).toBe('24'); + }); + + it('holds after the last item is deleted', async () => { + books.seedConsistent(['10', '2', '3']); + + await deleteItem().execute('item-1'); + + expectInvariant(); + expect(books.transactionValue.toString()).toBe('0'); + }); + + it('holds across an add, update, delete sequence', async () => { + books.seedConsistent(['10', '2', '3']); + + await addItem().execute(newItemDto(5, 0, 2), STORE, OWNER); + expectInvariant(); + + await updateItem().execute( + 'item-1', + new UpdateExpenseItemDto({ price: 12, discount: 2 }), + ); + expectInvariant(); + + await deleteItem().execute('item-2'); + expectInvariant(); + + expect(books.transactionValue.toString()).toBe('30'); + }); + + it('keeps the balances that depend on the transaction value current', async () => { + books.seedConsistent(['10', '2', '3']); + + await updateItem().execute( + 'item-1', + new UpdateExpenseItemDto({ price: 20 }), + ); + + expect(familyBalanceService.recalculateBalances).toHaveBeenCalledWith( + FAMILY, + ); + expect(paymentMethodService.recalculateBalance).toHaveBeenCalledWith( + PAYMENT_METHOD, + ); + }); + + it('leaves the value alone when a mutation does not change the sum', async () => { + books.seedConsistent(['10', '2', '3']); + + await updateItem().execute( + 'item-1', + new UpdateExpenseItemDto({ categoryId: 'category-2' }), + ); + + expectInvariant(); + expect(transactionRepository.update).not.toHaveBeenCalled(); + expect(familyBalanceService.recalculateBalances).not.toHaveBeenCalled(); + }); + + it('would catch a mutation that skipped the recalculation', () => { + books.seedConsistent(['10', '2', '3']); + books.update('item-1', { price: new Decimal('20') }); + + expect(() => expectInvariant()).toThrow(); + }); +}); diff --git a/apps/backend/src/feature/expense-item/core/application/use-cases/sync-expense-total.use-case.ts b/apps/backend/src/feature/expense-item/core/application/use-cases/sync-expense-total.use-case.ts new file mode 100644 index 00000000..a75427dc --- /dev/null +++ b/apps/backend/src/feature/expense-item/core/application/use-cases/sync-expense-total.use-case.ts @@ -0,0 +1,58 @@ +import { Injectable, Inject } from '@nestjs/common'; +import { Decimal } from 'prisma/generated/prisma/internal/prismaNamespace'; +import { DomainNotFoundException } from '~common/exceptions/domain.exceptions'; +import { PrismaService } from '~common/prisma/prisma.service'; +import { type ITransactionRepository } from '~feature/transaction/core/domain/repositories/transaction.repository.interface'; +import { Transaction } from '~feature/transaction/core/domain/entities/transaction.entity'; +import { FamilyBalanceService } from '~feature/family/core/application/services/family-balance.service'; +import { PaymentMethodService } from '~feature/payment-method/core/application/services/payment-method.service'; +import { type IExpenseItemRepository } from '../../domain/repositories/expense-item.repository.interface'; + +@Injectable() +export class SyncExpenseTotalUseCase { + constructor( + @Inject('ExpenseItemRepository') + private readonly expenseItemRepository: IExpenseItemRepository, + @Inject('TransactionRepository') + private readonly transactionRepository: ITransactionRepository, + private readonly familyBalanceService: FamilyBalanceService, + private readonly paymentMethodService: PaymentMethodService, + private readonly prisma: PrismaService, + ) {} + + async execute(expenseId: string): Promise { + const transaction = + await this.expenseItemRepository.findExpenseTransaction(expenseId); + + if (!transaction) { + throw new DomainNotFoundException('Expense not found'); + } + + const total = + await this.expenseItemRepository.calculateExpenseTotal(expenseId); + + if (total.equals(transaction.value)) { + return total; + } + + await this.prisma.runInTransaction(async () => { + await this.transactionRepository.update(transaction.id, { + value: total, + } as Partial); + + if (transaction.familyId) { + await this.familyBalanceService.recalculateBalances( + transaction.familyId, + ); + } + }); + + if (transaction.paymentMethodId) { + await this.paymentMethodService.recalculateBalance( + transaction.paymentMethodId, + ); + } + + return total; + } +} diff --git a/apps/backend/src/feature/expense-item/core/application/use-cases/update-expense-item.use-case.ts b/apps/backend/src/feature/expense-item/core/application/use-cases/update-expense-item.use-case.ts index 07938dec..c8a688ee 100644 --- a/apps/backend/src/feature/expense-item/core/application/use-cases/update-expense-item.use-case.ts +++ b/apps/backend/src/feature/expense-item/core/application/use-cases/update-expense-item.use-case.ts @@ -8,6 +8,8 @@ import { type IStoreItemCategoryRepository } from '../../../../store-item-catego import { UpdateExpenseItemDto } from '../dto/update-expense-item.dto'; import { ExpenseItem } from '../../domain/entities/expense-item.entity'; import { Decimal } from 'prisma/generated/prisma/internal/prismaNamespace'; +import { PrismaService } from '~common/prisma/prisma.service'; +import { SyncExpenseTotalUseCase } from './sync-expense-total.use-case'; @Injectable() export class UpdateExpenseItemUseCase { @@ -16,6 +18,8 @@ export class UpdateExpenseItemUseCase { private readonly expenseItemRepository: IExpenseItemRepository, @Inject('StoreItemCategoryRepository') private readonly storeItemCategoryRepository: IStoreItemCategoryRepository, + private readonly syncExpenseTotalUseCase: SyncExpenseTotalUseCase, + private readonly prisma: PrismaService, ) {} async execute(id: string, dto: UpdateExpenseItemDto): Promise { @@ -27,13 +31,18 @@ export class UpdateExpenseItemUseCase { await this.validate(dto); - const updated = await this.expenseItemRepository.update(id, { - categoryId: dto.categoryId, - price: dto.price !== undefined ? new Decimal(dto.price) : undefined, - discount: dto.discount !== undefined ? new Decimal(dto.discount) : undefined, - }); + return this.prisma.runInTransaction(async () => { + const updated = await this.expenseItemRepository.update(id, { + categoryId: dto.categoryId, + price: dto.price !== undefined ? new Decimal(dto.price) : undefined, + discount: + dto.discount !== undefined ? new Decimal(dto.discount) : undefined, + }); + + await this.syncExpenseTotalUseCase.execute(item.expenseId); - return updated; + return updated; + }); } private async validate(dto: UpdateExpenseItemDto): Promise { diff --git a/apps/backend/src/feature/expense-item/core/domain/repositories/expense-item.repository.interface.ts b/apps/backend/src/feature/expense-item/core/domain/repositories/expense-item.repository.interface.ts index beff505d..0c319593 100644 --- a/apps/backend/src/feature/expense-item/core/domain/repositories/expense-item.repository.interface.ts +++ b/apps/backend/src/feature/expense-item/core/domain/repositories/expense-item.repository.interface.ts @@ -19,6 +19,13 @@ export interface UpdateExpenseItemData { discount?: Decimal; } +export interface ExpenseTransactionRef { + id: string; + value: Decimal; + familyId: string | null; + paymentMethodId: string | null; +} + export interface IExpenseItemRepository { create(data: CreateExpenseItemData): Promise; findById(id: string): Promise; @@ -30,4 +37,7 @@ export interface IExpenseItemRepository { update(id: string, data: UpdateExpenseItemData): Promise; delete(id: string): Promise; calculateExpenseTotal(expenseId: string): Promise; + findExpenseTransaction( + expenseId: string, + ): Promise; } diff --git a/apps/backend/src/feature/expense-item/core/expense-item-core.module.ts b/apps/backend/src/feature/expense-item/core/expense-item-core.module.ts index dbf23022..dd71b6ed 100644 --- a/apps/backend/src/feature/expense-item/core/expense-item-core.module.ts +++ b/apps/backend/src/feature/expense-item/core/expense-item-core.module.ts @@ -3,6 +3,9 @@ import { PrismaModule } from '../../../common/prisma/prisma.module'; import { AuthorizationModule } from '../../../common/authorization/authorization.module'; import { StoreCoreModule } from '../../store/core/store-core.module'; import { StoreItemCategoryCoreModule } from '../../store-item-category/core/store-item-category-core.module'; +import { TransactionCoreModule } from '../../transaction/core/transaction-core.module'; +import { FamilyCoreModule } from '../../family/core/family-core.module'; +import { PaymentMethodCoreModule } from '../../payment-method/core/payment-method-core.module'; import { PrismaExpenseItemRepository } from './infrastructure/repositories/prisma-expense-item.repository'; import { CreateExpenseItemUseCase } from './application/use-cases/create-expense-item.use-case'; import { GetExpenseItemByIdUseCase } from './application/use-cases/get-expense-item-by-id.use-case'; @@ -10,6 +13,8 @@ import { ListExpenseItemsUseCase } from './application/use-cases/list-expense-it import { UpdateExpenseItemUseCase } from './application/use-cases/update-expense-item.use-case'; import { DeleteExpenseItemUseCase } from './application/use-cases/delete-expense-item.use-case'; import { CalculateExpenseTotalUseCase } from './application/use-cases/calculate-expense-total.use-case'; +import { SyncExpenseTotalUseCase } from './application/use-cases/sync-expense-total.use-case'; +import { AddExpenseItemUseCase } from './application/use-cases/add-expense-item.use-case'; import { ExpenseItemService } from './application/services/expense-item.service'; @Module({ @@ -18,6 +23,9 @@ import { ExpenseItemService } from './application/services/expense-item.service' AuthorizationModule, StoreCoreModule, StoreItemCategoryCoreModule, + TransactionCoreModule, + FamilyCoreModule, + PaymentMethodCoreModule, ], providers: [ { @@ -30,6 +38,8 @@ import { ExpenseItemService } from './application/services/expense-item.service' UpdateExpenseItemUseCase, DeleteExpenseItemUseCase, CalculateExpenseTotalUseCase, + SyncExpenseTotalUseCase, + AddExpenseItemUseCase, ExpenseItemService, ], exports: [ExpenseItemService, 'ExpenseItemRepository'], diff --git a/apps/backend/src/feature/expense-item/core/infrastructure/repositories/prisma-expense-item.repository.ts b/apps/backend/src/feature/expense-item/core/infrastructure/repositories/prisma-expense-item.repository.ts index 8a317d8c..fce6d3aa 100644 --- a/apps/backend/src/feature/expense-item/core/infrastructure/repositories/prisma-expense-item.repository.ts +++ b/apps/backend/src/feature/expense-item/core/infrastructure/repositories/prisma-expense-item.repository.ts @@ -5,6 +5,7 @@ import { PaginatedResult, CreateExpenseItemData, UpdateExpenseItemData, + ExpenseTransactionRef, } from '../../domain/repositories/expense-item.repository.interface'; import { ExpenseItem } from '../../domain/entities/expense-item.entity'; import { Pagination } from '~common/dto/pagination.dto'; @@ -125,6 +126,26 @@ export class PrismaExpenseItemRepository implements IExpenseItemRepository { return ExpenseTotalCalculator.total(items); } + async findExpenseTransaction( + expenseId: string, + ): Promise { + const expense = await this.prisma.db.expense.findUnique({ + where: { id: expenseId }, + select: { + transaction: { + select: { + id: true, + value: true, + familyId: true, + paymentMethodId: true, + }, + }, + }, + }); + + return expense?.transaction ?? null; + } + private accessibleTo(scope: OwnerScope): Prisma.ExpenseItemWhereInput { const transaction: Prisma.TransactionWhereInput = scope.hasFamilies ? { diff --git a/apps/backend/src/feature/expense-item/rest/controllers/expense-item.controller.spec.ts b/apps/backend/src/feature/expense-item/rest/controllers/expense-item.controller.spec.ts index 31026024..615d8e05 100644 --- a/apps/backend/src/feature/expense-item/rest/controllers/expense-item.controller.spec.ts +++ b/apps/backend/src/feature/expense-item/rest/controllers/expense-item.controller.spec.ts @@ -82,7 +82,7 @@ describe('ExpenseItemController authorization', () => { let server: Server; let currentUserId: string; let expenseItemService: { - create: jest.Mock; + addToExpense: jest.Mock; findAll: jest.Mock; findById: jest.Mock; update: jest.Mock; @@ -120,7 +120,7 @@ describe('ExpenseItemController authorization', () => { beforeAll(async () => { expenseItemService = { - create: jest.fn(() => Promise.resolve(expenseItemOf(ITEM_A))), + addToExpense: jest.fn(() => Promise.resolve(expenseItemOf(ITEM_A))), findAll: jest.fn(() => Promise.resolve({ data: [], total: 0 })), findById: jest.fn((id: string) => Promise.resolve(expenseItemOf(id))), update: jest.fn((id: string) => Promise.resolve(expenseItemOf(id))), @@ -214,7 +214,7 @@ describe('ExpenseItemController authorization', () => { .send(createBody(EXPENSE_A)) .expect(404); - expect(expenseItemService.create).not.toHaveBeenCalled(); + expect(expenseItemService.addToExpense).not.toHaveBeenCalled(); }); it('cannot read a family-attributed line item of a family it does not belong to', async () => { @@ -278,7 +278,7 @@ describe('ExpenseItemController authorization', () => { .send(createBody(EXPENSE_A)) .expect(201); - expect(expenseItemService.create).toHaveBeenCalled(); + expect(expenseItemService.addToExpense).toHaveBeenCalled(); }); }); diff --git a/apps/backend/src/feature/expense-item/rest/controllers/expense-item.controller.ts b/apps/backend/src/feature/expense-item/rest/controllers/expense-item.controller.ts index 14f5f6c4..97a48538 100644 --- a/apps/backend/src/feature/expense-item/rest/controllers/expense-item.controller.ts +++ b/apps/backend/src/feature/expense-item/rest/controllers/expense-item.controller.ts @@ -12,7 +12,12 @@ import { UseGuards, BadRequestException, } from '@nestjs/common'; -import { ApiTags, ApiBearerAuth, ApiOperation, ApiResponse } from '@nestjs/swagger'; +import { + ApiTags, + ApiBearerAuth, + ApiOperation, + ApiResponse, +} from '@nestjs/swagger'; import { ExpenseItemService } from '../../core/application/services/expense-item.service'; import { CreateExpenseItemRequestDto } from '../dto/create-expense-item-request.dto'; import { UpdateExpenseItemRequestDto } from '../dto/update-expense-item-request.dto'; @@ -60,7 +65,11 @@ export class ExpenseItemController { sizeUnit: createDto.sizeUnit, }); - const item = await this.expenseItemService.create(coreDto, storeId, user.id); + const item = await this.expenseItemService.addToExpense( + coreDto, + storeId, + user.id, + ); return ExpenseItemResponseDto.fromEntity(item); } @@ -126,7 +135,10 @@ export class ExpenseItemController { @HttpCode(HttpStatus.NO_CONTENT) @OwnsResource({ resource: 'expenseItem', ownerOnly: true }) @ApiOperation({ summary: 'Delete an expense item' }) - @ApiResponse({ status: 204, description: 'Expense item deleted successfully' }) + @ApiResponse({ + status: 204, + description: 'Expense item deleted successfully', + }) async remove(@Param('id') id: string) { await this.expenseItemService.delete(id); } diff --git a/apps/backend/src/feature/expense/core/application/use-cases/expense-update-total.spec.ts b/apps/backend/src/feature/expense/core/application/use-cases/expense-update-total.spec.ts new file mode 100644 index 00000000..02823052 --- /dev/null +++ b/apps/backend/src/feature/expense/core/application/use-cases/expense-update-total.spec.ts @@ -0,0 +1,118 @@ +import { Decimal } from 'prisma/generated/prisma/internal/prismaNamespace'; +import { createPrismaServiceDouble } from '~test/prisma-service.double'; +import { ExpenseTotalCalculator } from '~feature/expense-item/core/domain/services/expense-total.calculator'; +import { UpdateExpenseUseCase } from './update-expense.use-case'; +import { UpdateExpenseDto } from '../dto/update-expense.dto'; + +const EXPENSE = 'expense-1'; +const OWNER = 'owner-1'; + +const ITEMS = [ + { + price: new Decimal('10'), + discount: new Decimal('2'), + quantity: new Decimal('3'), + }, + { + price: new Decimal('5'), + discount: new Decimal('0'), + quantity: new Decimal('2'), + }, +]; + +describe('updating an expense against the sum of its items', () => { + let transactionValue: Decimal; + let expenseRepository: Record; + let transactionRepository: Record; + + const sumOfItems = () => ExpenseTotalCalculator.total(ITEMS); + + const updateExpense = () => + new UpdateExpenseUseCase( + expenseRepository as never, + { findById: jest.fn().mockResolvedValue({ id: 'category-1' }) } as never, + transactionRepository as never, + { findById: jest.fn().mockResolvedValue({ id: 'store-1' }) } as never, + { + verifyOwnership: jest.fn().mockResolvedValue(undefined), + recalculateBalance: jest.fn().mockResolvedValue(undefined), + } as never, + { recalculateBalances: jest.fn().mockResolvedValue(undefined) } as never, + createPrismaServiceDouble(), + ); + + beforeEach(() => { + transactionValue = sumOfItems(); + + expenseRepository = { + findById: jest.fn().mockImplementation(() => + Promise.resolve({ + id: EXPENSE, + transactionId: 'transaction-1', + transaction: { + id: 'transaction-1', + userId: OWNER, + familyId: null, + paymentMethodId: null, + value: transactionValue, + }, + }), + ), + verifyOwnership: jest.fn().mockResolvedValue(true), + update: jest.fn().mockResolvedValue({ id: EXPENSE }), + }; + transactionRepository = { + update: jest + .fn() + .mockImplementation((_id: string, data: { value?: Decimal }) => { + if (data.value !== undefined) { + transactionValue = new Decimal(data.value.toString()); + } + return Promise.resolve(undefined); + }), + }; + }); + + it('holds when the update touches nothing that affects the total', async () => { + await updateExpense().execute( + EXPENSE, + OWNER, + new UpdateExpenseDto({ note: 'lunch with the team' }), + ); + + expect(transactionValue.toString()).toBe(sumOfItems().toString()); + expect(transactionRepository.update).not.toHaveBeenCalled(); + }); + + it('holds when the update only moves the recorded date', async () => { + await updateExpense().execute( + EXPENSE, + OWNER, + new UpdateExpenseDto({ recordedAt: new Date('2026-01-01') }), + ); + + expect(transactionValue.toString()).toBe(sumOfItems().toString()); + }); + + it('holds when the update only changes the category and store', async () => { + await updateExpense().execute( + EXPENSE, + OWNER, + new UpdateExpenseDto({ categoryId: 'category-2', storeId: 'store-2' }), + ); + + expect(transactionValue.toString()).toBe(sumOfItems().toString()); + expect(transactionRepository.update).not.toHaveBeenCalled(); + }); + + it('still lets an explicit amount overwrite the item sum, which is the one hole left', async () => { + await updateExpense().execute( + EXPENSE, + OWNER, + new UpdateExpenseDto({ amount: new Decimal('99') }), + ); + + expect(transactionValue.toString()).toBe('99'); + expect(transactionValue.toString()).not.toBe(sumOfItems().toString()); + }); +}); From d08a8cc52ad85cdbdf901bc17b7025ae89fae614 Mon Sep 17 00:00:00 2001 From: blendonl Date: Wed, 9 Sep 2026 04:11:25 +0200 Subject: [PATCH 5/6] fix(backend): recalculate the payment method balance atomically The payment method recalculation ran after the transaction committed, so a failure between the commit and that call left the transaction value updated while PaymentMethod.currentBalance still reflected the old items. The early return when the total already matches then made that permanent rather than self-healing: every later sync short-circuited before reaching the recalculation, which is the same never-recomputed shape as the bug this use case exists to fix. runInTransaction reuses an active scope rather than nesting, and the payment method repository already runs its recalculation through it, so moving the call inside joins the same transaction instead of opening a second one. --- .../use-cases/sync-expense-total.use-case.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/backend/src/feature/expense-item/core/application/use-cases/sync-expense-total.use-case.ts b/apps/backend/src/feature/expense-item/core/application/use-cases/sync-expense-total.use-case.ts index a75427dc..ad1f5e95 100644 --- a/apps/backend/src/feature/expense-item/core/application/use-cases/sync-expense-total.use-case.ts +++ b/apps/backend/src/feature/expense-item/core/application/use-cases/sync-expense-total.use-case.ts @@ -45,13 +45,13 @@ export class SyncExpenseTotalUseCase { transaction.familyId, ); } - }); - if (transaction.paymentMethodId) { - await this.paymentMethodService.recalculateBalance( - transaction.paymentMethodId, - ); - } + if (transaction.paymentMethodId) { + await this.paymentMethodService.recalculateBalance( + transaction.paymentMethodId, + ); + } + }); return total; } From df1db90ef9c568df411e020c663b77365c2183e2 Mon Sep 17 00:00:00 2001 From: blendonl Date: Wed, 9 Sep 2026 04:13:06 +0200 Subject: [PATCH 6/6] test(backend): bind the scope in every grouped statistics query The statistics scoping tests asserted on SQL text, which survives a rewrite that drops scoping from one of the three grouped queries while still mentioning the column elsewhere. Asserting the bound parameter on each query instead ties the test to what the database actually receives. A true "another user's rows are absent from the aggregate" test needs a live Postgres, which this environment does not have; this is the strongest assertion available without one. --- .../prisma-expense.repository.spec.ts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/apps/backend/src/feature/expense/core/infrastructure/repositories/prisma-expense.repository.spec.ts b/apps/backend/src/feature/expense/core/infrastructure/repositories/prisma-expense.repository.spec.ts index 180cf63b..1baed4b7 100644 --- a/apps/backend/src/feature/expense/core/infrastructure/repositories/prisma-expense.repository.spec.ts +++ b/apps/backend/src/feature/expense/core/infrastructure/repositories/prisma-expense.repository.spec.ts @@ -114,6 +114,28 @@ describe('PrismaExpenseRepository reporting queries', () => { expect(queries[2].text).toContain('GROUP BY e."store_id"'); }); + it('binds the family to every grouped query, not just the first', async () => { + const { queries, repository } = captureQueries(); + + await repository.getStatistics({ familyId: 'family-1' }); + + expect(queries).toHaveLength(3); + + for (const query of queries) { + expect(query.values).toContain('family-1'); + } + }); + + it('never binds a family the caller did not ask for', async () => { + const { queries, repository } = captureQueries(); + + await repository.getStatistics({ familyId: 'family-1' }); + + for (const query of queries) { + expect(query.values).not.toContain('family-2'); + } + }); + it('scopes to the family the same way trends do', async () => { const { queries, repository } = captureQueries();