diff --git a/PROJECT.md b/PROJECT.md index df548a5..341ef28 100644 --- a/PROJECT.md +++ b/PROJECT.md @@ -1,9 +1,9 @@ ## Status ### Last Completed -Migrated the db and started it using `bunx prisma dev`. I can see it working with `bunx prisma studio`. Started working on structure and initial setup form. +Changed the path of the generated prisma files becasue it was incorrect on init. Started writing the server file to begin the process of hooking the frontend up to db. ### Next Up -Continue with initial setup and create functions to seed the db with first user and AllowList. +Choose auth provider and hook that up. Need to hash passwords with auth provider. ## Feature List ### Must Haves diff --git a/bun.lock b/bun.lock index 5d71fd4..92cd1af 100644 --- a/bun.lock +++ b/bun.lock @@ -4,6 +4,10 @@ "workspaces": { "": { "name": "planner", + "dependencies": { + "@prisma/adapter-pg": "^7.10.0", + "pg": "^8.23.1", + }, "devDependencies": { "@dnd-kit-svelte/svelte": "^0.1.5", "@dnd-kit/abstract": "^0.1.21", @@ -22,6 +26,7 @@ "@types/d3-scale": "^4.0.9", "@types/d3-shape": "^3.1.8", "@types/node": "^26", + "@types/pg": "^8.23.1", "bits-ui": "^2.18.0", "cn": "^0.3.0", "d3-scale": "^4.0.2", @@ -139,10 +144,14 @@ "@preact/signals-core": ["@preact/signals-core@1.14.4", "", {}, "sha512-HNB6HYeYKhQbJ1aKl+YRjrS4+QWHLKX6qKoUsfS/m0vqzsVaEBiZiaKbG/e+NKk2ch5ALQr/ihWaMHxiCuuWHA=="], + "@prisma/adapter-pg": ["@prisma/adapter-pg@7.10.0", "", { "dependencies": { "@prisma/driver-adapter-utils": "7.10.0", "@types/pg": "^8.16.0", "pg": "^8.16.3", "postgres-array": "3.0.4" } }, "sha512-N7nwSor0HO1Kz6xBv0TPAjAPysKK0fac6p4fVN3ensLOuzc/83Fgmln5k92eK/cvzqdkSR/2kkAqlbcdwVrwpw=="], + "@prisma/config": ["@prisma/config@6.19.3", "", { "dependencies": { "c12": "3.1.0", "deepmerge-ts": "7.1.5", "effect": "3.21.0", "empathic": "2.0.0" } }, "sha512-CBPT44BjlQxEt8kiMEauji2WHTDoVBOKl7UlewXmUgBPnr/oPRZC3psci5chJnYmH0ivEIog2OU9PGWoki3DLQ=="], "@prisma/debug": ["@prisma/debug@6.19.3", "", {}, "sha512-ljkJ+SgpXNktLG0Q/n4JGYCkKf0f8oYLyjImS2I8e2q2WCfdRRtWER062ZV/ixaNP2M2VKlWXVJiGzZaUgbKZw=="], + "@prisma/driver-adapter-utils": ["@prisma/driver-adapter-utils@7.10.0", "", { "dependencies": { "@prisma/debug": "7.10.0" } }, "sha512-u8zkcRLlaryO652T4qavBg0HmzNW5tSKdsCn6hc1PhWAp/J6k0vrxLuUs+b9o+HcjsK7Dfa01o4OFSn0frauJA=="], + "@prisma/engines": ["@prisma/engines@6.19.3", "", { "dependencies": { "@prisma/debug": "6.19.3", "@prisma/engines-version": "7.1.1-3.c2990dca591cba766e3b7ef5d9e8a84796e47ab7", "@prisma/fetch-engine": "6.19.3", "@prisma/get-platform": "6.19.3" } }, "sha512-RSYxtlYFl5pJ8ZePgMv0lZ9IzVCOdTPOegrs2qcbAEFrBI1G33h6wyC9kjQvo0DnYEhEVY0X4LsuFHXLKQk88g=="], "@prisma/engines-version": ["@prisma/engines-version@7.1.1-3.c2990dca591cba766e3b7ef5d9e8a84796e47ab7", "", {}, "sha512-03bgb1VD5gvuumNf+7fVGBzfpJPjmqV423l/WxsWk2cNQ42JD0/SsFBPhN6z8iAvdHs07/7ei77SKu7aZfq8bA=="], @@ -263,6 +272,8 @@ "@types/node": ["@types/node@26.6.4", "", { "dependencies": { "undici-types": "~8.9.0" } }, "sha512-ldVPDCzj7fsaGZrLB0NuHuTvJcsNasysBAqMolr/cgxrLd1xbqxIr3XJiPnHHJUCxj5sNF1vnRj9aWnrVh5Jcg=="], + "@types/pg": ["@types/pg@8.23.1", "", { "dependencies": { "@types/node": "*", "pg-protocol": "*", "pg-types": "^2.2.0" } }, "sha512-fKVHpikPdg4GKks3JuLEhvwSyvwzF23hnabPy6DD8ljVbC7+6J5dQzdv4arV6jqq57djnMgs1HKBxX4P8aBI3A=="], + "@typescript-eslint/eslint-plugin": ["@typescript-eslint/eslint-plugin@8.71.0", "", { "dependencies": { "@eslint-community/regexpp": "^4.12.2", "@typescript-eslint/scope-manager": "8.71.0", "@typescript-eslint/type-utils": "8.71.0", "@typescript-eslint/utils": "8.71.0", "@typescript-eslint/visitor-keys": "8.71.0", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.5.0" }, "peerDependencies": { "@typescript-eslint/parser": "^8.71.0", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.1.0" } }, "sha512-pqcS9c1HxZTHt7End4nXqd0s5lJrrFzrgCkKFJrsbUnaL6M3+6oBFZaslg6Gjsl3argl2DDRFROnXARaZ2e4Nw=="], "@typescript-eslint/parser": ["@typescript-eslint/parser@8.71.0", "", { "dependencies": { "@typescript-eslint/scope-manager": "8.71.0", "@typescript-eslint/types": "8.71.0", "@typescript-eslint/typescript-estree": "8.71.0", "@typescript-eslint/visitor-keys": "8.71.0", "debug": "^4.4.3" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.1.0" } }, "sha512-CG4nPk1f2zc8yw4pALqHsFYH2hdo+h1T9daSp21+Hnxi9LOE3GT9hAfTKJCBXVNM2GmYs1eMEP615wPoeOgk3A=="], @@ -569,6 +580,22 @@ "perfect-debounce": ["perfect-debounce@1.0.0", "", {}, "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA=="], + "pg": ["pg@8.23.1", "", { "dependencies": { "pg-connection-string": "^2.14.1", "pg-pool": "^3.14.0", "pg-protocol": "^1.16.1", "pg-types": "2.2.0", "pgpass": "1.0.5" }, "optionalDependencies": { "pg-cloudflare": "^1.4.1" }, "peerDependencies": { "pg-native": ">=3.0.1" }, "optionalPeers": ["pg-native"] }, "sha512-aL96AHANtWjPLDOLqnhx+ngp9+UK7ETEU8VJrDCGvsSSi/mGLcWYsS6Herg7lmaBJe4uwrfqsa7gTEFaSizDoQ=="], + + "pg-cloudflare": ["pg-cloudflare@1.4.1", "", {}, "sha512-6PQbsFWZcp9EmJEwy5cGQ2La+AMWpP46lgbb8X+U/XsHIUweYDNCpeuKck5RxL2MdVFi7krbbEi5nX4Zh7JhrQ=="], + + "pg-connection-string": ["pg-connection-string@2.14.1", "", {}, "sha512-qR3kGNPBLpCNtz0evbKA0Y/MRFXwSSdT+pTJvYp/bXTcReZbvX1kzF0IyTc1QnxqF7AZbOeBhNL8R5mYQZV/MA=="], + + "pg-int8": ["pg-int8@1.0.1", "", {}, "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw=="], + + "pg-pool": ["pg-pool@3.14.0", "", { "peerDependencies": { "pg": ">=8.0" } }, "sha512-gKtPkFdQPU3DksooVLi9LsjZxrsBUZIpa+7aVx+LV5pNh0KzP4Zleud2po+ConrxbuXGBJ6Hfer6hdgpIBpBaw=="], + + "pg-protocol": ["pg-protocol@1.16.1", "", {}, "sha512-p9VOFMiHB/ZbJATetbg+99PxssTVSQRnyuPSQ67mN1+1KBOjZaZ83ZQzltnxPhJwSsC3nwVjJ10DVJlerbFzLg=="], + + "pg-types": ["pg-types@2.2.0", "", { "dependencies": { "pg-int8": "1.0.1", "postgres-array": "~2.0.0", "postgres-bytea": "~1.0.0", "postgres-date": "~1.0.4", "postgres-interval": "^1.1.0" } }, "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA=="], + + "pgpass": ["pgpass@1.0.5", "", { "dependencies": { "split2": "^4.1.0" } }, "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug=="], + "picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="], "picomatch": ["picomatch@4.0.7", "", {}, "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA=="], @@ -585,6 +612,14 @@ "postcss-selector-parser": ["postcss-selector-parser@6.0.10", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w=="], + "postgres-array": ["postgres-array@3.0.4", "", {}, "sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ=="], + + "postgres-bytea": ["postgres-bytea@1.0.1", "", {}, "sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ=="], + + "postgres-date": ["postgres-date@1.0.7", "", {}, "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q=="], + + "postgres-interval": ["postgres-interval@1.2.0", "", { "dependencies": { "xtend": "^4.0.0" } }, "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ=="], + "prelude-ls": ["prelude-ls@1.2.1", "", {}, "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g=="], "prettier": ["prettier@3.9.9", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-Z/CJHIkdujO/OtN7nXUii0Rf3VT5SRuhjBA82Xvu2XhBUgX3nhP67T0LHceBdQLex7OOFGTox+Q5Yg8Jk2Qivg=="], @@ -629,6 +664,8 @@ "source-map-js": ["source-map-js@1.2.2", "", {}, "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw=="], + "split2": ["split2@4.2.0", "", {}, "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg=="], + "style-to-object": ["style-to-object@1.0.14", "", { "dependencies": { "inline-style-parser": "0.2.7" } }, "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw=="], "svelte": ["svelte@5.57.1", "", { "dependencies": { "@jridgewell/remapping": "^2.3.5", "@jridgewell/sourcemap-codec": "^1.6.0", "@sveltejs/acorn-typescript": "^1.0.13", "@types/estree": "^1.0.9", "acorn": "^8.18.0", "aria-query": "5.3.1", "axobject-query": "^4.1.0", "clsx": "^2.1.1", "devalue": "^5.9.2", "esm-env": "^1.2.1", "esrap": "^2.3.6", "is-reference": "^3.0.3", "locate-character": "^3.0.0", "magic-string": "^0.30.11", "zimmerframe": "^1.1.2" } }, "sha512-Uqj49lWKB+iSSnneuwiYYJ7MZgkB+eXr0LXBhv4uDuAkXqnWmq65Sxflfvp0Lc6MdKjMUxGaeOKWJqz5SNiVIA=="], @@ -685,6 +722,8 @@ "word-wrap": ["word-wrap@1.2.5", "", {}, "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA=="], + "xtend": ["xtend@4.0.2", "", {}, "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="], + "yaml": ["yaml@1.10.3", "", {}, "sha512-vIYeF1u3CjlhAFekPPAk2h/Kv4T3mAkMox5OymRiJQB0spDP10LHvt+K7G9Ny6NuuMAb25/6n1qyUjAcGNf/AA=="], "yocto-queue": ["yocto-queue@0.1.0", "", {}, "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="], @@ -709,6 +748,8 @@ "@eslint-community/eslint-utils/eslint-visitor-keys": ["eslint-visitor-keys@3.4.3", "", {}, "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag=="], + "@prisma/driver-adapter-utils/@prisma/debug": ["@prisma/debug@7.10.0", "", {}, "sha512-caygJKtltmRIgdJ3jRpkOr7yM4DW6zxo5uOmojKWFb3asnxWoRkQOwZmXBgD8FZp4htrX+nMpcWqDwzlQ1+Y4g=="], + "@tailwindcss/node/lightningcss": ["lightningcss@1.32.0", "", { "dependencies": { "detect-libc": "^2.0.3" }, "optionalDependencies": { "lightningcss-android-arm64": "1.32.0", "lightningcss-darwin-arm64": "1.32.0", "lightningcss-darwin-x64": "1.32.0", "lightningcss-freebsd-x64": "1.32.0", "lightningcss-linux-arm-gnueabihf": "1.32.0", "lightningcss-linux-arm64-gnu": "1.32.0", "lightningcss-linux-arm64-musl": "1.32.0", "lightningcss-linux-x64-gnu": "1.32.0", "lightningcss-linux-x64-musl": "1.32.0", "lightningcss-win32-arm64-msvc": "1.32.0", "lightningcss-win32-x64-msvc": "1.32.0" } }, "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ=="], "@tailwindcss/node/magic-string": ["magic-string@0.30.21", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="], @@ -739,6 +780,8 @@ "nypm/citty": ["citty@0.2.2", "", {}, "sha512-+6vJA3L98yv+IdfKGZHBNiGW5KHn22e/JwID0Strsz8h4S/csAu/OuICwxrg44k5MRiZHWIo8XXuJgQTriRP4w=="], + "pg-types/postgres-array": ["postgres-array@2.0.0", "", {}, "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA=="], + "pkg-types/confbox": ["confbox@0.3.1", "", {}, "sha512-cKUSoKa8YxFZZSmraVi7onONx3amu77ngK3kGpsYHDH7drPwCRkQE1RYMPlLRrMtnciRj274XNRxcHxnKmDSnA=="], "qified/hookified": ["hookified@2.2.0", "", {}, "sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA=="], diff --git a/package.json b/package.json index c0b00eb..14ed172 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "@types/d3-scale": "^4.0.9", "@types/d3-shape": "^3.1.8", "@types/node": "^26", + "@types/pg": "^8.23.1", "bits-ui": "^2.18.0", "cn": "^0.3.0", "d3-scale": "^4.0.2", @@ -60,5 +61,9 @@ "imports": { "#lib": "./src/lib/index.js", "#lib/*": "./src/lib/*" + }, + "dependencies": { + "@prisma/adapter-pg": "^7.10.0", + "pg": "^8.23.1" } } diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 4f2d7dc..bedf60e 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -6,7 +6,7 @@ generator client { provider = "prisma-client" - output = "../../../generated/prisma" + output = "../src/lib/generated/prisma" } datasource db { diff --git a/src/lib/components/forms/SetupForm.svelte b/src/lib/components/forms/SetupForm.svelte index 76f9bcf..584e302 100644 --- a/src/lib/components/forms/SetupForm.svelte +++ b/src/lib/components/forms/SetupForm.svelte @@ -2,6 +2,7 @@ import * as Card from "../ui/card/index.ts"; import { Label } from "../ui/label/index.ts"; import { Input } from "../ui/input/index.ts"; + import { Button } from "../ui/button/index.ts"; import * as Select from "..//ui/select/index.js"; const roles = [ @@ -9,7 +10,11 @@ { value: "PLANNER", label: "Planner" }, ]; - let value = $state("COUPLE"); + let value: "COUPLE" | "PLANNER" = $state("COUPLE"); + + let defaults = { + username: "admin" + } @@ -42,23 +47,27 @@ +
+ + +
- + +

This is the default username, optional to change it.

+ +
+
+
+ + +
\ No newline at end of file diff --git a/src/lib/generated/prisma/browser.ts b/src/lib/generated/prisma/browser.ts new file mode 100644 index 0000000..0efd99e --- /dev/null +++ b/src/lib/generated/prisma/browser.ts @@ -0,0 +1,99 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file should be your main import to use Prisma-related types and utilities in a browser. + * Use it to get access to models, enums, and input types. + * + * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only. + * See `client.ts` for the standard, server-side entry point. + * + * 🟢 You can import this file directly. + */ + +import * as Prisma from './internal/prismaNamespaceBrowser.ts' +export { Prisma } +export * as $Enums from './enums.ts' +export * from './enums.ts'; +/** + * Model User + * + */ +export type User = Prisma.UserModel +/** + * Model Project + * + */ +export type Project = Prisma.ProjectModel +/** + * Model Membership + * + */ +export type Membership = Prisma.MembershipModel +/** + * Model InviteToken + * + */ +export type InviteToken = Prisma.InviteTokenModel +/** + * Model Event + * + */ +export type Event = Prisma.EventModel +/** + * Model EventTodo + * + */ +export type EventTodo = Prisma.EventTodoModel +/** + * Model Address + * + */ +export type Address = Prisma.AddressModel +/** + * Model Household + * + */ +export type Household = Prisma.HouseholdModel +/** + * Model Guest + * + */ +export type Guest = Prisma.GuestModel +/** + * Model EventGuest + * + */ +export type EventGuest = Prisma.EventGuestModel +/** + * Model VendorCategory + * + */ +export type VendorCategory = Prisma.VendorCategoryModel +/** + * Model Vendor + * + */ +export type Vendor = Prisma.VendorModel +/** + * Model EventVendor + * + */ +export type EventVendor = Prisma.EventVendorModel +/** + * Model FileUpload + * + */ +export type FileUpload = Prisma.FileUploadModel +/** + * Model RegistryItem + * + */ +export type RegistryItem = Prisma.RegistryItemModel +/** + * Model AllowedOrigin + * + */ +export type AllowedOrigin = Prisma.AllowedOriginModel diff --git a/src/lib/generated/prisma/client.ts b/src/lib/generated/prisma/client.ts new file mode 100644 index 0000000..2b64a5d --- /dev/null +++ b/src/lib/generated/prisma/client.ts @@ -0,0 +1,126 @@ + +/* !!! 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 { fileURLToPath } from 'node:url' +globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url)) + +import * as runtime from "@prisma/client/runtime/library" +import * as $Enums from "./enums.ts" +import * as $Class from "./internal/class.ts" +import * as Prisma from "./internal/prismaNamespace.ts" + +export * as $Enums from './enums.ts' +export * from "./enums.ts" +/** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // Fetch zero or more Users + * const users = await prisma.user.findMany() + * ``` + * + * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). + */ +export const PrismaClient = $Class.getPrismaClientClass(__dirname) +export type PrismaClient = $Class.PrismaClient +export { Prisma } + + +// file annotations for bundling tools to include these files +path.join(__dirname, "libquery_engine-darwin-arm64.dylib.node") +path.join(process.cwd(), "src/lib/generated/prisma/libquery_engine-darwin-arm64.dylib.node") + +/** + * Model User + * + */ +export type User = Prisma.UserModel +/** + * Model Project + * + */ +export type Project = Prisma.ProjectModel +/** + * Model Membership + * + */ +export type Membership = Prisma.MembershipModel +/** + * Model InviteToken + * + */ +export type InviteToken = Prisma.InviteTokenModel +/** + * Model Event + * + */ +export type Event = Prisma.EventModel +/** + * Model EventTodo + * + */ +export type EventTodo = Prisma.EventTodoModel +/** + * Model Address + * + */ +export type Address = Prisma.AddressModel +/** + * Model Household + * + */ +export type Household = Prisma.HouseholdModel +/** + * Model Guest + * + */ +export type Guest = Prisma.GuestModel +/** + * Model EventGuest + * + */ +export type EventGuest = Prisma.EventGuestModel +/** + * Model VendorCategory + * + */ +export type VendorCategory = Prisma.VendorCategoryModel +/** + * Model Vendor + * + */ +export type Vendor = Prisma.VendorModel +/** + * Model EventVendor + * + */ +export type EventVendor = Prisma.EventVendorModel +/** + * Model FileUpload + * + */ +export type FileUpload = Prisma.FileUploadModel +/** + * Model RegistryItem + * + */ +export type RegistryItem = Prisma.RegistryItemModel +/** + * Model AllowedOrigin + * + */ +export type AllowedOrigin = Prisma.AllowedOriginModel diff --git a/src/lib/generated/prisma/commonInputTypes.ts b/src/lib/generated/prisma/commonInputTypes.ts new file mode 100644 index 0000000..440446f --- /dev/null +++ b/src/lib/generated/prisma/commonInputTypes.ts @@ -0,0 +1,542 @@ + +/* !!! 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/library" +import * as $Enums from "./enums.ts" +import type * as Prisma from "./internal/prismaNamespace.ts" + + +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 BoolFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean +} + +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 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 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 EnumRoleFilter<$PrismaModel = never> = { + equals?: $Enums.Role | Prisma.EnumRoleFieldRefInput<$PrismaModel> + in?: $Enums.Role[] | Prisma.ListEnumRoleFieldRefInput<$PrismaModel> + notIn?: $Enums.Role[] | Prisma.ListEnumRoleFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumRoleFilter<$PrismaModel> | $Enums.Role +} + +export type EnumRoleWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.Role | Prisma.EnumRoleFieldRefInput<$PrismaModel> + in?: $Enums.Role[] | Prisma.ListEnumRoleFieldRefInput<$PrismaModel> + notIn?: $Enums.Role[] | Prisma.ListEnumRoleFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumRoleWithAggregatesFilter<$PrismaModel> | $Enums.Role + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumRoleFilter<$PrismaModel> + _max?: Prisma.NestedEnumRoleFilter<$PrismaModel> +} + +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 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 EnumRsvpStatusFilter<$PrismaModel = never> = { + equals?: $Enums.RsvpStatus | Prisma.EnumRsvpStatusFieldRefInput<$PrismaModel> + in?: $Enums.RsvpStatus[] | Prisma.ListEnumRsvpStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.RsvpStatus[] | Prisma.ListEnumRsvpStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumRsvpStatusFilter<$PrismaModel> | $Enums.RsvpStatus +} + +export type EnumRsvpStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.RsvpStatus | Prisma.EnumRsvpStatusFieldRefInput<$PrismaModel> + in?: $Enums.RsvpStatus[] | Prisma.ListEnumRsvpStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.RsvpStatus[] | Prisma.ListEnumRsvpStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumRsvpStatusWithAggregatesFilter<$PrismaModel> | $Enums.RsvpStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumRsvpStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumRsvpStatusFilter<$PrismaModel> +} + +export type EnumVendorStatusFilter<$PrismaModel = never> = { + equals?: $Enums.VendorStatus | Prisma.EnumVendorStatusFieldRefInput<$PrismaModel> + in?: $Enums.VendorStatus[] | Prisma.ListEnumVendorStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.VendorStatus[] | Prisma.ListEnumVendorStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumVendorStatusFilter<$PrismaModel> | $Enums.VendorStatus +} + +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 EnumVendorStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.VendorStatus | Prisma.EnumVendorStatusFieldRefInput<$PrismaModel> + in?: $Enums.VendorStatus[] | Prisma.ListEnumVendorStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.VendorStatus[] | Prisma.ListEnumVendorStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumVendorStatusWithAggregatesFilter<$PrismaModel> | $Enums.VendorStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumVendorStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumVendorStatusFilter<$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 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 EnumFileKindFilter<$PrismaModel = never> = { + equals?: $Enums.FileKind | Prisma.EnumFileKindFieldRefInput<$PrismaModel> + in?: $Enums.FileKind[] | Prisma.ListEnumFileKindFieldRefInput<$PrismaModel> + notIn?: $Enums.FileKind[] | Prisma.ListEnumFileKindFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumFileKindFilter<$PrismaModel> | $Enums.FileKind +} + +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 EnumFileKindWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.FileKind | Prisma.EnumFileKindFieldRefInput<$PrismaModel> + in?: $Enums.FileKind[] | Prisma.ListEnumFileKindFieldRefInput<$PrismaModel> + notIn?: $Enums.FileKind[] | Prisma.ListEnumFileKindFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumFileKindWithAggregatesFilter<$PrismaModel> | $Enums.FileKind + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumFileKindFilter<$PrismaModel> + _max?: Prisma.NestedEnumFileKindFilter<$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 NestedBoolFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean +} + +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 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 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 NestedEnumRoleFilter<$PrismaModel = never> = { + equals?: $Enums.Role | Prisma.EnumRoleFieldRefInput<$PrismaModel> + in?: $Enums.Role[] | Prisma.ListEnumRoleFieldRefInput<$PrismaModel> + notIn?: $Enums.Role[] | Prisma.ListEnumRoleFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumRoleFilter<$PrismaModel> | $Enums.Role +} + +export type NestedEnumRoleWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.Role | Prisma.EnumRoleFieldRefInput<$PrismaModel> + in?: $Enums.Role[] | Prisma.ListEnumRoleFieldRefInput<$PrismaModel> + notIn?: $Enums.Role[] | Prisma.ListEnumRoleFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumRoleWithAggregatesFilter<$PrismaModel> | $Enums.Role + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumRoleFilter<$PrismaModel> + _max?: Prisma.NestedEnumRoleFilter<$PrismaModel> +} + +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 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 NestedEnumRsvpStatusFilter<$PrismaModel = never> = { + equals?: $Enums.RsvpStatus | Prisma.EnumRsvpStatusFieldRefInput<$PrismaModel> + in?: $Enums.RsvpStatus[] | Prisma.ListEnumRsvpStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.RsvpStatus[] | Prisma.ListEnumRsvpStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumRsvpStatusFilter<$PrismaModel> | $Enums.RsvpStatus +} + +export type NestedEnumRsvpStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.RsvpStatus | Prisma.EnumRsvpStatusFieldRefInput<$PrismaModel> + in?: $Enums.RsvpStatus[] | Prisma.ListEnumRsvpStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.RsvpStatus[] | Prisma.ListEnumRsvpStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumRsvpStatusWithAggregatesFilter<$PrismaModel> | $Enums.RsvpStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumRsvpStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumRsvpStatusFilter<$PrismaModel> +} + +export type NestedEnumVendorStatusFilter<$PrismaModel = never> = { + equals?: $Enums.VendorStatus | Prisma.EnumVendorStatusFieldRefInput<$PrismaModel> + in?: $Enums.VendorStatus[] | Prisma.ListEnumVendorStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.VendorStatus[] | Prisma.ListEnumVendorStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumVendorStatusFilter<$PrismaModel> | $Enums.VendorStatus +} + +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 NestedEnumVendorStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.VendorStatus | Prisma.EnumVendorStatusFieldRefInput<$PrismaModel> + in?: $Enums.VendorStatus[] | Prisma.ListEnumVendorStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.VendorStatus[] | Prisma.ListEnumVendorStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumVendorStatusWithAggregatesFilter<$PrismaModel> | $Enums.VendorStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumVendorStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumVendorStatusFilter<$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 NestedEnumFileKindFilter<$PrismaModel = never> = { + equals?: $Enums.FileKind | Prisma.EnumFileKindFieldRefInput<$PrismaModel> + in?: $Enums.FileKind[] | Prisma.ListEnumFileKindFieldRefInput<$PrismaModel> + notIn?: $Enums.FileKind[] | Prisma.ListEnumFileKindFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumFileKindFilter<$PrismaModel> | $Enums.FileKind +} + +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 NestedEnumFileKindWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.FileKind | Prisma.EnumFileKindFieldRefInput<$PrismaModel> + in?: $Enums.FileKind[] | Prisma.ListEnumFileKindFieldRefInput<$PrismaModel> + notIn?: $Enums.FileKind[] | Prisma.ListEnumFileKindFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumFileKindWithAggregatesFilter<$PrismaModel> | $Enums.FileKind + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumFileKindFilter<$PrismaModel> + _max?: Prisma.NestedEnumFileKindFilter<$PrismaModel> +} + + diff --git a/src/lib/generated/prisma/enums.ts b/src/lib/generated/prisma/enums.ts new file mode 100644 index 0000000..f15ffe9 --- /dev/null +++ b/src/lib/generated/prisma/enums.ts @@ -0,0 +1,50 @@ + +/* !!! 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 Role = { + COUPLE: 'COUPLE', + PLANNER: 'PLANNER' +} as const + +export type Role = (typeof Role)[keyof typeof Role] + + +export const RsvpStatus = { + PENDING: 'PENDING', + ACCEPTED: 'ACCEPTED', + DECLINED: 'DECLINED' +} as const + +export type RsvpStatus = (typeof RsvpStatus)[keyof typeof RsvpStatus] + + +export const VendorStatus = { + RESEARCHING: 'RESEARCHING', + CONTACTING: 'CONTACTING', + RESPONDED: 'RESPONDED', + PROPOSAL_RECEIVED: 'PROPOSAL_RECEIVED', + NEGOTIATING: 'NEGOTIATING', + CONTRACT_SENT: 'CONTRACT_SENT', + CONTRACT_SIGNED: 'CONTRACT_SIGNED', + DECLINED: 'DECLINED', + BACKUP: 'BACKUP' +} as const + +export type VendorStatus = (typeof VendorStatus)[keyof typeof VendorStatus] + + +export const FileKind = { + CONTRACT: 'CONTRACT', + PROPOSAL: 'PROPOSAL', + OTHER: 'OTHER' +} as const + +export type FileKind = (typeof FileKind)[keyof typeof FileKind] diff --git a/src/lib/generated/prisma/internal/class.ts b/src/lib/generated/prisma/internal/class.ts new file mode 100644 index 0000000..fca0e58 --- /dev/null +++ b/src/lib/generated/prisma/internal/class.ts @@ -0,0 +1,369 @@ + +/* !!! 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/library" +import type * as Prisma from "./prismaNamespace.ts" + + +const config: runtime.GetPrismaClientConfig = { + "generator": { + "name": "client", + "provider": { + "fromEnvVar": null, + "value": "prisma-client" + }, + "output": { + "value": "/Users/briannelson/Documents/coding/planner/src/lib/generated/prisma", + "fromEnvVar": null + }, + "config": { + "engineType": "library" + }, + "binaryTargets": [ + { + "fromEnvVar": null, + "value": "darwin-arm64", + "native": true + } + ], + "previewFeatures": [], + "sourceFilePath": "/Users/briannelson/Documents/coding/planner/prisma/schema.prisma", + "isCustomOutput": true + }, + "relativePath": "../../../../prisma", + "clientVersion": "6.19.3", + "engineVersion": "c2990dca591cba766e3b7ef5d9e8a84796e47ab7", + "datasourceNames": [ + "db" + ], + "activeProvider": "postgresql", + "postinstall": false, + "inlineDatasources": { + "db": { + "url": { + "fromEnvVar": "DATABASE_URL", + "value": null + } + } + }, + "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client\"\n output = \"../src/lib/generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nenum Role {\n COUPLE\n PLANNER\n}\n\nenum RsvpStatus {\n PENDING\n ACCEPTED\n DECLINED\n}\n\nenum VendorStatus {\n RESEARCHING\n CONTACTING\n RESPONDED\n PROPOSAL_RECEIVED\n NEGOTIATING\n CONTRACT_SENT\n CONTRACT_SIGNED\n DECLINED\n BACKUP\n}\n\nenum FileKind {\n CONTRACT\n PROPOSAL\n OTHER\n}\n\nmodel User {\n id String @id @default(cuid())\n email String @unique\n name String\n username String @unique\n password String? // hashed pw, optional for OIDC\n authProvider String?\n providerId String?\n isAdmin Boolean @default(false)\n createdAt DateTime @default(now())\n\n memberships Membership[]\n fileUploads FileUpload[]\n allowedOrigins AllowedOrigin[]\n\n @@unique([authProvider, providerId])\n}\n\nmodel Project {\n id String @id @default(cuid())\n name String @unique\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n archivedAt DateTime\n\n memberships Membership[]\n invites InviteToken[]\n events Event[]\n households Household[]\n}\n\nmodel Membership {\n id String @id @default(cuid())\n role Role\n createdAt DateTime @default(now())\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n userId String\n project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)\n projectId String\n event Event? @relation(fields: [eventId], references: [id], onDelete: Cascade)\n eventId String?\n\n @@index([userId])\n @@index([projectId])\n}\n\nmodel InviteToken {\n id String @id @default(cuid())\n email String\n role Role\n token String @unique\n expiresAt DateTime\n acceptedAt DateTime?\n createdAt DateTime @default(now())\n\n project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)\n projectId String\n event Event? @relation(fields: [eventId], references: [id], onDelete: Cascade)\n eventId String?\n\n @@index([email])\n}\n\nmodel Event {\n id String @id @default(cuid())\n slug String @unique\n name String\n date DateTime?\n notes String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)\n projectId String\n\n memberships Membership[]\n invites InviteToken[]\n todos EventTodo[]\n eventGuests EventGuest[]\n eventVendors EventVendor[]\n registryItems RegistryItem[]\n fileUploads FileUpload[]\n\n @@index([projectId])\n}\n\nmodel EventTodo {\n id String @id @default(cuid())\n name String\n complete Boolean @default(false)\n dueDate DateTime?\n notes String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n event Event @relation(fields: [eventId], references: [id], onDelete: Cascade)\n eventId String\n\n @@index([eventId])\n}\n\nmodel Address {\n id String @id @default(cuid())\n line1 String\n line2 String?\n city String\n state String\n postalCode String\n country String @default(\"United States\")\n\n household Household?\n vendor Vendor?\n}\n\nmodel Household {\n id String @id @default(cuid())\n name String\n token String @unique @default(uuid())\n notes String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)\n projectId String\n address Address @relation(fields: [addressId], references: [id])\n addressId String @unique\n\n guests Guest[]\n\n @@index([projectId])\n}\n\nmodel Guest {\n id String @id @default(cuid())\n firstName String\n lastName String?\n email String?\n phone String?\n notes String?\n side String?\n congratulated Boolean @default(false)\n isPlaceHolder Boolean @default(false)\n createdAt DateTime @default(now())\n\n household Household @relation(fields: [householdId], references: [id], onDelete: Cascade)\n householdId String\n\n eventGuest EventGuest[]\n\n @@index([householdId])\n}\n\nmodel EventGuest {\n id String @id @default(cuid())\n rsvp RsvpStatus @default(PENDING)\n respodedAt DateTime?\n createdAt DateTime @default(now())\n\n event Event @relation(fields: [eventId], references: [id], onDelete: Cascade)\n eventId String\n guest Guest @relation(fields: [guestId], references: [id], onDelete: Cascade)\n guestId String\n\n @@unique([eventId, guestId])\n @@index([guestId])\n}\n\nmodel VendorCategory {\n id String @id @default(cuid())\n name String\n description String?\n color String? @default(\"#3B82F6\")\n\n vendors Vendor[]\n}\n\nmodel Vendor {\n id String @id @default(cuid())\n slug String @unique\n name String\n description String?\n website String?\n contactPerson String?\n email String?\n phone String?\n notes String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n category VendorCategory? @relation(fields: [categoryId], references: [id], onDelete: SetNull)\n categoryId String?\n address Address? @relation(fields: [addressId], references: [id])\n addressId String? @unique\n\n eventVendors EventVendor[]\n}\n\nmodel EventVendor {\n id String @id @default(cuid())\n status VendorStatus @default(RESEARCHING)\n bookedDate DateTime?\n quotedPrice Decimal?\n finalCost Decimal?\n depositPaid Decimal?\n depositDueDate DateTime?\n finalPaymentDue DateTime?\n paymentNotes String?\n notes String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n event Event @relation(fields: [eventId], references: [id], onDelete: Cascade)\n eventId String\n vendor Vendor @relation(fields: [vendorId], references: [id], onDelete: Restrict)\n vendorId String\n\n fileUploads FileUpload[]\n\n @@unique([vendorId, eventId])\n @@index([vendorId])\n}\n\nmodel FileUpload {\n id String @id @default(cuid())\n originalName String\n storageKey String @unique\n mimeType String\n size Int\n kind FileKind @default(OTHER)\n uploadedAt DateTime @default(now())\n\n uploadedBy User @relation(fields: [uploadedById], references: [id])\n uploadedById String\n event Event? @relation(fields: [eventId], references: [id], onDelete: Cascade)\n eventId String?\n eventVendor EventVendor? @relation(fields: [eventVendorId], references: [id], onDelete: Cascade)\n eventVendorId String?\n}\n\nmodel RegistryItem {\n id String @id @default(cuid())\n slug String\n name String\n url String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n event Event? @relation(fields: [eventId], references: [id], onDelete: Cascade)\n eventId String?\n\n @@unique([eventId, slug])\n}\n\nmodel AllowedOrigin {\n id String @id @default(cuid())\n origin String @unique\n isDefault Boolean @default(false)\n createdAt DateTime @default(now())\n\n addedBy User? @relation(fields: [addedById], references: [id], onDelete: SetNull)\n addedById String?\n}\n", + "inlineSchemaHash": "56684af41e7d0de35642a7ce5767e1eb730bd642e4aebf2b64947fad1e0ae513", + "copyEngine": true, + "runtimeDataModel": { + "models": {}, + "enums": {}, + "types": {} + }, + "dirname": "" +} + +config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"username\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"authProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"providerId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isAdmin\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memberships\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Membership\",\"nativeType\":null,\"relationName\":\"MembershipToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fileUploads\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"FileUpload\",\"nativeType\":null,\"relationName\":\"FileUploadToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"allowedOrigins\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"AllowedOrigin\",\"nativeType\":null,\"relationName\":\"AllowedOriginToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"authProvider\",\"providerId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"authProvider\",\"providerId\"]}],\"isGenerated\":false},\"Project\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"archivedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memberships\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Membership\",\"nativeType\":null,\"relationName\":\"MembershipToProject\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"invites\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"InviteToken\",\"nativeType\":null,\"relationName\":\"InviteTokenToProject\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"events\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"nativeType\":null,\"relationName\":\"EventToProject\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"households\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Household\",\"nativeType\":null,\"relationName\":\"HouseholdToProject\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Membership\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"role\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Role\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"MembershipToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"project\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Project\",\"nativeType\":null,\"relationName\":\"MembershipToProject\",\"relationFromFields\":[\"projectId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"projectId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"event\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"nativeType\":null,\"relationName\":\"EventToMembership\",\"relationFromFields\":[\"eventId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"InviteToken\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"role\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Role\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"acceptedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"project\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Project\",\"nativeType\":null,\"relationName\":\"InviteTokenToProject\",\"relationFromFields\":[\"projectId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"projectId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"event\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"nativeType\":null,\"relationName\":\"EventToInviteToken\",\"relationFromFields\":[\"eventId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Event\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"slug\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"date\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"project\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Project\",\"nativeType\":null,\"relationName\":\"EventToProject\",\"relationFromFields\":[\"projectId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"projectId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memberships\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Membership\",\"nativeType\":null,\"relationName\":\"EventToMembership\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"invites\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"InviteToken\",\"nativeType\":null,\"relationName\":\"EventToInviteToken\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"todos\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"EventTodo\",\"nativeType\":null,\"relationName\":\"EventToEventTodo\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventGuests\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"EventGuest\",\"nativeType\":null,\"relationName\":\"EventToEventGuest\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventVendors\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"EventVendor\",\"nativeType\":null,\"relationName\":\"EventToEventVendor\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"registryItems\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"RegistryItem\",\"nativeType\":null,\"relationName\":\"EventToRegistryItem\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fileUploads\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"FileUpload\",\"nativeType\":null,\"relationName\":\"EventToFileUpload\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"EventTodo\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"complete\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dueDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"event\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"nativeType\":null,\"relationName\":\"EventToEventTodo\",\"relationFromFields\":[\"eventId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Address\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"line1\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"line2\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"city\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"state\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"postalCode\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"country\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"United States\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"household\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Household\",\"nativeType\":null,\"relationName\":\"AddressToHousehold\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"vendor\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Vendor\",\"nativeType\":null,\"relationName\":\"AddressToVendor\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Household\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"project\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Project\",\"nativeType\":null,\"relationName\":\"HouseholdToProject\",\"relationFromFields\":[\"projectId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"projectId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"address\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Address\",\"nativeType\":null,\"relationName\":\"AddressToHousehold\",\"relationFromFields\":[\"addressId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"addressId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guests\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Guest\",\"nativeType\":null,\"relationName\":\"GuestToHousehold\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Guest\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"firstName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"phone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"side\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"congratulated\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isPlaceHolder\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"household\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Household\",\"nativeType\":null,\"relationName\":\"GuestToHousehold\",\"relationFromFields\":[\"householdId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"householdId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventGuest\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"EventGuest\",\"nativeType\":null,\"relationName\":\"EventGuestToGuest\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"EventGuest\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"rsvp\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"RsvpStatus\",\"nativeType\":null,\"default\":\"PENDING\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"respodedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"event\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"nativeType\":null,\"relationName\":\"EventToEventGuest\",\"relationFromFields\":[\"eventId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guest\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Guest\",\"nativeType\":null,\"relationName\":\"EventGuestToGuest\",\"relationFromFields\":[\"guestId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guestId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"eventId\",\"guestId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"eventId\",\"guestId\"]}],\"isGenerated\":false},\"VendorCategory\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"#3B82F6\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"vendors\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Vendor\",\"nativeType\":null,\"relationName\":\"VendorToVendorCategory\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Vendor\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"slug\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"website\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"contactPerson\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"phone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"category\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"VendorCategory\",\"nativeType\":null,\"relationName\":\"VendorToVendorCategory\",\"relationFromFields\":[\"categoryId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"SetNull\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"address\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Address\",\"nativeType\":null,\"relationName\":\"AddressToVendor\",\"relationFromFields\":[\"addressId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"addressId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":true,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventVendors\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"EventVendor\",\"nativeType\":null,\"relationName\":\"EventVendorToVendor\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"EventVendor\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"VendorStatus\",\"nativeType\":null,\"default\":\"RESEARCHING\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"bookedDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"quotedPrice\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"finalCost\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"depositPaid\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Decimal\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"depositDueDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"finalPaymentDue\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"paymentNotes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"event\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"nativeType\":null,\"relationName\":\"EventToEventVendor\",\"relationFromFields\":[\"eventId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"vendor\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Vendor\",\"nativeType\":null,\"relationName\":\"EventVendorToVendor\",\"relationFromFields\":[\"vendorId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Restrict\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"vendorId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fileUploads\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"FileUpload\",\"nativeType\":null,\"relationName\":\"EventVendorToFileUpload\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"vendorId\",\"eventId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"vendorId\",\"eventId\"]}],\"isGenerated\":false},\"FileUpload\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"originalName\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"storageKey\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"mimeType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"size\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"kind\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"FileKind\",\"nativeType\":null,\"default\":\"OTHER\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"uploadedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"uploadedBy\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"FileUploadToUser\",\"relationFromFields\":[\"uploadedById\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"uploadedById\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"event\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"nativeType\":null,\"relationName\":\"EventToFileUpload\",\"relationFromFields\":[\"eventId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventVendor\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"EventVendor\",\"nativeType\":null,\"relationName\":\"EventVendorToFileUpload\",\"relationFromFields\":[\"eventVendorId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventVendorId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"RegistryItem\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"slug\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"url\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"event\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"nativeType\":null,\"relationName\":\"EventToRegistryItem\",\"relationFromFields\":[\"eventId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"eventId\",\"slug\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"eventId\",\"slug\"]}],\"isGenerated\":false},\"AllowedOrigin\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"origin\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isDefault\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"addedBy\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"AllowedOriginToUser\",\"relationFromFields\":[\"addedById\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"SetNull\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"addedById\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{\"Role\":{\"values\":[{\"name\":\"COUPLE\",\"dbName\":null},{\"name\":\"PLANNER\",\"dbName\":null}],\"dbName\":null},\"RsvpStatus\":{\"values\":[{\"name\":\"PENDING\",\"dbName\":null},{\"name\":\"ACCEPTED\",\"dbName\":null},{\"name\":\"DECLINED\",\"dbName\":null}],\"dbName\":null},\"VendorStatus\":{\"values\":[{\"name\":\"RESEARCHING\",\"dbName\":null},{\"name\":\"CONTACTING\",\"dbName\":null},{\"name\":\"RESPONDED\",\"dbName\":null},{\"name\":\"PROPOSAL_RECEIVED\",\"dbName\":null},{\"name\":\"NEGOTIATING\",\"dbName\":null},{\"name\":\"CONTRACT_SENT\",\"dbName\":null},{\"name\":\"CONTRACT_SIGNED\",\"dbName\":null},{\"name\":\"DECLINED\",\"dbName\":null},{\"name\":\"BACKUP\",\"dbName\":null}],\"dbName\":null},\"FileKind\":{\"values\":[{\"name\":\"CONTRACT\",\"dbName\":null},{\"name\":\"PROPOSAL\",\"dbName\":null},{\"name\":\"OTHER\",\"dbName\":null}],\"dbName\":null}},\"types\":{}}") +config.engineWasm = undefined +config.compilerWasm = undefined + + + + +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 Users + * const users = await prisma.user.findMany() + * ``` + * + * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-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 Users + * const users = await prisma.user.findMany() + * ``` + * + * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). + */ + +export interface PrismaClient< + in LogOpts extends Prisma.LogLevel = never, + in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'], + 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://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). + */ + $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://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). + */ + $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://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). + */ + $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://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). + */ + $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/concepts/components/prisma-client/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.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.project`: Exposes CRUD operations for the **Project** model. + * Example usage: + * ```ts + * // Fetch zero or more Projects + * const projects = await prisma.project.findMany() + * ``` + */ + get project(): Prisma.ProjectDelegate; + + /** + * `prisma.membership`: Exposes CRUD operations for the **Membership** model. + * Example usage: + * ```ts + * // Fetch zero or more Memberships + * const memberships = await prisma.membership.findMany() + * ``` + */ + get membership(): Prisma.MembershipDelegate; + + /** + * `prisma.inviteToken`: Exposes CRUD operations for the **InviteToken** model. + * Example usage: + * ```ts + * // Fetch zero or more InviteTokens + * const inviteTokens = await prisma.inviteToken.findMany() + * ``` + */ + get inviteToken(): Prisma.InviteTokenDelegate; + + /** + * `prisma.event`: Exposes CRUD operations for the **Event** model. + * Example usage: + * ```ts + * // Fetch zero or more Events + * const events = await prisma.event.findMany() + * ``` + */ + get event(): Prisma.EventDelegate; + + /** + * `prisma.eventTodo`: Exposes CRUD operations for the **EventTodo** model. + * Example usage: + * ```ts + * // Fetch zero or more EventTodos + * const eventTodos = await prisma.eventTodo.findMany() + * ``` + */ + get eventTodo(): Prisma.EventTodoDelegate; + + /** + * `prisma.address`: Exposes CRUD operations for the **Address** model. + * Example usage: + * ```ts + * // Fetch zero or more Addresses + * const addresses = await prisma.address.findMany() + * ``` + */ + get address(): Prisma.AddressDelegate; + + /** + * `prisma.household`: Exposes CRUD operations for the **Household** model. + * Example usage: + * ```ts + * // Fetch zero or more Households + * const households = await prisma.household.findMany() + * ``` + */ + get household(): Prisma.HouseholdDelegate; + + /** + * `prisma.guest`: Exposes CRUD operations for the **Guest** model. + * Example usage: + * ```ts + * // Fetch zero or more Guests + * const guests = await prisma.guest.findMany() + * ``` + */ + get guest(): Prisma.GuestDelegate; + + /** + * `prisma.eventGuest`: Exposes CRUD operations for the **EventGuest** model. + * Example usage: + * ```ts + * // Fetch zero or more EventGuests + * const eventGuests = await prisma.eventGuest.findMany() + * ``` + */ + get eventGuest(): Prisma.EventGuestDelegate; + + /** + * `prisma.vendorCategory`: Exposes CRUD operations for the **VendorCategory** model. + * Example usage: + * ```ts + * // Fetch zero or more VendorCategories + * const vendorCategories = await prisma.vendorCategory.findMany() + * ``` + */ + get vendorCategory(): Prisma.VendorCategoryDelegate; + + /** + * `prisma.vendor`: Exposes CRUD operations for the **Vendor** model. + * Example usage: + * ```ts + * // Fetch zero or more Vendors + * const vendors = await prisma.vendor.findMany() + * ``` + */ + get vendor(): Prisma.VendorDelegate; + + /** + * `prisma.eventVendor`: Exposes CRUD operations for the **EventVendor** model. + * Example usage: + * ```ts + * // Fetch zero or more EventVendors + * const eventVendors = await prisma.eventVendor.findMany() + * ``` + */ + get eventVendor(): Prisma.EventVendorDelegate; + + /** + * `prisma.fileUpload`: Exposes CRUD operations for the **FileUpload** model. + * Example usage: + * ```ts + * // Fetch zero or more FileUploads + * const fileUploads = await prisma.fileUpload.findMany() + * ``` + */ + get fileUpload(): Prisma.FileUploadDelegate; + + /** + * `prisma.registryItem`: Exposes CRUD operations for the **RegistryItem** model. + * Example usage: + * ```ts + * // Fetch zero or more RegistryItems + * const registryItems = await prisma.registryItem.findMany() + * ``` + */ + get registryItem(): Prisma.RegistryItemDelegate; + + /** + * `prisma.allowedOrigin`: Exposes CRUD operations for the **AllowedOrigin** model. + * Example usage: + * ```ts + * // Fetch zero or more AllowedOrigins + * const allowedOrigins = await prisma.allowedOrigin.findMany() + * ``` + */ + get allowedOrigin(): Prisma.AllowedOriginDelegate; +} + +export function getPrismaClientClass(dirname: string): PrismaClientConstructor { + config.dirname = dirname + return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor +} diff --git a/src/lib/generated/prisma/internal/prismaNamespace.ts b/src/lib/generated/prisma/internal/prismaNamespace.ts new file mode 100644 index 0000000..506e7d2 --- /dev/null +++ b/src/lib/generated/prisma/internal/prismaNamespace.ts @@ -0,0 +1,2204 @@ + +/* !!! 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/library" +import type * as Prisma from "../models.ts" +import { type PrismaClient } from "./class.ts" + +export type * from '../models.ts' + +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 + +/** + * Metrics + */ +export type Metrics = runtime.Metrics +export type Metric = runtime.Metric +export type MetricHistogram = runtime.MetricHistogram +export type MetricHistogramBucket = runtime.MetricHistogramBucket + +/** +* 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: 6.19.3 + * Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7 + */ +export const prismaVersion: PrismaVersion = { + client: "6.19.3", + engine: "c2990dca591cba766e3b7ef5d9e8a84796e47ab7" +} + +/** + * 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.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull), + JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull), + AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.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.objectEnumValues.instances.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.objectEnumValues.instances.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.objectEnumValues.instances.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 = { + User: 'User', + Project: 'Project', + Membership: 'Membership', + InviteToken: 'InviteToken', + Event: 'Event', + EventTodo: 'EventTodo', + Address: 'Address', + Household: 'Household', + Guest: 'Guest', + EventGuest: 'EventGuest', + VendorCategory: 'VendorCategory', + Vendor: 'Vendor', + EventVendor: 'EventVendor', + FileUpload: 'FileUpload', + RegistryItem: 'RegistryItem', + AllowedOrigin: 'AllowedOrigin' +} 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: "user" | "project" | "membership" | "inviteToken" | "event" | "eventTodo" | "address" | "household" | "guest" | "eventGuest" | "vendorCategory" | "vendor" | "eventVendor" | "fileUpload" | "registryItem" | "allowedOrigin" + txIsolationLevel: TransactionIsolationLevel + } + model: { + 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 + } + } + } + Project: { + payload: Prisma.$ProjectPayload + fields: Prisma.ProjectFieldRefs + operations: { + findUnique: { + args: Prisma.ProjectFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ProjectFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ProjectFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ProjectFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ProjectFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ProjectCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ProjectCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ProjectCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ProjectDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ProjectUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ProjectDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ProjectUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ProjectUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ProjectUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ProjectAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ProjectGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ProjectCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Membership: { + payload: Prisma.$MembershipPayload + fields: Prisma.MembershipFieldRefs + operations: { + findUnique: { + args: Prisma.MembershipFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.MembershipFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.MembershipFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.MembershipFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.MembershipFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.MembershipCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.MembershipCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.MembershipCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.MembershipDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.MembershipUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.MembershipDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.MembershipUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.MembershipUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.MembershipUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.MembershipAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.MembershipGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.MembershipCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + InviteToken: { + payload: Prisma.$InviteTokenPayload + fields: Prisma.InviteTokenFieldRefs + operations: { + findUnique: { + args: Prisma.InviteTokenFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.InviteTokenFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.InviteTokenFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.InviteTokenFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.InviteTokenFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.InviteTokenCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.InviteTokenCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.InviteTokenCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.InviteTokenDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.InviteTokenUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.InviteTokenDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.InviteTokenUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.InviteTokenUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.InviteTokenUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.InviteTokenAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.InviteTokenGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.InviteTokenCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Event: { + payload: Prisma.$EventPayload + fields: Prisma.EventFieldRefs + operations: { + findUnique: { + args: Prisma.EventFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.EventFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.EventFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.EventFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.EventFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.EventCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.EventCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.EventCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.EventDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.EventUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.EventDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.EventUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.EventUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.EventUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.EventAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.EventGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.EventCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + EventTodo: { + payload: Prisma.$EventTodoPayload + fields: Prisma.EventTodoFieldRefs + operations: { + findUnique: { + args: Prisma.EventTodoFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.EventTodoFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.EventTodoFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.EventTodoFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.EventTodoFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.EventTodoCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.EventTodoCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.EventTodoCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.EventTodoDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.EventTodoUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.EventTodoDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.EventTodoUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.EventTodoUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.EventTodoUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.EventTodoAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.EventTodoGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.EventTodoCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Address: { + payload: Prisma.$AddressPayload + fields: Prisma.AddressFieldRefs + operations: { + findUnique: { + args: Prisma.AddressFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AddressFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AddressFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AddressFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AddressFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AddressCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AddressCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AddressCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.AddressDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AddressUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AddressDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AddressUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AddressUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AddressUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AddressAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AddressGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AddressCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Household: { + payload: Prisma.$HouseholdPayload + fields: Prisma.HouseholdFieldRefs + operations: { + findUnique: { + args: Prisma.HouseholdFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.HouseholdFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.HouseholdFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.HouseholdFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.HouseholdFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.HouseholdCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.HouseholdCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.HouseholdCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.HouseholdDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.HouseholdUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.HouseholdDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.HouseholdUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.HouseholdUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.HouseholdUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.HouseholdAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.HouseholdGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.HouseholdCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Guest: { + payload: Prisma.$GuestPayload + fields: Prisma.GuestFieldRefs + operations: { + findUnique: { + args: Prisma.GuestFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.GuestFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.GuestFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.GuestFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.GuestFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.GuestCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.GuestCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.GuestCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.GuestDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.GuestUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.GuestDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.GuestUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.GuestUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.GuestUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.GuestAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.GuestGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.GuestCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + EventGuest: { + payload: Prisma.$EventGuestPayload + fields: Prisma.EventGuestFieldRefs + operations: { + findUnique: { + args: Prisma.EventGuestFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.EventGuestFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.EventGuestFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.EventGuestFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.EventGuestFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.EventGuestCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.EventGuestCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.EventGuestCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.EventGuestDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.EventGuestUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.EventGuestDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.EventGuestUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.EventGuestUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.EventGuestUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.EventGuestAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.EventGuestGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.EventGuestCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + VendorCategory: { + payload: Prisma.$VendorCategoryPayload + fields: Prisma.VendorCategoryFieldRefs + operations: { + findUnique: { + args: Prisma.VendorCategoryFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.VendorCategoryFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.VendorCategoryFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.VendorCategoryFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.VendorCategoryFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.VendorCategoryCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.VendorCategoryCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.VendorCategoryCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.VendorCategoryDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.VendorCategoryUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.VendorCategoryDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.VendorCategoryUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.VendorCategoryUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.VendorCategoryUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.VendorCategoryAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.VendorCategoryGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.VendorCategoryCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Vendor: { + payload: Prisma.$VendorPayload + fields: Prisma.VendorFieldRefs + operations: { + findUnique: { + args: Prisma.VendorFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.VendorFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.VendorFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.VendorFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.VendorFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.VendorCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.VendorCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.VendorCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.VendorDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.VendorUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.VendorDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.VendorUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.VendorUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.VendorUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.VendorAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.VendorGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.VendorCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + EventVendor: { + payload: Prisma.$EventVendorPayload + fields: Prisma.EventVendorFieldRefs + operations: { + findUnique: { + args: Prisma.EventVendorFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.EventVendorFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.EventVendorFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.EventVendorFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.EventVendorFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.EventVendorCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.EventVendorCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.EventVendorCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.EventVendorDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.EventVendorUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.EventVendorDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.EventVendorUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.EventVendorUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.EventVendorUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.EventVendorAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.EventVendorGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.EventVendorCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + FileUpload: { + payload: Prisma.$FileUploadPayload + fields: Prisma.FileUploadFieldRefs + operations: { + findUnique: { + args: Prisma.FileUploadFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.FileUploadFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.FileUploadFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.FileUploadFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.FileUploadFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.FileUploadCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.FileUploadCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.FileUploadCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.FileUploadDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.FileUploadUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.FileUploadDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.FileUploadUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.FileUploadUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.FileUploadUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.FileUploadAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.FileUploadGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.FileUploadCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + RegistryItem: { + payload: Prisma.$RegistryItemPayload + fields: Prisma.RegistryItemFieldRefs + operations: { + findUnique: { + args: Prisma.RegistryItemFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.RegistryItemFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.RegistryItemFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.RegistryItemFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.RegistryItemFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.RegistryItemCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.RegistryItemCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.RegistryItemCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.RegistryItemDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.RegistryItemUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.RegistryItemDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.RegistryItemUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.RegistryItemUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.RegistryItemUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.RegistryItemAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.RegistryItemGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.RegistryItemCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + AllowedOrigin: { + payload: Prisma.$AllowedOriginPayload + fields: Prisma.AllowedOriginFieldRefs + operations: { + findUnique: { + args: Prisma.AllowedOriginFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AllowedOriginFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AllowedOriginFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AllowedOriginFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AllowedOriginFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AllowedOriginCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AllowedOriginCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AllowedOriginCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.AllowedOriginDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AllowedOriginUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AllowedOriginDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AllowedOriginUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AllowedOriginUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AllowedOriginUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AllowedOriginAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AllowedOriginGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AllowedOriginCountArgs + 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 UserScalarFieldEnum = { + id: 'id', + email: 'email', + name: 'name', + username: 'username', + password: 'password', + authProvider: 'authProvider', + providerId: 'providerId', + isAdmin: 'isAdmin', + createdAt: 'createdAt' +} as const + +export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] + + +export const ProjectScalarFieldEnum = { + id: 'id', + name: 'name', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + archivedAt: 'archivedAt' +} as const + +export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum] + + +export const MembershipScalarFieldEnum = { + id: 'id', + role: 'role', + createdAt: 'createdAt', + userId: 'userId', + projectId: 'projectId', + eventId: 'eventId' +} as const + +export type MembershipScalarFieldEnum = (typeof MembershipScalarFieldEnum)[keyof typeof MembershipScalarFieldEnum] + + +export const InviteTokenScalarFieldEnum = { + id: 'id', + email: 'email', + role: 'role', + token: 'token', + expiresAt: 'expiresAt', + acceptedAt: 'acceptedAt', + createdAt: 'createdAt', + projectId: 'projectId', + eventId: 'eventId' +} as const + +export type InviteTokenScalarFieldEnum = (typeof InviteTokenScalarFieldEnum)[keyof typeof InviteTokenScalarFieldEnum] + + +export const EventScalarFieldEnum = { + id: 'id', + slug: 'slug', + name: 'name', + date: 'date', + notes: 'notes', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + projectId: 'projectId' +} as const + +export type EventScalarFieldEnum = (typeof EventScalarFieldEnum)[keyof typeof EventScalarFieldEnum] + + +export const EventTodoScalarFieldEnum = { + id: 'id', + name: 'name', + complete: 'complete', + dueDate: 'dueDate', + notes: 'notes', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + eventId: 'eventId' +} as const + +export type EventTodoScalarFieldEnum = (typeof EventTodoScalarFieldEnum)[keyof typeof EventTodoScalarFieldEnum] + + +export const AddressScalarFieldEnum = { + id: 'id', + line1: 'line1', + line2: 'line2', + city: 'city', + state: 'state', + postalCode: 'postalCode', + country: 'country' +} as const + +export type AddressScalarFieldEnum = (typeof AddressScalarFieldEnum)[keyof typeof AddressScalarFieldEnum] + + +export const HouseholdScalarFieldEnum = { + id: 'id', + name: 'name', + token: 'token', + notes: 'notes', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + projectId: 'projectId', + addressId: 'addressId' +} as const + +export type HouseholdScalarFieldEnum = (typeof HouseholdScalarFieldEnum)[keyof typeof HouseholdScalarFieldEnum] + + +export const GuestScalarFieldEnum = { + id: 'id', + firstName: 'firstName', + lastName: 'lastName', + email: 'email', + phone: 'phone', + notes: 'notes', + side: 'side', + congratulated: 'congratulated', + isPlaceHolder: 'isPlaceHolder', + createdAt: 'createdAt', + householdId: 'householdId' +} as const + +export type GuestScalarFieldEnum = (typeof GuestScalarFieldEnum)[keyof typeof GuestScalarFieldEnum] + + +export const EventGuestScalarFieldEnum = { + id: 'id', + rsvp: 'rsvp', + respodedAt: 'respodedAt', + createdAt: 'createdAt', + eventId: 'eventId', + guestId: 'guestId' +} as const + +export type EventGuestScalarFieldEnum = (typeof EventGuestScalarFieldEnum)[keyof typeof EventGuestScalarFieldEnum] + + +export const VendorCategoryScalarFieldEnum = { + id: 'id', + name: 'name', + description: 'description', + color: 'color' +} as const + +export type VendorCategoryScalarFieldEnum = (typeof VendorCategoryScalarFieldEnum)[keyof typeof VendorCategoryScalarFieldEnum] + + +export const VendorScalarFieldEnum = { + id: 'id', + slug: 'slug', + name: 'name', + description: 'description', + website: 'website', + contactPerson: 'contactPerson', + email: 'email', + phone: 'phone', + notes: 'notes', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + categoryId: 'categoryId', + addressId: 'addressId' +} as const + +export type VendorScalarFieldEnum = (typeof VendorScalarFieldEnum)[keyof typeof VendorScalarFieldEnum] + + +export const EventVendorScalarFieldEnum = { + id: 'id', + status: 'status', + bookedDate: 'bookedDate', + quotedPrice: 'quotedPrice', + finalCost: 'finalCost', + depositPaid: 'depositPaid', + depositDueDate: 'depositDueDate', + finalPaymentDue: 'finalPaymentDue', + paymentNotes: 'paymentNotes', + notes: 'notes', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + eventId: 'eventId', + vendorId: 'vendorId' +} as const + +export type EventVendorScalarFieldEnum = (typeof EventVendorScalarFieldEnum)[keyof typeof EventVendorScalarFieldEnum] + + +export const FileUploadScalarFieldEnum = { + id: 'id', + originalName: 'originalName', + storageKey: 'storageKey', + mimeType: 'mimeType', + size: 'size', + kind: 'kind', + uploadedAt: 'uploadedAt', + uploadedById: 'uploadedById', + eventId: 'eventId', + eventVendorId: 'eventVendorId' +} as const + +export type FileUploadScalarFieldEnum = (typeof FileUploadScalarFieldEnum)[keyof typeof FileUploadScalarFieldEnum] + + +export const RegistryItemScalarFieldEnum = { + id: 'id', + slug: 'slug', + name: 'name', + url: 'url', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + eventId: 'eventId' +} as const + +export type RegistryItemScalarFieldEnum = (typeof RegistryItemScalarFieldEnum)[keyof typeof RegistryItemScalarFieldEnum] + + +export const AllowedOriginScalarFieldEnum = { + id: 'id', + origin: 'origin', + isDefault: 'isDefault', + createdAt: 'createdAt', + addedById: 'addedById' +} as const + +export type AllowedOriginScalarFieldEnum = (typeof AllowedOriginScalarFieldEnum)[keyof typeof AllowedOriginScalarFieldEnum] + + +export const SortOrder = { + asc: 'asc', + desc: 'desc' +} as const + +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + + +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] + + + +/** + * 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 'Boolean' + */ +export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> + + + +/** + * 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 'Role' + */ +export type EnumRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Role'> + + + +/** + * Reference to a field of type 'Role[]' + */ +export type ListEnumRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Role[]'> + + + +/** + * Reference to a field of type 'RsvpStatus' + */ +export type EnumRsvpStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RsvpStatus'> + + + +/** + * Reference to a field of type 'RsvpStatus[]' + */ +export type ListEnumRsvpStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RsvpStatus[]'> + + + +/** + * Reference to a field of type 'VendorStatus' + */ +export type EnumVendorStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'VendorStatus'> + + + +/** + * Reference to a field of type 'VendorStatus[]' + */ +export type ListEnumVendorStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'VendorStatus[]'> + + + +/** + * 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 '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 'FileKind' + */ +export type EnumFileKindFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'FileKind'> + + + +/** + * Reference to a field of type 'FileKind[]' + */ +export type ListEnumFileKindFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'FileKind[]'> + + + +/** + * 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 type Datasource = { + url?: string +} +export type Datasources = { + db?: Datasource +} + +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 interface PrismaClientOptions { + /** + * Overwrites the datasource url from your schema.prisma file + */ + datasources?: Datasources + /** + * Overwrites the datasource url from your schema.prisma file + */ + datasourceUrl?: string + /** + * @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://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). + */ + log?: (LogLevel | LogDefinition)[] + /** + * The default values for transactionOptions + * maxWait ?= 2000 + * timeout ?= 5000 + */ + transactionOptions?: { + maxWait?: number + timeout?: number + isolationLevel?: TransactionIsolationLevel + } + /** + * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale` + */ + adapter?: runtime.SqlDriverAdapterFactory | null + /** + * Global configuration for omitting model fields by default. + * + * @example + * ``` + * const prisma = new PrismaClient({ + * omit: { + * user: { + * password: true + * } + * } + * }) + * ``` + */ + omit?: GlobalOmitConfig +} +export type GlobalOmitConfig = { + user?: Prisma.UserOmit + project?: Prisma.ProjectOmit + membership?: Prisma.MembershipOmit + inviteToken?: Prisma.InviteTokenOmit + event?: Prisma.EventOmit + eventTodo?: Prisma.EventTodoOmit + address?: Prisma.AddressOmit + household?: Prisma.HouseholdOmit + guest?: Prisma.GuestOmit + eventGuest?: Prisma.EventGuestOmit + vendorCategory?: Prisma.VendorCategoryOmit + vendor?: Prisma.VendorOmit + eventVendor?: Prisma.EventVendorOmit + fileUpload?: Prisma.FileUploadOmit + registryItem?: Prisma.RegistryItemOmit + allowedOrigin?: Prisma.AllowedOriginOmit +} + +/* 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/src/lib/generated/prisma/internal/prismaNamespaceBrowser.ts b/src/lib/generated/prisma/internal/prismaNamespaceBrowser.ts new file mode 100644 index 0000000..16a9c10 --- /dev/null +++ b/src/lib/generated/prisma/internal/prismaNamespaceBrowser.ts @@ -0,0 +1,334 @@ + +/* !!! 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.ts' +export type * from './prismaNamespace.ts' + +export const Decimal = runtime.Decimal + + +export const NullTypes = { + DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull), + JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull), + AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.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.objectEnumValues.instances.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.objectEnumValues.instances.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.objectEnumValues.instances.AnyNull + + +export const ModelName = { + User: 'User', + Project: 'Project', + Membership: 'Membership', + InviteToken: 'InviteToken', + Event: 'Event', + EventTodo: 'EventTodo', + Address: 'Address', + Household: 'Household', + Guest: 'Guest', + EventGuest: 'EventGuest', + VendorCategory: 'VendorCategory', + Vendor: 'Vendor', + EventVendor: 'EventVendor', + FileUpload: 'FileUpload', + RegistryItem: 'RegistryItem', + AllowedOrigin: 'AllowedOrigin' +} 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 UserScalarFieldEnum = { + id: 'id', + email: 'email', + name: 'name', + username: 'username', + password: 'password', + authProvider: 'authProvider', + providerId: 'providerId', + isAdmin: 'isAdmin', + createdAt: 'createdAt' +} as const + +export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] + + +export const ProjectScalarFieldEnum = { + id: 'id', + name: 'name', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + archivedAt: 'archivedAt' +} as const + +export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum] + + +export const MembershipScalarFieldEnum = { + id: 'id', + role: 'role', + createdAt: 'createdAt', + userId: 'userId', + projectId: 'projectId', + eventId: 'eventId' +} as const + +export type MembershipScalarFieldEnum = (typeof MembershipScalarFieldEnum)[keyof typeof MembershipScalarFieldEnum] + + +export const InviteTokenScalarFieldEnum = { + id: 'id', + email: 'email', + role: 'role', + token: 'token', + expiresAt: 'expiresAt', + acceptedAt: 'acceptedAt', + createdAt: 'createdAt', + projectId: 'projectId', + eventId: 'eventId' +} as const + +export type InviteTokenScalarFieldEnum = (typeof InviteTokenScalarFieldEnum)[keyof typeof InviteTokenScalarFieldEnum] + + +export const EventScalarFieldEnum = { + id: 'id', + slug: 'slug', + name: 'name', + date: 'date', + notes: 'notes', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + projectId: 'projectId' +} as const + +export type EventScalarFieldEnum = (typeof EventScalarFieldEnum)[keyof typeof EventScalarFieldEnum] + + +export const EventTodoScalarFieldEnum = { + id: 'id', + name: 'name', + complete: 'complete', + dueDate: 'dueDate', + notes: 'notes', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + eventId: 'eventId' +} as const + +export type EventTodoScalarFieldEnum = (typeof EventTodoScalarFieldEnum)[keyof typeof EventTodoScalarFieldEnum] + + +export const AddressScalarFieldEnum = { + id: 'id', + line1: 'line1', + line2: 'line2', + city: 'city', + state: 'state', + postalCode: 'postalCode', + country: 'country' +} as const + +export type AddressScalarFieldEnum = (typeof AddressScalarFieldEnum)[keyof typeof AddressScalarFieldEnum] + + +export const HouseholdScalarFieldEnum = { + id: 'id', + name: 'name', + token: 'token', + notes: 'notes', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + projectId: 'projectId', + addressId: 'addressId' +} as const + +export type HouseholdScalarFieldEnum = (typeof HouseholdScalarFieldEnum)[keyof typeof HouseholdScalarFieldEnum] + + +export const GuestScalarFieldEnum = { + id: 'id', + firstName: 'firstName', + lastName: 'lastName', + email: 'email', + phone: 'phone', + notes: 'notes', + side: 'side', + congratulated: 'congratulated', + isPlaceHolder: 'isPlaceHolder', + createdAt: 'createdAt', + householdId: 'householdId' +} as const + +export type GuestScalarFieldEnum = (typeof GuestScalarFieldEnum)[keyof typeof GuestScalarFieldEnum] + + +export const EventGuestScalarFieldEnum = { + id: 'id', + rsvp: 'rsvp', + respodedAt: 'respodedAt', + createdAt: 'createdAt', + eventId: 'eventId', + guestId: 'guestId' +} as const + +export type EventGuestScalarFieldEnum = (typeof EventGuestScalarFieldEnum)[keyof typeof EventGuestScalarFieldEnum] + + +export const VendorCategoryScalarFieldEnum = { + id: 'id', + name: 'name', + description: 'description', + color: 'color' +} as const + +export type VendorCategoryScalarFieldEnum = (typeof VendorCategoryScalarFieldEnum)[keyof typeof VendorCategoryScalarFieldEnum] + + +export const VendorScalarFieldEnum = { + id: 'id', + slug: 'slug', + name: 'name', + description: 'description', + website: 'website', + contactPerson: 'contactPerson', + email: 'email', + phone: 'phone', + notes: 'notes', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + categoryId: 'categoryId', + addressId: 'addressId' +} as const + +export type VendorScalarFieldEnum = (typeof VendorScalarFieldEnum)[keyof typeof VendorScalarFieldEnum] + + +export const EventVendorScalarFieldEnum = { + id: 'id', + status: 'status', + bookedDate: 'bookedDate', + quotedPrice: 'quotedPrice', + finalCost: 'finalCost', + depositPaid: 'depositPaid', + depositDueDate: 'depositDueDate', + finalPaymentDue: 'finalPaymentDue', + paymentNotes: 'paymentNotes', + notes: 'notes', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + eventId: 'eventId', + vendorId: 'vendorId' +} as const + +export type EventVendorScalarFieldEnum = (typeof EventVendorScalarFieldEnum)[keyof typeof EventVendorScalarFieldEnum] + + +export const FileUploadScalarFieldEnum = { + id: 'id', + originalName: 'originalName', + storageKey: 'storageKey', + mimeType: 'mimeType', + size: 'size', + kind: 'kind', + uploadedAt: 'uploadedAt', + uploadedById: 'uploadedById', + eventId: 'eventId', + eventVendorId: 'eventVendorId' +} as const + +export type FileUploadScalarFieldEnum = (typeof FileUploadScalarFieldEnum)[keyof typeof FileUploadScalarFieldEnum] + + +export const RegistryItemScalarFieldEnum = { + id: 'id', + slug: 'slug', + name: 'name', + url: 'url', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + eventId: 'eventId' +} as const + +export type RegistryItemScalarFieldEnum = (typeof RegistryItemScalarFieldEnum)[keyof typeof RegistryItemScalarFieldEnum] + + +export const AllowedOriginScalarFieldEnum = { + id: 'id', + origin: 'origin', + isDefault: 'isDefault', + createdAt: 'createdAt', + addedById: 'addedById' +} as const + +export type AllowedOriginScalarFieldEnum = (typeof AllowedOriginScalarFieldEnum)[keyof typeof AllowedOriginScalarFieldEnum] + + +export const SortOrder = { + asc: 'asc', + desc: 'desc' +} as const + +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + + +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] + diff --git a/src/lib/generated/prisma/libquery_engine-darwin-arm64.dylib.node b/src/lib/generated/prisma/libquery_engine-darwin-arm64.dylib.node new file mode 100755 index 0000000..d0fa4cb Binary files /dev/null and b/src/lib/generated/prisma/libquery_engine-darwin-arm64.dylib.node differ diff --git a/src/lib/generated/prisma/models.ts b/src/lib/generated/prisma/models.ts new file mode 100644 index 0000000..de2d46e --- /dev/null +++ b/src/lib/generated/prisma/models.ts @@ -0,0 +1,27 @@ + +/* !!! 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/User.ts' +export type * from './models/Project.ts' +export type * from './models/Membership.ts' +export type * from './models/InviteToken.ts' +export type * from './models/Event.ts' +export type * from './models/EventTodo.ts' +export type * from './models/Address.ts' +export type * from './models/Household.ts' +export type * from './models/Guest.ts' +export type * from './models/EventGuest.ts' +export type * from './models/VendorCategory.ts' +export type * from './models/Vendor.ts' +export type * from './models/EventVendor.ts' +export type * from './models/FileUpload.ts' +export type * from './models/RegistryItem.ts' +export type * from './models/AllowedOrigin.ts' +export type * from './commonInputTypes.ts' \ No newline at end of file diff --git a/src/lib/generated/prisma/models/Address.ts b/src/lib/generated/prisma/models/Address.ts new file mode 100644 index 0000000..e8dc8b7 --- /dev/null +++ b/src/lib/generated/prisma/models/Address.ts @@ -0,0 +1,1465 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Address` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/library" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model Address + * + */ +export type AddressModel = runtime.Types.Result.DefaultSelection + +export type AggregateAddress = { + _count: AddressCountAggregateOutputType | null + _min: AddressMinAggregateOutputType | null + _max: AddressMaxAggregateOutputType | null +} + +export type AddressMinAggregateOutputType = { + id: string | null + line1: string | null + line2: string | null + city: string | null + state: string | null + postalCode: string | null + country: string | null +} + +export type AddressMaxAggregateOutputType = { + id: string | null + line1: string | null + line2: string | null + city: string | null + state: string | null + postalCode: string | null + country: string | null +} + +export type AddressCountAggregateOutputType = { + id: number + line1: number + line2: number + city: number + state: number + postalCode: number + country: number + _all: number +} + + +export type AddressMinAggregateInputType = { + id?: true + line1?: true + line2?: true + city?: true + state?: true + postalCode?: true + country?: true +} + +export type AddressMaxAggregateInputType = { + id?: true + line1?: true + line2?: true + city?: true + state?: true + postalCode?: true + country?: true +} + +export type AddressCountAggregateInputType = { + id?: true + line1?: true + line2?: true + city?: true + state?: true + postalCode?: true + country?: true + _all?: true +} + +export type AddressAggregateArgs = { + /** + * Filter which Address to aggregate. + */ + where?: Prisma.AddressWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Addresses to fetch. + */ + orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AddressWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Addresses 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` Addresses. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Addresses + **/ + _count?: true | AddressCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AddressMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AddressMaxAggregateInputType +} + +export type GetAddressAggregateType = { + [P in keyof T & keyof AggregateAddress]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type AddressGroupByArgs = { + where?: Prisma.AddressWhereInput + orderBy?: Prisma.AddressOrderByWithAggregationInput | Prisma.AddressOrderByWithAggregationInput[] + by: Prisma.AddressScalarFieldEnum[] | Prisma.AddressScalarFieldEnum + having?: Prisma.AddressScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AddressCountAggregateInputType | true + _min?: AddressMinAggregateInputType + _max?: AddressMaxAggregateInputType +} + +export type AddressGroupByOutputType = { + id: string + line1: string + line2: string | null + city: string + state: string + postalCode: string + country: string + _count: AddressCountAggregateOutputType | null + _min: AddressMinAggregateOutputType | null + _max: AddressMaxAggregateOutputType | null +} + +type GetAddressGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof AddressGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type AddressWhereInput = { + AND?: Prisma.AddressWhereInput | Prisma.AddressWhereInput[] + OR?: Prisma.AddressWhereInput[] + NOT?: Prisma.AddressWhereInput | Prisma.AddressWhereInput[] + id?: Prisma.StringFilter<"Address"> | string + line1?: Prisma.StringFilter<"Address"> | string + line2?: Prisma.StringNullableFilter<"Address"> | string | null + city?: Prisma.StringFilter<"Address"> | string + state?: Prisma.StringFilter<"Address"> | string + postalCode?: Prisma.StringFilter<"Address"> | string + country?: Prisma.StringFilter<"Address"> | string + household?: Prisma.XOR | null + vendor?: Prisma.XOR | null +} + +export type AddressOrderByWithRelationInput = { + id?: Prisma.SortOrder + line1?: Prisma.SortOrder + line2?: Prisma.SortOrderInput | Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + postalCode?: Prisma.SortOrder + country?: Prisma.SortOrder + household?: Prisma.HouseholdOrderByWithRelationInput + vendor?: Prisma.VendorOrderByWithRelationInput +} + +export type AddressWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.AddressWhereInput | Prisma.AddressWhereInput[] + OR?: Prisma.AddressWhereInput[] + NOT?: Prisma.AddressWhereInput | Prisma.AddressWhereInput[] + line1?: Prisma.StringFilter<"Address"> | string + line2?: Prisma.StringNullableFilter<"Address"> | string | null + city?: Prisma.StringFilter<"Address"> | string + state?: Prisma.StringFilter<"Address"> | string + postalCode?: Prisma.StringFilter<"Address"> | string + country?: Prisma.StringFilter<"Address"> | string + household?: Prisma.XOR | null + vendor?: Prisma.XOR | null +}, "id"> + +export type AddressOrderByWithAggregationInput = { + id?: Prisma.SortOrder + line1?: Prisma.SortOrder + line2?: Prisma.SortOrderInput | Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + postalCode?: Prisma.SortOrder + country?: Prisma.SortOrder + _count?: Prisma.AddressCountOrderByAggregateInput + _max?: Prisma.AddressMaxOrderByAggregateInput + _min?: Prisma.AddressMinOrderByAggregateInput +} + +export type AddressScalarWhereWithAggregatesInput = { + AND?: Prisma.AddressScalarWhereWithAggregatesInput | Prisma.AddressScalarWhereWithAggregatesInput[] + OR?: Prisma.AddressScalarWhereWithAggregatesInput[] + NOT?: Prisma.AddressScalarWhereWithAggregatesInput | Prisma.AddressScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Address"> | string + line1?: Prisma.StringWithAggregatesFilter<"Address"> | string + line2?: Prisma.StringNullableWithAggregatesFilter<"Address"> | string | null + city?: Prisma.StringWithAggregatesFilter<"Address"> | string + state?: Prisma.StringWithAggregatesFilter<"Address"> | string + postalCode?: Prisma.StringWithAggregatesFilter<"Address"> | string + country?: Prisma.StringWithAggregatesFilter<"Address"> | string +} + +export type AddressCreateInput = { + id?: string + line1: string + line2?: string | null + city: string + state: string + postalCode: string + country?: string + household?: Prisma.HouseholdCreateNestedOneWithoutAddressInput + vendor?: Prisma.VendorCreateNestedOneWithoutAddressInput +} + +export type AddressUncheckedCreateInput = { + id?: string + line1: string + line2?: string | null + city: string + state: string + postalCode: string + country?: string + household?: Prisma.HouseholdUncheckedCreateNestedOneWithoutAddressInput + vendor?: Prisma.VendorUncheckedCreateNestedOneWithoutAddressInput +} + +export type AddressUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + line1?: Prisma.StringFieldUpdateOperationsInput | string + line2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + city?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.StringFieldUpdateOperationsInput | string + postalCode?: Prisma.StringFieldUpdateOperationsInput | string + country?: Prisma.StringFieldUpdateOperationsInput | string + household?: Prisma.HouseholdUpdateOneWithoutAddressNestedInput + vendor?: Prisma.VendorUpdateOneWithoutAddressNestedInput +} + +export type AddressUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + line1?: Prisma.StringFieldUpdateOperationsInput | string + line2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + city?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.StringFieldUpdateOperationsInput | string + postalCode?: Prisma.StringFieldUpdateOperationsInput | string + country?: Prisma.StringFieldUpdateOperationsInput | string + household?: Prisma.HouseholdUncheckedUpdateOneWithoutAddressNestedInput + vendor?: Prisma.VendorUncheckedUpdateOneWithoutAddressNestedInput +} + +export type AddressCreateManyInput = { + id?: string + line1: string + line2?: string | null + city: string + state: string + postalCode: string + country?: string +} + +export type AddressUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + line1?: Prisma.StringFieldUpdateOperationsInput | string + line2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + city?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.StringFieldUpdateOperationsInput | string + postalCode?: Prisma.StringFieldUpdateOperationsInput | string + country?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AddressUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + line1?: Prisma.StringFieldUpdateOperationsInput | string + line2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + city?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.StringFieldUpdateOperationsInput | string + postalCode?: Prisma.StringFieldUpdateOperationsInput | string + country?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AddressCountOrderByAggregateInput = { + id?: Prisma.SortOrder + line1?: Prisma.SortOrder + line2?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + postalCode?: Prisma.SortOrder + country?: Prisma.SortOrder +} + +export type AddressMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + line1?: Prisma.SortOrder + line2?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + postalCode?: Prisma.SortOrder + country?: Prisma.SortOrder +} + +export type AddressMinOrderByAggregateInput = { + id?: Prisma.SortOrder + line1?: Prisma.SortOrder + line2?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + postalCode?: Prisma.SortOrder + country?: Prisma.SortOrder +} + +export type AddressScalarRelationFilter = { + is?: Prisma.AddressWhereInput + isNot?: Prisma.AddressWhereInput +} + +export type AddressNullableScalarRelationFilter = { + is?: Prisma.AddressWhereInput | null + isNot?: Prisma.AddressWhereInput | null +} + +export type AddressCreateNestedOneWithoutHouseholdInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.AddressCreateOrConnectWithoutHouseholdInput + connect?: Prisma.AddressWhereUniqueInput +} + +export type AddressUpdateOneRequiredWithoutHouseholdNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.AddressCreateOrConnectWithoutHouseholdInput + upsert?: Prisma.AddressUpsertWithoutHouseholdInput + connect?: Prisma.AddressWhereUniqueInput + update?: Prisma.XOR, Prisma.AddressUncheckedUpdateWithoutHouseholdInput> +} + +export type AddressCreateNestedOneWithoutVendorInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.AddressCreateOrConnectWithoutVendorInput + connect?: Prisma.AddressWhereUniqueInput +} + +export type AddressUpdateOneWithoutVendorNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.AddressCreateOrConnectWithoutVendorInput + upsert?: Prisma.AddressUpsertWithoutVendorInput + disconnect?: Prisma.AddressWhereInput | boolean + delete?: Prisma.AddressWhereInput | boolean + connect?: Prisma.AddressWhereUniqueInput + update?: Prisma.XOR, Prisma.AddressUncheckedUpdateWithoutVendorInput> +} + +export type AddressCreateWithoutHouseholdInput = { + id?: string + line1: string + line2?: string | null + city: string + state: string + postalCode: string + country?: string + vendor?: Prisma.VendorCreateNestedOneWithoutAddressInput +} + +export type AddressUncheckedCreateWithoutHouseholdInput = { + id?: string + line1: string + line2?: string | null + city: string + state: string + postalCode: string + country?: string + vendor?: Prisma.VendorUncheckedCreateNestedOneWithoutAddressInput +} + +export type AddressCreateOrConnectWithoutHouseholdInput = { + where: Prisma.AddressWhereUniqueInput + create: Prisma.XOR +} + +export type AddressUpsertWithoutHouseholdInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.AddressWhereInput +} + +export type AddressUpdateToOneWithWhereWithoutHouseholdInput = { + where?: Prisma.AddressWhereInput + data: Prisma.XOR +} + +export type AddressUpdateWithoutHouseholdInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + line1?: Prisma.StringFieldUpdateOperationsInput | string + line2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + city?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.StringFieldUpdateOperationsInput | string + postalCode?: Prisma.StringFieldUpdateOperationsInput | string + country?: Prisma.StringFieldUpdateOperationsInput | string + vendor?: Prisma.VendorUpdateOneWithoutAddressNestedInput +} + +export type AddressUncheckedUpdateWithoutHouseholdInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + line1?: Prisma.StringFieldUpdateOperationsInput | string + line2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + city?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.StringFieldUpdateOperationsInput | string + postalCode?: Prisma.StringFieldUpdateOperationsInput | string + country?: Prisma.StringFieldUpdateOperationsInput | string + vendor?: Prisma.VendorUncheckedUpdateOneWithoutAddressNestedInput +} + +export type AddressCreateWithoutVendorInput = { + id?: string + line1: string + line2?: string | null + city: string + state: string + postalCode: string + country?: string + household?: Prisma.HouseholdCreateNestedOneWithoutAddressInput +} + +export type AddressUncheckedCreateWithoutVendorInput = { + id?: string + line1: string + line2?: string | null + city: string + state: string + postalCode: string + country?: string + household?: Prisma.HouseholdUncheckedCreateNestedOneWithoutAddressInput +} + +export type AddressCreateOrConnectWithoutVendorInput = { + where: Prisma.AddressWhereUniqueInput + create: Prisma.XOR +} + +export type AddressUpsertWithoutVendorInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.AddressWhereInput +} + +export type AddressUpdateToOneWithWhereWithoutVendorInput = { + where?: Prisma.AddressWhereInput + data: Prisma.XOR +} + +export type AddressUpdateWithoutVendorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + line1?: Prisma.StringFieldUpdateOperationsInput | string + line2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + city?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.StringFieldUpdateOperationsInput | string + postalCode?: Prisma.StringFieldUpdateOperationsInput | string + country?: Prisma.StringFieldUpdateOperationsInput | string + household?: Prisma.HouseholdUpdateOneWithoutAddressNestedInput +} + +export type AddressUncheckedUpdateWithoutVendorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + line1?: Prisma.StringFieldUpdateOperationsInput | string + line2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + city?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.StringFieldUpdateOperationsInput | string + postalCode?: Prisma.StringFieldUpdateOperationsInput | string + country?: Prisma.StringFieldUpdateOperationsInput | string + household?: Prisma.HouseholdUncheckedUpdateOneWithoutAddressNestedInput +} + + + +export type AddressSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + line1?: boolean + line2?: boolean + city?: boolean + state?: boolean + postalCode?: boolean + country?: boolean + household?: boolean | Prisma.Address$householdArgs + vendor?: boolean | Prisma.Address$vendorArgs +}, ExtArgs["result"]["address"]> + +export type AddressSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + line1?: boolean + line2?: boolean + city?: boolean + state?: boolean + postalCode?: boolean + country?: boolean +}, ExtArgs["result"]["address"]> + +export type AddressSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + line1?: boolean + line2?: boolean + city?: boolean + state?: boolean + postalCode?: boolean + country?: boolean +}, ExtArgs["result"]["address"]> + +export type AddressSelectScalar = { + id?: boolean + line1?: boolean + line2?: boolean + city?: boolean + state?: boolean + postalCode?: boolean + country?: boolean +} + +export type AddressOmit = runtime.Types.Extensions.GetOmit<"id" | "line1" | "line2" | "city" | "state" | "postalCode" | "country", ExtArgs["result"]["address"]> +export type AddressInclude = { + household?: boolean | Prisma.Address$householdArgs + vendor?: boolean | Prisma.Address$vendorArgs +} +export type AddressIncludeCreateManyAndReturn = {} +export type AddressIncludeUpdateManyAndReturn = {} + +export type $AddressPayload = { + name: "Address" + objects: { + household: Prisma.$HouseholdPayload | null + vendor: Prisma.$VendorPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + line1: string + line2: string | null + city: string + state: string + postalCode: string + country: string + }, ExtArgs["result"]["address"]> + composites: {} +} + +export type AddressGetPayload = runtime.Types.Result.GetResult + +export type AddressCountArgs = + Omit & { + select?: AddressCountAggregateInputType | true + } + +export interface AddressDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Address'], meta: { name: 'Address' } } + /** + * Find zero or one Address that matches the filter. + * @param {AddressFindUniqueArgs} args - Arguments to find a Address + * @example + * // Get one Address + * const address = await prisma.address.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AddressClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Address that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AddressFindUniqueOrThrowArgs} args - Arguments to find a Address + * @example + * // Get one Address + * const address = await prisma.address.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AddressClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Address 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 {AddressFindFirstArgs} args - Arguments to find a Address + * @example + * // Get one Address + * const address = await prisma.address.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AddressClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Address 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 {AddressFindFirstOrThrowArgs} args - Arguments to find a Address + * @example + * // Get one Address + * const address = await prisma.address.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AddressClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Addresses 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 {AddressFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Addresses + * const addresses = await prisma.address.findMany() + * + * // Get first 10 Addresses + * const addresses = await prisma.address.findMany({ take: 10 }) + * + * // Only select the `id` + * const addressWithIdOnly = await prisma.address.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Address. + * @param {AddressCreateArgs} args - Arguments to create a Address. + * @example + * // Create one Address + * const Address = await prisma.address.create({ + * data: { + * // ... data to create a Address + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__AddressClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Addresses. + * @param {AddressCreateManyArgs} args - Arguments to create many Addresses. + * @example + * // Create many Addresses + * const address = await prisma.address.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Addresses and returns the data saved in the database. + * @param {AddressCreateManyAndReturnArgs} args - Arguments to create many Addresses. + * @example + * // Create many Addresses + * const address = await prisma.address.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Addresses and only return the `id` + * const addressWithIdOnly = await prisma.address.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 Address. + * @param {AddressDeleteArgs} args - Arguments to delete one Address. + * @example + * // Delete one Address + * const Address = await prisma.address.delete({ + * where: { + * // ... filter to delete one Address + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__AddressClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Address. + * @param {AddressUpdateArgs} args - Arguments to update one Address. + * @example + * // Update one Address + * const address = await prisma.address.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__AddressClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Addresses. + * @param {AddressDeleteManyArgs} args - Arguments to filter Addresses to delete. + * @example + * // Delete a few Addresses + * const { count } = await prisma.address.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Addresses. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AddressUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Addresses + * const address = await prisma.address.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Addresses and returns the data updated in the database. + * @param {AddressUpdateManyAndReturnArgs} args - Arguments to update many Addresses. + * @example + * // Update many Addresses + * const address = await prisma.address.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Addresses and only return the `id` + * const addressWithIdOnly = await prisma.address.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 Address. + * @param {AddressUpsertArgs} args - Arguments to update or create a Address. + * @example + * // Update or create a Address + * const address = await prisma.address.upsert({ + * create: { + * // ... data to create a Address + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Address we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AddressClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Addresses. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AddressCountArgs} args - Arguments to filter Addresses to count. + * @example + * // Count the number of Addresses + * const count = await prisma.address.count({ + * where: { + * // ... the filter for the Addresses 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 Address. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AddressAggregateArgs} 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 Address. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AddressGroupByArgs} 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 AddressGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AddressGroupByArgs['orderBy'] } + : { orderBy?: AddressGroupByArgs['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 ? GetAddressGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Address model + */ +readonly fields: AddressFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Address. + * 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__AddressClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + household = {}>(args?: Prisma.Subset>): Prisma.Prisma__HouseholdClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + vendor = {}>(args?: Prisma.Subset>): Prisma.Prisma__VendorClient, 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 Address model + */ +export interface AddressFieldRefs { + readonly id: Prisma.FieldRef<"Address", 'String'> + readonly line1: Prisma.FieldRef<"Address", 'String'> + readonly line2: Prisma.FieldRef<"Address", 'String'> + readonly city: Prisma.FieldRef<"Address", 'String'> + readonly state: Prisma.FieldRef<"Address", 'String'> + readonly postalCode: Prisma.FieldRef<"Address", 'String'> + readonly country: Prisma.FieldRef<"Address", 'String'> +} + + +// Custom InputTypes +/** + * Address findUnique + */ +export type AddressFindUniqueArgs = { + /** + * Select specific fields to fetch from the Address + */ + select?: Prisma.AddressSelect | null + /** + * Omit specific fields from the Address + */ + omit?: Prisma.AddressOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AddressInclude | null + /** + * Filter, which Address to fetch. + */ + where: Prisma.AddressWhereUniqueInput +} + +/** + * Address findUniqueOrThrow + */ +export type AddressFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Address + */ + select?: Prisma.AddressSelect | null + /** + * Omit specific fields from the Address + */ + omit?: Prisma.AddressOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AddressInclude | null + /** + * Filter, which Address to fetch. + */ + where: Prisma.AddressWhereUniqueInput +} + +/** + * Address findFirst + */ +export type AddressFindFirstArgs = { + /** + * Select specific fields to fetch from the Address + */ + select?: Prisma.AddressSelect | null + /** + * Omit specific fields from the Address + */ + omit?: Prisma.AddressOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AddressInclude | null + /** + * Filter, which Address to fetch. + */ + where?: Prisma.AddressWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Addresses to fetch. + */ + orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Addresses. + */ + cursor?: Prisma.AddressWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Addresses 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` Addresses. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Addresses. + */ + distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[] +} + +/** + * Address findFirstOrThrow + */ +export type AddressFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Address + */ + select?: Prisma.AddressSelect | null + /** + * Omit specific fields from the Address + */ + omit?: Prisma.AddressOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AddressInclude | null + /** + * Filter, which Address to fetch. + */ + where?: Prisma.AddressWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Addresses to fetch. + */ + orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Addresses. + */ + cursor?: Prisma.AddressWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Addresses 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` Addresses. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Addresses. + */ + distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[] +} + +/** + * Address findMany + */ +export type AddressFindManyArgs = { + /** + * Select specific fields to fetch from the Address + */ + select?: Prisma.AddressSelect | null + /** + * Omit specific fields from the Address + */ + omit?: Prisma.AddressOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AddressInclude | null + /** + * Filter, which Addresses to fetch. + */ + where?: Prisma.AddressWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Addresses to fetch. + */ + orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Addresses. + */ + cursor?: Prisma.AddressWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Addresses 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` Addresses. + */ + skip?: number + distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[] +} + +/** + * Address create + */ +export type AddressCreateArgs = { + /** + * Select specific fields to fetch from the Address + */ + select?: Prisma.AddressSelect | null + /** + * Omit specific fields from the Address + */ + omit?: Prisma.AddressOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AddressInclude | null + /** + * The data needed to create a Address. + */ + data: Prisma.XOR +} + +/** + * Address createMany + */ +export type AddressCreateManyArgs = { + /** + * The data used to create many Addresses. + */ + data: Prisma.AddressCreateManyInput | Prisma.AddressCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Address createManyAndReturn + */ +export type AddressCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Address + */ + select?: Prisma.AddressSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Address + */ + omit?: Prisma.AddressOmit | null + /** + * The data used to create many Addresses. + */ + data: Prisma.AddressCreateManyInput | Prisma.AddressCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Address update + */ +export type AddressUpdateArgs = { + /** + * Select specific fields to fetch from the Address + */ + select?: Prisma.AddressSelect | null + /** + * Omit specific fields from the Address + */ + omit?: Prisma.AddressOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AddressInclude | null + /** + * The data needed to update a Address. + */ + data: Prisma.XOR + /** + * Choose, which Address to update. + */ + where: Prisma.AddressWhereUniqueInput +} + +/** + * Address updateMany + */ +export type AddressUpdateManyArgs = { + /** + * The data used to update Addresses. + */ + data: Prisma.XOR + /** + * Filter which Addresses to update + */ + where?: Prisma.AddressWhereInput + /** + * Limit how many Addresses to update. + */ + limit?: number +} + +/** + * Address updateManyAndReturn + */ +export type AddressUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Address + */ + select?: Prisma.AddressSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Address + */ + omit?: Prisma.AddressOmit | null + /** + * The data used to update Addresses. + */ + data: Prisma.XOR + /** + * Filter which Addresses to update + */ + where?: Prisma.AddressWhereInput + /** + * Limit how many Addresses to update. + */ + limit?: number +} + +/** + * Address upsert + */ +export type AddressUpsertArgs = { + /** + * Select specific fields to fetch from the Address + */ + select?: Prisma.AddressSelect | null + /** + * Omit specific fields from the Address + */ + omit?: Prisma.AddressOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AddressInclude | null + /** + * The filter to search for the Address to update in case it exists. + */ + where: Prisma.AddressWhereUniqueInput + /** + * In case the Address found by the `where` argument doesn't exist, create a new Address with this data. + */ + create: Prisma.XOR + /** + * In case the Address was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Address delete + */ +export type AddressDeleteArgs = { + /** + * Select specific fields to fetch from the Address + */ + select?: Prisma.AddressSelect | null + /** + * Omit specific fields from the Address + */ + omit?: Prisma.AddressOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AddressInclude | null + /** + * Filter which Address to delete. + */ + where: Prisma.AddressWhereUniqueInput +} + +/** + * Address deleteMany + */ +export type AddressDeleteManyArgs = { + /** + * Filter which Addresses to delete + */ + where?: Prisma.AddressWhereInput + /** + * Limit how many Addresses to delete. + */ + limit?: number +} + +/** + * Address.household + */ +export type Address$householdArgs = { + /** + * Select specific fields to fetch from the Household + */ + select?: Prisma.HouseholdSelect | null + /** + * Omit specific fields from the Household + */ + omit?: Prisma.HouseholdOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.HouseholdInclude | null + where?: Prisma.HouseholdWhereInput +} + +/** + * Address.vendor + */ +export type Address$vendorArgs = { + /** + * Select specific fields to fetch from the Vendor + */ + select?: Prisma.VendorSelect | null + /** + * Omit specific fields from the Vendor + */ + omit?: Prisma.VendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorInclude | null + where?: Prisma.VendorWhereInput +} + +/** + * Address without action + */ +export type AddressDefaultArgs = { + /** + * Select specific fields to fetch from the Address + */ + select?: Prisma.AddressSelect | null + /** + * Omit specific fields from the Address + */ + omit?: Prisma.AddressOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AddressInclude | null +} diff --git a/src/lib/generated/prisma/models/AllowedOrigin.ts b/src/lib/generated/prisma/models/AllowedOrigin.ts new file mode 100644 index 0000000..751746c --- /dev/null +++ b/src/lib/generated/prisma/models/AllowedOrigin.ts @@ -0,0 +1,1359 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `AllowedOrigin` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/library" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model AllowedOrigin + * + */ +export type AllowedOriginModel = runtime.Types.Result.DefaultSelection + +export type AggregateAllowedOrigin = { + _count: AllowedOriginCountAggregateOutputType | null + _min: AllowedOriginMinAggregateOutputType | null + _max: AllowedOriginMaxAggregateOutputType | null +} + +export type AllowedOriginMinAggregateOutputType = { + id: string | null + origin: string | null + isDefault: boolean | null + createdAt: Date | null + addedById: string | null +} + +export type AllowedOriginMaxAggregateOutputType = { + id: string | null + origin: string | null + isDefault: boolean | null + createdAt: Date | null + addedById: string | null +} + +export type AllowedOriginCountAggregateOutputType = { + id: number + origin: number + isDefault: number + createdAt: number + addedById: number + _all: number +} + + +export type AllowedOriginMinAggregateInputType = { + id?: true + origin?: true + isDefault?: true + createdAt?: true + addedById?: true +} + +export type AllowedOriginMaxAggregateInputType = { + id?: true + origin?: true + isDefault?: true + createdAt?: true + addedById?: true +} + +export type AllowedOriginCountAggregateInputType = { + id?: true + origin?: true + isDefault?: true + createdAt?: true + addedById?: true + _all?: true +} + +export type AllowedOriginAggregateArgs = { + /** + * Filter which AllowedOrigin to aggregate. + */ + where?: Prisma.AllowedOriginWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AllowedOrigins to fetch. + */ + orderBy?: Prisma.AllowedOriginOrderByWithRelationInput | Prisma.AllowedOriginOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AllowedOriginWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AllowedOrigins 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` AllowedOrigins. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned AllowedOrigins + **/ + _count?: true | AllowedOriginCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AllowedOriginMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AllowedOriginMaxAggregateInputType +} + +export type GetAllowedOriginAggregateType = { + [P in keyof T & keyof AggregateAllowedOrigin]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type AllowedOriginGroupByArgs = { + where?: Prisma.AllowedOriginWhereInput + orderBy?: Prisma.AllowedOriginOrderByWithAggregationInput | Prisma.AllowedOriginOrderByWithAggregationInput[] + by: Prisma.AllowedOriginScalarFieldEnum[] | Prisma.AllowedOriginScalarFieldEnum + having?: Prisma.AllowedOriginScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AllowedOriginCountAggregateInputType | true + _min?: AllowedOriginMinAggregateInputType + _max?: AllowedOriginMaxAggregateInputType +} + +export type AllowedOriginGroupByOutputType = { + id: string + origin: string + isDefault: boolean + createdAt: Date + addedById: string | null + _count: AllowedOriginCountAggregateOutputType | null + _min: AllowedOriginMinAggregateOutputType | null + _max: AllowedOriginMaxAggregateOutputType | null +} + +type GetAllowedOriginGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof AllowedOriginGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type AllowedOriginWhereInput = { + AND?: Prisma.AllowedOriginWhereInput | Prisma.AllowedOriginWhereInput[] + OR?: Prisma.AllowedOriginWhereInput[] + NOT?: Prisma.AllowedOriginWhereInput | Prisma.AllowedOriginWhereInput[] + id?: Prisma.StringFilter<"AllowedOrigin"> | string + origin?: Prisma.StringFilter<"AllowedOrigin"> | string + isDefault?: Prisma.BoolFilter<"AllowedOrigin"> | boolean + createdAt?: Prisma.DateTimeFilter<"AllowedOrigin"> | Date | string + addedById?: Prisma.StringNullableFilter<"AllowedOrigin"> | string | null + addedBy?: Prisma.XOR | null +} + +export type AllowedOriginOrderByWithRelationInput = { + id?: Prisma.SortOrder + origin?: Prisma.SortOrder + isDefault?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + addedById?: Prisma.SortOrderInput | Prisma.SortOrder + addedBy?: Prisma.UserOrderByWithRelationInput +} + +export type AllowedOriginWhereUniqueInput = Prisma.AtLeast<{ + id?: string + origin?: string + AND?: Prisma.AllowedOriginWhereInput | Prisma.AllowedOriginWhereInput[] + OR?: Prisma.AllowedOriginWhereInput[] + NOT?: Prisma.AllowedOriginWhereInput | Prisma.AllowedOriginWhereInput[] + isDefault?: Prisma.BoolFilter<"AllowedOrigin"> | boolean + createdAt?: Prisma.DateTimeFilter<"AllowedOrigin"> | Date | string + addedById?: Prisma.StringNullableFilter<"AllowedOrigin"> | string | null + addedBy?: Prisma.XOR | null +}, "id" | "origin"> + +export type AllowedOriginOrderByWithAggregationInput = { + id?: Prisma.SortOrder + origin?: Prisma.SortOrder + isDefault?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + addedById?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.AllowedOriginCountOrderByAggregateInput + _max?: Prisma.AllowedOriginMaxOrderByAggregateInput + _min?: Prisma.AllowedOriginMinOrderByAggregateInput +} + +export type AllowedOriginScalarWhereWithAggregatesInput = { + AND?: Prisma.AllowedOriginScalarWhereWithAggregatesInput | Prisma.AllowedOriginScalarWhereWithAggregatesInput[] + OR?: Prisma.AllowedOriginScalarWhereWithAggregatesInput[] + NOT?: Prisma.AllowedOriginScalarWhereWithAggregatesInput | Prisma.AllowedOriginScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"AllowedOrigin"> | string + origin?: Prisma.StringWithAggregatesFilter<"AllowedOrigin"> | string + isDefault?: Prisma.BoolWithAggregatesFilter<"AllowedOrigin"> | boolean + createdAt?: Prisma.DateTimeWithAggregatesFilter<"AllowedOrigin"> | Date | string + addedById?: Prisma.StringNullableWithAggregatesFilter<"AllowedOrigin"> | string | null +} + +export type AllowedOriginCreateInput = { + id?: string + origin: string + isDefault?: boolean + createdAt?: Date | string + addedBy?: Prisma.UserCreateNestedOneWithoutAllowedOriginsInput +} + +export type AllowedOriginUncheckedCreateInput = { + id?: string + origin: string + isDefault?: boolean + createdAt?: Date | string + addedById?: string | null +} + +export type AllowedOriginUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + origin?: Prisma.StringFieldUpdateOperationsInput | string + isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + addedBy?: Prisma.UserUpdateOneWithoutAllowedOriginsNestedInput +} + +export type AllowedOriginUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + origin?: Prisma.StringFieldUpdateOperationsInput | string + isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + addedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type AllowedOriginCreateManyInput = { + id?: string + origin: string + isDefault?: boolean + createdAt?: Date | string + addedById?: string | null +} + +export type AllowedOriginUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + origin?: Prisma.StringFieldUpdateOperationsInput | string + isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AllowedOriginUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + origin?: Prisma.StringFieldUpdateOperationsInput | string + isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + addedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type AllowedOriginListRelationFilter = { + every?: Prisma.AllowedOriginWhereInput + some?: Prisma.AllowedOriginWhereInput + none?: Prisma.AllowedOriginWhereInput +} + +export type AllowedOriginOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type AllowedOriginCountOrderByAggregateInput = { + id?: Prisma.SortOrder + origin?: Prisma.SortOrder + isDefault?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + addedById?: Prisma.SortOrder +} + +export type AllowedOriginMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + origin?: Prisma.SortOrder + isDefault?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + addedById?: Prisma.SortOrder +} + +export type AllowedOriginMinOrderByAggregateInput = { + id?: Prisma.SortOrder + origin?: Prisma.SortOrder + isDefault?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + addedById?: Prisma.SortOrder +} + +export type AllowedOriginCreateNestedManyWithoutAddedByInput = { + create?: Prisma.XOR | Prisma.AllowedOriginCreateWithoutAddedByInput[] | Prisma.AllowedOriginUncheckedCreateWithoutAddedByInput[] + connectOrCreate?: Prisma.AllowedOriginCreateOrConnectWithoutAddedByInput | Prisma.AllowedOriginCreateOrConnectWithoutAddedByInput[] + createMany?: Prisma.AllowedOriginCreateManyAddedByInputEnvelope + connect?: Prisma.AllowedOriginWhereUniqueInput | Prisma.AllowedOriginWhereUniqueInput[] +} + +export type AllowedOriginUncheckedCreateNestedManyWithoutAddedByInput = { + create?: Prisma.XOR | Prisma.AllowedOriginCreateWithoutAddedByInput[] | Prisma.AllowedOriginUncheckedCreateWithoutAddedByInput[] + connectOrCreate?: Prisma.AllowedOriginCreateOrConnectWithoutAddedByInput | Prisma.AllowedOriginCreateOrConnectWithoutAddedByInput[] + createMany?: Prisma.AllowedOriginCreateManyAddedByInputEnvelope + connect?: Prisma.AllowedOriginWhereUniqueInput | Prisma.AllowedOriginWhereUniqueInput[] +} + +export type AllowedOriginUpdateManyWithoutAddedByNestedInput = { + create?: Prisma.XOR | Prisma.AllowedOriginCreateWithoutAddedByInput[] | Prisma.AllowedOriginUncheckedCreateWithoutAddedByInput[] + connectOrCreate?: Prisma.AllowedOriginCreateOrConnectWithoutAddedByInput | Prisma.AllowedOriginCreateOrConnectWithoutAddedByInput[] + upsert?: Prisma.AllowedOriginUpsertWithWhereUniqueWithoutAddedByInput | Prisma.AllowedOriginUpsertWithWhereUniqueWithoutAddedByInput[] + createMany?: Prisma.AllowedOriginCreateManyAddedByInputEnvelope + set?: Prisma.AllowedOriginWhereUniqueInput | Prisma.AllowedOriginWhereUniqueInput[] + disconnect?: Prisma.AllowedOriginWhereUniqueInput | Prisma.AllowedOriginWhereUniqueInput[] + delete?: Prisma.AllowedOriginWhereUniqueInput | Prisma.AllowedOriginWhereUniqueInput[] + connect?: Prisma.AllowedOriginWhereUniqueInput | Prisma.AllowedOriginWhereUniqueInput[] + update?: Prisma.AllowedOriginUpdateWithWhereUniqueWithoutAddedByInput | Prisma.AllowedOriginUpdateWithWhereUniqueWithoutAddedByInput[] + updateMany?: Prisma.AllowedOriginUpdateManyWithWhereWithoutAddedByInput | Prisma.AllowedOriginUpdateManyWithWhereWithoutAddedByInput[] + deleteMany?: Prisma.AllowedOriginScalarWhereInput | Prisma.AllowedOriginScalarWhereInput[] +} + +export type AllowedOriginUncheckedUpdateManyWithoutAddedByNestedInput = { + create?: Prisma.XOR | Prisma.AllowedOriginCreateWithoutAddedByInput[] | Prisma.AllowedOriginUncheckedCreateWithoutAddedByInput[] + connectOrCreate?: Prisma.AllowedOriginCreateOrConnectWithoutAddedByInput | Prisma.AllowedOriginCreateOrConnectWithoutAddedByInput[] + upsert?: Prisma.AllowedOriginUpsertWithWhereUniqueWithoutAddedByInput | Prisma.AllowedOriginUpsertWithWhereUniqueWithoutAddedByInput[] + createMany?: Prisma.AllowedOriginCreateManyAddedByInputEnvelope + set?: Prisma.AllowedOriginWhereUniqueInput | Prisma.AllowedOriginWhereUniqueInput[] + disconnect?: Prisma.AllowedOriginWhereUniqueInput | Prisma.AllowedOriginWhereUniqueInput[] + delete?: Prisma.AllowedOriginWhereUniqueInput | Prisma.AllowedOriginWhereUniqueInput[] + connect?: Prisma.AllowedOriginWhereUniqueInput | Prisma.AllowedOriginWhereUniqueInput[] + update?: Prisma.AllowedOriginUpdateWithWhereUniqueWithoutAddedByInput | Prisma.AllowedOriginUpdateWithWhereUniqueWithoutAddedByInput[] + updateMany?: Prisma.AllowedOriginUpdateManyWithWhereWithoutAddedByInput | Prisma.AllowedOriginUpdateManyWithWhereWithoutAddedByInput[] + deleteMany?: Prisma.AllowedOriginScalarWhereInput | Prisma.AllowedOriginScalarWhereInput[] +} + +export type AllowedOriginCreateWithoutAddedByInput = { + id?: string + origin: string + isDefault?: boolean + createdAt?: Date | string +} + +export type AllowedOriginUncheckedCreateWithoutAddedByInput = { + id?: string + origin: string + isDefault?: boolean + createdAt?: Date | string +} + +export type AllowedOriginCreateOrConnectWithoutAddedByInput = { + where: Prisma.AllowedOriginWhereUniqueInput + create: Prisma.XOR +} + +export type AllowedOriginCreateManyAddedByInputEnvelope = { + data: Prisma.AllowedOriginCreateManyAddedByInput | Prisma.AllowedOriginCreateManyAddedByInput[] + skipDuplicates?: boolean +} + +export type AllowedOriginUpsertWithWhereUniqueWithoutAddedByInput = { + where: Prisma.AllowedOriginWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type AllowedOriginUpdateWithWhereUniqueWithoutAddedByInput = { + where: Prisma.AllowedOriginWhereUniqueInput + data: Prisma.XOR +} + +export type AllowedOriginUpdateManyWithWhereWithoutAddedByInput = { + where: Prisma.AllowedOriginScalarWhereInput + data: Prisma.XOR +} + +export type AllowedOriginScalarWhereInput = { + AND?: Prisma.AllowedOriginScalarWhereInput | Prisma.AllowedOriginScalarWhereInput[] + OR?: Prisma.AllowedOriginScalarWhereInput[] + NOT?: Prisma.AllowedOriginScalarWhereInput | Prisma.AllowedOriginScalarWhereInput[] + id?: Prisma.StringFilter<"AllowedOrigin"> | string + origin?: Prisma.StringFilter<"AllowedOrigin"> | string + isDefault?: Prisma.BoolFilter<"AllowedOrigin"> | boolean + createdAt?: Prisma.DateTimeFilter<"AllowedOrigin"> | Date | string + addedById?: Prisma.StringNullableFilter<"AllowedOrigin"> | string | null +} + +export type AllowedOriginCreateManyAddedByInput = { + id?: string + origin: string + isDefault?: boolean + createdAt?: Date | string +} + +export type AllowedOriginUpdateWithoutAddedByInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + origin?: Prisma.StringFieldUpdateOperationsInput | string + isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AllowedOriginUncheckedUpdateWithoutAddedByInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + origin?: Prisma.StringFieldUpdateOperationsInput | string + isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AllowedOriginUncheckedUpdateManyWithoutAddedByInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + origin?: Prisma.StringFieldUpdateOperationsInput | string + isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type AllowedOriginSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + origin?: boolean + isDefault?: boolean + createdAt?: boolean + addedById?: boolean + addedBy?: boolean | Prisma.AllowedOrigin$addedByArgs +}, ExtArgs["result"]["allowedOrigin"]> + +export type AllowedOriginSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + origin?: boolean + isDefault?: boolean + createdAt?: boolean + addedById?: boolean + addedBy?: boolean | Prisma.AllowedOrigin$addedByArgs +}, ExtArgs["result"]["allowedOrigin"]> + +export type AllowedOriginSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + origin?: boolean + isDefault?: boolean + createdAt?: boolean + addedById?: boolean + addedBy?: boolean | Prisma.AllowedOrigin$addedByArgs +}, ExtArgs["result"]["allowedOrigin"]> + +export type AllowedOriginSelectScalar = { + id?: boolean + origin?: boolean + isDefault?: boolean + createdAt?: boolean + addedById?: boolean +} + +export type AllowedOriginOmit = runtime.Types.Extensions.GetOmit<"id" | "origin" | "isDefault" | "createdAt" | "addedById", ExtArgs["result"]["allowedOrigin"]> +export type AllowedOriginInclude = { + addedBy?: boolean | Prisma.AllowedOrigin$addedByArgs +} +export type AllowedOriginIncludeCreateManyAndReturn = { + addedBy?: boolean | Prisma.AllowedOrigin$addedByArgs +} +export type AllowedOriginIncludeUpdateManyAndReturn = { + addedBy?: boolean | Prisma.AllowedOrigin$addedByArgs +} + +export type $AllowedOriginPayload = { + name: "AllowedOrigin" + objects: { + addedBy: Prisma.$UserPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + origin: string + isDefault: boolean + createdAt: Date + addedById: string | null + }, ExtArgs["result"]["allowedOrigin"]> + composites: {} +} + +export type AllowedOriginGetPayload = runtime.Types.Result.GetResult + +export type AllowedOriginCountArgs = + Omit & { + select?: AllowedOriginCountAggregateInputType | true + } + +export interface AllowedOriginDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['AllowedOrigin'], meta: { name: 'AllowedOrigin' } } + /** + * Find zero or one AllowedOrigin that matches the filter. + * @param {AllowedOriginFindUniqueArgs} args - Arguments to find a AllowedOrigin + * @example + * // Get one AllowedOrigin + * const allowedOrigin = await prisma.allowedOrigin.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AllowedOriginClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one AllowedOrigin that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AllowedOriginFindUniqueOrThrowArgs} args - Arguments to find a AllowedOrigin + * @example + * // Get one AllowedOrigin + * const allowedOrigin = await prisma.allowedOrigin.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AllowedOriginClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first AllowedOrigin 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 {AllowedOriginFindFirstArgs} args - Arguments to find a AllowedOrigin + * @example + * // Get one AllowedOrigin + * const allowedOrigin = await prisma.allowedOrigin.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AllowedOriginClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first AllowedOrigin 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 {AllowedOriginFindFirstOrThrowArgs} args - Arguments to find a AllowedOrigin + * @example + * // Get one AllowedOrigin + * const allowedOrigin = await prisma.allowedOrigin.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AllowedOriginClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more AllowedOrigins 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 {AllowedOriginFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all AllowedOrigins + * const allowedOrigins = await prisma.allowedOrigin.findMany() + * + * // Get first 10 AllowedOrigins + * const allowedOrigins = await prisma.allowedOrigin.findMany({ take: 10 }) + * + * // Only select the `id` + * const allowedOriginWithIdOnly = await prisma.allowedOrigin.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a AllowedOrigin. + * @param {AllowedOriginCreateArgs} args - Arguments to create a AllowedOrigin. + * @example + * // Create one AllowedOrigin + * const AllowedOrigin = await prisma.allowedOrigin.create({ + * data: { + * // ... data to create a AllowedOrigin + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__AllowedOriginClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many AllowedOrigins. + * @param {AllowedOriginCreateManyArgs} args - Arguments to create many AllowedOrigins. + * @example + * // Create many AllowedOrigins + * const allowedOrigin = await prisma.allowedOrigin.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many AllowedOrigins and returns the data saved in the database. + * @param {AllowedOriginCreateManyAndReturnArgs} args - Arguments to create many AllowedOrigins. + * @example + * // Create many AllowedOrigins + * const allowedOrigin = await prisma.allowedOrigin.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many AllowedOrigins and only return the `id` + * const allowedOriginWithIdOnly = await prisma.allowedOrigin.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 AllowedOrigin. + * @param {AllowedOriginDeleteArgs} args - Arguments to delete one AllowedOrigin. + * @example + * // Delete one AllowedOrigin + * const AllowedOrigin = await prisma.allowedOrigin.delete({ + * where: { + * // ... filter to delete one AllowedOrigin + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__AllowedOriginClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one AllowedOrigin. + * @param {AllowedOriginUpdateArgs} args - Arguments to update one AllowedOrigin. + * @example + * // Update one AllowedOrigin + * const allowedOrigin = await prisma.allowedOrigin.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__AllowedOriginClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more AllowedOrigins. + * @param {AllowedOriginDeleteManyArgs} args - Arguments to filter AllowedOrigins to delete. + * @example + * // Delete a few AllowedOrigins + * const { count } = await prisma.allowedOrigin.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more AllowedOrigins. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AllowedOriginUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many AllowedOrigins + * const allowedOrigin = await prisma.allowedOrigin.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more AllowedOrigins and returns the data updated in the database. + * @param {AllowedOriginUpdateManyAndReturnArgs} args - Arguments to update many AllowedOrigins. + * @example + * // Update many AllowedOrigins + * const allowedOrigin = await prisma.allowedOrigin.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more AllowedOrigins and only return the `id` + * const allowedOriginWithIdOnly = await prisma.allowedOrigin.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 AllowedOrigin. + * @param {AllowedOriginUpsertArgs} args - Arguments to update or create a AllowedOrigin. + * @example + * // Update or create a AllowedOrigin + * const allowedOrigin = await prisma.allowedOrigin.upsert({ + * create: { + * // ... data to create a AllowedOrigin + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the AllowedOrigin we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AllowedOriginClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of AllowedOrigins. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AllowedOriginCountArgs} args - Arguments to filter AllowedOrigins to count. + * @example + * // Count the number of AllowedOrigins + * const count = await prisma.allowedOrigin.count({ + * where: { + * // ... the filter for the AllowedOrigins 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 AllowedOrigin. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AllowedOriginAggregateArgs} 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 AllowedOrigin. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AllowedOriginGroupByArgs} 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 AllowedOriginGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AllowedOriginGroupByArgs['orderBy'] } + : { orderBy?: AllowedOriginGroupByArgs['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 ? GetAllowedOriginGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the AllowedOrigin model + */ +readonly fields: AllowedOriginFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for AllowedOrigin. + * 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__AllowedOriginClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + addedBy = {}>(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 AllowedOrigin model + */ +export interface AllowedOriginFieldRefs { + readonly id: Prisma.FieldRef<"AllowedOrigin", 'String'> + readonly origin: Prisma.FieldRef<"AllowedOrigin", 'String'> + readonly isDefault: Prisma.FieldRef<"AllowedOrigin", 'Boolean'> + readonly createdAt: Prisma.FieldRef<"AllowedOrigin", 'DateTime'> + readonly addedById: Prisma.FieldRef<"AllowedOrigin", 'String'> +} + + +// Custom InputTypes +/** + * AllowedOrigin findUnique + */ +export type AllowedOriginFindUniqueArgs = { + /** + * Select specific fields to fetch from the AllowedOrigin + */ + select?: Prisma.AllowedOriginSelect | null + /** + * Omit specific fields from the AllowedOrigin + */ + omit?: Prisma.AllowedOriginOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AllowedOriginInclude | null + /** + * Filter, which AllowedOrigin to fetch. + */ + where: Prisma.AllowedOriginWhereUniqueInput +} + +/** + * AllowedOrigin findUniqueOrThrow + */ +export type AllowedOriginFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the AllowedOrigin + */ + select?: Prisma.AllowedOriginSelect | null + /** + * Omit specific fields from the AllowedOrigin + */ + omit?: Prisma.AllowedOriginOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AllowedOriginInclude | null + /** + * Filter, which AllowedOrigin to fetch. + */ + where: Prisma.AllowedOriginWhereUniqueInput +} + +/** + * AllowedOrigin findFirst + */ +export type AllowedOriginFindFirstArgs = { + /** + * Select specific fields to fetch from the AllowedOrigin + */ + select?: Prisma.AllowedOriginSelect | null + /** + * Omit specific fields from the AllowedOrigin + */ + omit?: Prisma.AllowedOriginOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AllowedOriginInclude | null + /** + * Filter, which AllowedOrigin to fetch. + */ + where?: Prisma.AllowedOriginWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AllowedOrigins to fetch. + */ + orderBy?: Prisma.AllowedOriginOrderByWithRelationInput | Prisma.AllowedOriginOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AllowedOrigins. + */ + cursor?: Prisma.AllowedOriginWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AllowedOrigins 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` AllowedOrigins. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AllowedOrigins. + */ + distinct?: Prisma.AllowedOriginScalarFieldEnum | Prisma.AllowedOriginScalarFieldEnum[] +} + +/** + * AllowedOrigin findFirstOrThrow + */ +export type AllowedOriginFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the AllowedOrigin + */ + select?: Prisma.AllowedOriginSelect | null + /** + * Omit specific fields from the AllowedOrigin + */ + omit?: Prisma.AllowedOriginOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AllowedOriginInclude | null + /** + * Filter, which AllowedOrigin to fetch. + */ + where?: Prisma.AllowedOriginWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AllowedOrigins to fetch. + */ + orderBy?: Prisma.AllowedOriginOrderByWithRelationInput | Prisma.AllowedOriginOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AllowedOrigins. + */ + cursor?: Prisma.AllowedOriginWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AllowedOrigins 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` AllowedOrigins. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AllowedOrigins. + */ + distinct?: Prisma.AllowedOriginScalarFieldEnum | Prisma.AllowedOriginScalarFieldEnum[] +} + +/** + * AllowedOrigin findMany + */ +export type AllowedOriginFindManyArgs = { + /** + * Select specific fields to fetch from the AllowedOrigin + */ + select?: Prisma.AllowedOriginSelect | null + /** + * Omit specific fields from the AllowedOrigin + */ + omit?: Prisma.AllowedOriginOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AllowedOriginInclude | null + /** + * Filter, which AllowedOrigins to fetch. + */ + where?: Prisma.AllowedOriginWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AllowedOrigins to fetch. + */ + orderBy?: Prisma.AllowedOriginOrderByWithRelationInput | Prisma.AllowedOriginOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing AllowedOrigins. + */ + cursor?: Prisma.AllowedOriginWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AllowedOrigins 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` AllowedOrigins. + */ + skip?: number + distinct?: Prisma.AllowedOriginScalarFieldEnum | Prisma.AllowedOriginScalarFieldEnum[] +} + +/** + * AllowedOrigin create + */ +export type AllowedOriginCreateArgs = { + /** + * Select specific fields to fetch from the AllowedOrigin + */ + select?: Prisma.AllowedOriginSelect | null + /** + * Omit specific fields from the AllowedOrigin + */ + omit?: Prisma.AllowedOriginOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AllowedOriginInclude | null + /** + * The data needed to create a AllowedOrigin. + */ + data: Prisma.XOR +} + +/** + * AllowedOrigin createMany + */ +export type AllowedOriginCreateManyArgs = { + /** + * The data used to create many AllowedOrigins. + */ + data: Prisma.AllowedOriginCreateManyInput | Prisma.AllowedOriginCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * AllowedOrigin createManyAndReturn + */ +export type AllowedOriginCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the AllowedOrigin + */ + select?: Prisma.AllowedOriginSelectCreateManyAndReturn | null + /** + * Omit specific fields from the AllowedOrigin + */ + omit?: Prisma.AllowedOriginOmit | null + /** + * The data used to create many AllowedOrigins. + */ + data: Prisma.AllowedOriginCreateManyInput | Prisma.AllowedOriginCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AllowedOriginIncludeCreateManyAndReturn | null +} + +/** + * AllowedOrigin update + */ +export type AllowedOriginUpdateArgs = { + /** + * Select specific fields to fetch from the AllowedOrigin + */ + select?: Prisma.AllowedOriginSelect | null + /** + * Omit specific fields from the AllowedOrigin + */ + omit?: Prisma.AllowedOriginOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AllowedOriginInclude | null + /** + * The data needed to update a AllowedOrigin. + */ + data: Prisma.XOR + /** + * Choose, which AllowedOrigin to update. + */ + where: Prisma.AllowedOriginWhereUniqueInput +} + +/** + * AllowedOrigin updateMany + */ +export type AllowedOriginUpdateManyArgs = { + /** + * The data used to update AllowedOrigins. + */ + data: Prisma.XOR + /** + * Filter which AllowedOrigins to update + */ + where?: Prisma.AllowedOriginWhereInput + /** + * Limit how many AllowedOrigins to update. + */ + limit?: number +} + +/** + * AllowedOrigin updateManyAndReturn + */ +export type AllowedOriginUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the AllowedOrigin + */ + select?: Prisma.AllowedOriginSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the AllowedOrigin + */ + omit?: Prisma.AllowedOriginOmit | null + /** + * The data used to update AllowedOrigins. + */ + data: Prisma.XOR + /** + * Filter which AllowedOrigins to update + */ + where?: Prisma.AllowedOriginWhereInput + /** + * Limit how many AllowedOrigins to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AllowedOriginIncludeUpdateManyAndReturn | null +} + +/** + * AllowedOrigin upsert + */ +export type AllowedOriginUpsertArgs = { + /** + * Select specific fields to fetch from the AllowedOrigin + */ + select?: Prisma.AllowedOriginSelect | null + /** + * Omit specific fields from the AllowedOrigin + */ + omit?: Prisma.AllowedOriginOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AllowedOriginInclude | null + /** + * The filter to search for the AllowedOrigin to update in case it exists. + */ + where: Prisma.AllowedOriginWhereUniqueInput + /** + * In case the AllowedOrigin found by the `where` argument doesn't exist, create a new AllowedOrigin with this data. + */ + create: Prisma.XOR + /** + * In case the AllowedOrigin was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * AllowedOrigin delete + */ +export type AllowedOriginDeleteArgs = { + /** + * Select specific fields to fetch from the AllowedOrigin + */ + select?: Prisma.AllowedOriginSelect | null + /** + * Omit specific fields from the AllowedOrigin + */ + omit?: Prisma.AllowedOriginOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AllowedOriginInclude | null + /** + * Filter which AllowedOrigin to delete. + */ + where: Prisma.AllowedOriginWhereUniqueInput +} + +/** + * AllowedOrigin deleteMany + */ +export type AllowedOriginDeleteManyArgs = { + /** + * Filter which AllowedOrigins to delete + */ + where?: Prisma.AllowedOriginWhereInput + /** + * Limit how many AllowedOrigins to delete. + */ + limit?: number +} + +/** + * AllowedOrigin.addedBy + */ +export type AllowedOrigin$addedByArgs = { + /** + * 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 +} + +/** + * AllowedOrigin without action + */ +export type AllowedOriginDefaultArgs = { + /** + * Select specific fields to fetch from the AllowedOrigin + */ + select?: Prisma.AllowedOriginSelect | null + /** + * Omit specific fields from the AllowedOrigin + */ + omit?: Prisma.AllowedOriginOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AllowedOriginInclude | null +} diff --git a/src/lib/generated/prisma/models/Event.ts b/src/lib/generated/prisma/models/Event.ts new file mode 100644 index 0000000..9786efd --- /dev/null +++ b/src/lib/generated/prisma/models/Event.ts @@ -0,0 +1,2507 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Event` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/library" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model Event + * + */ +export type EventModel = runtime.Types.Result.DefaultSelection + +export type AggregateEvent = { + _count: EventCountAggregateOutputType | null + _min: EventMinAggregateOutputType | null + _max: EventMaxAggregateOutputType | null +} + +export type EventMinAggregateOutputType = { + id: string | null + slug: string | null + name: string | null + date: Date | null + notes: string | null + createdAt: Date | null + updatedAt: Date | null + projectId: string | null +} + +export type EventMaxAggregateOutputType = { + id: string | null + slug: string | null + name: string | null + date: Date | null + notes: string | null + createdAt: Date | null + updatedAt: Date | null + projectId: string | null +} + +export type EventCountAggregateOutputType = { + id: number + slug: number + name: number + date: number + notes: number + createdAt: number + updatedAt: number + projectId: number + _all: number +} + + +export type EventMinAggregateInputType = { + id?: true + slug?: true + name?: true + date?: true + notes?: true + createdAt?: true + updatedAt?: true + projectId?: true +} + +export type EventMaxAggregateInputType = { + id?: true + slug?: true + name?: true + date?: true + notes?: true + createdAt?: true + updatedAt?: true + projectId?: true +} + +export type EventCountAggregateInputType = { + id?: true + slug?: true + name?: true + date?: true + notes?: true + createdAt?: true + updatedAt?: true + projectId?: true + _all?: true +} + +export type EventAggregateArgs = { + /** + * Filter which Event to aggregate. + */ + where?: Prisma.EventWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Events to fetch. + */ + orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.EventWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Events 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` Events. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Events + **/ + _count?: true | EventCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: EventMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: EventMaxAggregateInputType +} + +export type GetEventAggregateType = { + [P in keyof T & keyof AggregateEvent]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type EventGroupByArgs = { + where?: Prisma.EventWhereInput + orderBy?: Prisma.EventOrderByWithAggregationInput | Prisma.EventOrderByWithAggregationInput[] + by: Prisma.EventScalarFieldEnum[] | Prisma.EventScalarFieldEnum + having?: Prisma.EventScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: EventCountAggregateInputType | true + _min?: EventMinAggregateInputType + _max?: EventMaxAggregateInputType +} + +export type EventGroupByOutputType = { + id: string + slug: string + name: string + date: Date | null + notes: string | null + createdAt: Date + updatedAt: Date + projectId: string + _count: EventCountAggregateOutputType | null + _min: EventMinAggregateOutputType | null + _max: EventMaxAggregateOutputType | null +} + +type GetEventGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof EventGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type EventWhereInput = { + AND?: Prisma.EventWhereInput | Prisma.EventWhereInput[] + OR?: Prisma.EventWhereInput[] + NOT?: Prisma.EventWhereInput | Prisma.EventWhereInput[] + id?: Prisma.StringFilter<"Event"> | string + slug?: Prisma.StringFilter<"Event"> | string + name?: Prisma.StringFilter<"Event"> | string + date?: Prisma.DateTimeNullableFilter<"Event"> | Date | string | null + notes?: Prisma.StringNullableFilter<"Event"> | string | null + createdAt?: Prisma.DateTimeFilter<"Event"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Event"> | Date | string + projectId?: Prisma.StringFilter<"Event"> | string + project?: Prisma.XOR + memberships?: Prisma.MembershipListRelationFilter + invites?: Prisma.InviteTokenListRelationFilter + todos?: Prisma.EventTodoListRelationFilter + eventGuests?: Prisma.EventGuestListRelationFilter + eventVendors?: Prisma.EventVendorListRelationFilter + registryItems?: Prisma.RegistryItemListRelationFilter + fileUploads?: Prisma.FileUploadListRelationFilter +} + +export type EventOrderByWithRelationInput = { + id?: Prisma.SortOrder + slug?: Prisma.SortOrder + name?: Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + project?: Prisma.ProjectOrderByWithRelationInput + memberships?: Prisma.MembershipOrderByRelationAggregateInput + invites?: Prisma.InviteTokenOrderByRelationAggregateInput + todos?: Prisma.EventTodoOrderByRelationAggregateInput + eventGuests?: Prisma.EventGuestOrderByRelationAggregateInput + eventVendors?: Prisma.EventVendorOrderByRelationAggregateInput + registryItems?: Prisma.RegistryItemOrderByRelationAggregateInput + fileUploads?: Prisma.FileUploadOrderByRelationAggregateInput +} + +export type EventWhereUniqueInput = Prisma.AtLeast<{ + id?: string + slug?: string + AND?: Prisma.EventWhereInput | Prisma.EventWhereInput[] + OR?: Prisma.EventWhereInput[] + NOT?: Prisma.EventWhereInput | Prisma.EventWhereInput[] + name?: Prisma.StringFilter<"Event"> | string + date?: Prisma.DateTimeNullableFilter<"Event"> | Date | string | null + notes?: Prisma.StringNullableFilter<"Event"> | string | null + createdAt?: Prisma.DateTimeFilter<"Event"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Event"> | Date | string + projectId?: Prisma.StringFilter<"Event"> | string + project?: Prisma.XOR + memberships?: Prisma.MembershipListRelationFilter + invites?: Prisma.InviteTokenListRelationFilter + todos?: Prisma.EventTodoListRelationFilter + eventGuests?: Prisma.EventGuestListRelationFilter + eventVendors?: Prisma.EventVendorListRelationFilter + registryItems?: Prisma.RegistryItemListRelationFilter + fileUploads?: Prisma.FileUploadListRelationFilter +}, "id" | "slug"> + +export type EventOrderByWithAggregationInput = { + id?: Prisma.SortOrder + slug?: Prisma.SortOrder + name?: Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + _count?: Prisma.EventCountOrderByAggregateInput + _max?: Prisma.EventMaxOrderByAggregateInput + _min?: Prisma.EventMinOrderByAggregateInput +} + +export type EventScalarWhereWithAggregatesInput = { + AND?: Prisma.EventScalarWhereWithAggregatesInput | Prisma.EventScalarWhereWithAggregatesInput[] + OR?: Prisma.EventScalarWhereWithAggregatesInput[] + NOT?: Prisma.EventScalarWhereWithAggregatesInput | Prisma.EventScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Event"> | string + slug?: Prisma.StringWithAggregatesFilter<"Event"> | string + name?: Prisma.StringWithAggregatesFilter<"Event"> | string + date?: Prisma.DateTimeNullableWithAggregatesFilter<"Event"> | Date | string | null + notes?: Prisma.StringNullableWithAggregatesFilter<"Event"> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Event"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Event"> | Date | string + projectId?: Prisma.StringWithAggregatesFilter<"Event"> | string +} + +export type EventCreateInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutEventsInput + memberships?: Prisma.MembershipCreateNestedManyWithoutEventInput + invites?: Prisma.InviteTokenCreateNestedManyWithoutEventInput + todos?: Prisma.EventTodoCreateNestedManyWithoutEventInput + eventGuests?: Prisma.EventGuestCreateNestedManyWithoutEventInput + eventVendors?: Prisma.EventVendorCreateNestedManyWithoutEventInput + registryItems?: Prisma.RegistryItemCreateNestedManyWithoutEventInput + fileUploads?: Prisma.FileUploadCreateNestedManyWithoutEventInput +} + +export type EventUncheckedCreateInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + projectId: string + memberships?: Prisma.MembershipUncheckedCreateNestedManyWithoutEventInput + invites?: Prisma.InviteTokenUncheckedCreateNestedManyWithoutEventInput + todos?: Prisma.EventTodoUncheckedCreateNestedManyWithoutEventInput + eventGuests?: Prisma.EventGuestUncheckedCreateNestedManyWithoutEventInput + eventVendors?: Prisma.EventVendorUncheckedCreateNestedManyWithoutEventInput + registryItems?: Prisma.RegistryItemUncheckedCreateNestedManyWithoutEventInput + fileUploads?: Prisma.FileUploadUncheckedCreateNestedManyWithoutEventInput +} + +export type EventUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutEventsNestedInput + memberships?: Prisma.MembershipUpdateManyWithoutEventNestedInput + invites?: Prisma.InviteTokenUpdateManyWithoutEventNestedInput + todos?: Prisma.EventTodoUpdateManyWithoutEventNestedInput + eventGuests?: Prisma.EventGuestUpdateManyWithoutEventNestedInput + eventVendors?: Prisma.EventVendorUpdateManyWithoutEventNestedInput + registryItems?: Prisma.RegistryItemUpdateManyWithoutEventNestedInput + fileUploads?: Prisma.FileUploadUpdateManyWithoutEventNestedInput +} + +export type EventUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + memberships?: Prisma.MembershipUncheckedUpdateManyWithoutEventNestedInput + invites?: Prisma.InviteTokenUncheckedUpdateManyWithoutEventNestedInput + todos?: Prisma.EventTodoUncheckedUpdateManyWithoutEventNestedInput + eventGuests?: Prisma.EventGuestUncheckedUpdateManyWithoutEventNestedInput + eventVendors?: Prisma.EventVendorUncheckedUpdateManyWithoutEventNestedInput + registryItems?: Prisma.RegistryItemUncheckedUpdateManyWithoutEventNestedInput + fileUploads?: Prisma.FileUploadUncheckedUpdateManyWithoutEventNestedInput +} + +export type EventCreateManyInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + projectId: string +} + +export type EventUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type EventUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type EventListRelationFilter = { + every?: Prisma.EventWhereInput + some?: Prisma.EventWhereInput + none?: Prisma.EventWhereInput +} + +export type EventOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type EventNullableScalarRelationFilter = { + is?: Prisma.EventWhereInput | null + isNot?: Prisma.EventWhereInput | null +} + +export type EventCountOrderByAggregateInput = { + id?: Prisma.SortOrder + slug?: Prisma.SortOrder + name?: Prisma.SortOrder + date?: Prisma.SortOrder + notes?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type EventMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + slug?: Prisma.SortOrder + name?: Prisma.SortOrder + date?: Prisma.SortOrder + notes?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type EventMinOrderByAggregateInput = { + id?: Prisma.SortOrder + slug?: Prisma.SortOrder + name?: Prisma.SortOrder + date?: Prisma.SortOrder + notes?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type EventScalarRelationFilter = { + is?: Prisma.EventWhereInput + isNot?: Prisma.EventWhereInput +} + +export type EventCreateNestedManyWithoutProjectInput = { + create?: Prisma.XOR | Prisma.EventCreateWithoutProjectInput[] | Prisma.EventUncheckedCreateWithoutProjectInput[] + connectOrCreate?: Prisma.EventCreateOrConnectWithoutProjectInput | Prisma.EventCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.EventCreateManyProjectInputEnvelope + connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] +} + +export type EventUncheckedCreateNestedManyWithoutProjectInput = { + create?: Prisma.XOR | Prisma.EventCreateWithoutProjectInput[] | Prisma.EventUncheckedCreateWithoutProjectInput[] + connectOrCreate?: Prisma.EventCreateOrConnectWithoutProjectInput | Prisma.EventCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.EventCreateManyProjectInputEnvelope + connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] +} + +export type EventUpdateManyWithoutProjectNestedInput = { + create?: Prisma.XOR | Prisma.EventCreateWithoutProjectInput[] | Prisma.EventUncheckedCreateWithoutProjectInput[] + connectOrCreate?: Prisma.EventCreateOrConnectWithoutProjectInput | Prisma.EventCreateOrConnectWithoutProjectInput[] + upsert?: Prisma.EventUpsertWithWhereUniqueWithoutProjectInput | Prisma.EventUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.EventCreateManyProjectInputEnvelope + set?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] + disconnect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] + delete?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] + connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] + update?: Prisma.EventUpdateWithWhereUniqueWithoutProjectInput | Prisma.EventUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: Prisma.EventUpdateManyWithWhereWithoutProjectInput | Prisma.EventUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.EventScalarWhereInput | Prisma.EventScalarWhereInput[] +} + +export type EventUncheckedUpdateManyWithoutProjectNestedInput = { + create?: Prisma.XOR | Prisma.EventCreateWithoutProjectInput[] | Prisma.EventUncheckedCreateWithoutProjectInput[] + connectOrCreate?: Prisma.EventCreateOrConnectWithoutProjectInput | Prisma.EventCreateOrConnectWithoutProjectInput[] + upsert?: Prisma.EventUpsertWithWhereUniqueWithoutProjectInput | Prisma.EventUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.EventCreateManyProjectInputEnvelope + set?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] + disconnect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] + delete?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] + connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] + update?: Prisma.EventUpdateWithWhereUniqueWithoutProjectInput | Prisma.EventUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: Prisma.EventUpdateManyWithWhereWithoutProjectInput | Prisma.EventUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.EventScalarWhereInput | Prisma.EventScalarWhereInput[] +} + +export type EventCreateNestedOneWithoutMembershipsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EventCreateOrConnectWithoutMembershipsInput + connect?: Prisma.EventWhereUniqueInput +} + +export type EventUpdateOneWithoutMembershipsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EventCreateOrConnectWithoutMembershipsInput + upsert?: Prisma.EventUpsertWithoutMembershipsInput + disconnect?: Prisma.EventWhereInput | boolean + delete?: Prisma.EventWhereInput | boolean + connect?: Prisma.EventWhereUniqueInput + update?: Prisma.XOR, Prisma.EventUncheckedUpdateWithoutMembershipsInput> +} + +export type EventCreateNestedOneWithoutInvitesInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EventCreateOrConnectWithoutInvitesInput + connect?: Prisma.EventWhereUniqueInput +} + +export type EventUpdateOneWithoutInvitesNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EventCreateOrConnectWithoutInvitesInput + upsert?: Prisma.EventUpsertWithoutInvitesInput + disconnect?: Prisma.EventWhereInput | boolean + delete?: Prisma.EventWhereInput | boolean + connect?: Prisma.EventWhereUniqueInput + update?: Prisma.XOR, Prisma.EventUncheckedUpdateWithoutInvitesInput> +} + +export type EventCreateNestedOneWithoutTodosInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EventCreateOrConnectWithoutTodosInput + connect?: Prisma.EventWhereUniqueInput +} + +export type EventUpdateOneRequiredWithoutTodosNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EventCreateOrConnectWithoutTodosInput + upsert?: Prisma.EventUpsertWithoutTodosInput + connect?: Prisma.EventWhereUniqueInput + update?: Prisma.XOR, Prisma.EventUncheckedUpdateWithoutTodosInput> +} + +export type EventCreateNestedOneWithoutEventGuestsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EventCreateOrConnectWithoutEventGuestsInput + connect?: Prisma.EventWhereUniqueInput +} + +export type EventUpdateOneRequiredWithoutEventGuestsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EventCreateOrConnectWithoutEventGuestsInput + upsert?: Prisma.EventUpsertWithoutEventGuestsInput + connect?: Prisma.EventWhereUniqueInput + update?: Prisma.XOR, Prisma.EventUncheckedUpdateWithoutEventGuestsInput> +} + +export type EventCreateNestedOneWithoutEventVendorsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EventCreateOrConnectWithoutEventVendorsInput + connect?: Prisma.EventWhereUniqueInput +} + +export type EventUpdateOneRequiredWithoutEventVendorsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EventCreateOrConnectWithoutEventVendorsInput + upsert?: Prisma.EventUpsertWithoutEventVendorsInput + connect?: Prisma.EventWhereUniqueInput + update?: Prisma.XOR, Prisma.EventUncheckedUpdateWithoutEventVendorsInput> +} + +export type EventCreateNestedOneWithoutFileUploadsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EventCreateOrConnectWithoutFileUploadsInput + connect?: Prisma.EventWhereUniqueInput +} + +export type EventUpdateOneWithoutFileUploadsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EventCreateOrConnectWithoutFileUploadsInput + upsert?: Prisma.EventUpsertWithoutFileUploadsInput + disconnect?: Prisma.EventWhereInput | boolean + delete?: Prisma.EventWhereInput | boolean + connect?: Prisma.EventWhereUniqueInput + update?: Prisma.XOR, Prisma.EventUncheckedUpdateWithoutFileUploadsInput> +} + +export type EventCreateNestedOneWithoutRegistryItemsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EventCreateOrConnectWithoutRegistryItemsInput + connect?: Prisma.EventWhereUniqueInput +} + +export type EventUpdateOneWithoutRegistryItemsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EventCreateOrConnectWithoutRegistryItemsInput + upsert?: Prisma.EventUpsertWithoutRegistryItemsInput + disconnect?: Prisma.EventWhereInput | boolean + delete?: Prisma.EventWhereInput | boolean + connect?: Prisma.EventWhereUniqueInput + update?: Prisma.XOR, Prisma.EventUncheckedUpdateWithoutRegistryItemsInput> +} + +export type EventCreateWithoutProjectInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + memberships?: Prisma.MembershipCreateNestedManyWithoutEventInput + invites?: Prisma.InviteTokenCreateNestedManyWithoutEventInput + todos?: Prisma.EventTodoCreateNestedManyWithoutEventInput + eventGuests?: Prisma.EventGuestCreateNestedManyWithoutEventInput + eventVendors?: Prisma.EventVendorCreateNestedManyWithoutEventInput + registryItems?: Prisma.RegistryItemCreateNestedManyWithoutEventInput + fileUploads?: Prisma.FileUploadCreateNestedManyWithoutEventInput +} + +export type EventUncheckedCreateWithoutProjectInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + memberships?: Prisma.MembershipUncheckedCreateNestedManyWithoutEventInput + invites?: Prisma.InviteTokenUncheckedCreateNestedManyWithoutEventInput + todos?: Prisma.EventTodoUncheckedCreateNestedManyWithoutEventInput + eventGuests?: Prisma.EventGuestUncheckedCreateNestedManyWithoutEventInput + eventVendors?: Prisma.EventVendorUncheckedCreateNestedManyWithoutEventInput + registryItems?: Prisma.RegistryItemUncheckedCreateNestedManyWithoutEventInput + fileUploads?: Prisma.FileUploadUncheckedCreateNestedManyWithoutEventInput +} + +export type EventCreateOrConnectWithoutProjectInput = { + where: Prisma.EventWhereUniqueInput + create: Prisma.XOR +} + +export type EventCreateManyProjectInputEnvelope = { + data: Prisma.EventCreateManyProjectInput | Prisma.EventCreateManyProjectInput[] + skipDuplicates?: boolean +} + +export type EventUpsertWithWhereUniqueWithoutProjectInput = { + where: Prisma.EventWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type EventUpdateWithWhereUniqueWithoutProjectInput = { + where: Prisma.EventWhereUniqueInput + data: Prisma.XOR +} + +export type EventUpdateManyWithWhereWithoutProjectInput = { + where: Prisma.EventScalarWhereInput + data: Prisma.XOR +} + +export type EventScalarWhereInput = { + AND?: Prisma.EventScalarWhereInput | Prisma.EventScalarWhereInput[] + OR?: Prisma.EventScalarWhereInput[] + NOT?: Prisma.EventScalarWhereInput | Prisma.EventScalarWhereInput[] + id?: Prisma.StringFilter<"Event"> | string + slug?: Prisma.StringFilter<"Event"> | string + name?: Prisma.StringFilter<"Event"> | string + date?: Prisma.DateTimeNullableFilter<"Event"> | Date | string | null + notes?: Prisma.StringNullableFilter<"Event"> | string | null + createdAt?: Prisma.DateTimeFilter<"Event"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Event"> | Date | string + projectId?: Prisma.StringFilter<"Event"> | string +} + +export type EventCreateWithoutMembershipsInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutEventsInput + invites?: Prisma.InviteTokenCreateNestedManyWithoutEventInput + todos?: Prisma.EventTodoCreateNestedManyWithoutEventInput + eventGuests?: Prisma.EventGuestCreateNestedManyWithoutEventInput + eventVendors?: Prisma.EventVendorCreateNestedManyWithoutEventInput + registryItems?: Prisma.RegistryItemCreateNestedManyWithoutEventInput + fileUploads?: Prisma.FileUploadCreateNestedManyWithoutEventInput +} + +export type EventUncheckedCreateWithoutMembershipsInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + projectId: string + invites?: Prisma.InviteTokenUncheckedCreateNestedManyWithoutEventInput + todos?: Prisma.EventTodoUncheckedCreateNestedManyWithoutEventInput + eventGuests?: Prisma.EventGuestUncheckedCreateNestedManyWithoutEventInput + eventVendors?: Prisma.EventVendorUncheckedCreateNestedManyWithoutEventInput + registryItems?: Prisma.RegistryItemUncheckedCreateNestedManyWithoutEventInput + fileUploads?: Prisma.FileUploadUncheckedCreateNestedManyWithoutEventInput +} + +export type EventCreateOrConnectWithoutMembershipsInput = { + where: Prisma.EventWhereUniqueInput + create: Prisma.XOR +} + +export type EventUpsertWithoutMembershipsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.EventWhereInput +} + +export type EventUpdateToOneWithWhereWithoutMembershipsInput = { + where?: Prisma.EventWhereInput + data: Prisma.XOR +} + +export type EventUpdateWithoutMembershipsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutEventsNestedInput + invites?: Prisma.InviteTokenUpdateManyWithoutEventNestedInput + todos?: Prisma.EventTodoUpdateManyWithoutEventNestedInput + eventGuests?: Prisma.EventGuestUpdateManyWithoutEventNestedInput + eventVendors?: Prisma.EventVendorUpdateManyWithoutEventNestedInput + registryItems?: Prisma.RegistryItemUpdateManyWithoutEventNestedInput + fileUploads?: Prisma.FileUploadUpdateManyWithoutEventNestedInput +} + +export type EventUncheckedUpdateWithoutMembershipsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + invites?: Prisma.InviteTokenUncheckedUpdateManyWithoutEventNestedInput + todos?: Prisma.EventTodoUncheckedUpdateManyWithoutEventNestedInput + eventGuests?: Prisma.EventGuestUncheckedUpdateManyWithoutEventNestedInput + eventVendors?: Prisma.EventVendorUncheckedUpdateManyWithoutEventNestedInput + registryItems?: Prisma.RegistryItemUncheckedUpdateManyWithoutEventNestedInput + fileUploads?: Prisma.FileUploadUncheckedUpdateManyWithoutEventNestedInput +} + +export type EventCreateWithoutInvitesInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutEventsInput + memberships?: Prisma.MembershipCreateNestedManyWithoutEventInput + todos?: Prisma.EventTodoCreateNestedManyWithoutEventInput + eventGuests?: Prisma.EventGuestCreateNestedManyWithoutEventInput + eventVendors?: Prisma.EventVendorCreateNestedManyWithoutEventInput + registryItems?: Prisma.RegistryItemCreateNestedManyWithoutEventInput + fileUploads?: Prisma.FileUploadCreateNestedManyWithoutEventInput +} + +export type EventUncheckedCreateWithoutInvitesInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + projectId: string + memberships?: Prisma.MembershipUncheckedCreateNestedManyWithoutEventInput + todos?: Prisma.EventTodoUncheckedCreateNestedManyWithoutEventInput + eventGuests?: Prisma.EventGuestUncheckedCreateNestedManyWithoutEventInput + eventVendors?: Prisma.EventVendorUncheckedCreateNestedManyWithoutEventInput + registryItems?: Prisma.RegistryItemUncheckedCreateNestedManyWithoutEventInput + fileUploads?: Prisma.FileUploadUncheckedCreateNestedManyWithoutEventInput +} + +export type EventCreateOrConnectWithoutInvitesInput = { + where: Prisma.EventWhereUniqueInput + create: Prisma.XOR +} + +export type EventUpsertWithoutInvitesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.EventWhereInput +} + +export type EventUpdateToOneWithWhereWithoutInvitesInput = { + where?: Prisma.EventWhereInput + data: Prisma.XOR +} + +export type EventUpdateWithoutInvitesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutEventsNestedInput + memberships?: Prisma.MembershipUpdateManyWithoutEventNestedInput + todos?: Prisma.EventTodoUpdateManyWithoutEventNestedInput + eventGuests?: Prisma.EventGuestUpdateManyWithoutEventNestedInput + eventVendors?: Prisma.EventVendorUpdateManyWithoutEventNestedInput + registryItems?: Prisma.RegistryItemUpdateManyWithoutEventNestedInput + fileUploads?: Prisma.FileUploadUpdateManyWithoutEventNestedInput +} + +export type EventUncheckedUpdateWithoutInvitesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + memberships?: Prisma.MembershipUncheckedUpdateManyWithoutEventNestedInput + todos?: Prisma.EventTodoUncheckedUpdateManyWithoutEventNestedInput + eventGuests?: Prisma.EventGuestUncheckedUpdateManyWithoutEventNestedInput + eventVendors?: Prisma.EventVendorUncheckedUpdateManyWithoutEventNestedInput + registryItems?: Prisma.RegistryItemUncheckedUpdateManyWithoutEventNestedInput + fileUploads?: Prisma.FileUploadUncheckedUpdateManyWithoutEventNestedInput +} + +export type EventCreateWithoutTodosInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutEventsInput + memberships?: Prisma.MembershipCreateNestedManyWithoutEventInput + invites?: Prisma.InviteTokenCreateNestedManyWithoutEventInput + eventGuests?: Prisma.EventGuestCreateNestedManyWithoutEventInput + eventVendors?: Prisma.EventVendorCreateNestedManyWithoutEventInput + registryItems?: Prisma.RegistryItemCreateNestedManyWithoutEventInput + fileUploads?: Prisma.FileUploadCreateNestedManyWithoutEventInput +} + +export type EventUncheckedCreateWithoutTodosInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + projectId: string + memberships?: Prisma.MembershipUncheckedCreateNestedManyWithoutEventInput + invites?: Prisma.InviteTokenUncheckedCreateNestedManyWithoutEventInput + eventGuests?: Prisma.EventGuestUncheckedCreateNestedManyWithoutEventInput + eventVendors?: Prisma.EventVendorUncheckedCreateNestedManyWithoutEventInput + registryItems?: Prisma.RegistryItemUncheckedCreateNestedManyWithoutEventInput + fileUploads?: Prisma.FileUploadUncheckedCreateNestedManyWithoutEventInput +} + +export type EventCreateOrConnectWithoutTodosInput = { + where: Prisma.EventWhereUniqueInput + create: Prisma.XOR +} + +export type EventUpsertWithoutTodosInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.EventWhereInput +} + +export type EventUpdateToOneWithWhereWithoutTodosInput = { + where?: Prisma.EventWhereInput + data: Prisma.XOR +} + +export type EventUpdateWithoutTodosInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutEventsNestedInput + memberships?: Prisma.MembershipUpdateManyWithoutEventNestedInput + invites?: Prisma.InviteTokenUpdateManyWithoutEventNestedInput + eventGuests?: Prisma.EventGuestUpdateManyWithoutEventNestedInput + eventVendors?: Prisma.EventVendorUpdateManyWithoutEventNestedInput + registryItems?: Prisma.RegistryItemUpdateManyWithoutEventNestedInput + fileUploads?: Prisma.FileUploadUpdateManyWithoutEventNestedInput +} + +export type EventUncheckedUpdateWithoutTodosInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + memberships?: Prisma.MembershipUncheckedUpdateManyWithoutEventNestedInput + invites?: Prisma.InviteTokenUncheckedUpdateManyWithoutEventNestedInput + eventGuests?: Prisma.EventGuestUncheckedUpdateManyWithoutEventNestedInput + eventVendors?: Prisma.EventVendorUncheckedUpdateManyWithoutEventNestedInput + registryItems?: Prisma.RegistryItemUncheckedUpdateManyWithoutEventNestedInput + fileUploads?: Prisma.FileUploadUncheckedUpdateManyWithoutEventNestedInput +} + +export type EventCreateWithoutEventGuestsInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutEventsInput + memberships?: Prisma.MembershipCreateNestedManyWithoutEventInput + invites?: Prisma.InviteTokenCreateNestedManyWithoutEventInput + todos?: Prisma.EventTodoCreateNestedManyWithoutEventInput + eventVendors?: Prisma.EventVendorCreateNestedManyWithoutEventInput + registryItems?: Prisma.RegistryItemCreateNestedManyWithoutEventInput + fileUploads?: Prisma.FileUploadCreateNestedManyWithoutEventInput +} + +export type EventUncheckedCreateWithoutEventGuestsInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + projectId: string + memberships?: Prisma.MembershipUncheckedCreateNestedManyWithoutEventInput + invites?: Prisma.InviteTokenUncheckedCreateNestedManyWithoutEventInput + todos?: Prisma.EventTodoUncheckedCreateNestedManyWithoutEventInput + eventVendors?: Prisma.EventVendorUncheckedCreateNestedManyWithoutEventInput + registryItems?: Prisma.RegistryItemUncheckedCreateNestedManyWithoutEventInput + fileUploads?: Prisma.FileUploadUncheckedCreateNestedManyWithoutEventInput +} + +export type EventCreateOrConnectWithoutEventGuestsInput = { + where: Prisma.EventWhereUniqueInput + create: Prisma.XOR +} + +export type EventUpsertWithoutEventGuestsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.EventWhereInput +} + +export type EventUpdateToOneWithWhereWithoutEventGuestsInput = { + where?: Prisma.EventWhereInput + data: Prisma.XOR +} + +export type EventUpdateWithoutEventGuestsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutEventsNestedInput + memberships?: Prisma.MembershipUpdateManyWithoutEventNestedInput + invites?: Prisma.InviteTokenUpdateManyWithoutEventNestedInput + todos?: Prisma.EventTodoUpdateManyWithoutEventNestedInput + eventVendors?: Prisma.EventVendorUpdateManyWithoutEventNestedInput + registryItems?: Prisma.RegistryItemUpdateManyWithoutEventNestedInput + fileUploads?: Prisma.FileUploadUpdateManyWithoutEventNestedInput +} + +export type EventUncheckedUpdateWithoutEventGuestsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + memberships?: Prisma.MembershipUncheckedUpdateManyWithoutEventNestedInput + invites?: Prisma.InviteTokenUncheckedUpdateManyWithoutEventNestedInput + todos?: Prisma.EventTodoUncheckedUpdateManyWithoutEventNestedInput + eventVendors?: Prisma.EventVendorUncheckedUpdateManyWithoutEventNestedInput + registryItems?: Prisma.RegistryItemUncheckedUpdateManyWithoutEventNestedInput + fileUploads?: Prisma.FileUploadUncheckedUpdateManyWithoutEventNestedInput +} + +export type EventCreateWithoutEventVendorsInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutEventsInput + memberships?: Prisma.MembershipCreateNestedManyWithoutEventInput + invites?: Prisma.InviteTokenCreateNestedManyWithoutEventInput + todos?: Prisma.EventTodoCreateNestedManyWithoutEventInput + eventGuests?: Prisma.EventGuestCreateNestedManyWithoutEventInput + registryItems?: Prisma.RegistryItemCreateNestedManyWithoutEventInput + fileUploads?: Prisma.FileUploadCreateNestedManyWithoutEventInput +} + +export type EventUncheckedCreateWithoutEventVendorsInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + projectId: string + memberships?: Prisma.MembershipUncheckedCreateNestedManyWithoutEventInput + invites?: Prisma.InviteTokenUncheckedCreateNestedManyWithoutEventInput + todos?: Prisma.EventTodoUncheckedCreateNestedManyWithoutEventInput + eventGuests?: Prisma.EventGuestUncheckedCreateNestedManyWithoutEventInput + registryItems?: Prisma.RegistryItemUncheckedCreateNestedManyWithoutEventInput + fileUploads?: Prisma.FileUploadUncheckedCreateNestedManyWithoutEventInput +} + +export type EventCreateOrConnectWithoutEventVendorsInput = { + where: Prisma.EventWhereUniqueInput + create: Prisma.XOR +} + +export type EventUpsertWithoutEventVendorsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.EventWhereInput +} + +export type EventUpdateToOneWithWhereWithoutEventVendorsInput = { + where?: Prisma.EventWhereInput + data: Prisma.XOR +} + +export type EventUpdateWithoutEventVendorsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutEventsNestedInput + memberships?: Prisma.MembershipUpdateManyWithoutEventNestedInput + invites?: Prisma.InviteTokenUpdateManyWithoutEventNestedInput + todos?: Prisma.EventTodoUpdateManyWithoutEventNestedInput + eventGuests?: Prisma.EventGuestUpdateManyWithoutEventNestedInput + registryItems?: Prisma.RegistryItemUpdateManyWithoutEventNestedInput + fileUploads?: Prisma.FileUploadUpdateManyWithoutEventNestedInput +} + +export type EventUncheckedUpdateWithoutEventVendorsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + memberships?: Prisma.MembershipUncheckedUpdateManyWithoutEventNestedInput + invites?: Prisma.InviteTokenUncheckedUpdateManyWithoutEventNestedInput + todos?: Prisma.EventTodoUncheckedUpdateManyWithoutEventNestedInput + eventGuests?: Prisma.EventGuestUncheckedUpdateManyWithoutEventNestedInput + registryItems?: Prisma.RegistryItemUncheckedUpdateManyWithoutEventNestedInput + fileUploads?: Prisma.FileUploadUncheckedUpdateManyWithoutEventNestedInput +} + +export type EventCreateWithoutFileUploadsInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutEventsInput + memberships?: Prisma.MembershipCreateNestedManyWithoutEventInput + invites?: Prisma.InviteTokenCreateNestedManyWithoutEventInput + todos?: Prisma.EventTodoCreateNestedManyWithoutEventInput + eventGuests?: Prisma.EventGuestCreateNestedManyWithoutEventInput + eventVendors?: Prisma.EventVendorCreateNestedManyWithoutEventInput + registryItems?: Prisma.RegistryItemCreateNestedManyWithoutEventInput +} + +export type EventUncheckedCreateWithoutFileUploadsInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + projectId: string + memberships?: Prisma.MembershipUncheckedCreateNestedManyWithoutEventInput + invites?: Prisma.InviteTokenUncheckedCreateNestedManyWithoutEventInput + todos?: Prisma.EventTodoUncheckedCreateNestedManyWithoutEventInput + eventGuests?: Prisma.EventGuestUncheckedCreateNestedManyWithoutEventInput + eventVendors?: Prisma.EventVendorUncheckedCreateNestedManyWithoutEventInput + registryItems?: Prisma.RegistryItemUncheckedCreateNestedManyWithoutEventInput +} + +export type EventCreateOrConnectWithoutFileUploadsInput = { + where: Prisma.EventWhereUniqueInput + create: Prisma.XOR +} + +export type EventUpsertWithoutFileUploadsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.EventWhereInput +} + +export type EventUpdateToOneWithWhereWithoutFileUploadsInput = { + where?: Prisma.EventWhereInput + data: Prisma.XOR +} + +export type EventUpdateWithoutFileUploadsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutEventsNestedInput + memberships?: Prisma.MembershipUpdateManyWithoutEventNestedInput + invites?: Prisma.InviteTokenUpdateManyWithoutEventNestedInput + todos?: Prisma.EventTodoUpdateManyWithoutEventNestedInput + eventGuests?: Prisma.EventGuestUpdateManyWithoutEventNestedInput + eventVendors?: Prisma.EventVendorUpdateManyWithoutEventNestedInput + registryItems?: Prisma.RegistryItemUpdateManyWithoutEventNestedInput +} + +export type EventUncheckedUpdateWithoutFileUploadsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + memberships?: Prisma.MembershipUncheckedUpdateManyWithoutEventNestedInput + invites?: Prisma.InviteTokenUncheckedUpdateManyWithoutEventNestedInput + todos?: Prisma.EventTodoUncheckedUpdateManyWithoutEventNestedInput + eventGuests?: Prisma.EventGuestUncheckedUpdateManyWithoutEventNestedInput + eventVendors?: Prisma.EventVendorUncheckedUpdateManyWithoutEventNestedInput + registryItems?: Prisma.RegistryItemUncheckedUpdateManyWithoutEventNestedInput +} + +export type EventCreateWithoutRegistryItemsInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutEventsInput + memberships?: Prisma.MembershipCreateNestedManyWithoutEventInput + invites?: Prisma.InviteTokenCreateNestedManyWithoutEventInput + todos?: Prisma.EventTodoCreateNestedManyWithoutEventInput + eventGuests?: Prisma.EventGuestCreateNestedManyWithoutEventInput + eventVendors?: Prisma.EventVendorCreateNestedManyWithoutEventInput + fileUploads?: Prisma.FileUploadCreateNestedManyWithoutEventInput +} + +export type EventUncheckedCreateWithoutRegistryItemsInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + projectId: string + memberships?: Prisma.MembershipUncheckedCreateNestedManyWithoutEventInput + invites?: Prisma.InviteTokenUncheckedCreateNestedManyWithoutEventInput + todos?: Prisma.EventTodoUncheckedCreateNestedManyWithoutEventInput + eventGuests?: Prisma.EventGuestUncheckedCreateNestedManyWithoutEventInput + eventVendors?: Prisma.EventVendorUncheckedCreateNestedManyWithoutEventInput + fileUploads?: Prisma.FileUploadUncheckedCreateNestedManyWithoutEventInput +} + +export type EventCreateOrConnectWithoutRegistryItemsInput = { + where: Prisma.EventWhereUniqueInput + create: Prisma.XOR +} + +export type EventUpsertWithoutRegistryItemsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.EventWhereInput +} + +export type EventUpdateToOneWithWhereWithoutRegistryItemsInput = { + where?: Prisma.EventWhereInput + data: Prisma.XOR +} + +export type EventUpdateWithoutRegistryItemsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutEventsNestedInput + memberships?: Prisma.MembershipUpdateManyWithoutEventNestedInput + invites?: Prisma.InviteTokenUpdateManyWithoutEventNestedInput + todos?: Prisma.EventTodoUpdateManyWithoutEventNestedInput + eventGuests?: Prisma.EventGuestUpdateManyWithoutEventNestedInput + eventVendors?: Prisma.EventVendorUpdateManyWithoutEventNestedInput + fileUploads?: Prisma.FileUploadUpdateManyWithoutEventNestedInput +} + +export type EventUncheckedUpdateWithoutRegistryItemsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + memberships?: Prisma.MembershipUncheckedUpdateManyWithoutEventNestedInput + invites?: Prisma.InviteTokenUncheckedUpdateManyWithoutEventNestedInput + todos?: Prisma.EventTodoUncheckedUpdateManyWithoutEventNestedInput + eventGuests?: Prisma.EventGuestUncheckedUpdateManyWithoutEventNestedInput + eventVendors?: Prisma.EventVendorUncheckedUpdateManyWithoutEventNestedInput + fileUploads?: Prisma.FileUploadUncheckedUpdateManyWithoutEventNestedInput +} + +export type EventCreateManyProjectInput = { + id?: string + slug: string + name: string + date?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type EventUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + memberships?: Prisma.MembershipUpdateManyWithoutEventNestedInput + invites?: Prisma.InviteTokenUpdateManyWithoutEventNestedInput + todos?: Prisma.EventTodoUpdateManyWithoutEventNestedInput + eventGuests?: Prisma.EventGuestUpdateManyWithoutEventNestedInput + eventVendors?: Prisma.EventVendorUpdateManyWithoutEventNestedInput + registryItems?: Prisma.RegistryItemUpdateManyWithoutEventNestedInput + fileUploads?: Prisma.FileUploadUpdateManyWithoutEventNestedInput +} + +export type EventUncheckedUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + memberships?: Prisma.MembershipUncheckedUpdateManyWithoutEventNestedInput + invites?: Prisma.InviteTokenUncheckedUpdateManyWithoutEventNestedInput + todos?: Prisma.EventTodoUncheckedUpdateManyWithoutEventNestedInput + eventGuests?: Prisma.EventGuestUncheckedUpdateManyWithoutEventNestedInput + eventVendors?: Prisma.EventVendorUncheckedUpdateManyWithoutEventNestedInput + registryItems?: Prisma.RegistryItemUncheckedUpdateManyWithoutEventNestedInput + fileUploads?: Prisma.FileUploadUncheckedUpdateManyWithoutEventNestedInput +} + +export type EventUncheckedUpdateManyWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + +/** + * Count Type EventCountOutputType + */ + +export type EventCountOutputType = { + memberships: number + invites: number + todos: number + eventGuests: number + eventVendors: number + registryItems: number + fileUploads: number +} + +export type EventCountOutputTypeSelect = { + memberships?: boolean | EventCountOutputTypeCountMembershipsArgs + invites?: boolean | EventCountOutputTypeCountInvitesArgs + todos?: boolean | EventCountOutputTypeCountTodosArgs + eventGuests?: boolean | EventCountOutputTypeCountEventGuestsArgs + eventVendors?: boolean | EventCountOutputTypeCountEventVendorsArgs + registryItems?: boolean | EventCountOutputTypeCountRegistryItemsArgs + fileUploads?: boolean | EventCountOutputTypeCountFileUploadsArgs +} + +/** + * EventCountOutputType without action + */ +export type EventCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the EventCountOutputType + */ + select?: Prisma.EventCountOutputTypeSelect | null +} + +/** + * EventCountOutputType without action + */ +export type EventCountOutputTypeCountMembershipsArgs = { + where?: Prisma.MembershipWhereInput +} + +/** + * EventCountOutputType without action + */ +export type EventCountOutputTypeCountInvitesArgs = { + where?: Prisma.InviteTokenWhereInput +} + +/** + * EventCountOutputType without action + */ +export type EventCountOutputTypeCountTodosArgs = { + where?: Prisma.EventTodoWhereInput +} + +/** + * EventCountOutputType without action + */ +export type EventCountOutputTypeCountEventGuestsArgs = { + where?: Prisma.EventGuestWhereInput +} + +/** + * EventCountOutputType without action + */ +export type EventCountOutputTypeCountEventVendorsArgs = { + where?: Prisma.EventVendorWhereInput +} + +/** + * EventCountOutputType without action + */ +export type EventCountOutputTypeCountRegistryItemsArgs = { + where?: Prisma.RegistryItemWhereInput +} + +/** + * EventCountOutputType without action + */ +export type EventCountOutputTypeCountFileUploadsArgs = { + where?: Prisma.FileUploadWhereInput +} + + +export type EventSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + slug?: boolean + name?: boolean + date?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + projectId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs + memberships?: boolean | Prisma.Event$membershipsArgs + invites?: boolean | Prisma.Event$invitesArgs + todos?: boolean | Prisma.Event$todosArgs + eventGuests?: boolean | Prisma.Event$eventGuestsArgs + eventVendors?: boolean | Prisma.Event$eventVendorsArgs + registryItems?: boolean | Prisma.Event$registryItemsArgs + fileUploads?: boolean | Prisma.Event$fileUploadsArgs + _count?: boolean | Prisma.EventCountOutputTypeDefaultArgs +}, ExtArgs["result"]["event"]> + +export type EventSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + slug?: boolean + name?: boolean + date?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + projectId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs +}, ExtArgs["result"]["event"]> + +export type EventSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + slug?: boolean + name?: boolean + date?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + projectId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs +}, ExtArgs["result"]["event"]> + +export type EventSelectScalar = { + id?: boolean + slug?: boolean + name?: boolean + date?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + projectId?: boolean +} + +export type EventOmit = runtime.Types.Extensions.GetOmit<"id" | "slug" | "name" | "date" | "notes" | "createdAt" | "updatedAt" | "projectId", ExtArgs["result"]["event"]> +export type EventInclude = { + project?: boolean | Prisma.ProjectDefaultArgs + memberships?: boolean | Prisma.Event$membershipsArgs + invites?: boolean | Prisma.Event$invitesArgs + todos?: boolean | Prisma.Event$todosArgs + eventGuests?: boolean | Prisma.Event$eventGuestsArgs + eventVendors?: boolean | Prisma.Event$eventVendorsArgs + registryItems?: boolean | Prisma.Event$registryItemsArgs + fileUploads?: boolean | Prisma.Event$fileUploadsArgs + _count?: boolean | Prisma.EventCountOutputTypeDefaultArgs +} +export type EventIncludeCreateManyAndReturn = { + project?: boolean | Prisma.ProjectDefaultArgs +} +export type EventIncludeUpdateManyAndReturn = { + project?: boolean | Prisma.ProjectDefaultArgs +} + +export type $EventPayload = { + name: "Event" + objects: { + project: Prisma.$ProjectPayload + memberships: Prisma.$MembershipPayload[] + invites: Prisma.$InviteTokenPayload[] + todos: Prisma.$EventTodoPayload[] + eventGuests: Prisma.$EventGuestPayload[] + eventVendors: Prisma.$EventVendorPayload[] + registryItems: Prisma.$RegistryItemPayload[] + fileUploads: Prisma.$FileUploadPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + slug: string + name: string + date: Date | null + notes: string | null + createdAt: Date + updatedAt: Date + projectId: string + }, ExtArgs["result"]["event"]> + composites: {} +} + +export type EventGetPayload = runtime.Types.Result.GetResult + +export type EventCountArgs = + Omit & { + select?: EventCountAggregateInputType | true + } + +export interface EventDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Event'], meta: { name: 'Event' } } + /** + * Find zero or one Event that matches the filter. + * @param {EventFindUniqueArgs} args - Arguments to find a Event + * @example + * // Get one Event + * const event = await prisma.event.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__EventClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Event that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {EventFindUniqueOrThrowArgs} args - Arguments to find a Event + * @example + * // Get one Event + * const event = await prisma.event.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__EventClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Event 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 {EventFindFirstArgs} args - Arguments to find a Event + * @example + * // Get one Event + * const event = await prisma.event.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__EventClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Event 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 {EventFindFirstOrThrowArgs} args - Arguments to find a Event + * @example + * // Get one Event + * const event = await prisma.event.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__EventClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Events 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 {EventFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Events + * const events = await prisma.event.findMany() + * + * // Get first 10 Events + * const events = await prisma.event.findMany({ take: 10 }) + * + * // Only select the `id` + * const eventWithIdOnly = await prisma.event.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Event. + * @param {EventCreateArgs} args - Arguments to create a Event. + * @example + * // Create one Event + * const Event = await prisma.event.create({ + * data: { + * // ... data to create a Event + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__EventClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Events. + * @param {EventCreateManyArgs} args - Arguments to create many Events. + * @example + * // Create many Events + * const event = await prisma.event.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Events and returns the data saved in the database. + * @param {EventCreateManyAndReturnArgs} args - Arguments to create many Events. + * @example + * // Create many Events + * const event = await prisma.event.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Events and only return the `id` + * const eventWithIdOnly = await prisma.event.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 Event. + * @param {EventDeleteArgs} args - Arguments to delete one Event. + * @example + * // Delete one Event + * const Event = await prisma.event.delete({ + * where: { + * // ... filter to delete one Event + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__EventClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Event. + * @param {EventUpdateArgs} args - Arguments to update one Event. + * @example + * // Update one Event + * const event = await prisma.event.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__EventClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Events. + * @param {EventDeleteManyArgs} args - Arguments to filter Events to delete. + * @example + * // Delete a few Events + * const { count } = await prisma.event.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Events. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EventUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Events + * const event = await prisma.event.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Events and returns the data updated in the database. + * @param {EventUpdateManyAndReturnArgs} args - Arguments to update many Events. + * @example + * // Update many Events + * const event = await prisma.event.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Events and only return the `id` + * const eventWithIdOnly = await prisma.event.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 Event. + * @param {EventUpsertArgs} args - Arguments to update or create a Event. + * @example + * // Update or create a Event + * const event = await prisma.event.upsert({ + * create: { + * // ... data to create a Event + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Event we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__EventClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Events. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EventCountArgs} args - Arguments to filter Events to count. + * @example + * // Count the number of Events + * const count = await prisma.event.count({ + * where: { + * // ... the filter for the Events 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 Event. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EventAggregateArgs} 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 Event. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EventGroupByArgs} 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 EventGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: EventGroupByArgs['orderBy'] } + : { orderBy?: EventGroupByArgs['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 ? GetEventGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Event model + */ +readonly fields: EventFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Event. + * 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__EventClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + project = {}>(args?: Prisma.Subset>): Prisma.Prisma__ProjectClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + memberships = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + invites = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + todos = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + eventGuests = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + eventVendors = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + registryItems = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + fileUploads = {}>(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 Event model + */ +export interface EventFieldRefs { + readonly id: Prisma.FieldRef<"Event", 'String'> + readonly slug: Prisma.FieldRef<"Event", 'String'> + readonly name: Prisma.FieldRef<"Event", 'String'> + readonly date: Prisma.FieldRef<"Event", 'DateTime'> + readonly notes: Prisma.FieldRef<"Event", 'String'> + readonly createdAt: Prisma.FieldRef<"Event", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Event", 'DateTime'> + readonly projectId: Prisma.FieldRef<"Event", 'String'> +} + + +// Custom InputTypes +/** + * Event findUnique + */ +export type EventFindUniqueArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelect | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventInclude | null + /** + * Filter, which Event to fetch. + */ + where: Prisma.EventWhereUniqueInput +} + +/** + * Event findUniqueOrThrow + */ +export type EventFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelect | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventInclude | null + /** + * Filter, which Event to fetch. + */ + where: Prisma.EventWhereUniqueInput +} + +/** + * Event findFirst + */ +export type EventFindFirstArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelect | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventInclude | null + /** + * Filter, which Event to fetch. + */ + where?: Prisma.EventWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Events to fetch. + */ + orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Events. + */ + cursor?: Prisma.EventWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Events 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` Events. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Events. + */ + distinct?: Prisma.EventScalarFieldEnum | Prisma.EventScalarFieldEnum[] +} + +/** + * Event findFirstOrThrow + */ +export type EventFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelect | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventInclude | null + /** + * Filter, which Event to fetch. + */ + where?: Prisma.EventWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Events to fetch. + */ + orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Events. + */ + cursor?: Prisma.EventWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Events 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` Events. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Events. + */ + distinct?: Prisma.EventScalarFieldEnum | Prisma.EventScalarFieldEnum[] +} + +/** + * Event findMany + */ +export type EventFindManyArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelect | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventInclude | null + /** + * Filter, which Events to fetch. + */ + where?: Prisma.EventWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Events to fetch. + */ + orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Events. + */ + cursor?: Prisma.EventWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Events 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` Events. + */ + skip?: number + distinct?: Prisma.EventScalarFieldEnum | Prisma.EventScalarFieldEnum[] +} + +/** + * Event create + */ +export type EventCreateArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelect | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventInclude | null + /** + * The data needed to create a Event. + */ + data: Prisma.XOR +} + +/** + * Event createMany + */ +export type EventCreateManyArgs = { + /** + * The data used to create many Events. + */ + data: Prisma.EventCreateManyInput | Prisma.EventCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Event createManyAndReturn + */ +export type EventCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * The data used to create many Events. + */ + data: Prisma.EventCreateManyInput | Prisma.EventCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventIncludeCreateManyAndReturn | null +} + +/** + * Event update + */ +export type EventUpdateArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelect | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventInclude | null + /** + * The data needed to update a Event. + */ + data: Prisma.XOR + /** + * Choose, which Event to update. + */ + where: Prisma.EventWhereUniqueInput +} + +/** + * Event updateMany + */ +export type EventUpdateManyArgs = { + /** + * The data used to update Events. + */ + data: Prisma.XOR + /** + * Filter which Events to update + */ + where?: Prisma.EventWhereInput + /** + * Limit how many Events to update. + */ + limit?: number +} + +/** + * Event updateManyAndReturn + */ +export type EventUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * The data used to update Events. + */ + data: Prisma.XOR + /** + * Filter which Events to update + */ + where?: Prisma.EventWhereInput + /** + * Limit how many Events to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventIncludeUpdateManyAndReturn | null +} + +/** + * Event upsert + */ +export type EventUpsertArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelect | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventInclude | null + /** + * The filter to search for the Event to update in case it exists. + */ + where: Prisma.EventWhereUniqueInput + /** + * In case the Event found by the `where` argument doesn't exist, create a new Event with this data. + */ + create: Prisma.XOR + /** + * In case the Event was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Event delete + */ +export type EventDeleteArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelect | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventInclude | null + /** + * Filter which Event to delete. + */ + where: Prisma.EventWhereUniqueInput +} + +/** + * Event deleteMany + */ +export type EventDeleteManyArgs = { + /** + * Filter which Events to delete + */ + where?: Prisma.EventWhereInput + /** + * Limit how many Events to delete. + */ + limit?: number +} + +/** + * Event.memberships + */ +export type Event$membershipsArgs = { + /** + * Select specific fields to fetch from the Membership + */ + select?: Prisma.MembershipSelect | null + /** + * Omit specific fields from the Membership + */ + omit?: Prisma.MembershipOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MembershipInclude | null + where?: Prisma.MembershipWhereInput + orderBy?: Prisma.MembershipOrderByWithRelationInput | Prisma.MembershipOrderByWithRelationInput[] + cursor?: Prisma.MembershipWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.MembershipScalarFieldEnum | Prisma.MembershipScalarFieldEnum[] +} + +/** + * Event.invites + */ +export type Event$invitesArgs = { + /** + * Select specific fields to fetch from the InviteToken + */ + select?: Prisma.InviteTokenSelect | null + /** + * Omit specific fields from the InviteToken + */ + omit?: Prisma.InviteTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteTokenInclude | null + where?: Prisma.InviteTokenWhereInput + orderBy?: Prisma.InviteTokenOrderByWithRelationInput | Prisma.InviteTokenOrderByWithRelationInput[] + cursor?: Prisma.InviteTokenWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.InviteTokenScalarFieldEnum | Prisma.InviteTokenScalarFieldEnum[] +} + +/** + * Event.todos + */ +export type Event$todosArgs = { + /** + * Select specific fields to fetch from the EventTodo + */ + select?: Prisma.EventTodoSelect | null + /** + * Omit specific fields from the EventTodo + */ + omit?: Prisma.EventTodoOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventTodoInclude | null + where?: Prisma.EventTodoWhereInput + orderBy?: Prisma.EventTodoOrderByWithRelationInput | Prisma.EventTodoOrderByWithRelationInput[] + cursor?: Prisma.EventTodoWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.EventTodoScalarFieldEnum | Prisma.EventTodoScalarFieldEnum[] +} + +/** + * Event.eventGuests + */ +export type Event$eventGuestsArgs = { + /** + * Select specific fields to fetch from the EventGuest + */ + select?: Prisma.EventGuestSelect | null + /** + * Omit specific fields from the EventGuest + */ + omit?: Prisma.EventGuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventGuestInclude | null + where?: Prisma.EventGuestWhereInput + orderBy?: Prisma.EventGuestOrderByWithRelationInput | Prisma.EventGuestOrderByWithRelationInput[] + cursor?: Prisma.EventGuestWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.EventGuestScalarFieldEnum | Prisma.EventGuestScalarFieldEnum[] +} + +/** + * Event.eventVendors + */ +export type Event$eventVendorsArgs = { + /** + * Select specific fields to fetch from the EventVendor + */ + select?: Prisma.EventVendorSelect | null + /** + * Omit specific fields from the EventVendor + */ + omit?: Prisma.EventVendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventVendorInclude | null + where?: Prisma.EventVendorWhereInput + orderBy?: Prisma.EventVendorOrderByWithRelationInput | Prisma.EventVendorOrderByWithRelationInput[] + cursor?: Prisma.EventVendorWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.EventVendorScalarFieldEnum | Prisma.EventVendorScalarFieldEnum[] +} + +/** + * Event.registryItems + */ +export type Event$registryItemsArgs = { + /** + * Select specific fields to fetch from the RegistryItem + */ + select?: Prisma.RegistryItemSelect | null + /** + * Omit specific fields from the RegistryItem + */ + omit?: Prisma.RegistryItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.RegistryItemInclude | null + where?: Prisma.RegistryItemWhereInput + orderBy?: Prisma.RegistryItemOrderByWithRelationInput | Prisma.RegistryItemOrderByWithRelationInput[] + cursor?: Prisma.RegistryItemWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.RegistryItemScalarFieldEnum | Prisma.RegistryItemScalarFieldEnum[] +} + +/** + * Event.fileUploads + */ +export type Event$fileUploadsArgs = { + /** + * Select specific fields to fetch from the FileUpload + */ + select?: Prisma.FileUploadSelect | null + /** + * Omit specific fields from the FileUpload + */ + omit?: Prisma.FileUploadOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FileUploadInclude | null + where?: Prisma.FileUploadWhereInput + orderBy?: Prisma.FileUploadOrderByWithRelationInput | Prisma.FileUploadOrderByWithRelationInput[] + cursor?: Prisma.FileUploadWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.FileUploadScalarFieldEnum | Prisma.FileUploadScalarFieldEnum[] +} + +/** + * Event without action + */ +export type EventDefaultArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelect | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventInclude | null +} diff --git a/src/lib/generated/prisma/models/EventGuest.ts b/src/lib/generated/prisma/models/EventGuest.ts new file mode 100644 index 0000000..55d8490 --- /dev/null +++ b/src/lib/generated/prisma/models/EventGuest.ts @@ -0,0 +1,1511 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `EventGuest` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/library" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model EventGuest + * + */ +export type EventGuestModel = runtime.Types.Result.DefaultSelection + +export type AggregateEventGuest = { + _count: EventGuestCountAggregateOutputType | null + _min: EventGuestMinAggregateOutputType | null + _max: EventGuestMaxAggregateOutputType | null +} + +export type EventGuestMinAggregateOutputType = { + id: string | null + rsvp: $Enums.RsvpStatus | null + respodedAt: Date | null + createdAt: Date | null + eventId: string | null + guestId: string | null +} + +export type EventGuestMaxAggregateOutputType = { + id: string | null + rsvp: $Enums.RsvpStatus | null + respodedAt: Date | null + createdAt: Date | null + eventId: string | null + guestId: string | null +} + +export type EventGuestCountAggregateOutputType = { + id: number + rsvp: number + respodedAt: number + createdAt: number + eventId: number + guestId: number + _all: number +} + + +export type EventGuestMinAggregateInputType = { + id?: true + rsvp?: true + respodedAt?: true + createdAt?: true + eventId?: true + guestId?: true +} + +export type EventGuestMaxAggregateInputType = { + id?: true + rsvp?: true + respodedAt?: true + createdAt?: true + eventId?: true + guestId?: true +} + +export type EventGuestCountAggregateInputType = { + id?: true + rsvp?: true + respodedAt?: true + createdAt?: true + eventId?: true + guestId?: true + _all?: true +} + +export type EventGuestAggregateArgs = { + /** + * Filter which EventGuest to aggregate. + */ + where?: Prisma.EventGuestWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of EventGuests to fetch. + */ + orderBy?: Prisma.EventGuestOrderByWithRelationInput | Prisma.EventGuestOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.EventGuestWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` EventGuests 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` EventGuests. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned EventGuests + **/ + _count?: true | EventGuestCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: EventGuestMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: EventGuestMaxAggregateInputType +} + +export type GetEventGuestAggregateType = { + [P in keyof T & keyof AggregateEventGuest]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type EventGuestGroupByArgs = { + where?: Prisma.EventGuestWhereInput + orderBy?: Prisma.EventGuestOrderByWithAggregationInput | Prisma.EventGuestOrderByWithAggregationInput[] + by: Prisma.EventGuestScalarFieldEnum[] | Prisma.EventGuestScalarFieldEnum + having?: Prisma.EventGuestScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: EventGuestCountAggregateInputType | true + _min?: EventGuestMinAggregateInputType + _max?: EventGuestMaxAggregateInputType +} + +export type EventGuestGroupByOutputType = { + id: string + rsvp: $Enums.RsvpStatus + respodedAt: Date | null + createdAt: Date + eventId: string + guestId: string + _count: EventGuestCountAggregateOutputType | null + _min: EventGuestMinAggregateOutputType | null + _max: EventGuestMaxAggregateOutputType | null +} + +type GetEventGuestGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof EventGuestGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type EventGuestWhereInput = { + AND?: Prisma.EventGuestWhereInput | Prisma.EventGuestWhereInput[] + OR?: Prisma.EventGuestWhereInput[] + NOT?: Prisma.EventGuestWhereInput | Prisma.EventGuestWhereInput[] + id?: Prisma.StringFilter<"EventGuest"> | string + rsvp?: Prisma.EnumRsvpStatusFilter<"EventGuest"> | $Enums.RsvpStatus + respodedAt?: Prisma.DateTimeNullableFilter<"EventGuest"> | Date | string | null + createdAt?: Prisma.DateTimeFilter<"EventGuest"> | Date | string + eventId?: Prisma.StringFilter<"EventGuest"> | string + guestId?: Prisma.StringFilter<"EventGuest"> | string + event?: Prisma.XOR + guest?: Prisma.XOR +} + +export type EventGuestOrderByWithRelationInput = { + id?: Prisma.SortOrder + rsvp?: Prisma.SortOrder + respodedAt?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder + guestId?: Prisma.SortOrder + event?: Prisma.EventOrderByWithRelationInput + guest?: Prisma.GuestOrderByWithRelationInput +} + +export type EventGuestWhereUniqueInput = Prisma.AtLeast<{ + id?: string + eventId_guestId?: Prisma.EventGuestEventIdGuestIdCompoundUniqueInput + AND?: Prisma.EventGuestWhereInput | Prisma.EventGuestWhereInput[] + OR?: Prisma.EventGuestWhereInput[] + NOT?: Prisma.EventGuestWhereInput | Prisma.EventGuestWhereInput[] + rsvp?: Prisma.EnumRsvpStatusFilter<"EventGuest"> | $Enums.RsvpStatus + respodedAt?: Prisma.DateTimeNullableFilter<"EventGuest"> | Date | string | null + createdAt?: Prisma.DateTimeFilter<"EventGuest"> | Date | string + eventId?: Prisma.StringFilter<"EventGuest"> | string + guestId?: Prisma.StringFilter<"EventGuest"> | string + event?: Prisma.XOR + guest?: Prisma.XOR +}, "id" | "eventId_guestId"> + +export type EventGuestOrderByWithAggregationInput = { + id?: Prisma.SortOrder + rsvp?: Prisma.SortOrder + respodedAt?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder + guestId?: Prisma.SortOrder + _count?: Prisma.EventGuestCountOrderByAggregateInput + _max?: Prisma.EventGuestMaxOrderByAggregateInput + _min?: Prisma.EventGuestMinOrderByAggregateInput +} + +export type EventGuestScalarWhereWithAggregatesInput = { + AND?: Prisma.EventGuestScalarWhereWithAggregatesInput | Prisma.EventGuestScalarWhereWithAggregatesInput[] + OR?: Prisma.EventGuestScalarWhereWithAggregatesInput[] + NOT?: Prisma.EventGuestScalarWhereWithAggregatesInput | Prisma.EventGuestScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"EventGuest"> | string + rsvp?: Prisma.EnumRsvpStatusWithAggregatesFilter<"EventGuest"> | $Enums.RsvpStatus + respodedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"EventGuest"> | Date | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<"EventGuest"> | Date | string + eventId?: Prisma.StringWithAggregatesFilter<"EventGuest"> | string + guestId?: Prisma.StringWithAggregatesFilter<"EventGuest"> | string +} + +export type EventGuestCreateInput = { + id?: string + rsvp?: $Enums.RsvpStatus + respodedAt?: Date | string | null + createdAt?: Date | string + event: Prisma.EventCreateNestedOneWithoutEventGuestsInput + guest: Prisma.GuestCreateNestedOneWithoutEventGuestInput +} + +export type EventGuestUncheckedCreateInput = { + id?: string + rsvp?: $Enums.RsvpStatus + respodedAt?: Date | string | null + createdAt?: Date | string + eventId: string + guestId: string +} + +export type EventGuestUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + rsvp?: Prisma.EnumRsvpStatusFieldUpdateOperationsInput | $Enums.RsvpStatus + respodedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + event?: Prisma.EventUpdateOneRequiredWithoutEventGuestsNestedInput + guest?: Prisma.GuestUpdateOneRequiredWithoutEventGuestNestedInput +} + +export type EventGuestUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + rsvp?: Prisma.EnumRsvpStatusFieldUpdateOperationsInput | $Enums.RsvpStatus + respodedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.StringFieldUpdateOperationsInput | string + guestId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type EventGuestCreateManyInput = { + id?: string + rsvp?: $Enums.RsvpStatus + respodedAt?: Date | string | null + createdAt?: Date | string + eventId: string + guestId: string +} + +export type EventGuestUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + rsvp?: Prisma.EnumRsvpStatusFieldUpdateOperationsInput | $Enums.RsvpStatus + respodedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type EventGuestUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + rsvp?: Prisma.EnumRsvpStatusFieldUpdateOperationsInput | $Enums.RsvpStatus + respodedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.StringFieldUpdateOperationsInput | string + guestId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type EventGuestListRelationFilter = { + every?: Prisma.EventGuestWhereInput + some?: Prisma.EventGuestWhereInput + none?: Prisma.EventGuestWhereInput +} + +export type EventGuestOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type EventGuestEventIdGuestIdCompoundUniqueInput = { + eventId: string + guestId: string +} + +export type EventGuestCountOrderByAggregateInput = { + id?: Prisma.SortOrder + rsvp?: Prisma.SortOrder + respodedAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder + guestId?: Prisma.SortOrder +} + +export type EventGuestMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + rsvp?: Prisma.SortOrder + respodedAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder + guestId?: Prisma.SortOrder +} + +export type EventGuestMinOrderByAggregateInput = { + id?: Prisma.SortOrder + rsvp?: Prisma.SortOrder + respodedAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder + guestId?: Prisma.SortOrder +} + +export type EventGuestCreateNestedManyWithoutEventInput = { + create?: Prisma.XOR | Prisma.EventGuestCreateWithoutEventInput[] | Prisma.EventGuestUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.EventGuestCreateOrConnectWithoutEventInput | Prisma.EventGuestCreateOrConnectWithoutEventInput[] + createMany?: Prisma.EventGuestCreateManyEventInputEnvelope + connect?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] +} + +export type EventGuestUncheckedCreateNestedManyWithoutEventInput = { + create?: Prisma.XOR | Prisma.EventGuestCreateWithoutEventInput[] | Prisma.EventGuestUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.EventGuestCreateOrConnectWithoutEventInput | Prisma.EventGuestCreateOrConnectWithoutEventInput[] + createMany?: Prisma.EventGuestCreateManyEventInputEnvelope + connect?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] +} + +export type EventGuestUpdateManyWithoutEventNestedInput = { + create?: Prisma.XOR | Prisma.EventGuestCreateWithoutEventInput[] | Prisma.EventGuestUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.EventGuestCreateOrConnectWithoutEventInput | Prisma.EventGuestCreateOrConnectWithoutEventInput[] + upsert?: Prisma.EventGuestUpsertWithWhereUniqueWithoutEventInput | Prisma.EventGuestUpsertWithWhereUniqueWithoutEventInput[] + createMany?: Prisma.EventGuestCreateManyEventInputEnvelope + set?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] + disconnect?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] + delete?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] + connect?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] + update?: Prisma.EventGuestUpdateWithWhereUniqueWithoutEventInput | Prisma.EventGuestUpdateWithWhereUniqueWithoutEventInput[] + updateMany?: Prisma.EventGuestUpdateManyWithWhereWithoutEventInput | Prisma.EventGuestUpdateManyWithWhereWithoutEventInput[] + deleteMany?: Prisma.EventGuestScalarWhereInput | Prisma.EventGuestScalarWhereInput[] +} + +export type EventGuestUncheckedUpdateManyWithoutEventNestedInput = { + create?: Prisma.XOR | Prisma.EventGuestCreateWithoutEventInput[] | Prisma.EventGuestUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.EventGuestCreateOrConnectWithoutEventInput | Prisma.EventGuestCreateOrConnectWithoutEventInput[] + upsert?: Prisma.EventGuestUpsertWithWhereUniqueWithoutEventInput | Prisma.EventGuestUpsertWithWhereUniqueWithoutEventInput[] + createMany?: Prisma.EventGuestCreateManyEventInputEnvelope + set?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] + disconnect?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] + delete?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] + connect?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] + update?: Prisma.EventGuestUpdateWithWhereUniqueWithoutEventInput | Prisma.EventGuestUpdateWithWhereUniqueWithoutEventInput[] + updateMany?: Prisma.EventGuestUpdateManyWithWhereWithoutEventInput | Prisma.EventGuestUpdateManyWithWhereWithoutEventInput[] + deleteMany?: Prisma.EventGuestScalarWhereInput | Prisma.EventGuestScalarWhereInput[] +} + +export type EventGuestCreateNestedManyWithoutGuestInput = { + create?: Prisma.XOR | Prisma.EventGuestCreateWithoutGuestInput[] | Prisma.EventGuestUncheckedCreateWithoutGuestInput[] + connectOrCreate?: Prisma.EventGuestCreateOrConnectWithoutGuestInput | Prisma.EventGuestCreateOrConnectWithoutGuestInput[] + createMany?: Prisma.EventGuestCreateManyGuestInputEnvelope + connect?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] +} + +export type EventGuestUncheckedCreateNestedManyWithoutGuestInput = { + create?: Prisma.XOR | Prisma.EventGuestCreateWithoutGuestInput[] | Prisma.EventGuestUncheckedCreateWithoutGuestInput[] + connectOrCreate?: Prisma.EventGuestCreateOrConnectWithoutGuestInput | Prisma.EventGuestCreateOrConnectWithoutGuestInput[] + createMany?: Prisma.EventGuestCreateManyGuestInputEnvelope + connect?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] +} + +export type EventGuestUpdateManyWithoutGuestNestedInput = { + create?: Prisma.XOR | Prisma.EventGuestCreateWithoutGuestInput[] | Prisma.EventGuestUncheckedCreateWithoutGuestInput[] + connectOrCreate?: Prisma.EventGuestCreateOrConnectWithoutGuestInput | Prisma.EventGuestCreateOrConnectWithoutGuestInput[] + upsert?: Prisma.EventGuestUpsertWithWhereUniqueWithoutGuestInput | Prisma.EventGuestUpsertWithWhereUniqueWithoutGuestInput[] + createMany?: Prisma.EventGuestCreateManyGuestInputEnvelope + set?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] + disconnect?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] + delete?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] + connect?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] + update?: Prisma.EventGuestUpdateWithWhereUniqueWithoutGuestInput | Prisma.EventGuestUpdateWithWhereUniqueWithoutGuestInput[] + updateMany?: Prisma.EventGuestUpdateManyWithWhereWithoutGuestInput | Prisma.EventGuestUpdateManyWithWhereWithoutGuestInput[] + deleteMany?: Prisma.EventGuestScalarWhereInput | Prisma.EventGuestScalarWhereInput[] +} + +export type EventGuestUncheckedUpdateManyWithoutGuestNestedInput = { + create?: Prisma.XOR | Prisma.EventGuestCreateWithoutGuestInput[] | Prisma.EventGuestUncheckedCreateWithoutGuestInput[] + connectOrCreate?: Prisma.EventGuestCreateOrConnectWithoutGuestInput | Prisma.EventGuestCreateOrConnectWithoutGuestInput[] + upsert?: Prisma.EventGuestUpsertWithWhereUniqueWithoutGuestInput | Prisma.EventGuestUpsertWithWhereUniqueWithoutGuestInput[] + createMany?: Prisma.EventGuestCreateManyGuestInputEnvelope + set?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] + disconnect?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] + delete?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] + connect?: Prisma.EventGuestWhereUniqueInput | Prisma.EventGuestWhereUniqueInput[] + update?: Prisma.EventGuestUpdateWithWhereUniqueWithoutGuestInput | Prisma.EventGuestUpdateWithWhereUniqueWithoutGuestInput[] + updateMany?: Prisma.EventGuestUpdateManyWithWhereWithoutGuestInput | Prisma.EventGuestUpdateManyWithWhereWithoutGuestInput[] + deleteMany?: Prisma.EventGuestScalarWhereInput | Prisma.EventGuestScalarWhereInput[] +} + +export type EnumRsvpStatusFieldUpdateOperationsInput = { + set?: $Enums.RsvpStatus +} + +export type EventGuestCreateWithoutEventInput = { + id?: string + rsvp?: $Enums.RsvpStatus + respodedAt?: Date | string | null + createdAt?: Date | string + guest: Prisma.GuestCreateNestedOneWithoutEventGuestInput +} + +export type EventGuestUncheckedCreateWithoutEventInput = { + id?: string + rsvp?: $Enums.RsvpStatus + respodedAt?: Date | string | null + createdAt?: Date | string + guestId: string +} + +export type EventGuestCreateOrConnectWithoutEventInput = { + where: Prisma.EventGuestWhereUniqueInput + create: Prisma.XOR +} + +export type EventGuestCreateManyEventInputEnvelope = { + data: Prisma.EventGuestCreateManyEventInput | Prisma.EventGuestCreateManyEventInput[] + skipDuplicates?: boolean +} + +export type EventGuestUpsertWithWhereUniqueWithoutEventInput = { + where: Prisma.EventGuestWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type EventGuestUpdateWithWhereUniqueWithoutEventInput = { + where: Prisma.EventGuestWhereUniqueInput + data: Prisma.XOR +} + +export type EventGuestUpdateManyWithWhereWithoutEventInput = { + where: Prisma.EventGuestScalarWhereInput + data: Prisma.XOR +} + +export type EventGuestScalarWhereInput = { + AND?: Prisma.EventGuestScalarWhereInput | Prisma.EventGuestScalarWhereInput[] + OR?: Prisma.EventGuestScalarWhereInput[] + NOT?: Prisma.EventGuestScalarWhereInput | Prisma.EventGuestScalarWhereInput[] + id?: Prisma.StringFilter<"EventGuest"> | string + rsvp?: Prisma.EnumRsvpStatusFilter<"EventGuest"> | $Enums.RsvpStatus + respodedAt?: Prisma.DateTimeNullableFilter<"EventGuest"> | Date | string | null + createdAt?: Prisma.DateTimeFilter<"EventGuest"> | Date | string + eventId?: Prisma.StringFilter<"EventGuest"> | string + guestId?: Prisma.StringFilter<"EventGuest"> | string +} + +export type EventGuestCreateWithoutGuestInput = { + id?: string + rsvp?: $Enums.RsvpStatus + respodedAt?: Date | string | null + createdAt?: Date | string + event: Prisma.EventCreateNestedOneWithoutEventGuestsInput +} + +export type EventGuestUncheckedCreateWithoutGuestInput = { + id?: string + rsvp?: $Enums.RsvpStatus + respodedAt?: Date | string | null + createdAt?: Date | string + eventId: string +} + +export type EventGuestCreateOrConnectWithoutGuestInput = { + where: Prisma.EventGuestWhereUniqueInput + create: Prisma.XOR +} + +export type EventGuestCreateManyGuestInputEnvelope = { + data: Prisma.EventGuestCreateManyGuestInput | Prisma.EventGuestCreateManyGuestInput[] + skipDuplicates?: boolean +} + +export type EventGuestUpsertWithWhereUniqueWithoutGuestInput = { + where: Prisma.EventGuestWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type EventGuestUpdateWithWhereUniqueWithoutGuestInput = { + where: Prisma.EventGuestWhereUniqueInput + data: Prisma.XOR +} + +export type EventGuestUpdateManyWithWhereWithoutGuestInput = { + where: Prisma.EventGuestScalarWhereInput + data: Prisma.XOR +} + +export type EventGuestCreateManyEventInput = { + id?: string + rsvp?: $Enums.RsvpStatus + respodedAt?: Date | string | null + createdAt?: Date | string + guestId: string +} + +export type EventGuestUpdateWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + rsvp?: Prisma.EnumRsvpStatusFieldUpdateOperationsInput | $Enums.RsvpStatus + respodedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + guest?: Prisma.GuestUpdateOneRequiredWithoutEventGuestNestedInput +} + +export type EventGuestUncheckedUpdateWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + rsvp?: Prisma.EnumRsvpStatusFieldUpdateOperationsInput | $Enums.RsvpStatus + respodedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + guestId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type EventGuestUncheckedUpdateManyWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + rsvp?: Prisma.EnumRsvpStatusFieldUpdateOperationsInput | $Enums.RsvpStatus + respodedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + guestId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type EventGuestCreateManyGuestInput = { + id?: string + rsvp?: $Enums.RsvpStatus + respodedAt?: Date | string | null + createdAt?: Date | string + eventId: string +} + +export type EventGuestUpdateWithoutGuestInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + rsvp?: Prisma.EnumRsvpStatusFieldUpdateOperationsInput | $Enums.RsvpStatus + respodedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + event?: Prisma.EventUpdateOneRequiredWithoutEventGuestsNestedInput +} + +export type EventGuestUncheckedUpdateWithoutGuestInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + rsvp?: Prisma.EnumRsvpStatusFieldUpdateOperationsInput | $Enums.RsvpStatus + respodedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type EventGuestUncheckedUpdateManyWithoutGuestInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + rsvp?: Prisma.EnumRsvpStatusFieldUpdateOperationsInput | $Enums.RsvpStatus + respodedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.StringFieldUpdateOperationsInput | string +} + + + +export type EventGuestSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + rsvp?: boolean + respodedAt?: boolean + createdAt?: boolean + eventId?: boolean + guestId?: boolean + event?: boolean | Prisma.EventDefaultArgs + guest?: boolean | Prisma.GuestDefaultArgs +}, ExtArgs["result"]["eventGuest"]> + +export type EventGuestSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + rsvp?: boolean + respodedAt?: boolean + createdAt?: boolean + eventId?: boolean + guestId?: boolean + event?: boolean | Prisma.EventDefaultArgs + guest?: boolean | Prisma.GuestDefaultArgs +}, ExtArgs["result"]["eventGuest"]> + +export type EventGuestSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + rsvp?: boolean + respodedAt?: boolean + createdAt?: boolean + eventId?: boolean + guestId?: boolean + event?: boolean | Prisma.EventDefaultArgs + guest?: boolean | Prisma.GuestDefaultArgs +}, ExtArgs["result"]["eventGuest"]> + +export type EventGuestSelectScalar = { + id?: boolean + rsvp?: boolean + respodedAt?: boolean + createdAt?: boolean + eventId?: boolean + guestId?: boolean +} + +export type EventGuestOmit = runtime.Types.Extensions.GetOmit<"id" | "rsvp" | "respodedAt" | "createdAt" | "eventId" | "guestId", ExtArgs["result"]["eventGuest"]> +export type EventGuestInclude = { + event?: boolean | Prisma.EventDefaultArgs + guest?: boolean | Prisma.GuestDefaultArgs +} +export type EventGuestIncludeCreateManyAndReturn = { + event?: boolean | Prisma.EventDefaultArgs + guest?: boolean | Prisma.GuestDefaultArgs +} +export type EventGuestIncludeUpdateManyAndReturn = { + event?: boolean | Prisma.EventDefaultArgs + guest?: boolean | Prisma.GuestDefaultArgs +} + +export type $EventGuestPayload = { + name: "EventGuest" + objects: { + event: Prisma.$EventPayload + guest: Prisma.$GuestPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + rsvp: $Enums.RsvpStatus + respodedAt: Date | null + createdAt: Date + eventId: string + guestId: string + }, ExtArgs["result"]["eventGuest"]> + composites: {} +} + +export type EventGuestGetPayload = runtime.Types.Result.GetResult + +export type EventGuestCountArgs = + Omit & { + select?: EventGuestCountAggregateInputType | true + } + +export interface EventGuestDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['EventGuest'], meta: { name: 'EventGuest' } } + /** + * Find zero or one EventGuest that matches the filter. + * @param {EventGuestFindUniqueArgs} args - Arguments to find a EventGuest + * @example + * // Get one EventGuest + * const eventGuest = await prisma.eventGuest.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__EventGuestClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one EventGuest that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {EventGuestFindUniqueOrThrowArgs} args - Arguments to find a EventGuest + * @example + * // Get one EventGuest + * const eventGuest = await prisma.eventGuest.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__EventGuestClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first EventGuest 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 {EventGuestFindFirstArgs} args - Arguments to find a EventGuest + * @example + * // Get one EventGuest + * const eventGuest = await prisma.eventGuest.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__EventGuestClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first EventGuest 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 {EventGuestFindFirstOrThrowArgs} args - Arguments to find a EventGuest + * @example + * // Get one EventGuest + * const eventGuest = await prisma.eventGuest.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__EventGuestClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more EventGuests 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 {EventGuestFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all EventGuests + * const eventGuests = await prisma.eventGuest.findMany() + * + * // Get first 10 EventGuests + * const eventGuests = await prisma.eventGuest.findMany({ take: 10 }) + * + * // Only select the `id` + * const eventGuestWithIdOnly = await prisma.eventGuest.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a EventGuest. + * @param {EventGuestCreateArgs} args - Arguments to create a EventGuest. + * @example + * // Create one EventGuest + * const EventGuest = await prisma.eventGuest.create({ + * data: { + * // ... data to create a EventGuest + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__EventGuestClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many EventGuests. + * @param {EventGuestCreateManyArgs} args - Arguments to create many EventGuests. + * @example + * // Create many EventGuests + * const eventGuest = await prisma.eventGuest.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many EventGuests and returns the data saved in the database. + * @param {EventGuestCreateManyAndReturnArgs} args - Arguments to create many EventGuests. + * @example + * // Create many EventGuests + * const eventGuest = await prisma.eventGuest.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many EventGuests and only return the `id` + * const eventGuestWithIdOnly = await prisma.eventGuest.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 EventGuest. + * @param {EventGuestDeleteArgs} args - Arguments to delete one EventGuest. + * @example + * // Delete one EventGuest + * const EventGuest = await prisma.eventGuest.delete({ + * where: { + * // ... filter to delete one EventGuest + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__EventGuestClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one EventGuest. + * @param {EventGuestUpdateArgs} args - Arguments to update one EventGuest. + * @example + * // Update one EventGuest + * const eventGuest = await prisma.eventGuest.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__EventGuestClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more EventGuests. + * @param {EventGuestDeleteManyArgs} args - Arguments to filter EventGuests to delete. + * @example + * // Delete a few EventGuests + * const { count } = await prisma.eventGuest.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more EventGuests. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EventGuestUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many EventGuests + * const eventGuest = await prisma.eventGuest.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more EventGuests and returns the data updated in the database. + * @param {EventGuestUpdateManyAndReturnArgs} args - Arguments to update many EventGuests. + * @example + * // Update many EventGuests + * const eventGuest = await prisma.eventGuest.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more EventGuests and only return the `id` + * const eventGuestWithIdOnly = await prisma.eventGuest.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 EventGuest. + * @param {EventGuestUpsertArgs} args - Arguments to update or create a EventGuest. + * @example + * // Update or create a EventGuest + * const eventGuest = await prisma.eventGuest.upsert({ + * create: { + * // ... data to create a EventGuest + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the EventGuest we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__EventGuestClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of EventGuests. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EventGuestCountArgs} args - Arguments to filter EventGuests to count. + * @example + * // Count the number of EventGuests + * const count = await prisma.eventGuest.count({ + * where: { + * // ... the filter for the EventGuests 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 EventGuest. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EventGuestAggregateArgs} 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 EventGuest. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EventGuestGroupByArgs} 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 EventGuestGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: EventGuestGroupByArgs['orderBy'] } + : { orderBy?: EventGuestGroupByArgs['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 ? GetEventGuestGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the EventGuest model + */ +readonly fields: EventGuestFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for EventGuest. + * 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__EventGuestClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + event = {}>(args?: Prisma.Subset>): Prisma.Prisma__EventClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + guest = {}>(args?: Prisma.Subset>): Prisma.Prisma__GuestClient, 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 EventGuest model + */ +export interface EventGuestFieldRefs { + readonly id: Prisma.FieldRef<"EventGuest", 'String'> + readonly rsvp: Prisma.FieldRef<"EventGuest", 'RsvpStatus'> + readonly respodedAt: Prisma.FieldRef<"EventGuest", 'DateTime'> + readonly createdAt: Prisma.FieldRef<"EventGuest", 'DateTime'> + readonly eventId: Prisma.FieldRef<"EventGuest", 'String'> + readonly guestId: Prisma.FieldRef<"EventGuest", 'String'> +} + + +// Custom InputTypes +/** + * EventGuest findUnique + */ +export type EventGuestFindUniqueArgs = { + /** + * Select specific fields to fetch from the EventGuest + */ + select?: Prisma.EventGuestSelect | null + /** + * Omit specific fields from the EventGuest + */ + omit?: Prisma.EventGuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventGuestInclude | null + /** + * Filter, which EventGuest to fetch. + */ + where: Prisma.EventGuestWhereUniqueInput +} + +/** + * EventGuest findUniqueOrThrow + */ +export type EventGuestFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the EventGuest + */ + select?: Prisma.EventGuestSelect | null + /** + * Omit specific fields from the EventGuest + */ + omit?: Prisma.EventGuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventGuestInclude | null + /** + * Filter, which EventGuest to fetch. + */ + where: Prisma.EventGuestWhereUniqueInput +} + +/** + * EventGuest findFirst + */ +export type EventGuestFindFirstArgs = { + /** + * Select specific fields to fetch from the EventGuest + */ + select?: Prisma.EventGuestSelect | null + /** + * Omit specific fields from the EventGuest + */ + omit?: Prisma.EventGuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventGuestInclude | null + /** + * Filter, which EventGuest to fetch. + */ + where?: Prisma.EventGuestWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of EventGuests to fetch. + */ + orderBy?: Prisma.EventGuestOrderByWithRelationInput | Prisma.EventGuestOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for EventGuests. + */ + cursor?: Prisma.EventGuestWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` EventGuests 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` EventGuests. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of EventGuests. + */ + distinct?: Prisma.EventGuestScalarFieldEnum | Prisma.EventGuestScalarFieldEnum[] +} + +/** + * EventGuest findFirstOrThrow + */ +export type EventGuestFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the EventGuest + */ + select?: Prisma.EventGuestSelect | null + /** + * Omit specific fields from the EventGuest + */ + omit?: Prisma.EventGuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventGuestInclude | null + /** + * Filter, which EventGuest to fetch. + */ + where?: Prisma.EventGuestWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of EventGuests to fetch. + */ + orderBy?: Prisma.EventGuestOrderByWithRelationInput | Prisma.EventGuestOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for EventGuests. + */ + cursor?: Prisma.EventGuestWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` EventGuests 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` EventGuests. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of EventGuests. + */ + distinct?: Prisma.EventGuestScalarFieldEnum | Prisma.EventGuestScalarFieldEnum[] +} + +/** + * EventGuest findMany + */ +export type EventGuestFindManyArgs = { + /** + * Select specific fields to fetch from the EventGuest + */ + select?: Prisma.EventGuestSelect | null + /** + * Omit specific fields from the EventGuest + */ + omit?: Prisma.EventGuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventGuestInclude | null + /** + * Filter, which EventGuests to fetch. + */ + where?: Prisma.EventGuestWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of EventGuests to fetch. + */ + orderBy?: Prisma.EventGuestOrderByWithRelationInput | Prisma.EventGuestOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing EventGuests. + */ + cursor?: Prisma.EventGuestWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` EventGuests 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` EventGuests. + */ + skip?: number + distinct?: Prisma.EventGuestScalarFieldEnum | Prisma.EventGuestScalarFieldEnum[] +} + +/** + * EventGuest create + */ +export type EventGuestCreateArgs = { + /** + * Select specific fields to fetch from the EventGuest + */ + select?: Prisma.EventGuestSelect | null + /** + * Omit specific fields from the EventGuest + */ + omit?: Prisma.EventGuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventGuestInclude | null + /** + * The data needed to create a EventGuest. + */ + data: Prisma.XOR +} + +/** + * EventGuest createMany + */ +export type EventGuestCreateManyArgs = { + /** + * The data used to create many EventGuests. + */ + data: Prisma.EventGuestCreateManyInput | Prisma.EventGuestCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * EventGuest createManyAndReturn + */ +export type EventGuestCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the EventGuest + */ + select?: Prisma.EventGuestSelectCreateManyAndReturn | null + /** + * Omit specific fields from the EventGuest + */ + omit?: Prisma.EventGuestOmit | null + /** + * The data used to create many EventGuests. + */ + data: Prisma.EventGuestCreateManyInput | Prisma.EventGuestCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventGuestIncludeCreateManyAndReturn | null +} + +/** + * EventGuest update + */ +export type EventGuestUpdateArgs = { + /** + * Select specific fields to fetch from the EventGuest + */ + select?: Prisma.EventGuestSelect | null + /** + * Omit specific fields from the EventGuest + */ + omit?: Prisma.EventGuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventGuestInclude | null + /** + * The data needed to update a EventGuest. + */ + data: Prisma.XOR + /** + * Choose, which EventGuest to update. + */ + where: Prisma.EventGuestWhereUniqueInput +} + +/** + * EventGuest updateMany + */ +export type EventGuestUpdateManyArgs = { + /** + * The data used to update EventGuests. + */ + data: Prisma.XOR + /** + * Filter which EventGuests to update + */ + where?: Prisma.EventGuestWhereInput + /** + * Limit how many EventGuests to update. + */ + limit?: number +} + +/** + * EventGuest updateManyAndReturn + */ +export type EventGuestUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the EventGuest + */ + select?: Prisma.EventGuestSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the EventGuest + */ + omit?: Prisma.EventGuestOmit | null + /** + * The data used to update EventGuests. + */ + data: Prisma.XOR + /** + * Filter which EventGuests to update + */ + where?: Prisma.EventGuestWhereInput + /** + * Limit how many EventGuests to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventGuestIncludeUpdateManyAndReturn | null +} + +/** + * EventGuest upsert + */ +export type EventGuestUpsertArgs = { + /** + * Select specific fields to fetch from the EventGuest + */ + select?: Prisma.EventGuestSelect | null + /** + * Omit specific fields from the EventGuest + */ + omit?: Prisma.EventGuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventGuestInclude | null + /** + * The filter to search for the EventGuest to update in case it exists. + */ + where: Prisma.EventGuestWhereUniqueInput + /** + * In case the EventGuest found by the `where` argument doesn't exist, create a new EventGuest with this data. + */ + create: Prisma.XOR + /** + * In case the EventGuest was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * EventGuest delete + */ +export type EventGuestDeleteArgs = { + /** + * Select specific fields to fetch from the EventGuest + */ + select?: Prisma.EventGuestSelect | null + /** + * Omit specific fields from the EventGuest + */ + omit?: Prisma.EventGuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventGuestInclude | null + /** + * Filter which EventGuest to delete. + */ + where: Prisma.EventGuestWhereUniqueInput +} + +/** + * EventGuest deleteMany + */ +export type EventGuestDeleteManyArgs = { + /** + * Filter which EventGuests to delete + */ + where?: Prisma.EventGuestWhereInput + /** + * Limit how many EventGuests to delete. + */ + limit?: number +} + +/** + * EventGuest without action + */ +export type EventGuestDefaultArgs = { + /** + * Select specific fields to fetch from the EventGuest + */ + select?: Prisma.EventGuestSelect | null + /** + * Omit specific fields from the EventGuest + */ + omit?: Prisma.EventGuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventGuestInclude | null +} diff --git a/src/lib/generated/prisma/models/EventTodo.ts b/src/lib/generated/prisma/models/EventTodo.ts new file mode 100644 index 0000000..9e8723a --- /dev/null +++ b/src/lib/generated/prisma/models/EventTodo.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 `EventTodo` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/library" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model EventTodo + * + */ +export type EventTodoModel = runtime.Types.Result.DefaultSelection + +export type AggregateEventTodo = { + _count: EventTodoCountAggregateOutputType | null + _min: EventTodoMinAggregateOutputType | null + _max: EventTodoMaxAggregateOutputType | null +} + +export type EventTodoMinAggregateOutputType = { + id: string | null + name: string | null + complete: boolean | null + dueDate: Date | null + notes: string | null + createdAt: Date | null + updatedAt: Date | null + eventId: string | null +} + +export type EventTodoMaxAggregateOutputType = { + id: string | null + name: string | null + complete: boolean | null + dueDate: Date | null + notes: string | null + createdAt: Date | null + updatedAt: Date | null + eventId: string | null +} + +export type EventTodoCountAggregateOutputType = { + id: number + name: number + complete: number + dueDate: number + notes: number + createdAt: number + updatedAt: number + eventId: number + _all: number +} + + +export type EventTodoMinAggregateInputType = { + id?: true + name?: true + complete?: true + dueDate?: true + notes?: true + createdAt?: true + updatedAt?: true + eventId?: true +} + +export type EventTodoMaxAggregateInputType = { + id?: true + name?: true + complete?: true + dueDate?: true + notes?: true + createdAt?: true + updatedAt?: true + eventId?: true +} + +export type EventTodoCountAggregateInputType = { + id?: true + name?: true + complete?: true + dueDate?: true + notes?: true + createdAt?: true + updatedAt?: true + eventId?: true + _all?: true +} + +export type EventTodoAggregateArgs = { + /** + * Filter which EventTodo to aggregate. + */ + where?: Prisma.EventTodoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of EventTodos to fetch. + */ + orderBy?: Prisma.EventTodoOrderByWithRelationInput | Prisma.EventTodoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.EventTodoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` EventTodos 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` EventTodos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned EventTodos + **/ + _count?: true | EventTodoCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: EventTodoMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: EventTodoMaxAggregateInputType +} + +export type GetEventTodoAggregateType = { + [P in keyof T & keyof AggregateEventTodo]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type EventTodoGroupByArgs = { + where?: Prisma.EventTodoWhereInput + orderBy?: Prisma.EventTodoOrderByWithAggregationInput | Prisma.EventTodoOrderByWithAggregationInput[] + by: Prisma.EventTodoScalarFieldEnum[] | Prisma.EventTodoScalarFieldEnum + having?: Prisma.EventTodoScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: EventTodoCountAggregateInputType | true + _min?: EventTodoMinAggregateInputType + _max?: EventTodoMaxAggregateInputType +} + +export type EventTodoGroupByOutputType = { + id: string + name: string + complete: boolean + dueDate: Date | null + notes: string | null + createdAt: Date + updatedAt: Date + eventId: string + _count: EventTodoCountAggregateOutputType | null + _min: EventTodoMinAggregateOutputType | null + _max: EventTodoMaxAggregateOutputType | null +} + +type GetEventTodoGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof EventTodoGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type EventTodoWhereInput = { + AND?: Prisma.EventTodoWhereInput | Prisma.EventTodoWhereInput[] + OR?: Prisma.EventTodoWhereInput[] + NOT?: Prisma.EventTodoWhereInput | Prisma.EventTodoWhereInput[] + id?: Prisma.StringFilter<"EventTodo"> | string + name?: Prisma.StringFilter<"EventTodo"> | string + complete?: Prisma.BoolFilter<"EventTodo"> | boolean + dueDate?: Prisma.DateTimeNullableFilter<"EventTodo"> | Date | string | null + notes?: Prisma.StringNullableFilter<"EventTodo"> | string | null + createdAt?: Prisma.DateTimeFilter<"EventTodo"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"EventTodo"> | Date | string + eventId?: Prisma.StringFilter<"EventTodo"> | string + event?: Prisma.XOR +} + +export type EventTodoOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + complete?: Prisma.SortOrder + dueDate?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder + event?: Prisma.EventOrderByWithRelationInput +} + +export type EventTodoWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.EventTodoWhereInput | Prisma.EventTodoWhereInput[] + OR?: Prisma.EventTodoWhereInput[] + NOT?: Prisma.EventTodoWhereInput | Prisma.EventTodoWhereInput[] + name?: Prisma.StringFilter<"EventTodo"> | string + complete?: Prisma.BoolFilter<"EventTodo"> | boolean + dueDate?: Prisma.DateTimeNullableFilter<"EventTodo"> | Date | string | null + notes?: Prisma.StringNullableFilter<"EventTodo"> | string | null + createdAt?: Prisma.DateTimeFilter<"EventTodo"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"EventTodo"> | Date | string + eventId?: Prisma.StringFilter<"EventTodo"> | string + event?: Prisma.XOR +}, "id"> + +export type EventTodoOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + complete?: Prisma.SortOrder + dueDate?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder + _count?: Prisma.EventTodoCountOrderByAggregateInput + _max?: Prisma.EventTodoMaxOrderByAggregateInput + _min?: Prisma.EventTodoMinOrderByAggregateInput +} + +export type EventTodoScalarWhereWithAggregatesInput = { + AND?: Prisma.EventTodoScalarWhereWithAggregatesInput | Prisma.EventTodoScalarWhereWithAggregatesInput[] + OR?: Prisma.EventTodoScalarWhereWithAggregatesInput[] + NOT?: Prisma.EventTodoScalarWhereWithAggregatesInput | Prisma.EventTodoScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"EventTodo"> | string + name?: Prisma.StringWithAggregatesFilter<"EventTodo"> | string + complete?: Prisma.BoolWithAggregatesFilter<"EventTodo"> | boolean + dueDate?: Prisma.DateTimeNullableWithAggregatesFilter<"EventTodo"> | Date | string | null + notes?: Prisma.StringNullableWithAggregatesFilter<"EventTodo"> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<"EventTodo"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"EventTodo"> | Date | string + eventId?: Prisma.StringWithAggregatesFilter<"EventTodo"> | string +} + +export type EventTodoCreateInput = { + id?: string + name: string + complete?: boolean + dueDate?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + event: Prisma.EventCreateNestedOneWithoutTodosInput +} + +export type EventTodoUncheckedCreateInput = { + id?: string + name: string + complete?: boolean + dueDate?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + eventId: string +} + +export type EventTodoUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + complete?: Prisma.BoolFieldUpdateOperationsInput | boolean + dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + event?: Prisma.EventUpdateOneRequiredWithoutTodosNestedInput +} + +export type EventTodoUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + complete?: Prisma.BoolFieldUpdateOperationsInput | boolean + dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type EventTodoCreateManyInput = { + id?: string + name: string + complete?: boolean + dueDate?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + eventId: string +} + +export type EventTodoUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + complete?: Prisma.BoolFieldUpdateOperationsInput | boolean + dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type EventTodoUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + complete?: Prisma.BoolFieldUpdateOperationsInput | boolean + dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type EventTodoListRelationFilter = { + every?: Prisma.EventTodoWhereInput + some?: Prisma.EventTodoWhereInput + none?: Prisma.EventTodoWhereInput +} + +export type EventTodoOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type EventTodoCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + complete?: Prisma.SortOrder + dueDate?: Prisma.SortOrder + notes?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder +} + +export type EventTodoMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + complete?: Prisma.SortOrder + dueDate?: Prisma.SortOrder + notes?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder +} + +export type EventTodoMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + complete?: Prisma.SortOrder + dueDate?: Prisma.SortOrder + notes?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder +} + +export type EventTodoCreateNestedManyWithoutEventInput = { + create?: Prisma.XOR | Prisma.EventTodoCreateWithoutEventInput[] | Prisma.EventTodoUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.EventTodoCreateOrConnectWithoutEventInput | Prisma.EventTodoCreateOrConnectWithoutEventInput[] + createMany?: Prisma.EventTodoCreateManyEventInputEnvelope + connect?: Prisma.EventTodoWhereUniqueInput | Prisma.EventTodoWhereUniqueInput[] +} + +export type EventTodoUncheckedCreateNestedManyWithoutEventInput = { + create?: Prisma.XOR | Prisma.EventTodoCreateWithoutEventInput[] | Prisma.EventTodoUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.EventTodoCreateOrConnectWithoutEventInput | Prisma.EventTodoCreateOrConnectWithoutEventInput[] + createMany?: Prisma.EventTodoCreateManyEventInputEnvelope + connect?: Prisma.EventTodoWhereUniqueInput | Prisma.EventTodoWhereUniqueInput[] +} + +export type EventTodoUpdateManyWithoutEventNestedInput = { + create?: Prisma.XOR | Prisma.EventTodoCreateWithoutEventInput[] | Prisma.EventTodoUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.EventTodoCreateOrConnectWithoutEventInput | Prisma.EventTodoCreateOrConnectWithoutEventInput[] + upsert?: Prisma.EventTodoUpsertWithWhereUniqueWithoutEventInput | Prisma.EventTodoUpsertWithWhereUniqueWithoutEventInput[] + createMany?: Prisma.EventTodoCreateManyEventInputEnvelope + set?: Prisma.EventTodoWhereUniqueInput | Prisma.EventTodoWhereUniqueInput[] + disconnect?: Prisma.EventTodoWhereUniqueInput | Prisma.EventTodoWhereUniqueInput[] + delete?: Prisma.EventTodoWhereUniqueInput | Prisma.EventTodoWhereUniqueInput[] + connect?: Prisma.EventTodoWhereUniqueInput | Prisma.EventTodoWhereUniqueInput[] + update?: Prisma.EventTodoUpdateWithWhereUniqueWithoutEventInput | Prisma.EventTodoUpdateWithWhereUniqueWithoutEventInput[] + updateMany?: Prisma.EventTodoUpdateManyWithWhereWithoutEventInput | Prisma.EventTodoUpdateManyWithWhereWithoutEventInput[] + deleteMany?: Prisma.EventTodoScalarWhereInput | Prisma.EventTodoScalarWhereInput[] +} + +export type EventTodoUncheckedUpdateManyWithoutEventNestedInput = { + create?: Prisma.XOR | Prisma.EventTodoCreateWithoutEventInput[] | Prisma.EventTodoUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.EventTodoCreateOrConnectWithoutEventInput | Prisma.EventTodoCreateOrConnectWithoutEventInput[] + upsert?: Prisma.EventTodoUpsertWithWhereUniqueWithoutEventInput | Prisma.EventTodoUpsertWithWhereUniqueWithoutEventInput[] + createMany?: Prisma.EventTodoCreateManyEventInputEnvelope + set?: Prisma.EventTodoWhereUniqueInput | Prisma.EventTodoWhereUniqueInput[] + disconnect?: Prisma.EventTodoWhereUniqueInput | Prisma.EventTodoWhereUniqueInput[] + delete?: Prisma.EventTodoWhereUniqueInput | Prisma.EventTodoWhereUniqueInput[] + connect?: Prisma.EventTodoWhereUniqueInput | Prisma.EventTodoWhereUniqueInput[] + update?: Prisma.EventTodoUpdateWithWhereUniqueWithoutEventInput | Prisma.EventTodoUpdateWithWhereUniqueWithoutEventInput[] + updateMany?: Prisma.EventTodoUpdateManyWithWhereWithoutEventInput | Prisma.EventTodoUpdateManyWithWhereWithoutEventInput[] + deleteMany?: Prisma.EventTodoScalarWhereInput | Prisma.EventTodoScalarWhereInput[] +} + +export type EventTodoCreateWithoutEventInput = { + id?: string + name: string + complete?: boolean + dueDate?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type EventTodoUncheckedCreateWithoutEventInput = { + id?: string + name: string + complete?: boolean + dueDate?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type EventTodoCreateOrConnectWithoutEventInput = { + where: Prisma.EventTodoWhereUniqueInput + create: Prisma.XOR +} + +export type EventTodoCreateManyEventInputEnvelope = { + data: Prisma.EventTodoCreateManyEventInput | Prisma.EventTodoCreateManyEventInput[] + skipDuplicates?: boolean +} + +export type EventTodoUpsertWithWhereUniqueWithoutEventInput = { + where: Prisma.EventTodoWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type EventTodoUpdateWithWhereUniqueWithoutEventInput = { + where: Prisma.EventTodoWhereUniqueInput + data: Prisma.XOR +} + +export type EventTodoUpdateManyWithWhereWithoutEventInput = { + where: Prisma.EventTodoScalarWhereInput + data: Prisma.XOR +} + +export type EventTodoScalarWhereInput = { + AND?: Prisma.EventTodoScalarWhereInput | Prisma.EventTodoScalarWhereInput[] + OR?: Prisma.EventTodoScalarWhereInput[] + NOT?: Prisma.EventTodoScalarWhereInput | Prisma.EventTodoScalarWhereInput[] + id?: Prisma.StringFilter<"EventTodo"> | string + name?: Prisma.StringFilter<"EventTodo"> | string + complete?: Prisma.BoolFilter<"EventTodo"> | boolean + dueDate?: Prisma.DateTimeNullableFilter<"EventTodo"> | Date | string | null + notes?: Prisma.StringNullableFilter<"EventTodo"> | string | null + createdAt?: Prisma.DateTimeFilter<"EventTodo"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"EventTodo"> | Date | string + eventId?: Prisma.StringFilter<"EventTodo"> | string +} + +export type EventTodoCreateManyEventInput = { + id?: string + name: string + complete?: boolean + dueDate?: Date | string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type EventTodoUpdateWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + complete?: Prisma.BoolFieldUpdateOperationsInput | boolean + dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type EventTodoUncheckedUpdateWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + complete?: Prisma.BoolFieldUpdateOperationsInput | boolean + dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type EventTodoUncheckedUpdateManyWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + complete?: Prisma.BoolFieldUpdateOperationsInput | boolean + dueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type EventTodoSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + complete?: boolean + dueDate?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + eventId?: boolean + event?: boolean | Prisma.EventDefaultArgs +}, ExtArgs["result"]["eventTodo"]> + +export type EventTodoSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + complete?: boolean + dueDate?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + eventId?: boolean + event?: boolean | Prisma.EventDefaultArgs +}, ExtArgs["result"]["eventTodo"]> + +export type EventTodoSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + complete?: boolean + dueDate?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + eventId?: boolean + event?: boolean | Prisma.EventDefaultArgs +}, ExtArgs["result"]["eventTodo"]> + +export type EventTodoSelectScalar = { + id?: boolean + name?: boolean + complete?: boolean + dueDate?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + eventId?: boolean +} + +export type EventTodoOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "complete" | "dueDate" | "notes" | "createdAt" | "updatedAt" | "eventId", ExtArgs["result"]["eventTodo"]> +export type EventTodoInclude = { + event?: boolean | Prisma.EventDefaultArgs +} +export type EventTodoIncludeCreateManyAndReturn = { + event?: boolean | Prisma.EventDefaultArgs +} +export type EventTodoIncludeUpdateManyAndReturn = { + event?: boolean | Prisma.EventDefaultArgs +} + +export type $EventTodoPayload = { + name: "EventTodo" + objects: { + event: Prisma.$EventPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + name: string + complete: boolean + dueDate: Date | null + notes: string | null + createdAt: Date + updatedAt: Date + eventId: string + }, ExtArgs["result"]["eventTodo"]> + composites: {} +} + +export type EventTodoGetPayload = runtime.Types.Result.GetResult + +export type EventTodoCountArgs = + Omit & { + select?: EventTodoCountAggregateInputType | true + } + +export interface EventTodoDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['EventTodo'], meta: { name: 'EventTodo' } } + /** + * Find zero or one EventTodo that matches the filter. + * @param {EventTodoFindUniqueArgs} args - Arguments to find a EventTodo + * @example + * // Get one EventTodo + * const eventTodo = await prisma.eventTodo.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__EventTodoClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one EventTodo that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {EventTodoFindUniqueOrThrowArgs} args - Arguments to find a EventTodo + * @example + * // Get one EventTodo + * const eventTodo = await prisma.eventTodo.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__EventTodoClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first EventTodo 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 {EventTodoFindFirstArgs} args - Arguments to find a EventTodo + * @example + * // Get one EventTodo + * const eventTodo = await prisma.eventTodo.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__EventTodoClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first EventTodo 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 {EventTodoFindFirstOrThrowArgs} args - Arguments to find a EventTodo + * @example + * // Get one EventTodo + * const eventTodo = await prisma.eventTodo.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__EventTodoClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more EventTodos 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 {EventTodoFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all EventTodos + * const eventTodos = await prisma.eventTodo.findMany() + * + * // Get first 10 EventTodos + * const eventTodos = await prisma.eventTodo.findMany({ take: 10 }) + * + * // Only select the `id` + * const eventTodoWithIdOnly = await prisma.eventTodo.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a EventTodo. + * @param {EventTodoCreateArgs} args - Arguments to create a EventTodo. + * @example + * // Create one EventTodo + * const EventTodo = await prisma.eventTodo.create({ + * data: { + * // ... data to create a EventTodo + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__EventTodoClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many EventTodos. + * @param {EventTodoCreateManyArgs} args - Arguments to create many EventTodos. + * @example + * // Create many EventTodos + * const eventTodo = await prisma.eventTodo.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many EventTodos and returns the data saved in the database. + * @param {EventTodoCreateManyAndReturnArgs} args - Arguments to create many EventTodos. + * @example + * // Create many EventTodos + * const eventTodo = await prisma.eventTodo.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many EventTodos and only return the `id` + * const eventTodoWithIdOnly = await prisma.eventTodo.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 EventTodo. + * @param {EventTodoDeleteArgs} args - Arguments to delete one EventTodo. + * @example + * // Delete one EventTodo + * const EventTodo = await prisma.eventTodo.delete({ + * where: { + * // ... filter to delete one EventTodo + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__EventTodoClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one EventTodo. + * @param {EventTodoUpdateArgs} args - Arguments to update one EventTodo. + * @example + * // Update one EventTodo + * const eventTodo = await prisma.eventTodo.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__EventTodoClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more EventTodos. + * @param {EventTodoDeleteManyArgs} args - Arguments to filter EventTodos to delete. + * @example + * // Delete a few EventTodos + * const { count } = await prisma.eventTodo.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more EventTodos. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EventTodoUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many EventTodos + * const eventTodo = await prisma.eventTodo.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more EventTodos and returns the data updated in the database. + * @param {EventTodoUpdateManyAndReturnArgs} args - Arguments to update many EventTodos. + * @example + * // Update many EventTodos + * const eventTodo = await prisma.eventTodo.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more EventTodos and only return the `id` + * const eventTodoWithIdOnly = await prisma.eventTodo.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 EventTodo. + * @param {EventTodoUpsertArgs} args - Arguments to update or create a EventTodo. + * @example + * // Update or create a EventTodo + * const eventTodo = await prisma.eventTodo.upsert({ + * create: { + * // ... data to create a EventTodo + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the EventTodo we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__EventTodoClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of EventTodos. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EventTodoCountArgs} args - Arguments to filter EventTodos to count. + * @example + * // Count the number of EventTodos + * const count = await prisma.eventTodo.count({ + * where: { + * // ... the filter for the EventTodos 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 EventTodo. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EventTodoAggregateArgs} 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 EventTodo. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EventTodoGroupByArgs} 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 EventTodoGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: EventTodoGroupByArgs['orderBy'] } + : { orderBy?: EventTodoGroupByArgs['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 ? GetEventTodoGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the EventTodo model + */ +readonly fields: EventTodoFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for EventTodo. + * 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__EventTodoClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + event = {}>(args?: Prisma.Subset>): Prisma.Prisma__EventClient, 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 EventTodo model + */ +export interface EventTodoFieldRefs { + readonly id: Prisma.FieldRef<"EventTodo", 'String'> + readonly name: Prisma.FieldRef<"EventTodo", 'String'> + readonly complete: Prisma.FieldRef<"EventTodo", 'Boolean'> + readonly dueDate: Prisma.FieldRef<"EventTodo", 'DateTime'> + readonly notes: Prisma.FieldRef<"EventTodo", 'String'> + readonly createdAt: Prisma.FieldRef<"EventTodo", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"EventTodo", 'DateTime'> + readonly eventId: Prisma.FieldRef<"EventTodo", 'String'> +} + + +// Custom InputTypes +/** + * EventTodo findUnique + */ +export type EventTodoFindUniqueArgs = { + /** + * Select specific fields to fetch from the EventTodo + */ + select?: Prisma.EventTodoSelect | null + /** + * Omit specific fields from the EventTodo + */ + omit?: Prisma.EventTodoOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventTodoInclude | null + /** + * Filter, which EventTodo to fetch. + */ + where: Prisma.EventTodoWhereUniqueInput +} + +/** + * EventTodo findUniqueOrThrow + */ +export type EventTodoFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the EventTodo + */ + select?: Prisma.EventTodoSelect | null + /** + * Omit specific fields from the EventTodo + */ + omit?: Prisma.EventTodoOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventTodoInclude | null + /** + * Filter, which EventTodo to fetch. + */ + where: Prisma.EventTodoWhereUniqueInput +} + +/** + * EventTodo findFirst + */ +export type EventTodoFindFirstArgs = { + /** + * Select specific fields to fetch from the EventTodo + */ + select?: Prisma.EventTodoSelect | null + /** + * Omit specific fields from the EventTodo + */ + omit?: Prisma.EventTodoOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventTodoInclude | null + /** + * Filter, which EventTodo to fetch. + */ + where?: Prisma.EventTodoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of EventTodos to fetch. + */ + orderBy?: Prisma.EventTodoOrderByWithRelationInput | Prisma.EventTodoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for EventTodos. + */ + cursor?: Prisma.EventTodoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` EventTodos 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` EventTodos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of EventTodos. + */ + distinct?: Prisma.EventTodoScalarFieldEnum | Prisma.EventTodoScalarFieldEnum[] +} + +/** + * EventTodo findFirstOrThrow + */ +export type EventTodoFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the EventTodo + */ + select?: Prisma.EventTodoSelect | null + /** + * Omit specific fields from the EventTodo + */ + omit?: Prisma.EventTodoOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventTodoInclude | null + /** + * Filter, which EventTodo to fetch. + */ + where?: Prisma.EventTodoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of EventTodos to fetch. + */ + orderBy?: Prisma.EventTodoOrderByWithRelationInput | Prisma.EventTodoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for EventTodos. + */ + cursor?: Prisma.EventTodoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` EventTodos 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` EventTodos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of EventTodos. + */ + distinct?: Prisma.EventTodoScalarFieldEnum | Prisma.EventTodoScalarFieldEnum[] +} + +/** + * EventTodo findMany + */ +export type EventTodoFindManyArgs = { + /** + * Select specific fields to fetch from the EventTodo + */ + select?: Prisma.EventTodoSelect | null + /** + * Omit specific fields from the EventTodo + */ + omit?: Prisma.EventTodoOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventTodoInclude | null + /** + * Filter, which EventTodos to fetch. + */ + where?: Prisma.EventTodoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of EventTodos to fetch. + */ + orderBy?: Prisma.EventTodoOrderByWithRelationInput | Prisma.EventTodoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing EventTodos. + */ + cursor?: Prisma.EventTodoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` EventTodos 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` EventTodos. + */ + skip?: number + distinct?: Prisma.EventTodoScalarFieldEnum | Prisma.EventTodoScalarFieldEnum[] +} + +/** + * EventTodo create + */ +export type EventTodoCreateArgs = { + /** + * Select specific fields to fetch from the EventTodo + */ + select?: Prisma.EventTodoSelect | null + /** + * Omit specific fields from the EventTodo + */ + omit?: Prisma.EventTodoOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventTodoInclude | null + /** + * The data needed to create a EventTodo. + */ + data: Prisma.XOR +} + +/** + * EventTodo createMany + */ +export type EventTodoCreateManyArgs = { + /** + * The data used to create many EventTodos. + */ + data: Prisma.EventTodoCreateManyInput | Prisma.EventTodoCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * EventTodo createManyAndReturn + */ +export type EventTodoCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the EventTodo + */ + select?: Prisma.EventTodoSelectCreateManyAndReturn | null + /** + * Omit specific fields from the EventTodo + */ + omit?: Prisma.EventTodoOmit | null + /** + * The data used to create many EventTodos. + */ + data: Prisma.EventTodoCreateManyInput | Prisma.EventTodoCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventTodoIncludeCreateManyAndReturn | null +} + +/** + * EventTodo update + */ +export type EventTodoUpdateArgs = { + /** + * Select specific fields to fetch from the EventTodo + */ + select?: Prisma.EventTodoSelect | null + /** + * Omit specific fields from the EventTodo + */ + omit?: Prisma.EventTodoOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventTodoInclude | null + /** + * The data needed to update a EventTodo. + */ + data: Prisma.XOR + /** + * Choose, which EventTodo to update. + */ + where: Prisma.EventTodoWhereUniqueInput +} + +/** + * EventTodo updateMany + */ +export type EventTodoUpdateManyArgs = { + /** + * The data used to update EventTodos. + */ + data: Prisma.XOR + /** + * Filter which EventTodos to update + */ + where?: Prisma.EventTodoWhereInput + /** + * Limit how many EventTodos to update. + */ + limit?: number +} + +/** + * EventTodo updateManyAndReturn + */ +export type EventTodoUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the EventTodo + */ + select?: Prisma.EventTodoSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the EventTodo + */ + omit?: Prisma.EventTodoOmit | null + /** + * The data used to update EventTodos. + */ + data: Prisma.XOR + /** + * Filter which EventTodos to update + */ + where?: Prisma.EventTodoWhereInput + /** + * Limit how many EventTodos to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventTodoIncludeUpdateManyAndReturn | null +} + +/** + * EventTodo upsert + */ +export type EventTodoUpsertArgs = { + /** + * Select specific fields to fetch from the EventTodo + */ + select?: Prisma.EventTodoSelect | null + /** + * Omit specific fields from the EventTodo + */ + omit?: Prisma.EventTodoOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventTodoInclude | null + /** + * The filter to search for the EventTodo to update in case it exists. + */ + where: Prisma.EventTodoWhereUniqueInput + /** + * In case the EventTodo found by the `where` argument doesn't exist, create a new EventTodo with this data. + */ + create: Prisma.XOR + /** + * In case the EventTodo was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * EventTodo delete + */ +export type EventTodoDeleteArgs = { + /** + * Select specific fields to fetch from the EventTodo + */ + select?: Prisma.EventTodoSelect | null + /** + * Omit specific fields from the EventTodo + */ + omit?: Prisma.EventTodoOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventTodoInclude | null + /** + * Filter which EventTodo to delete. + */ + where: Prisma.EventTodoWhereUniqueInput +} + +/** + * EventTodo deleteMany + */ +export type EventTodoDeleteManyArgs = { + /** + * Filter which EventTodos to delete + */ + where?: Prisma.EventTodoWhereInput + /** + * Limit how many EventTodos to delete. + */ + limit?: number +} + +/** + * EventTodo without action + */ +export type EventTodoDefaultArgs = { + /** + * Select specific fields to fetch from the EventTodo + */ + select?: Prisma.EventTodoSelect | null + /** + * Omit specific fields from the EventTodo + */ + omit?: Prisma.EventTodoOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventTodoInclude | null +} diff --git a/src/lib/generated/prisma/models/EventVendor.ts b/src/lib/generated/prisma/models/EventVendor.ts new file mode 100644 index 0000000..8adaa0b --- /dev/null +++ b/src/lib/generated/prisma/models/EventVendor.ts @@ -0,0 +1,2082 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `EventVendor` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/library" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model EventVendor + * + */ +export type EventVendorModel = runtime.Types.Result.DefaultSelection + +export type AggregateEventVendor = { + _count: EventVendorCountAggregateOutputType | null + _avg: EventVendorAvgAggregateOutputType | null + _sum: EventVendorSumAggregateOutputType | null + _min: EventVendorMinAggregateOutputType | null + _max: EventVendorMaxAggregateOutputType | null +} + +export type EventVendorAvgAggregateOutputType = { + quotedPrice: runtime.Decimal | null + finalCost: runtime.Decimal | null + depositPaid: runtime.Decimal | null +} + +export type EventVendorSumAggregateOutputType = { + quotedPrice: runtime.Decimal | null + finalCost: runtime.Decimal | null + depositPaid: runtime.Decimal | null +} + +export type EventVendorMinAggregateOutputType = { + id: string | null + status: $Enums.VendorStatus | null + bookedDate: Date | null + quotedPrice: runtime.Decimal | null + finalCost: runtime.Decimal | null + depositPaid: runtime.Decimal | null + depositDueDate: Date | null + finalPaymentDue: Date | null + paymentNotes: string | null + notes: string | null + createdAt: Date | null + updatedAt: Date | null + eventId: string | null + vendorId: string | null +} + +export type EventVendorMaxAggregateOutputType = { + id: string | null + status: $Enums.VendorStatus | null + bookedDate: Date | null + quotedPrice: runtime.Decimal | null + finalCost: runtime.Decimal | null + depositPaid: runtime.Decimal | null + depositDueDate: Date | null + finalPaymentDue: Date | null + paymentNotes: string | null + notes: string | null + createdAt: Date | null + updatedAt: Date | null + eventId: string | null + vendorId: string | null +} + +export type EventVendorCountAggregateOutputType = { + id: number + status: number + bookedDate: number + quotedPrice: number + finalCost: number + depositPaid: number + depositDueDate: number + finalPaymentDue: number + paymentNotes: number + notes: number + createdAt: number + updatedAt: number + eventId: number + vendorId: number + _all: number +} + + +export type EventVendorAvgAggregateInputType = { + quotedPrice?: true + finalCost?: true + depositPaid?: true +} + +export type EventVendorSumAggregateInputType = { + quotedPrice?: true + finalCost?: true + depositPaid?: true +} + +export type EventVendorMinAggregateInputType = { + id?: true + status?: true + bookedDate?: true + quotedPrice?: true + finalCost?: true + depositPaid?: true + depositDueDate?: true + finalPaymentDue?: true + paymentNotes?: true + notes?: true + createdAt?: true + updatedAt?: true + eventId?: true + vendorId?: true +} + +export type EventVendorMaxAggregateInputType = { + id?: true + status?: true + bookedDate?: true + quotedPrice?: true + finalCost?: true + depositPaid?: true + depositDueDate?: true + finalPaymentDue?: true + paymentNotes?: true + notes?: true + createdAt?: true + updatedAt?: true + eventId?: true + vendorId?: true +} + +export type EventVendorCountAggregateInputType = { + id?: true + status?: true + bookedDate?: true + quotedPrice?: true + finalCost?: true + depositPaid?: true + depositDueDate?: true + finalPaymentDue?: true + paymentNotes?: true + notes?: true + createdAt?: true + updatedAt?: true + eventId?: true + vendorId?: true + _all?: true +} + +export type EventVendorAggregateArgs = { + /** + * Filter which EventVendor to aggregate. + */ + where?: Prisma.EventVendorWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of EventVendors to fetch. + */ + orderBy?: Prisma.EventVendorOrderByWithRelationInput | Prisma.EventVendorOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.EventVendorWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` EventVendors 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` EventVendors. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned EventVendors + **/ + _count?: true | EventVendorCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: EventVendorAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: EventVendorSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: EventVendorMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: EventVendorMaxAggregateInputType +} + +export type GetEventVendorAggregateType = { + [P in keyof T & keyof AggregateEventVendor]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type EventVendorGroupByArgs = { + where?: Prisma.EventVendorWhereInput + orderBy?: Prisma.EventVendorOrderByWithAggregationInput | Prisma.EventVendorOrderByWithAggregationInput[] + by: Prisma.EventVendorScalarFieldEnum[] | Prisma.EventVendorScalarFieldEnum + having?: Prisma.EventVendorScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: EventVendorCountAggregateInputType | true + _avg?: EventVendorAvgAggregateInputType + _sum?: EventVendorSumAggregateInputType + _min?: EventVendorMinAggregateInputType + _max?: EventVendorMaxAggregateInputType +} + +export type EventVendorGroupByOutputType = { + id: string + status: $Enums.VendorStatus + bookedDate: Date | null + quotedPrice: runtime.Decimal | null + finalCost: runtime.Decimal | null + depositPaid: runtime.Decimal | null + depositDueDate: Date | null + finalPaymentDue: Date | null + paymentNotes: string | null + notes: string | null + createdAt: Date + updatedAt: Date + eventId: string + vendorId: string + _count: EventVendorCountAggregateOutputType | null + _avg: EventVendorAvgAggregateOutputType | null + _sum: EventVendorSumAggregateOutputType | null + _min: EventVendorMinAggregateOutputType | null + _max: EventVendorMaxAggregateOutputType | null +} + +type GetEventVendorGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof EventVendorGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type EventVendorWhereInput = { + AND?: Prisma.EventVendorWhereInput | Prisma.EventVendorWhereInput[] + OR?: Prisma.EventVendorWhereInput[] + NOT?: Prisma.EventVendorWhereInput | Prisma.EventVendorWhereInput[] + id?: Prisma.StringFilter<"EventVendor"> | string + status?: Prisma.EnumVendorStatusFilter<"EventVendor"> | $Enums.VendorStatus + bookedDate?: Prisma.DateTimeNullableFilter<"EventVendor"> | Date | string | null + quotedPrice?: Prisma.DecimalNullableFilter<"EventVendor"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: Prisma.DecimalNullableFilter<"EventVendor"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: Prisma.DecimalNullableFilter<"EventVendor"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Prisma.DateTimeNullableFilter<"EventVendor"> | Date | string | null + finalPaymentDue?: Prisma.DateTimeNullableFilter<"EventVendor"> | Date | string | null + paymentNotes?: Prisma.StringNullableFilter<"EventVendor"> | string | null + notes?: Prisma.StringNullableFilter<"EventVendor"> | string | null + createdAt?: Prisma.DateTimeFilter<"EventVendor"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"EventVendor"> | Date | string + eventId?: Prisma.StringFilter<"EventVendor"> | string + vendorId?: Prisma.StringFilter<"EventVendor"> | string + event?: Prisma.XOR + vendor?: Prisma.XOR + fileUploads?: Prisma.FileUploadListRelationFilter +} + +export type EventVendorOrderByWithRelationInput = { + id?: Prisma.SortOrder + status?: Prisma.SortOrder + bookedDate?: Prisma.SortOrderInput | Prisma.SortOrder + quotedPrice?: Prisma.SortOrderInput | Prisma.SortOrder + finalCost?: Prisma.SortOrderInput | Prisma.SortOrder + depositPaid?: Prisma.SortOrderInput | Prisma.SortOrder + depositDueDate?: Prisma.SortOrderInput | Prisma.SortOrder + finalPaymentDue?: Prisma.SortOrderInput | Prisma.SortOrder + paymentNotes?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder + vendorId?: Prisma.SortOrder + event?: Prisma.EventOrderByWithRelationInput + vendor?: Prisma.VendorOrderByWithRelationInput + fileUploads?: Prisma.FileUploadOrderByRelationAggregateInput +} + +export type EventVendorWhereUniqueInput = Prisma.AtLeast<{ + id?: string + vendorId_eventId?: Prisma.EventVendorVendorIdEventIdCompoundUniqueInput + AND?: Prisma.EventVendorWhereInput | Prisma.EventVendorWhereInput[] + OR?: Prisma.EventVendorWhereInput[] + NOT?: Prisma.EventVendorWhereInput | Prisma.EventVendorWhereInput[] + status?: Prisma.EnumVendorStatusFilter<"EventVendor"> | $Enums.VendorStatus + bookedDate?: Prisma.DateTimeNullableFilter<"EventVendor"> | Date | string | null + quotedPrice?: Prisma.DecimalNullableFilter<"EventVendor"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: Prisma.DecimalNullableFilter<"EventVendor"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: Prisma.DecimalNullableFilter<"EventVendor"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Prisma.DateTimeNullableFilter<"EventVendor"> | Date | string | null + finalPaymentDue?: Prisma.DateTimeNullableFilter<"EventVendor"> | Date | string | null + paymentNotes?: Prisma.StringNullableFilter<"EventVendor"> | string | null + notes?: Prisma.StringNullableFilter<"EventVendor"> | string | null + createdAt?: Prisma.DateTimeFilter<"EventVendor"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"EventVendor"> | Date | string + eventId?: Prisma.StringFilter<"EventVendor"> | string + vendorId?: Prisma.StringFilter<"EventVendor"> | string + event?: Prisma.XOR + vendor?: Prisma.XOR + fileUploads?: Prisma.FileUploadListRelationFilter +}, "id" | "vendorId_eventId"> + +export type EventVendorOrderByWithAggregationInput = { + id?: Prisma.SortOrder + status?: Prisma.SortOrder + bookedDate?: Prisma.SortOrderInput | Prisma.SortOrder + quotedPrice?: Prisma.SortOrderInput | Prisma.SortOrder + finalCost?: Prisma.SortOrderInput | Prisma.SortOrder + depositPaid?: Prisma.SortOrderInput | Prisma.SortOrder + depositDueDate?: Prisma.SortOrderInput | Prisma.SortOrder + finalPaymentDue?: Prisma.SortOrderInput | Prisma.SortOrder + paymentNotes?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder + vendorId?: Prisma.SortOrder + _count?: Prisma.EventVendorCountOrderByAggregateInput + _avg?: Prisma.EventVendorAvgOrderByAggregateInput + _max?: Prisma.EventVendorMaxOrderByAggregateInput + _min?: Prisma.EventVendorMinOrderByAggregateInput + _sum?: Prisma.EventVendorSumOrderByAggregateInput +} + +export type EventVendorScalarWhereWithAggregatesInput = { + AND?: Prisma.EventVendorScalarWhereWithAggregatesInput | Prisma.EventVendorScalarWhereWithAggregatesInput[] + OR?: Prisma.EventVendorScalarWhereWithAggregatesInput[] + NOT?: Prisma.EventVendorScalarWhereWithAggregatesInput | Prisma.EventVendorScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"EventVendor"> | string + status?: Prisma.EnumVendorStatusWithAggregatesFilter<"EventVendor"> | $Enums.VendorStatus + bookedDate?: Prisma.DateTimeNullableWithAggregatesFilter<"EventVendor"> | Date | string | null + quotedPrice?: Prisma.DecimalNullableWithAggregatesFilter<"EventVendor"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: Prisma.DecimalNullableWithAggregatesFilter<"EventVendor"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: Prisma.DecimalNullableWithAggregatesFilter<"EventVendor"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Prisma.DateTimeNullableWithAggregatesFilter<"EventVendor"> | Date | string | null + finalPaymentDue?: Prisma.DateTimeNullableWithAggregatesFilter<"EventVendor"> | Date | string | null + paymentNotes?: Prisma.StringNullableWithAggregatesFilter<"EventVendor"> | string | null + notes?: Prisma.StringNullableWithAggregatesFilter<"EventVendor"> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<"EventVendor"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"EventVendor"> | Date | string + eventId?: Prisma.StringWithAggregatesFilter<"EventVendor"> | string + vendorId?: Prisma.StringWithAggregatesFilter<"EventVendor"> | string +} + +export type EventVendorCreateInput = { + id?: string + status?: $Enums.VendorStatus + bookedDate?: Date | string | null + quotedPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Date | string | null + finalPaymentDue?: Date | string | null + paymentNotes?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + event: Prisma.EventCreateNestedOneWithoutEventVendorsInput + vendor: Prisma.VendorCreateNestedOneWithoutEventVendorsInput + fileUploads?: Prisma.FileUploadCreateNestedManyWithoutEventVendorInput +} + +export type EventVendorUncheckedCreateInput = { + id?: string + status?: $Enums.VendorStatus + bookedDate?: Date | string | null + quotedPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Date | string | null + finalPaymentDue?: Date | string | null + paymentNotes?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + eventId: string + vendorId: string + fileUploads?: Prisma.FileUploadUncheckedCreateNestedManyWithoutEventVendorInput +} + +export type EventVendorUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumVendorStatusFieldUpdateOperationsInput | $Enums.VendorStatus + bookedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quotedPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + finalPaymentDue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + paymentNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + event?: Prisma.EventUpdateOneRequiredWithoutEventVendorsNestedInput + vendor?: Prisma.VendorUpdateOneRequiredWithoutEventVendorsNestedInput + fileUploads?: Prisma.FileUploadUpdateManyWithoutEventVendorNestedInput +} + +export type EventVendorUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumVendorStatusFieldUpdateOperationsInput | $Enums.VendorStatus + bookedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quotedPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + finalPaymentDue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + paymentNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.StringFieldUpdateOperationsInput | string + vendorId?: Prisma.StringFieldUpdateOperationsInput | string + fileUploads?: Prisma.FileUploadUncheckedUpdateManyWithoutEventVendorNestedInput +} + +export type EventVendorCreateManyInput = { + id?: string + status?: $Enums.VendorStatus + bookedDate?: Date | string | null + quotedPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Date | string | null + finalPaymentDue?: Date | string | null + paymentNotes?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + eventId: string + vendorId: string +} + +export type EventVendorUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumVendorStatusFieldUpdateOperationsInput | $Enums.VendorStatus + bookedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quotedPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + finalPaymentDue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + paymentNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type EventVendorUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumVendorStatusFieldUpdateOperationsInput | $Enums.VendorStatus + bookedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quotedPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + finalPaymentDue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + paymentNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.StringFieldUpdateOperationsInput | string + vendorId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type EventVendorListRelationFilter = { + every?: Prisma.EventVendorWhereInput + some?: Prisma.EventVendorWhereInput + none?: Prisma.EventVendorWhereInput +} + +export type EventVendorOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type EventVendorVendorIdEventIdCompoundUniqueInput = { + vendorId: string + eventId: string +} + +export type EventVendorCountOrderByAggregateInput = { + id?: Prisma.SortOrder + status?: Prisma.SortOrder + bookedDate?: Prisma.SortOrder + quotedPrice?: Prisma.SortOrder + finalCost?: Prisma.SortOrder + depositPaid?: Prisma.SortOrder + depositDueDate?: Prisma.SortOrder + finalPaymentDue?: Prisma.SortOrder + paymentNotes?: Prisma.SortOrder + notes?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder + vendorId?: Prisma.SortOrder +} + +export type EventVendorAvgOrderByAggregateInput = { + quotedPrice?: Prisma.SortOrder + finalCost?: Prisma.SortOrder + depositPaid?: Prisma.SortOrder +} + +export type EventVendorMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + status?: Prisma.SortOrder + bookedDate?: Prisma.SortOrder + quotedPrice?: Prisma.SortOrder + finalCost?: Prisma.SortOrder + depositPaid?: Prisma.SortOrder + depositDueDate?: Prisma.SortOrder + finalPaymentDue?: Prisma.SortOrder + paymentNotes?: Prisma.SortOrder + notes?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder + vendorId?: Prisma.SortOrder +} + +export type EventVendorMinOrderByAggregateInput = { + id?: Prisma.SortOrder + status?: Prisma.SortOrder + bookedDate?: Prisma.SortOrder + quotedPrice?: Prisma.SortOrder + finalCost?: Prisma.SortOrder + depositPaid?: Prisma.SortOrder + depositDueDate?: Prisma.SortOrder + finalPaymentDue?: Prisma.SortOrder + paymentNotes?: Prisma.SortOrder + notes?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder + vendorId?: Prisma.SortOrder +} + +export type EventVendorSumOrderByAggregateInput = { + quotedPrice?: Prisma.SortOrder + finalCost?: Prisma.SortOrder + depositPaid?: Prisma.SortOrder +} + +export type EventVendorNullableScalarRelationFilter = { + is?: Prisma.EventVendorWhereInput | null + isNot?: Prisma.EventVendorWhereInput | null +} + +export type EventVendorCreateNestedManyWithoutEventInput = { + create?: Prisma.XOR | Prisma.EventVendorCreateWithoutEventInput[] | Prisma.EventVendorUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.EventVendorCreateOrConnectWithoutEventInput | Prisma.EventVendorCreateOrConnectWithoutEventInput[] + createMany?: Prisma.EventVendorCreateManyEventInputEnvelope + connect?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] +} + +export type EventVendorUncheckedCreateNestedManyWithoutEventInput = { + create?: Prisma.XOR | Prisma.EventVendorCreateWithoutEventInput[] | Prisma.EventVendorUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.EventVendorCreateOrConnectWithoutEventInput | Prisma.EventVendorCreateOrConnectWithoutEventInput[] + createMany?: Prisma.EventVendorCreateManyEventInputEnvelope + connect?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] +} + +export type EventVendorUpdateManyWithoutEventNestedInput = { + create?: Prisma.XOR | Prisma.EventVendorCreateWithoutEventInput[] | Prisma.EventVendorUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.EventVendorCreateOrConnectWithoutEventInput | Prisma.EventVendorCreateOrConnectWithoutEventInput[] + upsert?: Prisma.EventVendorUpsertWithWhereUniqueWithoutEventInput | Prisma.EventVendorUpsertWithWhereUniqueWithoutEventInput[] + createMany?: Prisma.EventVendorCreateManyEventInputEnvelope + set?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] + disconnect?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] + delete?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] + connect?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] + update?: Prisma.EventVendorUpdateWithWhereUniqueWithoutEventInput | Prisma.EventVendorUpdateWithWhereUniqueWithoutEventInput[] + updateMany?: Prisma.EventVendorUpdateManyWithWhereWithoutEventInput | Prisma.EventVendorUpdateManyWithWhereWithoutEventInput[] + deleteMany?: Prisma.EventVendorScalarWhereInput | Prisma.EventVendorScalarWhereInput[] +} + +export type EventVendorUncheckedUpdateManyWithoutEventNestedInput = { + create?: Prisma.XOR | Prisma.EventVendorCreateWithoutEventInput[] | Prisma.EventVendorUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.EventVendorCreateOrConnectWithoutEventInput | Prisma.EventVendorCreateOrConnectWithoutEventInput[] + upsert?: Prisma.EventVendorUpsertWithWhereUniqueWithoutEventInput | Prisma.EventVendorUpsertWithWhereUniqueWithoutEventInput[] + createMany?: Prisma.EventVendorCreateManyEventInputEnvelope + set?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] + disconnect?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] + delete?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] + connect?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] + update?: Prisma.EventVendorUpdateWithWhereUniqueWithoutEventInput | Prisma.EventVendorUpdateWithWhereUniqueWithoutEventInput[] + updateMany?: Prisma.EventVendorUpdateManyWithWhereWithoutEventInput | Prisma.EventVendorUpdateManyWithWhereWithoutEventInput[] + deleteMany?: Prisma.EventVendorScalarWhereInput | Prisma.EventVendorScalarWhereInput[] +} + +export type EventVendorCreateNestedManyWithoutVendorInput = { + create?: Prisma.XOR | Prisma.EventVendorCreateWithoutVendorInput[] | Prisma.EventVendorUncheckedCreateWithoutVendorInput[] + connectOrCreate?: Prisma.EventVendorCreateOrConnectWithoutVendorInput | Prisma.EventVendorCreateOrConnectWithoutVendorInput[] + createMany?: Prisma.EventVendorCreateManyVendorInputEnvelope + connect?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] +} + +export type EventVendorUncheckedCreateNestedManyWithoutVendorInput = { + create?: Prisma.XOR | Prisma.EventVendorCreateWithoutVendorInput[] | Prisma.EventVendorUncheckedCreateWithoutVendorInput[] + connectOrCreate?: Prisma.EventVendorCreateOrConnectWithoutVendorInput | Prisma.EventVendorCreateOrConnectWithoutVendorInput[] + createMany?: Prisma.EventVendorCreateManyVendorInputEnvelope + connect?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] +} + +export type EventVendorUpdateManyWithoutVendorNestedInput = { + create?: Prisma.XOR | Prisma.EventVendorCreateWithoutVendorInput[] | Prisma.EventVendorUncheckedCreateWithoutVendorInput[] + connectOrCreate?: Prisma.EventVendorCreateOrConnectWithoutVendorInput | Prisma.EventVendorCreateOrConnectWithoutVendorInput[] + upsert?: Prisma.EventVendorUpsertWithWhereUniqueWithoutVendorInput | Prisma.EventVendorUpsertWithWhereUniqueWithoutVendorInput[] + createMany?: Prisma.EventVendorCreateManyVendorInputEnvelope + set?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] + disconnect?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] + delete?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] + connect?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] + update?: Prisma.EventVendorUpdateWithWhereUniqueWithoutVendorInput | Prisma.EventVendorUpdateWithWhereUniqueWithoutVendorInput[] + updateMany?: Prisma.EventVendorUpdateManyWithWhereWithoutVendorInput | Prisma.EventVendorUpdateManyWithWhereWithoutVendorInput[] + deleteMany?: Prisma.EventVendorScalarWhereInput | Prisma.EventVendorScalarWhereInput[] +} + +export type EventVendorUncheckedUpdateManyWithoutVendorNestedInput = { + create?: Prisma.XOR | Prisma.EventVendorCreateWithoutVendorInput[] | Prisma.EventVendorUncheckedCreateWithoutVendorInput[] + connectOrCreate?: Prisma.EventVendorCreateOrConnectWithoutVendorInput | Prisma.EventVendorCreateOrConnectWithoutVendorInput[] + upsert?: Prisma.EventVendorUpsertWithWhereUniqueWithoutVendorInput | Prisma.EventVendorUpsertWithWhereUniqueWithoutVendorInput[] + createMany?: Prisma.EventVendorCreateManyVendorInputEnvelope + set?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] + disconnect?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] + delete?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] + connect?: Prisma.EventVendorWhereUniqueInput | Prisma.EventVendorWhereUniqueInput[] + update?: Prisma.EventVendorUpdateWithWhereUniqueWithoutVendorInput | Prisma.EventVendorUpdateWithWhereUniqueWithoutVendorInput[] + updateMany?: Prisma.EventVendorUpdateManyWithWhereWithoutVendorInput | Prisma.EventVendorUpdateManyWithWhereWithoutVendorInput[] + deleteMany?: Prisma.EventVendorScalarWhereInput | Prisma.EventVendorScalarWhereInput[] +} + +export type EnumVendorStatusFieldUpdateOperationsInput = { + set?: $Enums.VendorStatus +} + +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 EventVendorCreateNestedOneWithoutFileUploadsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EventVendorCreateOrConnectWithoutFileUploadsInput + connect?: Prisma.EventVendorWhereUniqueInput +} + +export type EventVendorUpdateOneWithoutFileUploadsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EventVendorCreateOrConnectWithoutFileUploadsInput + upsert?: Prisma.EventVendorUpsertWithoutFileUploadsInput + disconnect?: Prisma.EventVendorWhereInput | boolean + delete?: Prisma.EventVendorWhereInput | boolean + connect?: Prisma.EventVendorWhereUniqueInput + update?: Prisma.XOR, Prisma.EventVendorUncheckedUpdateWithoutFileUploadsInput> +} + +export type EventVendorCreateWithoutEventInput = { + id?: string + status?: $Enums.VendorStatus + bookedDate?: Date | string | null + quotedPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Date | string | null + finalPaymentDue?: Date | string | null + paymentNotes?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + vendor: Prisma.VendorCreateNestedOneWithoutEventVendorsInput + fileUploads?: Prisma.FileUploadCreateNestedManyWithoutEventVendorInput +} + +export type EventVendorUncheckedCreateWithoutEventInput = { + id?: string + status?: $Enums.VendorStatus + bookedDate?: Date | string | null + quotedPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Date | string | null + finalPaymentDue?: Date | string | null + paymentNotes?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + vendorId: string + fileUploads?: Prisma.FileUploadUncheckedCreateNestedManyWithoutEventVendorInput +} + +export type EventVendorCreateOrConnectWithoutEventInput = { + where: Prisma.EventVendorWhereUniqueInput + create: Prisma.XOR +} + +export type EventVendorCreateManyEventInputEnvelope = { + data: Prisma.EventVendorCreateManyEventInput | Prisma.EventVendorCreateManyEventInput[] + skipDuplicates?: boolean +} + +export type EventVendorUpsertWithWhereUniqueWithoutEventInput = { + where: Prisma.EventVendorWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type EventVendorUpdateWithWhereUniqueWithoutEventInput = { + where: Prisma.EventVendorWhereUniqueInput + data: Prisma.XOR +} + +export type EventVendorUpdateManyWithWhereWithoutEventInput = { + where: Prisma.EventVendorScalarWhereInput + data: Prisma.XOR +} + +export type EventVendorScalarWhereInput = { + AND?: Prisma.EventVendorScalarWhereInput | Prisma.EventVendorScalarWhereInput[] + OR?: Prisma.EventVendorScalarWhereInput[] + NOT?: Prisma.EventVendorScalarWhereInput | Prisma.EventVendorScalarWhereInput[] + id?: Prisma.StringFilter<"EventVendor"> | string + status?: Prisma.EnumVendorStatusFilter<"EventVendor"> | $Enums.VendorStatus + bookedDate?: Prisma.DateTimeNullableFilter<"EventVendor"> | Date | string | null + quotedPrice?: Prisma.DecimalNullableFilter<"EventVendor"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: Prisma.DecimalNullableFilter<"EventVendor"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: Prisma.DecimalNullableFilter<"EventVendor"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Prisma.DateTimeNullableFilter<"EventVendor"> | Date | string | null + finalPaymentDue?: Prisma.DateTimeNullableFilter<"EventVendor"> | Date | string | null + paymentNotes?: Prisma.StringNullableFilter<"EventVendor"> | string | null + notes?: Prisma.StringNullableFilter<"EventVendor"> | string | null + createdAt?: Prisma.DateTimeFilter<"EventVendor"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"EventVendor"> | Date | string + eventId?: Prisma.StringFilter<"EventVendor"> | string + vendorId?: Prisma.StringFilter<"EventVendor"> | string +} + +export type EventVendorCreateWithoutVendorInput = { + id?: string + status?: $Enums.VendorStatus + bookedDate?: Date | string | null + quotedPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Date | string | null + finalPaymentDue?: Date | string | null + paymentNotes?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + event: Prisma.EventCreateNestedOneWithoutEventVendorsInput + fileUploads?: Prisma.FileUploadCreateNestedManyWithoutEventVendorInput +} + +export type EventVendorUncheckedCreateWithoutVendorInput = { + id?: string + status?: $Enums.VendorStatus + bookedDate?: Date | string | null + quotedPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Date | string | null + finalPaymentDue?: Date | string | null + paymentNotes?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + eventId: string + fileUploads?: Prisma.FileUploadUncheckedCreateNestedManyWithoutEventVendorInput +} + +export type EventVendorCreateOrConnectWithoutVendorInput = { + where: Prisma.EventVendorWhereUniqueInput + create: Prisma.XOR +} + +export type EventVendorCreateManyVendorInputEnvelope = { + data: Prisma.EventVendorCreateManyVendorInput | Prisma.EventVendorCreateManyVendorInput[] + skipDuplicates?: boolean +} + +export type EventVendorUpsertWithWhereUniqueWithoutVendorInput = { + where: Prisma.EventVendorWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type EventVendorUpdateWithWhereUniqueWithoutVendorInput = { + where: Prisma.EventVendorWhereUniqueInput + data: Prisma.XOR +} + +export type EventVendorUpdateManyWithWhereWithoutVendorInput = { + where: Prisma.EventVendorScalarWhereInput + data: Prisma.XOR +} + +export type EventVendorCreateWithoutFileUploadsInput = { + id?: string + status?: $Enums.VendorStatus + bookedDate?: Date | string | null + quotedPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Date | string | null + finalPaymentDue?: Date | string | null + paymentNotes?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + event: Prisma.EventCreateNestedOneWithoutEventVendorsInput + vendor: Prisma.VendorCreateNestedOneWithoutEventVendorsInput +} + +export type EventVendorUncheckedCreateWithoutFileUploadsInput = { + id?: string + status?: $Enums.VendorStatus + bookedDate?: Date | string | null + quotedPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Date | string | null + finalPaymentDue?: Date | string | null + paymentNotes?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + eventId: string + vendorId: string +} + +export type EventVendorCreateOrConnectWithoutFileUploadsInput = { + where: Prisma.EventVendorWhereUniqueInput + create: Prisma.XOR +} + +export type EventVendorUpsertWithoutFileUploadsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.EventVendorWhereInput +} + +export type EventVendorUpdateToOneWithWhereWithoutFileUploadsInput = { + where?: Prisma.EventVendorWhereInput + data: Prisma.XOR +} + +export type EventVendorUpdateWithoutFileUploadsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumVendorStatusFieldUpdateOperationsInput | $Enums.VendorStatus + bookedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quotedPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + finalPaymentDue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + paymentNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + event?: Prisma.EventUpdateOneRequiredWithoutEventVendorsNestedInput + vendor?: Prisma.VendorUpdateOneRequiredWithoutEventVendorsNestedInput +} + +export type EventVendorUncheckedUpdateWithoutFileUploadsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumVendorStatusFieldUpdateOperationsInput | $Enums.VendorStatus + bookedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quotedPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + finalPaymentDue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + paymentNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.StringFieldUpdateOperationsInput | string + vendorId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type EventVendorCreateManyEventInput = { + id?: string + status?: $Enums.VendorStatus + bookedDate?: Date | string | null + quotedPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Date | string | null + finalPaymentDue?: Date | string | null + paymentNotes?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + vendorId: string +} + +export type EventVendorUpdateWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumVendorStatusFieldUpdateOperationsInput | $Enums.VendorStatus + bookedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quotedPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + finalPaymentDue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + paymentNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + vendor?: Prisma.VendorUpdateOneRequiredWithoutEventVendorsNestedInput + fileUploads?: Prisma.FileUploadUpdateManyWithoutEventVendorNestedInput +} + +export type EventVendorUncheckedUpdateWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumVendorStatusFieldUpdateOperationsInput | $Enums.VendorStatus + bookedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quotedPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + finalPaymentDue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + paymentNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + vendorId?: Prisma.StringFieldUpdateOperationsInput | string + fileUploads?: Prisma.FileUploadUncheckedUpdateManyWithoutEventVendorNestedInput +} + +export type EventVendorUncheckedUpdateManyWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumVendorStatusFieldUpdateOperationsInput | $Enums.VendorStatus + bookedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quotedPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + finalPaymentDue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + paymentNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + vendorId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type EventVendorCreateManyVendorInput = { + id?: string + status?: $Enums.VendorStatus + bookedDate?: Date | string | null + quotedPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Date | string | null + finalPaymentDue?: Date | string | null + paymentNotes?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + eventId: string +} + +export type EventVendorUpdateWithoutVendorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumVendorStatusFieldUpdateOperationsInput | $Enums.VendorStatus + bookedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quotedPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + finalPaymentDue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + paymentNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + event?: Prisma.EventUpdateOneRequiredWithoutEventVendorsNestedInput + fileUploads?: Prisma.FileUploadUpdateManyWithoutEventVendorNestedInput +} + +export type EventVendorUncheckedUpdateWithoutVendorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumVendorStatusFieldUpdateOperationsInput | $Enums.VendorStatus + bookedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quotedPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + finalPaymentDue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + paymentNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.StringFieldUpdateOperationsInput | string + fileUploads?: Prisma.FileUploadUncheckedUpdateManyWithoutEventVendorNestedInput +} + +export type EventVendorUncheckedUpdateManyWithoutVendorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumVendorStatusFieldUpdateOperationsInput | $Enums.VendorStatus + bookedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + quotedPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + finalCost?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositPaid?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + depositDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + finalPaymentDue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + paymentNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.StringFieldUpdateOperationsInput | string +} + + +/** + * Count Type EventVendorCountOutputType + */ + +export type EventVendorCountOutputType = { + fileUploads: number +} + +export type EventVendorCountOutputTypeSelect = { + fileUploads?: boolean | EventVendorCountOutputTypeCountFileUploadsArgs +} + +/** + * EventVendorCountOutputType without action + */ +export type EventVendorCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the EventVendorCountOutputType + */ + select?: Prisma.EventVendorCountOutputTypeSelect | null +} + +/** + * EventVendorCountOutputType without action + */ +export type EventVendorCountOutputTypeCountFileUploadsArgs = { + where?: Prisma.FileUploadWhereInput +} + + +export type EventVendorSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + status?: boolean + bookedDate?: boolean + quotedPrice?: boolean + finalCost?: boolean + depositPaid?: boolean + depositDueDate?: boolean + finalPaymentDue?: boolean + paymentNotes?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + eventId?: boolean + vendorId?: boolean + event?: boolean | Prisma.EventDefaultArgs + vendor?: boolean | Prisma.VendorDefaultArgs + fileUploads?: boolean | Prisma.EventVendor$fileUploadsArgs + _count?: boolean | Prisma.EventVendorCountOutputTypeDefaultArgs +}, ExtArgs["result"]["eventVendor"]> + +export type EventVendorSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + status?: boolean + bookedDate?: boolean + quotedPrice?: boolean + finalCost?: boolean + depositPaid?: boolean + depositDueDate?: boolean + finalPaymentDue?: boolean + paymentNotes?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + eventId?: boolean + vendorId?: boolean + event?: boolean | Prisma.EventDefaultArgs + vendor?: boolean | Prisma.VendorDefaultArgs +}, ExtArgs["result"]["eventVendor"]> + +export type EventVendorSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + status?: boolean + bookedDate?: boolean + quotedPrice?: boolean + finalCost?: boolean + depositPaid?: boolean + depositDueDate?: boolean + finalPaymentDue?: boolean + paymentNotes?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + eventId?: boolean + vendorId?: boolean + event?: boolean | Prisma.EventDefaultArgs + vendor?: boolean | Prisma.VendorDefaultArgs +}, ExtArgs["result"]["eventVendor"]> + +export type EventVendorSelectScalar = { + id?: boolean + status?: boolean + bookedDate?: boolean + quotedPrice?: boolean + finalCost?: boolean + depositPaid?: boolean + depositDueDate?: boolean + finalPaymentDue?: boolean + paymentNotes?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + eventId?: boolean + vendorId?: boolean +} + +export type EventVendorOmit = runtime.Types.Extensions.GetOmit<"id" | "status" | "bookedDate" | "quotedPrice" | "finalCost" | "depositPaid" | "depositDueDate" | "finalPaymentDue" | "paymentNotes" | "notes" | "createdAt" | "updatedAt" | "eventId" | "vendorId", ExtArgs["result"]["eventVendor"]> +export type EventVendorInclude = { + event?: boolean | Prisma.EventDefaultArgs + vendor?: boolean | Prisma.VendorDefaultArgs + fileUploads?: boolean | Prisma.EventVendor$fileUploadsArgs + _count?: boolean | Prisma.EventVendorCountOutputTypeDefaultArgs +} +export type EventVendorIncludeCreateManyAndReturn = { + event?: boolean | Prisma.EventDefaultArgs + vendor?: boolean | Prisma.VendorDefaultArgs +} +export type EventVendorIncludeUpdateManyAndReturn = { + event?: boolean | Prisma.EventDefaultArgs + vendor?: boolean | Prisma.VendorDefaultArgs +} + +export type $EventVendorPayload = { + name: "EventVendor" + objects: { + event: Prisma.$EventPayload + vendor: Prisma.$VendorPayload + fileUploads: Prisma.$FileUploadPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + status: $Enums.VendorStatus + bookedDate: Date | null + quotedPrice: runtime.Decimal | null + finalCost: runtime.Decimal | null + depositPaid: runtime.Decimal | null + depositDueDate: Date | null + finalPaymentDue: Date | null + paymentNotes: string | null + notes: string | null + createdAt: Date + updatedAt: Date + eventId: string + vendorId: string + }, ExtArgs["result"]["eventVendor"]> + composites: {} +} + +export type EventVendorGetPayload = runtime.Types.Result.GetResult + +export type EventVendorCountArgs = + Omit & { + select?: EventVendorCountAggregateInputType | true + } + +export interface EventVendorDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['EventVendor'], meta: { name: 'EventVendor' } } + /** + * Find zero or one EventVendor that matches the filter. + * @param {EventVendorFindUniqueArgs} args - Arguments to find a EventVendor + * @example + * // Get one EventVendor + * const eventVendor = await prisma.eventVendor.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__EventVendorClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one EventVendor that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {EventVendorFindUniqueOrThrowArgs} args - Arguments to find a EventVendor + * @example + * // Get one EventVendor + * const eventVendor = await prisma.eventVendor.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__EventVendorClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first EventVendor 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 {EventVendorFindFirstArgs} args - Arguments to find a EventVendor + * @example + * // Get one EventVendor + * const eventVendor = await prisma.eventVendor.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__EventVendorClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first EventVendor 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 {EventVendorFindFirstOrThrowArgs} args - Arguments to find a EventVendor + * @example + * // Get one EventVendor + * const eventVendor = await prisma.eventVendor.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__EventVendorClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more EventVendors 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 {EventVendorFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all EventVendors + * const eventVendors = await prisma.eventVendor.findMany() + * + * // Get first 10 EventVendors + * const eventVendors = await prisma.eventVendor.findMany({ take: 10 }) + * + * // Only select the `id` + * const eventVendorWithIdOnly = await prisma.eventVendor.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a EventVendor. + * @param {EventVendorCreateArgs} args - Arguments to create a EventVendor. + * @example + * // Create one EventVendor + * const EventVendor = await prisma.eventVendor.create({ + * data: { + * // ... data to create a EventVendor + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__EventVendorClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many EventVendors. + * @param {EventVendorCreateManyArgs} args - Arguments to create many EventVendors. + * @example + * // Create many EventVendors + * const eventVendor = await prisma.eventVendor.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many EventVendors and returns the data saved in the database. + * @param {EventVendorCreateManyAndReturnArgs} args - Arguments to create many EventVendors. + * @example + * // Create many EventVendors + * const eventVendor = await prisma.eventVendor.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many EventVendors and only return the `id` + * const eventVendorWithIdOnly = await prisma.eventVendor.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 EventVendor. + * @param {EventVendorDeleteArgs} args - Arguments to delete one EventVendor. + * @example + * // Delete one EventVendor + * const EventVendor = await prisma.eventVendor.delete({ + * where: { + * // ... filter to delete one EventVendor + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__EventVendorClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one EventVendor. + * @param {EventVendorUpdateArgs} args - Arguments to update one EventVendor. + * @example + * // Update one EventVendor + * const eventVendor = await prisma.eventVendor.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__EventVendorClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more EventVendors. + * @param {EventVendorDeleteManyArgs} args - Arguments to filter EventVendors to delete. + * @example + * // Delete a few EventVendors + * const { count } = await prisma.eventVendor.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more EventVendors. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EventVendorUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many EventVendors + * const eventVendor = await prisma.eventVendor.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more EventVendors and returns the data updated in the database. + * @param {EventVendorUpdateManyAndReturnArgs} args - Arguments to update many EventVendors. + * @example + * // Update many EventVendors + * const eventVendor = await prisma.eventVendor.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more EventVendors and only return the `id` + * const eventVendorWithIdOnly = await prisma.eventVendor.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 EventVendor. + * @param {EventVendorUpsertArgs} args - Arguments to update or create a EventVendor. + * @example + * // Update or create a EventVendor + * const eventVendor = await prisma.eventVendor.upsert({ + * create: { + * // ... data to create a EventVendor + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the EventVendor we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__EventVendorClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of EventVendors. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EventVendorCountArgs} args - Arguments to filter EventVendors to count. + * @example + * // Count the number of EventVendors + * const count = await prisma.eventVendor.count({ + * where: { + * // ... the filter for the EventVendors 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 EventVendor. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EventVendorAggregateArgs} 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 EventVendor. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EventVendorGroupByArgs} 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 EventVendorGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: EventVendorGroupByArgs['orderBy'] } + : { orderBy?: EventVendorGroupByArgs['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 ? GetEventVendorGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the EventVendor model + */ +readonly fields: EventVendorFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for EventVendor. + * 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__EventVendorClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + event = {}>(args?: Prisma.Subset>): Prisma.Prisma__EventClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + vendor = {}>(args?: Prisma.Subset>): Prisma.Prisma__VendorClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + fileUploads = {}>(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 EventVendor model + */ +export interface EventVendorFieldRefs { + readonly id: Prisma.FieldRef<"EventVendor", 'String'> + readonly status: Prisma.FieldRef<"EventVendor", 'VendorStatus'> + readonly bookedDate: Prisma.FieldRef<"EventVendor", 'DateTime'> + readonly quotedPrice: Prisma.FieldRef<"EventVendor", 'Decimal'> + readonly finalCost: Prisma.FieldRef<"EventVendor", 'Decimal'> + readonly depositPaid: Prisma.FieldRef<"EventVendor", 'Decimal'> + readonly depositDueDate: Prisma.FieldRef<"EventVendor", 'DateTime'> + readonly finalPaymentDue: Prisma.FieldRef<"EventVendor", 'DateTime'> + readonly paymentNotes: Prisma.FieldRef<"EventVendor", 'String'> + readonly notes: Prisma.FieldRef<"EventVendor", 'String'> + readonly createdAt: Prisma.FieldRef<"EventVendor", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"EventVendor", 'DateTime'> + readonly eventId: Prisma.FieldRef<"EventVendor", 'String'> + readonly vendorId: Prisma.FieldRef<"EventVendor", 'String'> +} + + +// Custom InputTypes +/** + * EventVendor findUnique + */ +export type EventVendorFindUniqueArgs = { + /** + * Select specific fields to fetch from the EventVendor + */ + select?: Prisma.EventVendorSelect | null + /** + * Omit specific fields from the EventVendor + */ + omit?: Prisma.EventVendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventVendorInclude | null + /** + * Filter, which EventVendor to fetch. + */ + where: Prisma.EventVendorWhereUniqueInput +} + +/** + * EventVendor findUniqueOrThrow + */ +export type EventVendorFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the EventVendor + */ + select?: Prisma.EventVendorSelect | null + /** + * Omit specific fields from the EventVendor + */ + omit?: Prisma.EventVendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventVendorInclude | null + /** + * Filter, which EventVendor to fetch. + */ + where: Prisma.EventVendorWhereUniqueInput +} + +/** + * EventVendor findFirst + */ +export type EventVendorFindFirstArgs = { + /** + * Select specific fields to fetch from the EventVendor + */ + select?: Prisma.EventVendorSelect | null + /** + * Omit specific fields from the EventVendor + */ + omit?: Prisma.EventVendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventVendorInclude | null + /** + * Filter, which EventVendor to fetch. + */ + where?: Prisma.EventVendorWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of EventVendors to fetch. + */ + orderBy?: Prisma.EventVendorOrderByWithRelationInput | Prisma.EventVendorOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for EventVendors. + */ + cursor?: Prisma.EventVendorWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` EventVendors 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` EventVendors. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of EventVendors. + */ + distinct?: Prisma.EventVendorScalarFieldEnum | Prisma.EventVendorScalarFieldEnum[] +} + +/** + * EventVendor findFirstOrThrow + */ +export type EventVendorFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the EventVendor + */ + select?: Prisma.EventVendorSelect | null + /** + * Omit specific fields from the EventVendor + */ + omit?: Prisma.EventVendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventVendorInclude | null + /** + * Filter, which EventVendor to fetch. + */ + where?: Prisma.EventVendorWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of EventVendors to fetch. + */ + orderBy?: Prisma.EventVendorOrderByWithRelationInput | Prisma.EventVendorOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for EventVendors. + */ + cursor?: Prisma.EventVendorWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` EventVendors 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` EventVendors. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of EventVendors. + */ + distinct?: Prisma.EventVendorScalarFieldEnum | Prisma.EventVendorScalarFieldEnum[] +} + +/** + * EventVendor findMany + */ +export type EventVendorFindManyArgs = { + /** + * Select specific fields to fetch from the EventVendor + */ + select?: Prisma.EventVendorSelect | null + /** + * Omit specific fields from the EventVendor + */ + omit?: Prisma.EventVendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventVendorInclude | null + /** + * Filter, which EventVendors to fetch. + */ + where?: Prisma.EventVendorWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of EventVendors to fetch. + */ + orderBy?: Prisma.EventVendorOrderByWithRelationInput | Prisma.EventVendorOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing EventVendors. + */ + cursor?: Prisma.EventVendorWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` EventVendors 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` EventVendors. + */ + skip?: number + distinct?: Prisma.EventVendorScalarFieldEnum | Prisma.EventVendorScalarFieldEnum[] +} + +/** + * EventVendor create + */ +export type EventVendorCreateArgs = { + /** + * Select specific fields to fetch from the EventVendor + */ + select?: Prisma.EventVendorSelect | null + /** + * Omit specific fields from the EventVendor + */ + omit?: Prisma.EventVendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventVendorInclude | null + /** + * The data needed to create a EventVendor. + */ + data: Prisma.XOR +} + +/** + * EventVendor createMany + */ +export type EventVendorCreateManyArgs = { + /** + * The data used to create many EventVendors. + */ + data: Prisma.EventVendorCreateManyInput | Prisma.EventVendorCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * EventVendor createManyAndReturn + */ +export type EventVendorCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the EventVendor + */ + select?: Prisma.EventVendorSelectCreateManyAndReturn | null + /** + * Omit specific fields from the EventVendor + */ + omit?: Prisma.EventVendorOmit | null + /** + * The data used to create many EventVendors. + */ + data: Prisma.EventVendorCreateManyInput | Prisma.EventVendorCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventVendorIncludeCreateManyAndReturn | null +} + +/** + * EventVendor update + */ +export type EventVendorUpdateArgs = { + /** + * Select specific fields to fetch from the EventVendor + */ + select?: Prisma.EventVendorSelect | null + /** + * Omit specific fields from the EventVendor + */ + omit?: Prisma.EventVendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventVendorInclude | null + /** + * The data needed to update a EventVendor. + */ + data: Prisma.XOR + /** + * Choose, which EventVendor to update. + */ + where: Prisma.EventVendorWhereUniqueInput +} + +/** + * EventVendor updateMany + */ +export type EventVendorUpdateManyArgs = { + /** + * The data used to update EventVendors. + */ + data: Prisma.XOR + /** + * Filter which EventVendors to update + */ + where?: Prisma.EventVendorWhereInput + /** + * Limit how many EventVendors to update. + */ + limit?: number +} + +/** + * EventVendor updateManyAndReturn + */ +export type EventVendorUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the EventVendor + */ + select?: Prisma.EventVendorSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the EventVendor + */ + omit?: Prisma.EventVendorOmit | null + /** + * The data used to update EventVendors. + */ + data: Prisma.XOR + /** + * Filter which EventVendors to update + */ + where?: Prisma.EventVendorWhereInput + /** + * Limit how many EventVendors to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventVendorIncludeUpdateManyAndReturn | null +} + +/** + * EventVendor upsert + */ +export type EventVendorUpsertArgs = { + /** + * Select specific fields to fetch from the EventVendor + */ + select?: Prisma.EventVendorSelect | null + /** + * Omit specific fields from the EventVendor + */ + omit?: Prisma.EventVendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventVendorInclude | null + /** + * The filter to search for the EventVendor to update in case it exists. + */ + where: Prisma.EventVendorWhereUniqueInput + /** + * In case the EventVendor found by the `where` argument doesn't exist, create a new EventVendor with this data. + */ + create: Prisma.XOR + /** + * In case the EventVendor was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * EventVendor delete + */ +export type EventVendorDeleteArgs = { + /** + * Select specific fields to fetch from the EventVendor + */ + select?: Prisma.EventVendorSelect | null + /** + * Omit specific fields from the EventVendor + */ + omit?: Prisma.EventVendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventVendorInclude | null + /** + * Filter which EventVendor to delete. + */ + where: Prisma.EventVendorWhereUniqueInput +} + +/** + * EventVendor deleteMany + */ +export type EventVendorDeleteManyArgs = { + /** + * Filter which EventVendors to delete + */ + where?: Prisma.EventVendorWhereInput + /** + * Limit how many EventVendors to delete. + */ + limit?: number +} + +/** + * EventVendor.fileUploads + */ +export type EventVendor$fileUploadsArgs = { + /** + * Select specific fields to fetch from the FileUpload + */ + select?: Prisma.FileUploadSelect | null + /** + * Omit specific fields from the FileUpload + */ + omit?: Prisma.FileUploadOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FileUploadInclude | null + where?: Prisma.FileUploadWhereInput + orderBy?: Prisma.FileUploadOrderByWithRelationInput | Prisma.FileUploadOrderByWithRelationInput[] + cursor?: Prisma.FileUploadWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.FileUploadScalarFieldEnum | Prisma.FileUploadScalarFieldEnum[] +} + +/** + * EventVendor without action + */ +export type EventVendorDefaultArgs = { + /** + * Select specific fields to fetch from the EventVendor + */ + select?: Prisma.EventVendorSelect | null + /** + * Omit specific fields from the EventVendor + */ + omit?: Prisma.EventVendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventVendorInclude | null +} diff --git a/src/lib/generated/prisma/models/FileUpload.ts b/src/lib/generated/prisma/models/FileUpload.ts new file mode 100644 index 0000000..90c1bb6 --- /dev/null +++ b/src/lib/generated/prisma/models/FileUpload.ts @@ -0,0 +1,1909 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `FileUpload` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/library" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model FileUpload + * + */ +export type FileUploadModel = runtime.Types.Result.DefaultSelection + +export type AggregateFileUpload = { + _count: FileUploadCountAggregateOutputType | null + _avg: FileUploadAvgAggregateOutputType | null + _sum: FileUploadSumAggregateOutputType | null + _min: FileUploadMinAggregateOutputType | null + _max: FileUploadMaxAggregateOutputType | null +} + +export type FileUploadAvgAggregateOutputType = { + size: number | null +} + +export type FileUploadSumAggregateOutputType = { + size: number | null +} + +export type FileUploadMinAggregateOutputType = { + id: string | null + originalName: string | null + storageKey: string | null + mimeType: string | null + size: number | null + kind: $Enums.FileKind | null + uploadedAt: Date | null + uploadedById: string | null + eventId: string | null + eventVendorId: string | null +} + +export type FileUploadMaxAggregateOutputType = { + id: string | null + originalName: string | null + storageKey: string | null + mimeType: string | null + size: number | null + kind: $Enums.FileKind | null + uploadedAt: Date | null + uploadedById: string | null + eventId: string | null + eventVendorId: string | null +} + +export type FileUploadCountAggregateOutputType = { + id: number + originalName: number + storageKey: number + mimeType: number + size: number + kind: number + uploadedAt: number + uploadedById: number + eventId: number + eventVendorId: number + _all: number +} + + +export type FileUploadAvgAggregateInputType = { + size?: true +} + +export type FileUploadSumAggregateInputType = { + size?: true +} + +export type FileUploadMinAggregateInputType = { + id?: true + originalName?: true + storageKey?: true + mimeType?: true + size?: true + kind?: true + uploadedAt?: true + uploadedById?: true + eventId?: true + eventVendorId?: true +} + +export type FileUploadMaxAggregateInputType = { + id?: true + originalName?: true + storageKey?: true + mimeType?: true + size?: true + kind?: true + uploadedAt?: true + uploadedById?: true + eventId?: true + eventVendorId?: true +} + +export type FileUploadCountAggregateInputType = { + id?: true + originalName?: true + storageKey?: true + mimeType?: true + size?: true + kind?: true + uploadedAt?: true + uploadedById?: true + eventId?: true + eventVendorId?: true + _all?: true +} + +export type FileUploadAggregateArgs = { + /** + * Filter which FileUpload to aggregate. + */ + where?: Prisma.FileUploadWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of FileUploads to fetch. + */ + orderBy?: Prisma.FileUploadOrderByWithRelationInput | Prisma.FileUploadOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.FileUploadWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` FileUploads 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` FileUploads. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned FileUploads + **/ + _count?: true | FileUploadCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: FileUploadAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: FileUploadSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: FileUploadMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: FileUploadMaxAggregateInputType +} + +export type GetFileUploadAggregateType = { + [P in keyof T & keyof AggregateFileUpload]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type FileUploadGroupByArgs = { + where?: Prisma.FileUploadWhereInput + orderBy?: Prisma.FileUploadOrderByWithAggregationInput | Prisma.FileUploadOrderByWithAggregationInput[] + by: Prisma.FileUploadScalarFieldEnum[] | Prisma.FileUploadScalarFieldEnum + having?: Prisma.FileUploadScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: FileUploadCountAggregateInputType | true + _avg?: FileUploadAvgAggregateInputType + _sum?: FileUploadSumAggregateInputType + _min?: FileUploadMinAggregateInputType + _max?: FileUploadMaxAggregateInputType +} + +export type FileUploadGroupByOutputType = { + id: string + originalName: string + storageKey: string + mimeType: string + size: number + kind: $Enums.FileKind + uploadedAt: Date + uploadedById: string + eventId: string | null + eventVendorId: string | null + _count: FileUploadCountAggregateOutputType | null + _avg: FileUploadAvgAggregateOutputType | null + _sum: FileUploadSumAggregateOutputType | null + _min: FileUploadMinAggregateOutputType | null + _max: FileUploadMaxAggregateOutputType | null +} + +type GetFileUploadGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof FileUploadGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type FileUploadWhereInput = { + AND?: Prisma.FileUploadWhereInput | Prisma.FileUploadWhereInput[] + OR?: Prisma.FileUploadWhereInput[] + NOT?: Prisma.FileUploadWhereInput | Prisma.FileUploadWhereInput[] + id?: Prisma.StringFilter<"FileUpload"> | string + originalName?: Prisma.StringFilter<"FileUpload"> | string + storageKey?: Prisma.StringFilter<"FileUpload"> | string + mimeType?: Prisma.StringFilter<"FileUpload"> | string + size?: Prisma.IntFilter<"FileUpload"> | number + kind?: Prisma.EnumFileKindFilter<"FileUpload"> | $Enums.FileKind + uploadedAt?: Prisma.DateTimeFilter<"FileUpload"> | Date | string + uploadedById?: Prisma.StringFilter<"FileUpload"> | string + eventId?: Prisma.StringNullableFilter<"FileUpload"> | string | null + eventVendorId?: Prisma.StringNullableFilter<"FileUpload"> | string | null + uploadedBy?: Prisma.XOR + event?: Prisma.XOR | null + eventVendor?: Prisma.XOR | null +} + +export type FileUploadOrderByWithRelationInput = { + id?: Prisma.SortOrder + originalName?: Prisma.SortOrder + storageKey?: Prisma.SortOrder + mimeType?: Prisma.SortOrder + size?: Prisma.SortOrder + kind?: Prisma.SortOrder + uploadedAt?: Prisma.SortOrder + uploadedById?: Prisma.SortOrder + eventId?: Prisma.SortOrderInput | Prisma.SortOrder + eventVendorId?: Prisma.SortOrderInput | Prisma.SortOrder + uploadedBy?: Prisma.UserOrderByWithRelationInput + event?: Prisma.EventOrderByWithRelationInput + eventVendor?: Prisma.EventVendorOrderByWithRelationInput +} + +export type FileUploadWhereUniqueInput = Prisma.AtLeast<{ + id?: string + storageKey?: string + AND?: Prisma.FileUploadWhereInput | Prisma.FileUploadWhereInput[] + OR?: Prisma.FileUploadWhereInput[] + NOT?: Prisma.FileUploadWhereInput | Prisma.FileUploadWhereInput[] + originalName?: Prisma.StringFilter<"FileUpload"> | string + mimeType?: Prisma.StringFilter<"FileUpload"> | string + size?: Prisma.IntFilter<"FileUpload"> | number + kind?: Prisma.EnumFileKindFilter<"FileUpload"> | $Enums.FileKind + uploadedAt?: Prisma.DateTimeFilter<"FileUpload"> | Date | string + uploadedById?: Prisma.StringFilter<"FileUpload"> | string + eventId?: Prisma.StringNullableFilter<"FileUpload"> | string | null + eventVendorId?: Prisma.StringNullableFilter<"FileUpload"> | string | null + uploadedBy?: Prisma.XOR + event?: Prisma.XOR | null + eventVendor?: Prisma.XOR | null +}, "id" | "storageKey"> + +export type FileUploadOrderByWithAggregationInput = { + id?: Prisma.SortOrder + originalName?: Prisma.SortOrder + storageKey?: Prisma.SortOrder + mimeType?: Prisma.SortOrder + size?: Prisma.SortOrder + kind?: Prisma.SortOrder + uploadedAt?: Prisma.SortOrder + uploadedById?: Prisma.SortOrder + eventId?: Prisma.SortOrderInput | Prisma.SortOrder + eventVendorId?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.FileUploadCountOrderByAggregateInput + _avg?: Prisma.FileUploadAvgOrderByAggregateInput + _max?: Prisma.FileUploadMaxOrderByAggregateInput + _min?: Prisma.FileUploadMinOrderByAggregateInput + _sum?: Prisma.FileUploadSumOrderByAggregateInput +} + +export type FileUploadScalarWhereWithAggregatesInput = { + AND?: Prisma.FileUploadScalarWhereWithAggregatesInput | Prisma.FileUploadScalarWhereWithAggregatesInput[] + OR?: Prisma.FileUploadScalarWhereWithAggregatesInput[] + NOT?: Prisma.FileUploadScalarWhereWithAggregatesInput | Prisma.FileUploadScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"FileUpload"> | string + originalName?: Prisma.StringWithAggregatesFilter<"FileUpload"> | string + storageKey?: Prisma.StringWithAggregatesFilter<"FileUpload"> | string + mimeType?: Prisma.StringWithAggregatesFilter<"FileUpload"> | string + size?: Prisma.IntWithAggregatesFilter<"FileUpload"> | number + kind?: Prisma.EnumFileKindWithAggregatesFilter<"FileUpload"> | $Enums.FileKind + uploadedAt?: Prisma.DateTimeWithAggregatesFilter<"FileUpload"> | Date | string + uploadedById?: Prisma.StringWithAggregatesFilter<"FileUpload"> | string + eventId?: Prisma.StringNullableWithAggregatesFilter<"FileUpload"> | string | null + eventVendorId?: Prisma.StringNullableWithAggregatesFilter<"FileUpload"> | string | null +} + +export type FileUploadCreateInput = { + id?: string + originalName: string + storageKey: string + mimeType: string + size: number + kind?: $Enums.FileKind + uploadedAt?: Date | string + uploadedBy: Prisma.UserCreateNestedOneWithoutFileUploadsInput + event?: Prisma.EventCreateNestedOneWithoutFileUploadsInput + eventVendor?: Prisma.EventVendorCreateNestedOneWithoutFileUploadsInput +} + +export type FileUploadUncheckedCreateInput = { + id?: string + originalName: string + storageKey: string + mimeType: string + size: number + kind?: $Enums.FileKind + uploadedAt?: Date | string + uploadedById: string + eventId?: string | null + eventVendorId?: string | null +} + +export type FileUploadUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + kind?: Prisma.EnumFileKindFieldUpdateOperationsInput | $Enums.FileKind + uploadedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + uploadedBy?: Prisma.UserUpdateOneRequiredWithoutFileUploadsNestedInput + event?: Prisma.EventUpdateOneWithoutFileUploadsNestedInput + eventVendor?: Prisma.EventVendorUpdateOneWithoutFileUploadsNestedInput +} + +export type FileUploadUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + kind?: Prisma.EnumFileKindFieldUpdateOperationsInput | $Enums.FileKind + uploadedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + uploadedById?: Prisma.StringFieldUpdateOperationsInput | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + eventVendorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type FileUploadCreateManyInput = { + id?: string + originalName: string + storageKey: string + mimeType: string + size: number + kind?: $Enums.FileKind + uploadedAt?: Date | string + uploadedById: string + eventId?: string | null + eventVendorId?: string | null +} + +export type FileUploadUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + kind?: Prisma.EnumFileKindFieldUpdateOperationsInput | $Enums.FileKind + uploadedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type FileUploadUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + kind?: Prisma.EnumFileKindFieldUpdateOperationsInput | $Enums.FileKind + uploadedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + uploadedById?: Prisma.StringFieldUpdateOperationsInput | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + eventVendorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type FileUploadListRelationFilter = { + every?: Prisma.FileUploadWhereInput + some?: Prisma.FileUploadWhereInput + none?: Prisma.FileUploadWhereInput +} + +export type FileUploadOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type FileUploadCountOrderByAggregateInput = { + id?: Prisma.SortOrder + originalName?: Prisma.SortOrder + storageKey?: Prisma.SortOrder + mimeType?: Prisma.SortOrder + size?: Prisma.SortOrder + kind?: Prisma.SortOrder + uploadedAt?: Prisma.SortOrder + uploadedById?: Prisma.SortOrder + eventId?: Prisma.SortOrder + eventVendorId?: Prisma.SortOrder +} + +export type FileUploadAvgOrderByAggregateInput = { + size?: Prisma.SortOrder +} + +export type FileUploadMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + originalName?: Prisma.SortOrder + storageKey?: Prisma.SortOrder + mimeType?: Prisma.SortOrder + size?: Prisma.SortOrder + kind?: Prisma.SortOrder + uploadedAt?: Prisma.SortOrder + uploadedById?: Prisma.SortOrder + eventId?: Prisma.SortOrder + eventVendorId?: Prisma.SortOrder +} + +export type FileUploadMinOrderByAggregateInput = { + id?: Prisma.SortOrder + originalName?: Prisma.SortOrder + storageKey?: Prisma.SortOrder + mimeType?: Prisma.SortOrder + size?: Prisma.SortOrder + kind?: Prisma.SortOrder + uploadedAt?: Prisma.SortOrder + uploadedById?: Prisma.SortOrder + eventId?: Prisma.SortOrder + eventVendorId?: Prisma.SortOrder +} + +export type FileUploadSumOrderByAggregateInput = { + size?: Prisma.SortOrder +} + +export type FileUploadCreateNestedManyWithoutUploadedByInput = { + create?: Prisma.XOR | Prisma.FileUploadCreateWithoutUploadedByInput[] | Prisma.FileUploadUncheckedCreateWithoutUploadedByInput[] + connectOrCreate?: Prisma.FileUploadCreateOrConnectWithoutUploadedByInput | Prisma.FileUploadCreateOrConnectWithoutUploadedByInput[] + createMany?: Prisma.FileUploadCreateManyUploadedByInputEnvelope + connect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] +} + +export type FileUploadUncheckedCreateNestedManyWithoutUploadedByInput = { + create?: Prisma.XOR | Prisma.FileUploadCreateWithoutUploadedByInput[] | Prisma.FileUploadUncheckedCreateWithoutUploadedByInput[] + connectOrCreate?: Prisma.FileUploadCreateOrConnectWithoutUploadedByInput | Prisma.FileUploadCreateOrConnectWithoutUploadedByInput[] + createMany?: Prisma.FileUploadCreateManyUploadedByInputEnvelope + connect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] +} + +export type FileUploadUpdateManyWithoutUploadedByNestedInput = { + create?: Prisma.XOR | Prisma.FileUploadCreateWithoutUploadedByInput[] | Prisma.FileUploadUncheckedCreateWithoutUploadedByInput[] + connectOrCreate?: Prisma.FileUploadCreateOrConnectWithoutUploadedByInput | Prisma.FileUploadCreateOrConnectWithoutUploadedByInput[] + upsert?: Prisma.FileUploadUpsertWithWhereUniqueWithoutUploadedByInput | Prisma.FileUploadUpsertWithWhereUniqueWithoutUploadedByInput[] + createMany?: Prisma.FileUploadCreateManyUploadedByInputEnvelope + set?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + disconnect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + delete?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + connect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + update?: Prisma.FileUploadUpdateWithWhereUniqueWithoutUploadedByInput | Prisma.FileUploadUpdateWithWhereUniqueWithoutUploadedByInput[] + updateMany?: Prisma.FileUploadUpdateManyWithWhereWithoutUploadedByInput | Prisma.FileUploadUpdateManyWithWhereWithoutUploadedByInput[] + deleteMany?: Prisma.FileUploadScalarWhereInput | Prisma.FileUploadScalarWhereInput[] +} + +export type FileUploadUncheckedUpdateManyWithoutUploadedByNestedInput = { + create?: Prisma.XOR | Prisma.FileUploadCreateWithoutUploadedByInput[] | Prisma.FileUploadUncheckedCreateWithoutUploadedByInput[] + connectOrCreate?: Prisma.FileUploadCreateOrConnectWithoutUploadedByInput | Prisma.FileUploadCreateOrConnectWithoutUploadedByInput[] + upsert?: Prisma.FileUploadUpsertWithWhereUniqueWithoutUploadedByInput | Prisma.FileUploadUpsertWithWhereUniqueWithoutUploadedByInput[] + createMany?: Prisma.FileUploadCreateManyUploadedByInputEnvelope + set?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + disconnect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + delete?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + connect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + update?: Prisma.FileUploadUpdateWithWhereUniqueWithoutUploadedByInput | Prisma.FileUploadUpdateWithWhereUniqueWithoutUploadedByInput[] + updateMany?: Prisma.FileUploadUpdateManyWithWhereWithoutUploadedByInput | Prisma.FileUploadUpdateManyWithWhereWithoutUploadedByInput[] + deleteMany?: Prisma.FileUploadScalarWhereInput | Prisma.FileUploadScalarWhereInput[] +} + +export type FileUploadCreateNestedManyWithoutEventInput = { + create?: Prisma.XOR | Prisma.FileUploadCreateWithoutEventInput[] | Prisma.FileUploadUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.FileUploadCreateOrConnectWithoutEventInput | Prisma.FileUploadCreateOrConnectWithoutEventInput[] + createMany?: Prisma.FileUploadCreateManyEventInputEnvelope + connect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] +} + +export type FileUploadUncheckedCreateNestedManyWithoutEventInput = { + create?: Prisma.XOR | Prisma.FileUploadCreateWithoutEventInput[] | Prisma.FileUploadUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.FileUploadCreateOrConnectWithoutEventInput | Prisma.FileUploadCreateOrConnectWithoutEventInput[] + createMany?: Prisma.FileUploadCreateManyEventInputEnvelope + connect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] +} + +export type FileUploadUpdateManyWithoutEventNestedInput = { + create?: Prisma.XOR | Prisma.FileUploadCreateWithoutEventInput[] | Prisma.FileUploadUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.FileUploadCreateOrConnectWithoutEventInput | Prisma.FileUploadCreateOrConnectWithoutEventInput[] + upsert?: Prisma.FileUploadUpsertWithWhereUniqueWithoutEventInput | Prisma.FileUploadUpsertWithWhereUniqueWithoutEventInput[] + createMany?: Prisma.FileUploadCreateManyEventInputEnvelope + set?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + disconnect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + delete?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + connect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + update?: Prisma.FileUploadUpdateWithWhereUniqueWithoutEventInput | Prisma.FileUploadUpdateWithWhereUniqueWithoutEventInput[] + updateMany?: Prisma.FileUploadUpdateManyWithWhereWithoutEventInput | Prisma.FileUploadUpdateManyWithWhereWithoutEventInput[] + deleteMany?: Prisma.FileUploadScalarWhereInput | Prisma.FileUploadScalarWhereInput[] +} + +export type FileUploadUncheckedUpdateManyWithoutEventNestedInput = { + create?: Prisma.XOR | Prisma.FileUploadCreateWithoutEventInput[] | Prisma.FileUploadUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.FileUploadCreateOrConnectWithoutEventInput | Prisma.FileUploadCreateOrConnectWithoutEventInput[] + upsert?: Prisma.FileUploadUpsertWithWhereUniqueWithoutEventInput | Prisma.FileUploadUpsertWithWhereUniqueWithoutEventInput[] + createMany?: Prisma.FileUploadCreateManyEventInputEnvelope + set?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + disconnect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + delete?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + connect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + update?: Prisma.FileUploadUpdateWithWhereUniqueWithoutEventInput | Prisma.FileUploadUpdateWithWhereUniqueWithoutEventInput[] + updateMany?: Prisma.FileUploadUpdateManyWithWhereWithoutEventInput | Prisma.FileUploadUpdateManyWithWhereWithoutEventInput[] + deleteMany?: Prisma.FileUploadScalarWhereInput | Prisma.FileUploadScalarWhereInput[] +} + +export type FileUploadCreateNestedManyWithoutEventVendorInput = { + create?: Prisma.XOR | Prisma.FileUploadCreateWithoutEventVendorInput[] | Prisma.FileUploadUncheckedCreateWithoutEventVendorInput[] + connectOrCreate?: Prisma.FileUploadCreateOrConnectWithoutEventVendorInput | Prisma.FileUploadCreateOrConnectWithoutEventVendorInput[] + createMany?: Prisma.FileUploadCreateManyEventVendorInputEnvelope + connect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] +} + +export type FileUploadUncheckedCreateNestedManyWithoutEventVendorInput = { + create?: Prisma.XOR | Prisma.FileUploadCreateWithoutEventVendorInput[] | Prisma.FileUploadUncheckedCreateWithoutEventVendorInput[] + connectOrCreate?: Prisma.FileUploadCreateOrConnectWithoutEventVendorInput | Prisma.FileUploadCreateOrConnectWithoutEventVendorInput[] + createMany?: Prisma.FileUploadCreateManyEventVendorInputEnvelope + connect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] +} + +export type FileUploadUpdateManyWithoutEventVendorNestedInput = { + create?: Prisma.XOR | Prisma.FileUploadCreateWithoutEventVendorInput[] | Prisma.FileUploadUncheckedCreateWithoutEventVendorInput[] + connectOrCreate?: Prisma.FileUploadCreateOrConnectWithoutEventVendorInput | Prisma.FileUploadCreateOrConnectWithoutEventVendorInput[] + upsert?: Prisma.FileUploadUpsertWithWhereUniqueWithoutEventVendorInput | Prisma.FileUploadUpsertWithWhereUniqueWithoutEventVendorInput[] + createMany?: Prisma.FileUploadCreateManyEventVendorInputEnvelope + set?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + disconnect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + delete?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + connect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + update?: Prisma.FileUploadUpdateWithWhereUniqueWithoutEventVendorInput | Prisma.FileUploadUpdateWithWhereUniqueWithoutEventVendorInput[] + updateMany?: Prisma.FileUploadUpdateManyWithWhereWithoutEventVendorInput | Prisma.FileUploadUpdateManyWithWhereWithoutEventVendorInput[] + deleteMany?: Prisma.FileUploadScalarWhereInput | Prisma.FileUploadScalarWhereInput[] +} + +export type FileUploadUncheckedUpdateManyWithoutEventVendorNestedInput = { + create?: Prisma.XOR | Prisma.FileUploadCreateWithoutEventVendorInput[] | Prisma.FileUploadUncheckedCreateWithoutEventVendorInput[] + connectOrCreate?: Prisma.FileUploadCreateOrConnectWithoutEventVendorInput | Prisma.FileUploadCreateOrConnectWithoutEventVendorInput[] + upsert?: Prisma.FileUploadUpsertWithWhereUniqueWithoutEventVendorInput | Prisma.FileUploadUpsertWithWhereUniqueWithoutEventVendorInput[] + createMany?: Prisma.FileUploadCreateManyEventVendorInputEnvelope + set?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + disconnect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + delete?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + connect?: Prisma.FileUploadWhereUniqueInput | Prisma.FileUploadWhereUniqueInput[] + update?: Prisma.FileUploadUpdateWithWhereUniqueWithoutEventVendorInput | Prisma.FileUploadUpdateWithWhereUniqueWithoutEventVendorInput[] + updateMany?: Prisma.FileUploadUpdateManyWithWhereWithoutEventVendorInput | Prisma.FileUploadUpdateManyWithWhereWithoutEventVendorInput[] + deleteMany?: Prisma.FileUploadScalarWhereInput | Prisma.FileUploadScalarWhereInput[] +} + +export type IntFieldUpdateOperationsInput = { + set?: number + increment?: number + decrement?: number + multiply?: number + divide?: number +} + +export type EnumFileKindFieldUpdateOperationsInput = { + set?: $Enums.FileKind +} + +export type FileUploadCreateWithoutUploadedByInput = { + id?: string + originalName: string + storageKey: string + mimeType: string + size: number + kind?: $Enums.FileKind + uploadedAt?: Date | string + event?: Prisma.EventCreateNestedOneWithoutFileUploadsInput + eventVendor?: Prisma.EventVendorCreateNestedOneWithoutFileUploadsInput +} + +export type FileUploadUncheckedCreateWithoutUploadedByInput = { + id?: string + originalName: string + storageKey: string + mimeType: string + size: number + kind?: $Enums.FileKind + uploadedAt?: Date | string + eventId?: string | null + eventVendorId?: string | null +} + +export type FileUploadCreateOrConnectWithoutUploadedByInput = { + where: Prisma.FileUploadWhereUniqueInput + create: Prisma.XOR +} + +export type FileUploadCreateManyUploadedByInputEnvelope = { + data: Prisma.FileUploadCreateManyUploadedByInput | Prisma.FileUploadCreateManyUploadedByInput[] + skipDuplicates?: boolean +} + +export type FileUploadUpsertWithWhereUniqueWithoutUploadedByInput = { + where: Prisma.FileUploadWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type FileUploadUpdateWithWhereUniqueWithoutUploadedByInput = { + where: Prisma.FileUploadWhereUniqueInput + data: Prisma.XOR +} + +export type FileUploadUpdateManyWithWhereWithoutUploadedByInput = { + where: Prisma.FileUploadScalarWhereInput + data: Prisma.XOR +} + +export type FileUploadScalarWhereInput = { + AND?: Prisma.FileUploadScalarWhereInput | Prisma.FileUploadScalarWhereInput[] + OR?: Prisma.FileUploadScalarWhereInput[] + NOT?: Prisma.FileUploadScalarWhereInput | Prisma.FileUploadScalarWhereInput[] + id?: Prisma.StringFilter<"FileUpload"> | string + originalName?: Prisma.StringFilter<"FileUpload"> | string + storageKey?: Prisma.StringFilter<"FileUpload"> | string + mimeType?: Prisma.StringFilter<"FileUpload"> | string + size?: Prisma.IntFilter<"FileUpload"> | number + kind?: Prisma.EnumFileKindFilter<"FileUpload"> | $Enums.FileKind + uploadedAt?: Prisma.DateTimeFilter<"FileUpload"> | Date | string + uploadedById?: Prisma.StringFilter<"FileUpload"> | string + eventId?: Prisma.StringNullableFilter<"FileUpload"> | string | null + eventVendorId?: Prisma.StringNullableFilter<"FileUpload"> | string | null +} + +export type FileUploadCreateWithoutEventInput = { + id?: string + originalName: string + storageKey: string + mimeType: string + size: number + kind?: $Enums.FileKind + uploadedAt?: Date | string + uploadedBy: Prisma.UserCreateNestedOneWithoutFileUploadsInput + eventVendor?: Prisma.EventVendorCreateNestedOneWithoutFileUploadsInput +} + +export type FileUploadUncheckedCreateWithoutEventInput = { + id?: string + originalName: string + storageKey: string + mimeType: string + size: number + kind?: $Enums.FileKind + uploadedAt?: Date | string + uploadedById: string + eventVendorId?: string | null +} + +export type FileUploadCreateOrConnectWithoutEventInput = { + where: Prisma.FileUploadWhereUniqueInput + create: Prisma.XOR +} + +export type FileUploadCreateManyEventInputEnvelope = { + data: Prisma.FileUploadCreateManyEventInput | Prisma.FileUploadCreateManyEventInput[] + skipDuplicates?: boolean +} + +export type FileUploadUpsertWithWhereUniqueWithoutEventInput = { + where: Prisma.FileUploadWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type FileUploadUpdateWithWhereUniqueWithoutEventInput = { + where: Prisma.FileUploadWhereUniqueInput + data: Prisma.XOR +} + +export type FileUploadUpdateManyWithWhereWithoutEventInput = { + where: Prisma.FileUploadScalarWhereInput + data: Prisma.XOR +} + +export type FileUploadCreateWithoutEventVendorInput = { + id?: string + originalName: string + storageKey: string + mimeType: string + size: number + kind?: $Enums.FileKind + uploadedAt?: Date | string + uploadedBy: Prisma.UserCreateNestedOneWithoutFileUploadsInput + event?: Prisma.EventCreateNestedOneWithoutFileUploadsInput +} + +export type FileUploadUncheckedCreateWithoutEventVendorInput = { + id?: string + originalName: string + storageKey: string + mimeType: string + size: number + kind?: $Enums.FileKind + uploadedAt?: Date | string + uploadedById: string + eventId?: string | null +} + +export type FileUploadCreateOrConnectWithoutEventVendorInput = { + where: Prisma.FileUploadWhereUniqueInput + create: Prisma.XOR +} + +export type FileUploadCreateManyEventVendorInputEnvelope = { + data: Prisma.FileUploadCreateManyEventVendorInput | Prisma.FileUploadCreateManyEventVendorInput[] + skipDuplicates?: boolean +} + +export type FileUploadUpsertWithWhereUniqueWithoutEventVendorInput = { + where: Prisma.FileUploadWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type FileUploadUpdateWithWhereUniqueWithoutEventVendorInput = { + where: Prisma.FileUploadWhereUniqueInput + data: Prisma.XOR +} + +export type FileUploadUpdateManyWithWhereWithoutEventVendorInput = { + where: Prisma.FileUploadScalarWhereInput + data: Prisma.XOR +} + +export type FileUploadCreateManyUploadedByInput = { + id?: string + originalName: string + storageKey: string + mimeType: string + size: number + kind?: $Enums.FileKind + uploadedAt?: Date | string + eventId?: string | null + eventVendorId?: string | null +} + +export type FileUploadUpdateWithoutUploadedByInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + kind?: Prisma.EnumFileKindFieldUpdateOperationsInput | $Enums.FileKind + uploadedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + event?: Prisma.EventUpdateOneWithoutFileUploadsNestedInput + eventVendor?: Prisma.EventVendorUpdateOneWithoutFileUploadsNestedInput +} + +export type FileUploadUncheckedUpdateWithoutUploadedByInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + kind?: Prisma.EnumFileKindFieldUpdateOperationsInput | $Enums.FileKind + uploadedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + eventVendorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type FileUploadUncheckedUpdateManyWithoutUploadedByInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + kind?: Prisma.EnumFileKindFieldUpdateOperationsInput | $Enums.FileKind + uploadedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + eventVendorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type FileUploadCreateManyEventInput = { + id?: string + originalName: string + storageKey: string + mimeType: string + size: number + kind?: $Enums.FileKind + uploadedAt?: Date | string + uploadedById: string + eventVendorId?: string | null +} + +export type FileUploadUpdateWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + kind?: Prisma.EnumFileKindFieldUpdateOperationsInput | $Enums.FileKind + uploadedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + uploadedBy?: Prisma.UserUpdateOneRequiredWithoutFileUploadsNestedInput + eventVendor?: Prisma.EventVendorUpdateOneWithoutFileUploadsNestedInput +} + +export type FileUploadUncheckedUpdateWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + kind?: Prisma.EnumFileKindFieldUpdateOperationsInput | $Enums.FileKind + uploadedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + uploadedById?: Prisma.StringFieldUpdateOperationsInput | string + eventVendorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type FileUploadUncheckedUpdateManyWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + kind?: Prisma.EnumFileKindFieldUpdateOperationsInput | $Enums.FileKind + uploadedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + uploadedById?: Prisma.StringFieldUpdateOperationsInput | string + eventVendorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type FileUploadCreateManyEventVendorInput = { + id?: string + originalName: string + storageKey: string + mimeType: string + size: number + kind?: $Enums.FileKind + uploadedAt?: Date | string + uploadedById: string + eventId?: string | null +} + +export type FileUploadUpdateWithoutEventVendorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + kind?: Prisma.EnumFileKindFieldUpdateOperationsInput | $Enums.FileKind + uploadedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + uploadedBy?: Prisma.UserUpdateOneRequiredWithoutFileUploadsNestedInput + event?: Prisma.EventUpdateOneWithoutFileUploadsNestedInput +} + +export type FileUploadUncheckedUpdateWithoutEventVendorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + kind?: Prisma.EnumFileKindFieldUpdateOperationsInput | $Enums.FileKind + uploadedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + uploadedById?: Prisma.StringFieldUpdateOperationsInput | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type FileUploadUncheckedUpdateManyWithoutEventVendorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + originalName?: Prisma.StringFieldUpdateOperationsInput | string + storageKey?: Prisma.StringFieldUpdateOperationsInput | string + mimeType?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + kind?: Prisma.EnumFileKindFieldUpdateOperationsInput | $Enums.FileKind + uploadedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + uploadedById?: Prisma.StringFieldUpdateOperationsInput | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + + + +export type FileUploadSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + originalName?: boolean + storageKey?: boolean + mimeType?: boolean + size?: boolean + kind?: boolean + uploadedAt?: boolean + uploadedById?: boolean + eventId?: boolean + eventVendorId?: boolean + uploadedBy?: boolean | Prisma.UserDefaultArgs + event?: boolean | Prisma.FileUpload$eventArgs + eventVendor?: boolean | Prisma.FileUpload$eventVendorArgs +}, ExtArgs["result"]["fileUpload"]> + +export type FileUploadSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + originalName?: boolean + storageKey?: boolean + mimeType?: boolean + size?: boolean + kind?: boolean + uploadedAt?: boolean + uploadedById?: boolean + eventId?: boolean + eventVendorId?: boolean + uploadedBy?: boolean | Prisma.UserDefaultArgs + event?: boolean | Prisma.FileUpload$eventArgs + eventVendor?: boolean | Prisma.FileUpload$eventVendorArgs +}, ExtArgs["result"]["fileUpload"]> + +export type FileUploadSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + originalName?: boolean + storageKey?: boolean + mimeType?: boolean + size?: boolean + kind?: boolean + uploadedAt?: boolean + uploadedById?: boolean + eventId?: boolean + eventVendorId?: boolean + uploadedBy?: boolean | Prisma.UserDefaultArgs + event?: boolean | Prisma.FileUpload$eventArgs + eventVendor?: boolean | Prisma.FileUpload$eventVendorArgs +}, ExtArgs["result"]["fileUpload"]> + +export type FileUploadSelectScalar = { + id?: boolean + originalName?: boolean + storageKey?: boolean + mimeType?: boolean + size?: boolean + kind?: boolean + uploadedAt?: boolean + uploadedById?: boolean + eventId?: boolean + eventVendorId?: boolean +} + +export type FileUploadOmit = runtime.Types.Extensions.GetOmit<"id" | "originalName" | "storageKey" | "mimeType" | "size" | "kind" | "uploadedAt" | "uploadedById" | "eventId" | "eventVendorId", ExtArgs["result"]["fileUpload"]> +export type FileUploadInclude = { + uploadedBy?: boolean | Prisma.UserDefaultArgs + event?: boolean | Prisma.FileUpload$eventArgs + eventVendor?: boolean | Prisma.FileUpload$eventVendorArgs +} +export type FileUploadIncludeCreateManyAndReturn = { + uploadedBy?: boolean | Prisma.UserDefaultArgs + event?: boolean | Prisma.FileUpload$eventArgs + eventVendor?: boolean | Prisma.FileUpload$eventVendorArgs +} +export type FileUploadIncludeUpdateManyAndReturn = { + uploadedBy?: boolean | Prisma.UserDefaultArgs + event?: boolean | Prisma.FileUpload$eventArgs + eventVendor?: boolean | Prisma.FileUpload$eventVendorArgs +} + +export type $FileUploadPayload = { + name: "FileUpload" + objects: { + uploadedBy: Prisma.$UserPayload + event: Prisma.$EventPayload | null + eventVendor: Prisma.$EventVendorPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + originalName: string + storageKey: string + mimeType: string + size: number + kind: $Enums.FileKind + uploadedAt: Date + uploadedById: string + eventId: string | null + eventVendorId: string | null + }, ExtArgs["result"]["fileUpload"]> + composites: {} +} + +export type FileUploadGetPayload = runtime.Types.Result.GetResult + +export type FileUploadCountArgs = + Omit & { + select?: FileUploadCountAggregateInputType | true + } + +export interface FileUploadDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['FileUpload'], meta: { name: 'FileUpload' } } + /** + * Find zero or one FileUpload that matches the filter. + * @param {FileUploadFindUniqueArgs} args - Arguments to find a FileUpload + * @example + * // Get one FileUpload + * const fileUpload = await prisma.fileUpload.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__FileUploadClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one FileUpload that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {FileUploadFindUniqueOrThrowArgs} args - Arguments to find a FileUpload + * @example + * // Get one FileUpload + * const fileUpload = await prisma.fileUpload.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__FileUploadClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first FileUpload 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 {FileUploadFindFirstArgs} args - Arguments to find a FileUpload + * @example + * // Get one FileUpload + * const fileUpload = await prisma.fileUpload.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__FileUploadClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first FileUpload 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 {FileUploadFindFirstOrThrowArgs} args - Arguments to find a FileUpload + * @example + * // Get one FileUpload + * const fileUpload = await prisma.fileUpload.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__FileUploadClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more FileUploads 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 {FileUploadFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all FileUploads + * const fileUploads = await prisma.fileUpload.findMany() + * + * // Get first 10 FileUploads + * const fileUploads = await prisma.fileUpload.findMany({ take: 10 }) + * + * // Only select the `id` + * const fileUploadWithIdOnly = await prisma.fileUpload.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a FileUpload. + * @param {FileUploadCreateArgs} args - Arguments to create a FileUpload. + * @example + * // Create one FileUpload + * const FileUpload = await prisma.fileUpload.create({ + * data: { + * // ... data to create a FileUpload + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__FileUploadClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many FileUploads. + * @param {FileUploadCreateManyArgs} args - Arguments to create many FileUploads. + * @example + * // Create many FileUploads + * const fileUpload = await prisma.fileUpload.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many FileUploads and returns the data saved in the database. + * @param {FileUploadCreateManyAndReturnArgs} args - Arguments to create many FileUploads. + * @example + * // Create many FileUploads + * const fileUpload = await prisma.fileUpload.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many FileUploads and only return the `id` + * const fileUploadWithIdOnly = await prisma.fileUpload.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 FileUpload. + * @param {FileUploadDeleteArgs} args - Arguments to delete one FileUpload. + * @example + * // Delete one FileUpload + * const FileUpload = await prisma.fileUpload.delete({ + * where: { + * // ... filter to delete one FileUpload + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__FileUploadClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one FileUpload. + * @param {FileUploadUpdateArgs} args - Arguments to update one FileUpload. + * @example + * // Update one FileUpload + * const fileUpload = await prisma.fileUpload.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__FileUploadClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more FileUploads. + * @param {FileUploadDeleteManyArgs} args - Arguments to filter FileUploads to delete. + * @example + * // Delete a few FileUploads + * const { count } = await prisma.fileUpload.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more FileUploads. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FileUploadUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many FileUploads + * const fileUpload = await prisma.fileUpload.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more FileUploads and returns the data updated in the database. + * @param {FileUploadUpdateManyAndReturnArgs} args - Arguments to update many FileUploads. + * @example + * // Update many FileUploads + * const fileUpload = await prisma.fileUpload.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more FileUploads and only return the `id` + * const fileUploadWithIdOnly = await prisma.fileUpload.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 FileUpload. + * @param {FileUploadUpsertArgs} args - Arguments to update or create a FileUpload. + * @example + * // Update or create a FileUpload + * const fileUpload = await prisma.fileUpload.upsert({ + * create: { + * // ... data to create a FileUpload + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the FileUpload we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__FileUploadClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of FileUploads. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FileUploadCountArgs} args - Arguments to filter FileUploads to count. + * @example + * // Count the number of FileUploads + * const count = await prisma.fileUpload.count({ + * where: { + * // ... the filter for the FileUploads 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 FileUpload. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FileUploadAggregateArgs} 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 FileUpload. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FileUploadGroupByArgs} 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 FileUploadGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: FileUploadGroupByArgs['orderBy'] } + : { orderBy?: FileUploadGroupByArgs['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 ? GetFileUploadGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the FileUpload model + */ +readonly fields: FileUploadFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for FileUpload. + * 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__FileUploadClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + uploadedBy = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + event = {}>(args?: Prisma.Subset>): Prisma.Prisma__EventClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + eventVendor = {}>(args?: Prisma.Subset>): Prisma.Prisma__EventVendorClient, 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 FileUpload model + */ +export interface FileUploadFieldRefs { + readonly id: Prisma.FieldRef<"FileUpload", 'String'> + readonly originalName: Prisma.FieldRef<"FileUpload", 'String'> + readonly storageKey: Prisma.FieldRef<"FileUpload", 'String'> + readonly mimeType: Prisma.FieldRef<"FileUpload", 'String'> + readonly size: Prisma.FieldRef<"FileUpload", 'Int'> + readonly kind: Prisma.FieldRef<"FileUpload", 'FileKind'> + readonly uploadedAt: Prisma.FieldRef<"FileUpload", 'DateTime'> + readonly uploadedById: Prisma.FieldRef<"FileUpload", 'String'> + readonly eventId: Prisma.FieldRef<"FileUpload", 'String'> + readonly eventVendorId: Prisma.FieldRef<"FileUpload", 'String'> +} + + +// Custom InputTypes +/** + * FileUpload findUnique + */ +export type FileUploadFindUniqueArgs = { + /** + * Select specific fields to fetch from the FileUpload + */ + select?: Prisma.FileUploadSelect | null + /** + * Omit specific fields from the FileUpload + */ + omit?: Prisma.FileUploadOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FileUploadInclude | null + /** + * Filter, which FileUpload to fetch. + */ + where: Prisma.FileUploadWhereUniqueInput +} + +/** + * FileUpload findUniqueOrThrow + */ +export type FileUploadFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the FileUpload + */ + select?: Prisma.FileUploadSelect | null + /** + * Omit specific fields from the FileUpload + */ + omit?: Prisma.FileUploadOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FileUploadInclude | null + /** + * Filter, which FileUpload to fetch. + */ + where: Prisma.FileUploadWhereUniqueInput +} + +/** + * FileUpload findFirst + */ +export type FileUploadFindFirstArgs = { + /** + * Select specific fields to fetch from the FileUpload + */ + select?: Prisma.FileUploadSelect | null + /** + * Omit specific fields from the FileUpload + */ + omit?: Prisma.FileUploadOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FileUploadInclude | null + /** + * Filter, which FileUpload to fetch. + */ + where?: Prisma.FileUploadWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of FileUploads to fetch. + */ + orderBy?: Prisma.FileUploadOrderByWithRelationInput | Prisma.FileUploadOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for FileUploads. + */ + cursor?: Prisma.FileUploadWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` FileUploads 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` FileUploads. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of FileUploads. + */ + distinct?: Prisma.FileUploadScalarFieldEnum | Prisma.FileUploadScalarFieldEnum[] +} + +/** + * FileUpload findFirstOrThrow + */ +export type FileUploadFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the FileUpload + */ + select?: Prisma.FileUploadSelect | null + /** + * Omit specific fields from the FileUpload + */ + omit?: Prisma.FileUploadOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FileUploadInclude | null + /** + * Filter, which FileUpload to fetch. + */ + where?: Prisma.FileUploadWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of FileUploads to fetch. + */ + orderBy?: Prisma.FileUploadOrderByWithRelationInput | Prisma.FileUploadOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for FileUploads. + */ + cursor?: Prisma.FileUploadWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` FileUploads 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` FileUploads. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of FileUploads. + */ + distinct?: Prisma.FileUploadScalarFieldEnum | Prisma.FileUploadScalarFieldEnum[] +} + +/** + * FileUpload findMany + */ +export type FileUploadFindManyArgs = { + /** + * Select specific fields to fetch from the FileUpload + */ + select?: Prisma.FileUploadSelect | null + /** + * Omit specific fields from the FileUpload + */ + omit?: Prisma.FileUploadOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FileUploadInclude | null + /** + * Filter, which FileUploads to fetch. + */ + where?: Prisma.FileUploadWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of FileUploads to fetch. + */ + orderBy?: Prisma.FileUploadOrderByWithRelationInput | Prisma.FileUploadOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing FileUploads. + */ + cursor?: Prisma.FileUploadWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` FileUploads 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` FileUploads. + */ + skip?: number + distinct?: Prisma.FileUploadScalarFieldEnum | Prisma.FileUploadScalarFieldEnum[] +} + +/** + * FileUpload create + */ +export type FileUploadCreateArgs = { + /** + * Select specific fields to fetch from the FileUpload + */ + select?: Prisma.FileUploadSelect | null + /** + * Omit specific fields from the FileUpload + */ + omit?: Prisma.FileUploadOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FileUploadInclude | null + /** + * The data needed to create a FileUpload. + */ + data: Prisma.XOR +} + +/** + * FileUpload createMany + */ +export type FileUploadCreateManyArgs = { + /** + * The data used to create many FileUploads. + */ + data: Prisma.FileUploadCreateManyInput | Prisma.FileUploadCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * FileUpload createManyAndReturn + */ +export type FileUploadCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the FileUpload + */ + select?: Prisma.FileUploadSelectCreateManyAndReturn | null + /** + * Omit specific fields from the FileUpload + */ + omit?: Prisma.FileUploadOmit | null + /** + * The data used to create many FileUploads. + */ + data: Prisma.FileUploadCreateManyInput | Prisma.FileUploadCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FileUploadIncludeCreateManyAndReturn | null +} + +/** + * FileUpload update + */ +export type FileUploadUpdateArgs = { + /** + * Select specific fields to fetch from the FileUpload + */ + select?: Prisma.FileUploadSelect | null + /** + * Omit specific fields from the FileUpload + */ + omit?: Prisma.FileUploadOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FileUploadInclude | null + /** + * The data needed to update a FileUpload. + */ + data: Prisma.XOR + /** + * Choose, which FileUpload to update. + */ + where: Prisma.FileUploadWhereUniqueInput +} + +/** + * FileUpload updateMany + */ +export type FileUploadUpdateManyArgs = { + /** + * The data used to update FileUploads. + */ + data: Prisma.XOR + /** + * Filter which FileUploads to update + */ + where?: Prisma.FileUploadWhereInput + /** + * Limit how many FileUploads to update. + */ + limit?: number +} + +/** + * FileUpload updateManyAndReturn + */ +export type FileUploadUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the FileUpload + */ + select?: Prisma.FileUploadSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the FileUpload + */ + omit?: Prisma.FileUploadOmit | null + /** + * The data used to update FileUploads. + */ + data: Prisma.XOR + /** + * Filter which FileUploads to update + */ + where?: Prisma.FileUploadWhereInput + /** + * Limit how many FileUploads to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FileUploadIncludeUpdateManyAndReturn | null +} + +/** + * FileUpload upsert + */ +export type FileUploadUpsertArgs = { + /** + * Select specific fields to fetch from the FileUpload + */ + select?: Prisma.FileUploadSelect | null + /** + * Omit specific fields from the FileUpload + */ + omit?: Prisma.FileUploadOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FileUploadInclude | null + /** + * The filter to search for the FileUpload to update in case it exists. + */ + where: Prisma.FileUploadWhereUniqueInput + /** + * In case the FileUpload found by the `where` argument doesn't exist, create a new FileUpload with this data. + */ + create: Prisma.XOR + /** + * In case the FileUpload was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * FileUpload delete + */ +export type FileUploadDeleteArgs = { + /** + * Select specific fields to fetch from the FileUpload + */ + select?: Prisma.FileUploadSelect | null + /** + * Omit specific fields from the FileUpload + */ + omit?: Prisma.FileUploadOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FileUploadInclude | null + /** + * Filter which FileUpload to delete. + */ + where: Prisma.FileUploadWhereUniqueInput +} + +/** + * FileUpload deleteMany + */ +export type FileUploadDeleteManyArgs = { + /** + * Filter which FileUploads to delete + */ + where?: Prisma.FileUploadWhereInput + /** + * Limit how many FileUploads to delete. + */ + limit?: number +} + +/** + * FileUpload.event + */ +export type FileUpload$eventArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelect | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventInclude | null + where?: Prisma.EventWhereInput +} + +/** + * FileUpload.eventVendor + */ +export type FileUpload$eventVendorArgs = { + /** + * Select specific fields to fetch from the EventVendor + */ + select?: Prisma.EventVendorSelect | null + /** + * Omit specific fields from the EventVendor + */ + omit?: Prisma.EventVendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventVendorInclude | null + where?: Prisma.EventVendorWhereInput +} + +/** + * FileUpload without action + */ +export type FileUploadDefaultArgs = { + /** + * Select specific fields to fetch from the FileUpload + */ + select?: Prisma.FileUploadSelect | null + /** + * Omit specific fields from the FileUpload + */ + omit?: Prisma.FileUploadOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FileUploadInclude | null +} diff --git a/src/lib/generated/prisma/models/Guest.ts b/src/lib/generated/prisma/models/Guest.ts new file mode 100644 index 0000000..64269c2 --- /dev/null +++ b/src/lib/generated/prisma/models/Guest.ts @@ -0,0 +1,1711 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Guest` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/library" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model Guest + * + */ +export type GuestModel = runtime.Types.Result.DefaultSelection + +export type AggregateGuest = { + _count: GuestCountAggregateOutputType | null + _min: GuestMinAggregateOutputType | null + _max: GuestMaxAggregateOutputType | null +} + +export type GuestMinAggregateOutputType = { + id: string | null + firstName: string | null + lastName: string | null + email: string | null + phone: string | null + notes: string | null + side: string | null + congratulated: boolean | null + isPlaceHolder: boolean | null + createdAt: Date | null + householdId: string | null +} + +export type GuestMaxAggregateOutputType = { + id: string | null + firstName: string | null + lastName: string | null + email: string | null + phone: string | null + notes: string | null + side: string | null + congratulated: boolean | null + isPlaceHolder: boolean | null + createdAt: Date | null + householdId: string | null +} + +export type GuestCountAggregateOutputType = { + id: number + firstName: number + lastName: number + email: number + phone: number + notes: number + side: number + congratulated: number + isPlaceHolder: number + createdAt: number + householdId: number + _all: number +} + + +export type GuestMinAggregateInputType = { + id?: true + firstName?: true + lastName?: true + email?: true + phone?: true + notes?: true + side?: true + congratulated?: true + isPlaceHolder?: true + createdAt?: true + householdId?: true +} + +export type GuestMaxAggregateInputType = { + id?: true + firstName?: true + lastName?: true + email?: true + phone?: true + notes?: true + side?: true + congratulated?: true + isPlaceHolder?: true + createdAt?: true + householdId?: true +} + +export type GuestCountAggregateInputType = { + id?: true + firstName?: true + lastName?: true + email?: true + phone?: true + notes?: true + side?: true + congratulated?: true + isPlaceHolder?: true + createdAt?: true + householdId?: true + _all?: true +} + +export type GuestAggregateArgs = { + /** + * Filter which Guest to aggregate. + */ + where?: Prisma.GuestWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Guests to fetch. + */ + orderBy?: Prisma.GuestOrderByWithRelationInput | Prisma.GuestOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.GuestWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Guests 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` Guests. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Guests + **/ + _count?: true | GuestCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: GuestMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: GuestMaxAggregateInputType +} + +export type GetGuestAggregateType = { + [P in keyof T & keyof AggregateGuest]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type GuestGroupByArgs = { + where?: Prisma.GuestWhereInput + orderBy?: Prisma.GuestOrderByWithAggregationInput | Prisma.GuestOrderByWithAggregationInput[] + by: Prisma.GuestScalarFieldEnum[] | Prisma.GuestScalarFieldEnum + having?: Prisma.GuestScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: GuestCountAggregateInputType | true + _min?: GuestMinAggregateInputType + _max?: GuestMaxAggregateInputType +} + +export type GuestGroupByOutputType = { + id: string + firstName: string + lastName: string | null + email: string | null + phone: string | null + notes: string | null + side: string | null + congratulated: boolean + isPlaceHolder: boolean + createdAt: Date + householdId: string + _count: GuestCountAggregateOutputType | null + _min: GuestMinAggregateOutputType | null + _max: GuestMaxAggregateOutputType | null +} + +type GetGuestGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof GuestGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type GuestWhereInput = { + AND?: Prisma.GuestWhereInput | Prisma.GuestWhereInput[] + OR?: Prisma.GuestWhereInput[] + NOT?: Prisma.GuestWhereInput | Prisma.GuestWhereInput[] + id?: Prisma.StringFilter<"Guest"> | string + firstName?: Prisma.StringFilter<"Guest"> | string + lastName?: Prisma.StringNullableFilter<"Guest"> | string | null + email?: Prisma.StringNullableFilter<"Guest"> | string | null + phone?: Prisma.StringNullableFilter<"Guest"> | string | null + notes?: Prisma.StringNullableFilter<"Guest"> | string | null + side?: Prisma.StringNullableFilter<"Guest"> | string | null + congratulated?: Prisma.BoolFilter<"Guest"> | boolean + isPlaceHolder?: Prisma.BoolFilter<"Guest"> | boolean + createdAt?: Prisma.DateTimeFilter<"Guest"> | Date | string + householdId?: Prisma.StringFilter<"Guest"> | string + household?: Prisma.XOR + eventGuest?: Prisma.EventGuestListRelationFilter +} + +export type GuestOrderByWithRelationInput = { + id?: Prisma.SortOrder + firstName?: Prisma.SortOrder + lastName?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + phone?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + side?: Prisma.SortOrderInput | Prisma.SortOrder + congratulated?: Prisma.SortOrder + isPlaceHolder?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + householdId?: Prisma.SortOrder + household?: Prisma.HouseholdOrderByWithRelationInput + eventGuest?: Prisma.EventGuestOrderByRelationAggregateInput +} + +export type GuestWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.GuestWhereInput | Prisma.GuestWhereInput[] + OR?: Prisma.GuestWhereInput[] + NOT?: Prisma.GuestWhereInput | Prisma.GuestWhereInput[] + firstName?: Prisma.StringFilter<"Guest"> | string + lastName?: Prisma.StringNullableFilter<"Guest"> | string | null + email?: Prisma.StringNullableFilter<"Guest"> | string | null + phone?: Prisma.StringNullableFilter<"Guest"> | string | null + notes?: Prisma.StringNullableFilter<"Guest"> | string | null + side?: Prisma.StringNullableFilter<"Guest"> | string | null + congratulated?: Prisma.BoolFilter<"Guest"> | boolean + isPlaceHolder?: Prisma.BoolFilter<"Guest"> | boolean + createdAt?: Prisma.DateTimeFilter<"Guest"> | Date | string + householdId?: Prisma.StringFilter<"Guest"> | string + household?: Prisma.XOR + eventGuest?: Prisma.EventGuestListRelationFilter +}, "id"> + +export type GuestOrderByWithAggregationInput = { + id?: Prisma.SortOrder + firstName?: Prisma.SortOrder + lastName?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + phone?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + side?: Prisma.SortOrderInput | Prisma.SortOrder + congratulated?: Prisma.SortOrder + isPlaceHolder?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + householdId?: Prisma.SortOrder + _count?: Prisma.GuestCountOrderByAggregateInput + _max?: Prisma.GuestMaxOrderByAggregateInput + _min?: Prisma.GuestMinOrderByAggregateInput +} + +export type GuestScalarWhereWithAggregatesInput = { + AND?: Prisma.GuestScalarWhereWithAggregatesInput | Prisma.GuestScalarWhereWithAggregatesInput[] + OR?: Prisma.GuestScalarWhereWithAggregatesInput[] + NOT?: Prisma.GuestScalarWhereWithAggregatesInput | Prisma.GuestScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Guest"> | string + firstName?: Prisma.StringWithAggregatesFilter<"Guest"> | string + lastName?: Prisma.StringNullableWithAggregatesFilter<"Guest"> | string | null + email?: Prisma.StringNullableWithAggregatesFilter<"Guest"> | string | null + phone?: Prisma.StringNullableWithAggregatesFilter<"Guest"> | string | null + notes?: Prisma.StringNullableWithAggregatesFilter<"Guest"> | string | null + side?: Prisma.StringNullableWithAggregatesFilter<"Guest"> | string | null + congratulated?: Prisma.BoolWithAggregatesFilter<"Guest"> | boolean + isPlaceHolder?: Prisma.BoolWithAggregatesFilter<"Guest"> | boolean + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Guest"> | Date | string + householdId?: Prisma.StringWithAggregatesFilter<"Guest"> | string +} + +export type GuestCreateInput = { + id?: string + firstName: string + lastName?: string | null + email?: string | null + phone?: string | null + notes?: string | null + side?: string | null + congratulated?: boolean + isPlaceHolder?: boolean + createdAt?: Date | string + household: Prisma.HouseholdCreateNestedOneWithoutGuestsInput + eventGuest?: Prisma.EventGuestCreateNestedManyWithoutGuestInput +} + +export type GuestUncheckedCreateInput = { + id?: string + firstName: string + lastName?: string | null + email?: string | null + phone?: string | null + notes?: string | null + side?: string | null + congratulated?: boolean + isPlaceHolder?: boolean + createdAt?: Date | string + householdId: string + eventGuest?: Prisma.EventGuestUncheckedCreateNestedManyWithoutGuestInput +} + +export type GuestUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + side?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + congratulated?: Prisma.BoolFieldUpdateOperationsInput | boolean + isPlaceHolder?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + household?: Prisma.HouseholdUpdateOneRequiredWithoutGuestsNestedInput + eventGuest?: Prisma.EventGuestUpdateManyWithoutGuestNestedInput +} + +export type GuestUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + side?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + congratulated?: Prisma.BoolFieldUpdateOperationsInput | boolean + isPlaceHolder?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + householdId?: Prisma.StringFieldUpdateOperationsInput | string + eventGuest?: Prisma.EventGuestUncheckedUpdateManyWithoutGuestNestedInput +} + +export type GuestCreateManyInput = { + id?: string + firstName: string + lastName?: string | null + email?: string | null + phone?: string | null + notes?: string | null + side?: string | null + congratulated?: boolean + isPlaceHolder?: boolean + createdAt?: Date | string + householdId: string +} + +export type GuestUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + side?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + congratulated?: Prisma.BoolFieldUpdateOperationsInput | boolean + isPlaceHolder?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type GuestUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + side?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + congratulated?: Prisma.BoolFieldUpdateOperationsInput | boolean + isPlaceHolder?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + householdId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type GuestListRelationFilter = { + every?: Prisma.GuestWhereInput + some?: Prisma.GuestWhereInput + none?: Prisma.GuestWhereInput +} + +export type GuestOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type GuestCountOrderByAggregateInput = { + id?: Prisma.SortOrder + firstName?: Prisma.SortOrder + lastName?: Prisma.SortOrder + email?: Prisma.SortOrder + phone?: Prisma.SortOrder + notes?: Prisma.SortOrder + side?: Prisma.SortOrder + congratulated?: Prisma.SortOrder + isPlaceHolder?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + householdId?: Prisma.SortOrder +} + +export type GuestMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + firstName?: Prisma.SortOrder + lastName?: Prisma.SortOrder + email?: Prisma.SortOrder + phone?: Prisma.SortOrder + notes?: Prisma.SortOrder + side?: Prisma.SortOrder + congratulated?: Prisma.SortOrder + isPlaceHolder?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + householdId?: Prisma.SortOrder +} + +export type GuestMinOrderByAggregateInput = { + id?: Prisma.SortOrder + firstName?: Prisma.SortOrder + lastName?: Prisma.SortOrder + email?: Prisma.SortOrder + phone?: Prisma.SortOrder + notes?: Prisma.SortOrder + side?: Prisma.SortOrder + congratulated?: Prisma.SortOrder + isPlaceHolder?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + householdId?: Prisma.SortOrder +} + +export type GuestScalarRelationFilter = { + is?: Prisma.GuestWhereInput + isNot?: Prisma.GuestWhereInput +} + +export type GuestCreateNestedManyWithoutHouseholdInput = { + create?: Prisma.XOR | Prisma.GuestCreateWithoutHouseholdInput[] | Prisma.GuestUncheckedCreateWithoutHouseholdInput[] + connectOrCreate?: Prisma.GuestCreateOrConnectWithoutHouseholdInput | Prisma.GuestCreateOrConnectWithoutHouseholdInput[] + createMany?: Prisma.GuestCreateManyHouseholdInputEnvelope + connect?: Prisma.GuestWhereUniqueInput | Prisma.GuestWhereUniqueInput[] +} + +export type GuestUncheckedCreateNestedManyWithoutHouseholdInput = { + create?: Prisma.XOR | Prisma.GuestCreateWithoutHouseholdInput[] | Prisma.GuestUncheckedCreateWithoutHouseholdInput[] + connectOrCreate?: Prisma.GuestCreateOrConnectWithoutHouseholdInput | Prisma.GuestCreateOrConnectWithoutHouseholdInput[] + createMany?: Prisma.GuestCreateManyHouseholdInputEnvelope + connect?: Prisma.GuestWhereUniqueInput | Prisma.GuestWhereUniqueInput[] +} + +export type GuestUpdateManyWithoutHouseholdNestedInput = { + create?: Prisma.XOR | Prisma.GuestCreateWithoutHouseholdInput[] | Prisma.GuestUncheckedCreateWithoutHouseholdInput[] + connectOrCreate?: Prisma.GuestCreateOrConnectWithoutHouseholdInput | Prisma.GuestCreateOrConnectWithoutHouseholdInput[] + upsert?: Prisma.GuestUpsertWithWhereUniqueWithoutHouseholdInput | Prisma.GuestUpsertWithWhereUniqueWithoutHouseholdInput[] + createMany?: Prisma.GuestCreateManyHouseholdInputEnvelope + set?: Prisma.GuestWhereUniqueInput | Prisma.GuestWhereUniqueInput[] + disconnect?: Prisma.GuestWhereUniqueInput | Prisma.GuestWhereUniqueInput[] + delete?: Prisma.GuestWhereUniqueInput | Prisma.GuestWhereUniqueInput[] + connect?: Prisma.GuestWhereUniqueInput | Prisma.GuestWhereUniqueInput[] + update?: Prisma.GuestUpdateWithWhereUniqueWithoutHouseholdInput | Prisma.GuestUpdateWithWhereUniqueWithoutHouseholdInput[] + updateMany?: Prisma.GuestUpdateManyWithWhereWithoutHouseholdInput | Prisma.GuestUpdateManyWithWhereWithoutHouseholdInput[] + deleteMany?: Prisma.GuestScalarWhereInput | Prisma.GuestScalarWhereInput[] +} + +export type GuestUncheckedUpdateManyWithoutHouseholdNestedInput = { + create?: Prisma.XOR | Prisma.GuestCreateWithoutHouseholdInput[] | Prisma.GuestUncheckedCreateWithoutHouseholdInput[] + connectOrCreate?: Prisma.GuestCreateOrConnectWithoutHouseholdInput | Prisma.GuestCreateOrConnectWithoutHouseholdInput[] + upsert?: Prisma.GuestUpsertWithWhereUniqueWithoutHouseholdInput | Prisma.GuestUpsertWithWhereUniqueWithoutHouseholdInput[] + createMany?: Prisma.GuestCreateManyHouseholdInputEnvelope + set?: Prisma.GuestWhereUniqueInput | Prisma.GuestWhereUniqueInput[] + disconnect?: Prisma.GuestWhereUniqueInput | Prisma.GuestWhereUniqueInput[] + delete?: Prisma.GuestWhereUniqueInput | Prisma.GuestWhereUniqueInput[] + connect?: Prisma.GuestWhereUniqueInput | Prisma.GuestWhereUniqueInput[] + update?: Prisma.GuestUpdateWithWhereUniqueWithoutHouseholdInput | Prisma.GuestUpdateWithWhereUniqueWithoutHouseholdInput[] + updateMany?: Prisma.GuestUpdateManyWithWhereWithoutHouseholdInput | Prisma.GuestUpdateManyWithWhereWithoutHouseholdInput[] + deleteMany?: Prisma.GuestScalarWhereInput | Prisma.GuestScalarWhereInput[] +} + +export type GuestCreateNestedOneWithoutEventGuestInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.GuestCreateOrConnectWithoutEventGuestInput + connect?: Prisma.GuestWhereUniqueInput +} + +export type GuestUpdateOneRequiredWithoutEventGuestNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.GuestCreateOrConnectWithoutEventGuestInput + upsert?: Prisma.GuestUpsertWithoutEventGuestInput + connect?: Prisma.GuestWhereUniqueInput + update?: Prisma.XOR, Prisma.GuestUncheckedUpdateWithoutEventGuestInput> +} + +export type GuestCreateWithoutHouseholdInput = { + id?: string + firstName: string + lastName?: string | null + email?: string | null + phone?: string | null + notes?: string | null + side?: string | null + congratulated?: boolean + isPlaceHolder?: boolean + createdAt?: Date | string + eventGuest?: Prisma.EventGuestCreateNestedManyWithoutGuestInput +} + +export type GuestUncheckedCreateWithoutHouseholdInput = { + id?: string + firstName: string + lastName?: string | null + email?: string | null + phone?: string | null + notes?: string | null + side?: string | null + congratulated?: boolean + isPlaceHolder?: boolean + createdAt?: Date | string + eventGuest?: Prisma.EventGuestUncheckedCreateNestedManyWithoutGuestInput +} + +export type GuestCreateOrConnectWithoutHouseholdInput = { + where: Prisma.GuestWhereUniqueInput + create: Prisma.XOR +} + +export type GuestCreateManyHouseholdInputEnvelope = { + data: Prisma.GuestCreateManyHouseholdInput | Prisma.GuestCreateManyHouseholdInput[] + skipDuplicates?: boolean +} + +export type GuestUpsertWithWhereUniqueWithoutHouseholdInput = { + where: Prisma.GuestWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type GuestUpdateWithWhereUniqueWithoutHouseholdInput = { + where: Prisma.GuestWhereUniqueInput + data: Prisma.XOR +} + +export type GuestUpdateManyWithWhereWithoutHouseholdInput = { + where: Prisma.GuestScalarWhereInput + data: Prisma.XOR +} + +export type GuestScalarWhereInput = { + AND?: Prisma.GuestScalarWhereInput | Prisma.GuestScalarWhereInput[] + OR?: Prisma.GuestScalarWhereInput[] + NOT?: Prisma.GuestScalarWhereInput | Prisma.GuestScalarWhereInput[] + id?: Prisma.StringFilter<"Guest"> | string + firstName?: Prisma.StringFilter<"Guest"> | string + lastName?: Prisma.StringNullableFilter<"Guest"> | string | null + email?: Prisma.StringNullableFilter<"Guest"> | string | null + phone?: Prisma.StringNullableFilter<"Guest"> | string | null + notes?: Prisma.StringNullableFilter<"Guest"> | string | null + side?: Prisma.StringNullableFilter<"Guest"> | string | null + congratulated?: Prisma.BoolFilter<"Guest"> | boolean + isPlaceHolder?: Prisma.BoolFilter<"Guest"> | boolean + createdAt?: Prisma.DateTimeFilter<"Guest"> | Date | string + householdId?: Prisma.StringFilter<"Guest"> | string +} + +export type GuestCreateWithoutEventGuestInput = { + id?: string + firstName: string + lastName?: string | null + email?: string | null + phone?: string | null + notes?: string | null + side?: string | null + congratulated?: boolean + isPlaceHolder?: boolean + createdAt?: Date | string + household: Prisma.HouseholdCreateNestedOneWithoutGuestsInput +} + +export type GuestUncheckedCreateWithoutEventGuestInput = { + id?: string + firstName: string + lastName?: string | null + email?: string | null + phone?: string | null + notes?: string | null + side?: string | null + congratulated?: boolean + isPlaceHolder?: boolean + createdAt?: Date | string + householdId: string +} + +export type GuestCreateOrConnectWithoutEventGuestInput = { + where: Prisma.GuestWhereUniqueInput + create: Prisma.XOR +} + +export type GuestUpsertWithoutEventGuestInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.GuestWhereInput +} + +export type GuestUpdateToOneWithWhereWithoutEventGuestInput = { + where?: Prisma.GuestWhereInput + data: Prisma.XOR +} + +export type GuestUpdateWithoutEventGuestInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + side?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + congratulated?: Prisma.BoolFieldUpdateOperationsInput | boolean + isPlaceHolder?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + household?: Prisma.HouseholdUpdateOneRequiredWithoutGuestsNestedInput +} + +export type GuestUncheckedUpdateWithoutEventGuestInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + side?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + congratulated?: Prisma.BoolFieldUpdateOperationsInput | boolean + isPlaceHolder?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + householdId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type GuestCreateManyHouseholdInput = { + id?: string + firstName: string + lastName?: string | null + email?: string | null + phone?: string | null + notes?: string | null + side?: string | null + congratulated?: boolean + isPlaceHolder?: boolean + createdAt?: Date | string +} + +export type GuestUpdateWithoutHouseholdInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + side?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + congratulated?: Prisma.BoolFieldUpdateOperationsInput | boolean + isPlaceHolder?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventGuest?: Prisma.EventGuestUpdateManyWithoutGuestNestedInput +} + +export type GuestUncheckedUpdateWithoutHouseholdInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + side?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + congratulated?: Prisma.BoolFieldUpdateOperationsInput | boolean + isPlaceHolder?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventGuest?: Prisma.EventGuestUncheckedUpdateManyWithoutGuestNestedInput +} + +export type GuestUncheckedUpdateManyWithoutHouseholdInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + firstName?: Prisma.StringFieldUpdateOperationsInput | string + lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + side?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + congratulated?: Prisma.BoolFieldUpdateOperationsInput | boolean + isPlaceHolder?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + +/** + * Count Type GuestCountOutputType + */ + +export type GuestCountOutputType = { + eventGuest: number +} + +export type GuestCountOutputTypeSelect = { + eventGuest?: boolean | GuestCountOutputTypeCountEventGuestArgs +} + +/** + * GuestCountOutputType without action + */ +export type GuestCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the GuestCountOutputType + */ + select?: Prisma.GuestCountOutputTypeSelect | null +} + +/** + * GuestCountOutputType without action + */ +export type GuestCountOutputTypeCountEventGuestArgs = { + where?: Prisma.EventGuestWhereInput +} + + +export type GuestSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + firstName?: boolean + lastName?: boolean + email?: boolean + phone?: boolean + notes?: boolean + side?: boolean + congratulated?: boolean + isPlaceHolder?: boolean + createdAt?: boolean + householdId?: boolean + household?: boolean | Prisma.HouseholdDefaultArgs + eventGuest?: boolean | Prisma.Guest$eventGuestArgs + _count?: boolean | Prisma.GuestCountOutputTypeDefaultArgs +}, ExtArgs["result"]["guest"]> + +export type GuestSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + firstName?: boolean + lastName?: boolean + email?: boolean + phone?: boolean + notes?: boolean + side?: boolean + congratulated?: boolean + isPlaceHolder?: boolean + createdAt?: boolean + householdId?: boolean + household?: boolean | Prisma.HouseholdDefaultArgs +}, ExtArgs["result"]["guest"]> + +export type GuestSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + firstName?: boolean + lastName?: boolean + email?: boolean + phone?: boolean + notes?: boolean + side?: boolean + congratulated?: boolean + isPlaceHolder?: boolean + createdAt?: boolean + householdId?: boolean + household?: boolean | Prisma.HouseholdDefaultArgs +}, ExtArgs["result"]["guest"]> + +export type GuestSelectScalar = { + id?: boolean + firstName?: boolean + lastName?: boolean + email?: boolean + phone?: boolean + notes?: boolean + side?: boolean + congratulated?: boolean + isPlaceHolder?: boolean + createdAt?: boolean + householdId?: boolean +} + +export type GuestOmit = runtime.Types.Extensions.GetOmit<"id" | "firstName" | "lastName" | "email" | "phone" | "notes" | "side" | "congratulated" | "isPlaceHolder" | "createdAt" | "householdId", ExtArgs["result"]["guest"]> +export type GuestInclude = { + household?: boolean | Prisma.HouseholdDefaultArgs + eventGuest?: boolean | Prisma.Guest$eventGuestArgs + _count?: boolean | Prisma.GuestCountOutputTypeDefaultArgs +} +export type GuestIncludeCreateManyAndReturn = { + household?: boolean | Prisma.HouseholdDefaultArgs +} +export type GuestIncludeUpdateManyAndReturn = { + household?: boolean | Prisma.HouseholdDefaultArgs +} + +export type $GuestPayload = { + name: "Guest" + objects: { + household: Prisma.$HouseholdPayload + eventGuest: Prisma.$EventGuestPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + firstName: string + lastName: string | null + email: string | null + phone: string | null + notes: string | null + side: string | null + congratulated: boolean + isPlaceHolder: boolean + createdAt: Date + householdId: string + }, ExtArgs["result"]["guest"]> + composites: {} +} + +export type GuestGetPayload = runtime.Types.Result.GetResult + +export type GuestCountArgs = + Omit & { + select?: GuestCountAggregateInputType | true + } + +export interface GuestDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Guest'], meta: { name: 'Guest' } } + /** + * Find zero or one Guest that matches the filter. + * @param {GuestFindUniqueArgs} args - Arguments to find a Guest + * @example + * // Get one Guest + * const guest = await prisma.guest.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__GuestClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Guest that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {GuestFindUniqueOrThrowArgs} args - Arguments to find a Guest + * @example + * // Get one Guest + * const guest = await prisma.guest.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__GuestClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Guest 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 {GuestFindFirstArgs} args - Arguments to find a Guest + * @example + * // Get one Guest + * const guest = await prisma.guest.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__GuestClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Guest 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 {GuestFindFirstOrThrowArgs} args - Arguments to find a Guest + * @example + * // Get one Guest + * const guest = await prisma.guest.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__GuestClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Guests 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 {GuestFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Guests + * const guests = await prisma.guest.findMany() + * + * // Get first 10 Guests + * const guests = await prisma.guest.findMany({ take: 10 }) + * + * // Only select the `id` + * const guestWithIdOnly = await prisma.guest.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Guest. + * @param {GuestCreateArgs} args - Arguments to create a Guest. + * @example + * // Create one Guest + * const Guest = await prisma.guest.create({ + * data: { + * // ... data to create a Guest + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__GuestClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Guests. + * @param {GuestCreateManyArgs} args - Arguments to create many Guests. + * @example + * // Create many Guests + * const guest = await prisma.guest.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Guests and returns the data saved in the database. + * @param {GuestCreateManyAndReturnArgs} args - Arguments to create many Guests. + * @example + * // Create many Guests + * const guest = await prisma.guest.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Guests and only return the `id` + * const guestWithIdOnly = await prisma.guest.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 Guest. + * @param {GuestDeleteArgs} args - Arguments to delete one Guest. + * @example + * // Delete one Guest + * const Guest = await prisma.guest.delete({ + * where: { + * // ... filter to delete one Guest + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__GuestClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Guest. + * @param {GuestUpdateArgs} args - Arguments to update one Guest. + * @example + * // Update one Guest + * const guest = await prisma.guest.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__GuestClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Guests. + * @param {GuestDeleteManyArgs} args - Arguments to filter Guests to delete. + * @example + * // Delete a few Guests + * const { count } = await prisma.guest.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Guests. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {GuestUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Guests + * const guest = await prisma.guest.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Guests and returns the data updated in the database. + * @param {GuestUpdateManyAndReturnArgs} args - Arguments to update many Guests. + * @example + * // Update many Guests + * const guest = await prisma.guest.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Guests and only return the `id` + * const guestWithIdOnly = await prisma.guest.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 Guest. + * @param {GuestUpsertArgs} args - Arguments to update or create a Guest. + * @example + * // Update or create a Guest + * const guest = await prisma.guest.upsert({ + * create: { + * // ... data to create a Guest + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Guest we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__GuestClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Guests. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {GuestCountArgs} args - Arguments to filter Guests to count. + * @example + * // Count the number of Guests + * const count = await prisma.guest.count({ + * where: { + * // ... the filter for the Guests 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 Guest. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {GuestAggregateArgs} 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 Guest. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {GuestGroupByArgs} 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 GuestGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: GuestGroupByArgs['orderBy'] } + : { orderBy?: GuestGroupByArgs['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 ? GetGuestGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Guest model + */ +readonly fields: GuestFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Guest. + * 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__GuestClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + household = {}>(args?: Prisma.Subset>): Prisma.Prisma__HouseholdClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + eventGuest = {}>(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 Guest model + */ +export interface GuestFieldRefs { + readonly id: Prisma.FieldRef<"Guest", 'String'> + readonly firstName: Prisma.FieldRef<"Guest", 'String'> + readonly lastName: Prisma.FieldRef<"Guest", 'String'> + readonly email: Prisma.FieldRef<"Guest", 'String'> + readonly phone: Prisma.FieldRef<"Guest", 'String'> + readonly notes: Prisma.FieldRef<"Guest", 'String'> + readonly side: Prisma.FieldRef<"Guest", 'String'> + readonly congratulated: Prisma.FieldRef<"Guest", 'Boolean'> + readonly isPlaceHolder: Prisma.FieldRef<"Guest", 'Boolean'> + readonly createdAt: Prisma.FieldRef<"Guest", 'DateTime'> + readonly householdId: Prisma.FieldRef<"Guest", 'String'> +} + + +// Custom InputTypes +/** + * Guest findUnique + */ +export type GuestFindUniqueArgs = { + /** + * Select specific fields to fetch from the Guest + */ + select?: Prisma.GuestSelect | null + /** + * Omit specific fields from the Guest + */ + omit?: Prisma.GuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.GuestInclude | null + /** + * Filter, which Guest to fetch. + */ + where: Prisma.GuestWhereUniqueInput +} + +/** + * Guest findUniqueOrThrow + */ +export type GuestFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Guest + */ + select?: Prisma.GuestSelect | null + /** + * Omit specific fields from the Guest + */ + omit?: Prisma.GuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.GuestInclude | null + /** + * Filter, which Guest to fetch. + */ + where: Prisma.GuestWhereUniqueInput +} + +/** + * Guest findFirst + */ +export type GuestFindFirstArgs = { + /** + * Select specific fields to fetch from the Guest + */ + select?: Prisma.GuestSelect | null + /** + * Omit specific fields from the Guest + */ + omit?: Prisma.GuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.GuestInclude | null + /** + * Filter, which Guest to fetch. + */ + where?: Prisma.GuestWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Guests to fetch. + */ + orderBy?: Prisma.GuestOrderByWithRelationInput | Prisma.GuestOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Guests. + */ + cursor?: Prisma.GuestWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Guests 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` Guests. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Guests. + */ + distinct?: Prisma.GuestScalarFieldEnum | Prisma.GuestScalarFieldEnum[] +} + +/** + * Guest findFirstOrThrow + */ +export type GuestFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Guest + */ + select?: Prisma.GuestSelect | null + /** + * Omit specific fields from the Guest + */ + omit?: Prisma.GuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.GuestInclude | null + /** + * Filter, which Guest to fetch. + */ + where?: Prisma.GuestWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Guests to fetch. + */ + orderBy?: Prisma.GuestOrderByWithRelationInput | Prisma.GuestOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Guests. + */ + cursor?: Prisma.GuestWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Guests 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` Guests. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Guests. + */ + distinct?: Prisma.GuestScalarFieldEnum | Prisma.GuestScalarFieldEnum[] +} + +/** + * Guest findMany + */ +export type GuestFindManyArgs = { + /** + * Select specific fields to fetch from the Guest + */ + select?: Prisma.GuestSelect | null + /** + * Omit specific fields from the Guest + */ + omit?: Prisma.GuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.GuestInclude | null + /** + * Filter, which Guests to fetch. + */ + where?: Prisma.GuestWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Guests to fetch. + */ + orderBy?: Prisma.GuestOrderByWithRelationInput | Prisma.GuestOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Guests. + */ + cursor?: Prisma.GuestWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Guests 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` Guests. + */ + skip?: number + distinct?: Prisma.GuestScalarFieldEnum | Prisma.GuestScalarFieldEnum[] +} + +/** + * Guest create + */ +export type GuestCreateArgs = { + /** + * Select specific fields to fetch from the Guest + */ + select?: Prisma.GuestSelect | null + /** + * Omit specific fields from the Guest + */ + omit?: Prisma.GuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.GuestInclude | null + /** + * The data needed to create a Guest. + */ + data: Prisma.XOR +} + +/** + * Guest createMany + */ +export type GuestCreateManyArgs = { + /** + * The data used to create many Guests. + */ + data: Prisma.GuestCreateManyInput | Prisma.GuestCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Guest createManyAndReturn + */ +export type GuestCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Guest + */ + select?: Prisma.GuestSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Guest + */ + omit?: Prisma.GuestOmit | null + /** + * The data used to create many Guests. + */ + data: Prisma.GuestCreateManyInput | Prisma.GuestCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.GuestIncludeCreateManyAndReturn | null +} + +/** + * Guest update + */ +export type GuestUpdateArgs = { + /** + * Select specific fields to fetch from the Guest + */ + select?: Prisma.GuestSelect | null + /** + * Omit specific fields from the Guest + */ + omit?: Prisma.GuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.GuestInclude | null + /** + * The data needed to update a Guest. + */ + data: Prisma.XOR + /** + * Choose, which Guest to update. + */ + where: Prisma.GuestWhereUniqueInput +} + +/** + * Guest updateMany + */ +export type GuestUpdateManyArgs = { + /** + * The data used to update Guests. + */ + data: Prisma.XOR + /** + * Filter which Guests to update + */ + where?: Prisma.GuestWhereInput + /** + * Limit how many Guests to update. + */ + limit?: number +} + +/** + * Guest updateManyAndReturn + */ +export type GuestUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Guest + */ + select?: Prisma.GuestSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Guest + */ + omit?: Prisma.GuestOmit | null + /** + * The data used to update Guests. + */ + data: Prisma.XOR + /** + * Filter which Guests to update + */ + where?: Prisma.GuestWhereInput + /** + * Limit how many Guests to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.GuestIncludeUpdateManyAndReturn | null +} + +/** + * Guest upsert + */ +export type GuestUpsertArgs = { + /** + * Select specific fields to fetch from the Guest + */ + select?: Prisma.GuestSelect | null + /** + * Omit specific fields from the Guest + */ + omit?: Prisma.GuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.GuestInclude | null + /** + * The filter to search for the Guest to update in case it exists. + */ + where: Prisma.GuestWhereUniqueInput + /** + * In case the Guest found by the `where` argument doesn't exist, create a new Guest with this data. + */ + create: Prisma.XOR + /** + * In case the Guest was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Guest delete + */ +export type GuestDeleteArgs = { + /** + * Select specific fields to fetch from the Guest + */ + select?: Prisma.GuestSelect | null + /** + * Omit specific fields from the Guest + */ + omit?: Prisma.GuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.GuestInclude | null + /** + * Filter which Guest to delete. + */ + where: Prisma.GuestWhereUniqueInput +} + +/** + * Guest deleteMany + */ +export type GuestDeleteManyArgs = { + /** + * Filter which Guests to delete + */ + where?: Prisma.GuestWhereInput + /** + * Limit how many Guests to delete. + */ + limit?: number +} + +/** + * Guest.eventGuest + */ +export type Guest$eventGuestArgs = { + /** + * Select specific fields to fetch from the EventGuest + */ + select?: Prisma.EventGuestSelect | null + /** + * Omit specific fields from the EventGuest + */ + omit?: Prisma.EventGuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventGuestInclude | null + where?: Prisma.EventGuestWhereInput + orderBy?: Prisma.EventGuestOrderByWithRelationInput | Prisma.EventGuestOrderByWithRelationInput[] + cursor?: Prisma.EventGuestWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.EventGuestScalarFieldEnum | Prisma.EventGuestScalarFieldEnum[] +} + +/** + * Guest without action + */ +export type GuestDefaultArgs = { + /** + * Select specific fields to fetch from the Guest + */ + select?: Prisma.GuestSelect | null + /** + * Omit specific fields from the Guest + */ + omit?: Prisma.GuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.GuestInclude | null +} diff --git a/src/lib/generated/prisma/models/Household.ts b/src/lib/generated/prisma/models/Household.ts new file mode 100644 index 0000000..2f94297 --- /dev/null +++ b/src/lib/generated/prisma/models/Household.ts @@ -0,0 +1,1701 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Household` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/library" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model Household + * + */ +export type HouseholdModel = runtime.Types.Result.DefaultSelection + +export type AggregateHousehold = { + _count: HouseholdCountAggregateOutputType | null + _min: HouseholdMinAggregateOutputType | null + _max: HouseholdMaxAggregateOutputType | null +} + +export type HouseholdMinAggregateOutputType = { + id: string | null + name: string | null + token: string | null + notes: string | null + createdAt: Date | null + updatedAt: Date | null + projectId: string | null + addressId: string | null +} + +export type HouseholdMaxAggregateOutputType = { + id: string | null + name: string | null + token: string | null + notes: string | null + createdAt: Date | null + updatedAt: Date | null + projectId: string | null + addressId: string | null +} + +export type HouseholdCountAggregateOutputType = { + id: number + name: number + token: number + notes: number + createdAt: number + updatedAt: number + projectId: number + addressId: number + _all: number +} + + +export type HouseholdMinAggregateInputType = { + id?: true + name?: true + token?: true + notes?: true + createdAt?: true + updatedAt?: true + projectId?: true + addressId?: true +} + +export type HouseholdMaxAggregateInputType = { + id?: true + name?: true + token?: true + notes?: true + createdAt?: true + updatedAt?: true + projectId?: true + addressId?: true +} + +export type HouseholdCountAggregateInputType = { + id?: true + name?: true + token?: true + notes?: true + createdAt?: true + updatedAt?: true + projectId?: true + addressId?: true + _all?: true +} + +export type HouseholdAggregateArgs = { + /** + * Filter which Household to aggregate. + */ + where?: Prisma.HouseholdWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Households to fetch. + */ + orderBy?: Prisma.HouseholdOrderByWithRelationInput | Prisma.HouseholdOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.HouseholdWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Households 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` Households. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Households + **/ + _count?: true | HouseholdCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: HouseholdMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: HouseholdMaxAggregateInputType +} + +export type GetHouseholdAggregateType = { + [P in keyof T & keyof AggregateHousehold]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type HouseholdGroupByArgs = { + where?: Prisma.HouseholdWhereInput + orderBy?: Prisma.HouseholdOrderByWithAggregationInput | Prisma.HouseholdOrderByWithAggregationInput[] + by: Prisma.HouseholdScalarFieldEnum[] | Prisma.HouseholdScalarFieldEnum + having?: Prisma.HouseholdScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: HouseholdCountAggregateInputType | true + _min?: HouseholdMinAggregateInputType + _max?: HouseholdMaxAggregateInputType +} + +export type HouseholdGroupByOutputType = { + id: string + name: string + token: string + notes: string | null + createdAt: Date + updatedAt: Date + projectId: string + addressId: string + _count: HouseholdCountAggregateOutputType | null + _min: HouseholdMinAggregateOutputType | null + _max: HouseholdMaxAggregateOutputType | null +} + +type GetHouseholdGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof HouseholdGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type HouseholdWhereInput = { + AND?: Prisma.HouseholdWhereInput | Prisma.HouseholdWhereInput[] + OR?: Prisma.HouseholdWhereInput[] + NOT?: Prisma.HouseholdWhereInput | Prisma.HouseholdWhereInput[] + id?: Prisma.StringFilter<"Household"> | string + name?: Prisma.StringFilter<"Household"> | string + token?: Prisma.StringFilter<"Household"> | string + notes?: Prisma.StringNullableFilter<"Household"> | string | null + createdAt?: Prisma.DateTimeFilter<"Household"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Household"> | Date | string + projectId?: Prisma.StringFilter<"Household"> | string + addressId?: Prisma.StringFilter<"Household"> | string + project?: Prisma.XOR + address?: Prisma.XOR + guests?: Prisma.GuestListRelationFilter +} + +export type HouseholdOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + token?: Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + addressId?: Prisma.SortOrder + project?: Prisma.ProjectOrderByWithRelationInput + address?: Prisma.AddressOrderByWithRelationInput + guests?: Prisma.GuestOrderByRelationAggregateInput +} + +export type HouseholdWhereUniqueInput = Prisma.AtLeast<{ + id?: string + token?: string + addressId?: string + AND?: Prisma.HouseholdWhereInput | Prisma.HouseholdWhereInput[] + OR?: Prisma.HouseholdWhereInput[] + NOT?: Prisma.HouseholdWhereInput | Prisma.HouseholdWhereInput[] + name?: Prisma.StringFilter<"Household"> | string + notes?: Prisma.StringNullableFilter<"Household"> | string | null + createdAt?: Prisma.DateTimeFilter<"Household"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Household"> | Date | string + projectId?: Prisma.StringFilter<"Household"> | string + project?: Prisma.XOR + address?: Prisma.XOR + guests?: Prisma.GuestListRelationFilter +}, "id" | "token" | "addressId"> + +export type HouseholdOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + token?: Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + addressId?: Prisma.SortOrder + _count?: Prisma.HouseholdCountOrderByAggregateInput + _max?: Prisma.HouseholdMaxOrderByAggregateInput + _min?: Prisma.HouseholdMinOrderByAggregateInput +} + +export type HouseholdScalarWhereWithAggregatesInput = { + AND?: Prisma.HouseholdScalarWhereWithAggregatesInput | Prisma.HouseholdScalarWhereWithAggregatesInput[] + OR?: Prisma.HouseholdScalarWhereWithAggregatesInput[] + NOT?: Prisma.HouseholdScalarWhereWithAggregatesInput | Prisma.HouseholdScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Household"> | string + name?: Prisma.StringWithAggregatesFilter<"Household"> | string + token?: Prisma.StringWithAggregatesFilter<"Household"> | string + notes?: Prisma.StringNullableWithAggregatesFilter<"Household"> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Household"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Household"> | Date | string + projectId?: Prisma.StringWithAggregatesFilter<"Household"> | string + addressId?: Prisma.StringWithAggregatesFilter<"Household"> | string +} + +export type HouseholdCreateInput = { + id?: string + name: string + token?: string + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutHouseholdsInput + address: Prisma.AddressCreateNestedOneWithoutHouseholdInput + guests?: Prisma.GuestCreateNestedManyWithoutHouseholdInput +} + +export type HouseholdUncheckedCreateInput = { + id?: string + name: string + token?: string + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + projectId: string + addressId: string + guests?: Prisma.GuestUncheckedCreateNestedManyWithoutHouseholdInput +} + +export type HouseholdUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + token?: Prisma.StringFieldUpdateOperationsInput | string + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutHouseholdsNestedInput + address?: Prisma.AddressUpdateOneRequiredWithoutHouseholdNestedInput + guests?: Prisma.GuestUpdateManyWithoutHouseholdNestedInput +} + +export type HouseholdUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + token?: Prisma.StringFieldUpdateOperationsInput | string + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + addressId?: Prisma.StringFieldUpdateOperationsInput | string + guests?: Prisma.GuestUncheckedUpdateManyWithoutHouseholdNestedInput +} + +export type HouseholdCreateManyInput = { + id?: string + name: string + token?: string + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + projectId: string + addressId: string +} + +export type HouseholdUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + token?: Prisma.StringFieldUpdateOperationsInput | string + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type HouseholdUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + token?: Prisma.StringFieldUpdateOperationsInput | string + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + addressId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type HouseholdListRelationFilter = { + every?: Prisma.HouseholdWhereInput + some?: Prisma.HouseholdWhereInput + none?: Prisma.HouseholdWhereInput +} + +export type HouseholdOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type HouseholdNullableScalarRelationFilter = { + is?: Prisma.HouseholdWhereInput | null + isNot?: Prisma.HouseholdWhereInput | null +} + +export type HouseholdCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + token?: Prisma.SortOrder + notes?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + addressId?: Prisma.SortOrder +} + +export type HouseholdMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + token?: Prisma.SortOrder + notes?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + addressId?: Prisma.SortOrder +} + +export type HouseholdMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + token?: Prisma.SortOrder + notes?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + addressId?: Prisma.SortOrder +} + +export type HouseholdScalarRelationFilter = { + is?: Prisma.HouseholdWhereInput + isNot?: Prisma.HouseholdWhereInput +} + +export type HouseholdCreateNestedManyWithoutProjectInput = { + create?: Prisma.XOR | Prisma.HouseholdCreateWithoutProjectInput[] | Prisma.HouseholdUncheckedCreateWithoutProjectInput[] + connectOrCreate?: Prisma.HouseholdCreateOrConnectWithoutProjectInput | Prisma.HouseholdCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.HouseholdCreateManyProjectInputEnvelope + connect?: Prisma.HouseholdWhereUniqueInput | Prisma.HouseholdWhereUniqueInput[] +} + +export type HouseholdUncheckedCreateNestedManyWithoutProjectInput = { + create?: Prisma.XOR | Prisma.HouseholdCreateWithoutProjectInput[] | Prisma.HouseholdUncheckedCreateWithoutProjectInput[] + connectOrCreate?: Prisma.HouseholdCreateOrConnectWithoutProjectInput | Prisma.HouseholdCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.HouseholdCreateManyProjectInputEnvelope + connect?: Prisma.HouseholdWhereUniqueInput | Prisma.HouseholdWhereUniqueInput[] +} + +export type HouseholdUpdateManyWithoutProjectNestedInput = { + create?: Prisma.XOR | Prisma.HouseholdCreateWithoutProjectInput[] | Prisma.HouseholdUncheckedCreateWithoutProjectInput[] + connectOrCreate?: Prisma.HouseholdCreateOrConnectWithoutProjectInput | Prisma.HouseholdCreateOrConnectWithoutProjectInput[] + upsert?: Prisma.HouseholdUpsertWithWhereUniqueWithoutProjectInput | Prisma.HouseholdUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.HouseholdCreateManyProjectInputEnvelope + set?: Prisma.HouseholdWhereUniqueInput | Prisma.HouseholdWhereUniqueInput[] + disconnect?: Prisma.HouseholdWhereUniqueInput | Prisma.HouseholdWhereUniqueInput[] + delete?: Prisma.HouseholdWhereUniqueInput | Prisma.HouseholdWhereUniqueInput[] + connect?: Prisma.HouseholdWhereUniqueInput | Prisma.HouseholdWhereUniqueInput[] + update?: Prisma.HouseholdUpdateWithWhereUniqueWithoutProjectInput | Prisma.HouseholdUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: Prisma.HouseholdUpdateManyWithWhereWithoutProjectInput | Prisma.HouseholdUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.HouseholdScalarWhereInput | Prisma.HouseholdScalarWhereInput[] +} + +export type HouseholdUncheckedUpdateManyWithoutProjectNestedInput = { + create?: Prisma.XOR | Prisma.HouseholdCreateWithoutProjectInput[] | Prisma.HouseholdUncheckedCreateWithoutProjectInput[] + connectOrCreate?: Prisma.HouseholdCreateOrConnectWithoutProjectInput | Prisma.HouseholdCreateOrConnectWithoutProjectInput[] + upsert?: Prisma.HouseholdUpsertWithWhereUniqueWithoutProjectInput | Prisma.HouseholdUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.HouseholdCreateManyProjectInputEnvelope + set?: Prisma.HouseholdWhereUniqueInput | Prisma.HouseholdWhereUniqueInput[] + disconnect?: Prisma.HouseholdWhereUniqueInput | Prisma.HouseholdWhereUniqueInput[] + delete?: Prisma.HouseholdWhereUniqueInput | Prisma.HouseholdWhereUniqueInput[] + connect?: Prisma.HouseholdWhereUniqueInput | Prisma.HouseholdWhereUniqueInput[] + update?: Prisma.HouseholdUpdateWithWhereUniqueWithoutProjectInput | Prisma.HouseholdUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: Prisma.HouseholdUpdateManyWithWhereWithoutProjectInput | Prisma.HouseholdUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.HouseholdScalarWhereInput | Prisma.HouseholdScalarWhereInput[] +} + +export type HouseholdCreateNestedOneWithoutAddressInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.HouseholdCreateOrConnectWithoutAddressInput + connect?: Prisma.HouseholdWhereUniqueInput +} + +export type HouseholdUncheckedCreateNestedOneWithoutAddressInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.HouseholdCreateOrConnectWithoutAddressInput + connect?: Prisma.HouseholdWhereUniqueInput +} + +export type HouseholdUpdateOneWithoutAddressNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.HouseholdCreateOrConnectWithoutAddressInput + upsert?: Prisma.HouseholdUpsertWithoutAddressInput + disconnect?: Prisma.HouseholdWhereInput | boolean + delete?: Prisma.HouseholdWhereInput | boolean + connect?: Prisma.HouseholdWhereUniqueInput + update?: Prisma.XOR, Prisma.HouseholdUncheckedUpdateWithoutAddressInput> +} + +export type HouseholdUncheckedUpdateOneWithoutAddressNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.HouseholdCreateOrConnectWithoutAddressInput + upsert?: Prisma.HouseholdUpsertWithoutAddressInput + disconnect?: Prisma.HouseholdWhereInput | boolean + delete?: Prisma.HouseholdWhereInput | boolean + connect?: Prisma.HouseholdWhereUniqueInput + update?: Prisma.XOR, Prisma.HouseholdUncheckedUpdateWithoutAddressInput> +} + +export type HouseholdCreateNestedOneWithoutGuestsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.HouseholdCreateOrConnectWithoutGuestsInput + connect?: Prisma.HouseholdWhereUniqueInput +} + +export type HouseholdUpdateOneRequiredWithoutGuestsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.HouseholdCreateOrConnectWithoutGuestsInput + upsert?: Prisma.HouseholdUpsertWithoutGuestsInput + connect?: Prisma.HouseholdWhereUniqueInput + update?: Prisma.XOR, Prisma.HouseholdUncheckedUpdateWithoutGuestsInput> +} + +export type HouseholdCreateWithoutProjectInput = { + id?: string + name: string + token?: string + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + address: Prisma.AddressCreateNestedOneWithoutHouseholdInput + guests?: Prisma.GuestCreateNestedManyWithoutHouseholdInput +} + +export type HouseholdUncheckedCreateWithoutProjectInput = { + id?: string + name: string + token?: string + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + addressId: string + guests?: Prisma.GuestUncheckedCreateNestedManyWithoutHouseholdInput +} + +export type HouseholdCreateOrConnectWithoutProjectInput = { + where: Prisma.HouseholdWhereUniqueInput + create: Prisma.XOR +} + +export type HouseholdCreateManyProjectInputEnvelope = { + data: Prisma.HouseholdCreateManyProjectInput | Prisma.HouseholdCreateManyProjectInput[] + skipDuplicates?: boolean +} + +export type HouseholdUpsertWithWhereUniqueWithoutProjectInput = { + where: Prisma.HouseholdWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type HouseholdUpdateWithWhereUniqueWithoutProjectInput = { + where: Prisma.HouseholdWhereUniqueInput + data: Prisma.XOR +} + +export type HouseholdUpdateManyWithWhereWithoutProjectInput = { + where: Prisma.HouseholdScalarWhereInput + data: Prisma.XOR +} + +export type HouseholdScalarWhereInput = { + AND?: Prisma.HouseholdScalarWhereInput | Prisma.HouseholdScalarWhereInput[] + OR?: Prisma.HouseholdScalarWhereInput[] + NOT?: Prisma.HouseholdScalarWhereInput | Prisma.HouseholdScalarWhereInput[] + id?: Prisma.StringFilter<"Household"> | string + name?: Prisma.StringFilter<"Household"> | string + token?: Prisma.StringFilter<"Household"> | string + notes?: Prisma.StringNullableFilter<"Household"> | string | null + createdAt?: Prisma.DateTimeFilter<"Household"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Household"> | Date | string + projectId?: Prisma.StringFilter<"Household"> | string + addressId?: Prisma.StringFilter<"Household"> | string +} + +export type HouseholdCreateWithoutAddressInput = { + id?: string + name: string + token?: string + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutHouseholdsInput + guests?: Prisma.GuestCreateNestedManyWithoutHouseholdInput +} + +export type HouseholdUncheckedCreateWithoutAddressInput = { + id?: string + name: string + token?: string + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + projectId: string + guests?: Prisma.GuestUncheckedCreateNestedManyWithoutHouseholdInput +} + +export type HouseholdCreateOrConnectWithoutAddressInput = { + where: Prisma.HouseholdWhereUniqueInput + create: Prisma.XOR +} + +export type HouseholdUpsertWithoutAddressInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.HouseholdWhereInput +} + +export type HouseholdUpdateToOneWithWhereWithoutAddressInput = { + where?: Prisma.HouseholdWhereInput + data: Prisma.XOR +} + +export type HouseholdUpdateWithoutAddressInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + token?: Prisma.StringFieldUpdateOperationsInput | string + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutHouseholdsNestedInput + guests?: Prisma.GuestUpdateManyWithoutHouseholdNestedInput +} + +export type HouseholdUncheckedUpdateWithoutAddressInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + token?: Prisma.StringFieldUpdateOperationsInput | string + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + guests?: Prisma.GuestUncheckedUpdateManyWithoutHouseholdNestedInput +} + +export type HouseholdCreateWithoutGuestsInput = { + id?: string + name: string + token?: string + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutHouseholdsInput + address: Prisma.AddressCreateNestedOneWithoutHouseholdInput +} + +export type HouseholdUncheckedCreateWithoutGuestsInput = { + id?: string + name: string + token?: string + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + projectId: string + addressId: string +} + +export type HouseholdCreateOrConnectWithoutGuestsInput = { + where: Prisma.HouseholdWhereUniqueInput + create: Prisma.XOR +} + +export type HouseholdUpsertWithoutGuestsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.HouseholdWhereInput +} + +export type HouseholdUpdateToOneWithWhereWithoutGuestsInput = { + where?: Prisma.HouseholdWhereInput + data: Prisma.XOR +} + +export type HouseholdUpdateWithoutGuestsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + token?: Prisma.StringFieldUpdateOperationsInput | string + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutHouseholdsNestedInput + address?: Prisma.AddressUpdateOneRequiredWithoutHouseholdNestedInput +} + +export type HouseholdUncheckedUpdateWithoutGuestsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + token?: Prisma.StringFieldUpdateOperationsInput | string + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + addressId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type HouseholdCreateManyProjectInput = { + id?: string + name: string + token?: string + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + addressId: string +} + +export type HouseholdUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + token?: Prisma.StringFieldUpdateOperationsInput | string + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + address?: Prisma.AddressUpdateOneRequiredWithoutHouseholdNestedInput + guests?: Prisma.GuestUpdateManyWithoutHouseholdNestedInput +} + +export type HouseholdUncheckedUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + token?: Prisma.StringFieldUpdateOperationsInput | string + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + addressId?: Prisma.StringFieldUpdateOperationsInput | string + guests?: Prisma.GuestUncheckedUpdateManyWithoutHouseholdNestedInput +} + +export type HouseholdUncheckedUpdateManyWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + token?: Prisma.StringFieldUpdateOperationsInput | string + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + addressId?: Prisma.StringFieldUpdateOperationsInput | string +} + + +/** + * Count Type HouseholdCountOutputType + */ + +export type HouseholdCountOutputType = { + guests: number +} + +export type HouseholdCountOutputTypeSelect = { + guests?: boolean | HouseholdCountOutputTypeCountGuestsArgs +} + +/** + * HouseholdCountOutputType without action + */ +export type HouseholdCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the HouseholdCountOutputType + */ + select?: Prisma.HouseholdCountOutputTypeSelect | null +} + +/** + * HouseholdCountOutputType without action + */ +export type HouseholdCountOutputTypeCountGuestsArgs = { + where?: Prisma.GuestWhereInput +} + + +export type HouseholdSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + token?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + projectId?: boolean + addressId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs + address?: boolean | Prisma.AddressDefaultArgs + guests?: boolean | Prisma.Household$guestsArgs + _count?: boolean | Prisma.HouseholdCountOutputTypeDefaultArgs +}, ExtArgs["result"]["household"]> + +export type HouseholdSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + token?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + projectId?: boolean + addressId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs + address?: boolean | Prisma.AddressDefaultArgs +}, ExtArgs["result"]["household"]> + +export type HouseholdSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + token?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + projectId?: boolean + addressId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs + address?: boolean | Prisma.AddressDefaultArgs +}, ExtArgs["result"]["household"]> + +export type HouseholdSelectScalar = { + id?: boolean + name?: boolean + token?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + projectId?: boolean + addressId?: boolean +} + +export type HouseholdOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "token" | "notes" | "createdAt" | "updatedAt" | "projectId" | "addressId", ExtArgs["result"]["household"]> +export type HouseholdInclude = { + project?: boolean | Prisma.ProjectDefaultArgs + address?: boolean | Prisma.AddressDefaultArgs + guests?: boolean | Prisma.Household$guestsArgs + _count?: boolean | Prisma.HouseholdCountOutputTypeDefaultArgs +} +export type HouseholdIncludeCreateManyAndReturn = { + project?: boolean | Prisma.ProjectDefaultArgs + address?: boolean | Prisma.AddressDefaultArgs +} +export type HouseholdIncludeUpdateManyAndReturn = { + project?: boolean | Prisma.ProjectDefaultArgs + address?: boolean | Prisma.AddressDefaultArgs +} + +export type $HouseholdPayload = { + name: "Household" + objects: { + project: Prisma.$ProjectPayload + address: Prisma.$AddressPayload + guests: Prisma.$GuestPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + name: string + token: string + notes: string | null + createdAt: Date + updatedAt: Date + projectId: string + addressId: string + }, ExtArgs["result"]["household"]> + composites: {} +} + +export type HouseholdGetPayload = runtime.Types.Result.GetResult + +export type HouseholdCountArgs = + Omit & { + select?: HouseholdCountAggregateInputType | true + } + +export interface HouseholdDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Household'], meta: { name: 'Household' } } + /** + * Find zero or one Household that matches the filter. + * @param {HouseholdFindUniqueArgs} args - Arguments to find a Household + * @example + * // Get one Household + * const household = await prisma.household.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__HouseholdClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Household that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {HouseholdFindUniqueOrThrowArgs} args - Arguments to find a Household + * @example + * // Get one Household + * const household = await prisma.household.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__HouseholdClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Household 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 {HouseholdFindFirstArgs} args - Arguments to find a Household + * @example + * // Get one Household + * const household = await prisma.household.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__HouseholdClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Household 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 {HouseholdFindFirstOrThrowArgs} args - Arguments to find a Household + * @example + * // Get one Household + * const household = await prisma.household.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__HouseholdClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Households 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 {HouseholdFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Households + * const households = await prisma.household.findMany() + * + * // Get first 10 Households + * const households = await prisma.household.findMany({ take: 10 }) + * + * // Only select the `id` + * const householdWithIdOnly = await prisma.household.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Household. + * @param {HouseholdCreateArgs} args - Arguments to create a Household. + * @example + * // Create one Household + * const Household = await prisma.household.create({ + * data: { + * // ... data to create a Household + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__HouseholdClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Households. + * @param {HouseholdCreateManyArgs} args - Arguments to create many Households. + * @example + * // Create many Households + * const household = await prisma.household.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Households and returns the data saved in the database. + * @param {HouseholdCreateManyAndReturnArgs} args - Arguments to create many Households. + * @example + * // Create many Households + * const household = await prisma.household.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Households and only return the `id` + * const householdWithIdOnly = await prisma.household.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 Household. + * @param {HouseholdDeleteArgs} args - Arguments to delete one Household. + * @example + * // Delete one Household + * const Household = await prisma.household.delete({ + * where: { + * // ... filter to delete one Household + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__HouseholdClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Household. + * @param {HouseholdUpdateArgs} args - Arguments to update one Household. + * @example + * // Update one Household + * const household = await prisma.household.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__HouseholdClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Households. + * @param {HouseholdDeleteManyArgs} args - Arguments to filter Households to delete. + * @example + * // Delete a few Households + * const { count } = await prisma.household.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Households. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {HouseholdUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Households + * const household = await prisma.household.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Households and returns the data updated in the database. + * @param {HouseholdUpdateManyAndReturnArgs} args - Arguments to update many Households. + * @example + * // Update many Households + * const household = await prisma.household.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Households and only return the `id` + * const householdWithIdOnly = await prisma.household.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 Household. + * @param {HouseholdUpsertArgs} args - Arguments to update or create a Household. + * @example + * // Update or create a Household + * const household = await prisma.household.upsert({ + * create: { + * // ... data to create a Household + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Household we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__HouseholdClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Households. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {HouseholdCountArgs} args - Arguments to filter Households to count. + * @example + * // Count the number of Households + * const count = await prisma.household.count({ + * where: { + * // ... the filter for the Households 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 Household. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {HouseholdAggregateArgs} 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 Household. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {HouseholdGroupByArgs} 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 HouseholdGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: HouseholdGroupByArgs['orderBy'] } + : { orderBy?: HouseholdGroupByArgs['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 ? GetHouseholdGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Household model + */ +readonly fields: HouseholdFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Household. + * 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__HouseholdClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + project = {}>(args?: Prisma.Subset>): Prisma.Prisma__ProjectClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + address = {}>(args?: Prisma.Subset>): Prisma.Prisma__AddressClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + guests = {}>(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 Household model + */ +export interface HouseholdFieldRefs { + readonly id: Prisma.FieldRef<"Household", 'String'> + readonly name: Prisma.FieldRef<"Household", 'String'> + readonly token: Prisma.FieldRef<"Household", 'String'> + readonly notes: Prisma.FieldRef<"Household", 'String'> + readonly createdAt: Prisma.FieldRef<"Household", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Household", 'DateTime'> + readonly projectId: Prisma.FieldRef<"Household", 'String'> + readonly addressId: Prisma.FieldRef<"Household", 'String'> +} + + +// Custom InputTypes +/** + * Household findUnique + */ +export type HouseholdFindUniqueArgs = { + /** + * Select specific fields to fetch from the Household + */ + select?: Prisma.HouseholdSelect | null + /** + * Omit specific fields from the Household + */ + omit?: Prisma.HouseholdOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.HouseholdInclude | null + /** + * Filter, which Household to fetch. + */ + where: Prisma.HouseholdWhereUniqueInput +} + +/** + * Household findUniqueOrThrow + */ +export type HouseholdFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Household + */ + select?: Prisma.HouseholdSelect | null + /** + * Omit specific fields from the Household + */ + omit?: Prisma.HouseholdOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.HouseholdInclude | null + /** + * Filter, which Household to fetch. + */ + where: Prisma.HouseholdWhereUniqueInput +} + +/** + * Household findFirst + */ +export type HouseholdFindFirstArgs = { + /** + * Select specific fields to fetch from the Household + */ + select?: Prisma.HouseholdSelect | null + /** + * Omit specific fields from the Household + */ + omit?: Prisma.HouseholdOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.HouseholdInclude | null + /** + * Filter, which Household to fetch. + */ + where?: Prisma.HouseholdWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Households to fetch. + */ + orderBy?: Prisma.HouseholdOrderByWithRelationInput | Prisma.HouseholdOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Households. + */ + cursor?: Prisma.HouseholdWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Households 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` Households. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Households. + */ + distinct?: Prisma.HouseholdScalarFieldEnum | Prisma.HouseholdScalarFieldEnum[] +} + +/** + * Household findFirstOrThrow + */ +export type HouseholdFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Household + */ + select?: Prisma.HouseholdSelect | null + /** + * Omit specific fields from the Household + */ + omit?: Prisma.HouseholdOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.HouseholdInclude | null + /** + * Filter, which Household to fetch. + */ + where?: Prisma.HouseholdWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Households to fetch. + */ + orderBy?: Prisma.HouseholdOrderByWithRelationInput | Prisma.HouseholdOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Households. + */ + cursor?: Prisma.HouseholdWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Households 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` Households. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Households. + */ + distinct?: Prisma.HouseholdScalarFieldEnum | Prisma.HouseholdScalarFieldEnum[] +} + +/** + * Household findMany + */ +export type HouseholdFindManyArgs = { + /** + * Select specific fields to fetch from the Household + */ + select?: Prisma.HouseholdSelect | null + /** + * Omit specific fields from the Household + */ + omit?: Prisma.HouseholdOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.HouseholdInclude | null + /** + * Filter, which Households to fetch. + */ + where?: Prisma.HouseholdWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Households to fetch. + */ + orderBy?: Prisma.HouseholdOrderByWithRelationInput | Prisma.HouseholdOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Households. + */ + cursor?: Prisma.HouseholdWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Households 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` Households. + */ + skip?: number + distinct?: Prisma.HouseholdScalarFieldEnum | Prisma.HouseholdScalarFieldEnum[] +} + +/** + * Household create + */ +export type HouseholdCreateArgs = { + /** + * Select specific fields to fetch from the Household + */ + select?: Prisma.HouseholdSelect | null + /** + * Omit specific fields from the Household + */ + omit?: Prisma.HouseholdOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.HouseholdInclude | null + /** + * The data needed to create a Household. + */ + data: Prisma.XOR +} + +/** + * Household createMany + */ +export type HouseholdCreateManyArgs = { + /** + * The data used to create many Households. + */ + data: Prisma.HouseholdCreateManyInput | Prisma.HouseholdCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Household createManyAndReturn + */ +export type HouseholdCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Household + */ + select?: Prisma.HouseholdSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Household + */ + omit?: Prisma.HouseholdOmit | null + /** + * The data used to create many Households. + */ + data: Prisma.HouseholdCreateManyInput | Prisma.HouseholdCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.HouseholdIncludeCreateManyAndReturn | null +} + +/** + * Household update + */ +export type HouseholdUpdateArgs = { + /** + * Select specific fields to fetch from the Household + */ + select?: Prisma.HouseholdSelect | null + /** + * Omit specific fields from the Household + */ + omit?: Prisma.HouseholdOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.HouseholdInclude | null + /** + * The data needed to update a Household. + */ + data: Prisma.XOR + /** + * Choose, which Household to update. + */ + where: Prisma.HouseholdWhereUniqueInput +} + +/** + * Household updateMany + */ +export type HouseholdUpdateManyArgs = { + /** + * The data used to update Households. + */ + data: Prisma.XOR + /** + * Filter which Households to update + */ + where?: Prisma.HouseholdWhereInput + /** + * Limit how many Households to update. + */ + limit?: number +} + +/** + * Household updateManyAndReturn + */ +export type HouseholdUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Household + */ + select?: Prisma.HouseholdSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Household + */ + omit?: Prisma.HouseholdOmit | null + /** + * The data used to update Households. + */ + data: Prisma.XOR + /** + * Filter which Households to update + */ + where?: Prisma.HouseholdWhereInput + /** + * Limit how many Households to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.HouseholdIncludeUpdateManyAndReturn | null +} + +/** + * Household upsert + */ +export type HouseholdUpsertArgs = { + /** + * Select specific fields to fetch from the Household + */ + select?: Prisma.HouseholdSelect | null + /** + * Omit specific fields from the Household + */ + omit?: Prisma.HouseholdOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.HouseholdInclude | null + /** + * The filter to search for the Household to update in case it exists. + */ + where: Prisma.HouseholdWhereUniqueInput + /** + * In case the Household found by the `where` argument doesn't exist, create a new Household with this data. + */ + create: Prisma.XOR + /** + * In case the Household was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Household delete + */ +export type HouseholdDeleteArgs = { + /** + * Select specific fields to fetch from the Household + */ + select?: Prisma.HouseholdSelect | null + /** + * Omit specific fields from the Household + */ + omit?: Prisma.HouseholdOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.HouseholdInclude | null + /** + * Filter which Household to delete. + */ + where: Prisma.HouseholdWhereUniqueInput +} + +/** + * Household deleteMany + */ +export type HouseholdDeleteManyArgs = { + /** + * Filter which Households to delete + */ + where?: Prisma.HouseholdWhereInput + /** + * Limit how many Households to delete. + */ + limit?: number +} + +/** + * Household.guests + */ +export type Household$guestsArgs = { + /** + * Select specific fields to fetch from the Guest + */ + select?: Prisma.GuestSelect | null + /** + * Omit specific fields from the Guest + */ + omit?: Prisma.GuestOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.GuestInclude | null + where?: Prisma.GuestWhereInput + orderBy?: Prisma.GuestOrderByWithRelationInput | Prisma.GuestOrderByWithRelationInput[] + cursor?: Prisma.GuestWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.GuestScalarFieldEnum | Prisma.GuestScalarFieldEnum[] +} + +/** + * Household without action + */ +export type HouseholdDefaultArgs = { + /** + * Select specific fields to fetch from the Household + */ + select?: Prisma.HouseholdSelect | null + /** + * Omit specific fields from the Household + */ + omit?: Prisma.HouseholdOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.HouseholdInclude | null +} diff --git a/src/lib/generated/prisma/models/InviteToken.ts b/src/lib/generated/prisma/models/InviteToken.ts new file mode 100644 index 0000000..34049c6 --- /dev/null +++ b/src/lib/generated/prisma/models/InviteToken.ts @@ -0,0 +1,1647 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `InviteToken` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/library" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model InviteToken + * + */ +export type InviteTokenModel = runtime.Types.Result.DefaultSelection + +export type AggregateInviteToken = { + _count: InviteTokenCountAggregateOutputType | null + _min: InviteTokenMinAggregateOutputType | null + _max: InviteTokenMaxAggregateOutputType | null +} + +export type InviteTokenMinAggregateOutputType = { + id: string | null + email: string | null + role: $Enums.Role | null + token: string | null + expiresAt: Date | null + acceptedAt: Date | null + createdAt: Date | null + projectId: string | null + eventId: string | null +} + +export type InviteTokenMaxAggregateOutputType = { + id: string | null + email: string | null + role: $Enums.Role | null + token: string | null + expiresAt: Date | null + acceptedAt: Date | null + createdAt: Date | null + projectId: string | null + eventId: string | null +} + +export type InviteTokenCountAggregateOutputType = { + id: number + email: number + role: number + token: number + expiresAt: number + acceptedAt: number + createdAt: number + projectId: number + eventId: number + _all: number +} + + +export type InviteTokenMinAggregateInputType = { + id?: true + email?: true + role?: true + token?: true + expiresAt?: true + acceptedAt?: true + createdAt?: true + projectId?: true + eventId?: true +} + +export type InviteTokenMaxAggregateInputType = { + id?: true + email?: true + role?: true + token?: true + expiresAt?: true + acceptedAt?: true + createdAt?: true + projectId?: true + eventId?: true +} + +export type InviteTokenCountAggregateInputType = { + id?: true + email?: true + role?: true + token?: true + expiresAt?: true + acceptedAt?: true + createdAt?: true + projectId?: true + eventId?: true + _all?: true +} + +export type InviteTokenAggregateArgs = { + /** + * Filter which InviteToken to aggregate. + */ + where?: Prisma.InviteTokenWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of InviteTokens to fetch. + */ + orderBy?: Prisma.InviteTokenOrderByWithRelationInput | Prisma.InviteTokenOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.InviteTokenWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` InviteTokens 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` InviteTokens. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned InviteTokens + **/ + _count?: true | InviteTokenCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: InviteTokenMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: InviteTokenMaxAggregateInputType +} + +export type GetInviteTokenAggregateType = { + [P in keyof T & keyof AggregateInviteToken]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type InviteTokenGroupByArgs = { + where?: Prisma.InviteTokenWhereInput + orderBy?: Prisma.InviteTokenOrderByWithAggregationInput | Prisma.InviteTokenOrderByWithAggregationInput[] + by: Prisma.InviteTokenScalarFieldEnum[] | Prisma.InviteTokenScalarFieldEnum + having?: Prisma.InviteTokenScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: InviteTokenCountAggregateInputType | true + _min?: InviteTokenMinAggregateInputType + _max?: InviteTokenMaxAggregateInputType +} + +export type InviteTokenGroupByOutputType = { + id: string + email: string + role: $Enums.Role + token: string + expiresAt: Date + acceptedAt: Date | null + createdAt: Date + projectId: string + eventId: string | null + _count: InviteTokenCountAggregateOutputType | null + _min: InviteTokenMinAggregateOutputType | null + _max: InviteTokenMaxAggregateOutputType | null +} + +type GetInviteTokenGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof InviteTokenGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type InviteTokenWhereInput = { + AND?: Prisma.InviteTokenWhereInput | Prisma.InviteTokenWhereInput[] + OR?: Prisma.InviteTokenWhereInput[] + NOT?: Prisma.InviteTokenWhereInput | Prisma.InviteTokenWhereInput[] + id?: Prisma.StringFilter<"InviteToken"> | string + email?: Prisma.StringFilter<"InviteToken"> | string + role?: Prisma.EnumRoleFilter<"InviteToken"> | $Enums.Role + token?: Prisma.StringFilter<"InviteToken"> | string + expiresAt?: Prisma.DateTimeFilter<"InviteToken"> | Date | string + acceptedAt?: Prisma.DateTimeNullableFilter<"InviteToken"> | Date | string | null + createdAt?: Prisma.DateTimeFilter<"InviteToken"> | Date | string + projectId?: Prisma.StringFilter<"InviteToken"> | string + eventId?: Prisma.StringNullableFilter<"InviteToken"> | string | null + project?: Prisma.XOR + event?: Prisma.XOR | null +} + +export type InviteTokenOrderByWithRelationInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + role?: Prisma.SortOrder + token?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + acceptedAt?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + eventId?: Prisma.SortOrderInput | Prisma.SortOrder + project?: Prisma.ProjectOrderByWithRelationInput + event?: Prisma.EventOrderByWithRelationInput +} + +export type InviteTokenWhereUniqueInput = Prisma.AtLeast<{ + id?: string + token?: string + AND?: Prisma.InviteTokenWhereInput | Prisma.InviteTokenWhereInput[] + OR?: Prisma.InviteTokenWhereInput[] + NOT?: Prisma.InviteTokenWhereInput | Prisma.InviteTokenWhereInput[] + email?: Prisma.StringFilter<"InviteToken"> | string + role?: Prisma.EnumRoleFilter<"InviteToken"> | $Enums.Role + expiresAt?: Prisma.DateTimeFilter<"InviteToken"> | Date | string + acceptedAt?: Prisma.DateTimeNullableFilter<"InviteToken"> | Date | string | null + createdAt?: Prisma.DateTimeFilter<"InviteToken"> | Date | string + projectId?: Prisma.StringFilter<"InviteToken"> | string + eventId?: Prisma.StringNullableFilter<"InviteToken"> | string | null + project?: Prisma.XOR + event?: Prisma.XOR | null +}, "id" | "token"> + +export type InviteTokenOrderByWithAggregationInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + role?: Prisma.SortOrder + token?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + acceptedAt?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + eventId?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.InviteTokenCountOrderByAggregateInput + _max?: Prisma.InviteTokenMaxOrderByAggregateInput + _min?: Prisma.InviteTokenMinOrderByAggregateInput +} + +export type InviteTokenScalarWhereWithAggregatesInput = { + AND?: Prisma.InviteTokenScalarWhereWithAggregatesInput | Prisma.InviteTokenScalarWhereWithAggregatesInput[] + OR?: Prisma.InviteTokenScalarWhereWithAggregatesInput[] + NOT?: Prisma.InviteTokenScalarWhereWithAggregatesInput | Prisma.InviteTokenScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"InviteToken"> | string + email?: Prisma.StringWithAggregatesFilter<"InviteToken"> | string + role?: Prisma.EnumRoleWithAggregatesFilter<"InviteToken"> | $Enums.Role + token?: Prisma.StringWithAggregatesFilter<"InviteToken"> | string + expiresAt?: Prisma.DateTimeWithAggregatesFilter<"InviteToken"> | Date | string + acceptedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"InviteToken"> | Date | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<"InviteToken"> | Date | string + projectId?: Prisma.StringWithAggregatesFilter<"InviteToken"> | string + eventId?: Prisma.StringNullableWithAggregatesFilter<"InviteToken"> | string | null +} + +export type InviteTokenCreateInput = { + id?: string + email: string + role: $Enums.Role + token: string + expiresAt: Date | string + acceptedAt?: Date | string | null + createdAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutInvitesInput + event?: Prisma.EventCreateNestedOneWithoutInvitesInput +} + +export type InviteTokenUncheckedCreateInput = { + id?: string + email: string + role: $Enums.Role + token: string + expiresAt: Date | string + acceptedAt?: Date | string | null + createdAt?: Date | string + projectId: string + eventId?: string | null +} + +export type InviteTokenUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + token?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutInvitesNestedInput + event?: Prisma.EventUpdateOneWithoutInvitesNestedInput +} + +export type InviteTokenUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + token?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type InviteTokenCreateManyInput = { + id?: string + email: string + role: $Enums.Role + token: string + expiresAt: Date | string + acceptedAt?: Date | string | null + createdAt?: Date | string + projectId: string + eventId?: string | null +} + +export type InviteTokenUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + token?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type InviteTokenUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + token?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type InviteTokenListRelationFilter = { + every?: Prisma.InviteTokenWhereInput + some?: Prisma.InviteTokenWhereInput + none?: Prisma.InviteTokenWhereInput +} + +export type InviteTokenOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type InviteTokenCountOrderByAggregateInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + role?: Prisma.SortOrder + token?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + acceptedAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + eventId?: Prisma.SortOrder +} + +export type InviteTokenMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + role?: Prisma.SortOrder + token?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + acceptedAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + eventId?: Prisma.SortOrder +} + +export type InviteTokenMinOrderByAggregateInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + role?: Prisma.SortOrder + token?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + acceptedAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + eventId?: Prisma.SortOrder +} + +export type InviteTokenCreateNestedManyWithoutProjectInput = { + create?: Prisma.XOR | Prisma.InviteTokenCreateWithoutProjectInput[] | Prisma.InviteTokenUncheckedCreateWithoutProjectInput[] + connectOrCreate?: Prisma.InviteTokenCreateOrConnectWithoutProjectInput | Prisma.InviteTokenCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.InviteTokenCreateManyProjectInputEnvelope + connect?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] +} + +export type InviteTokenUncheckedCreateNestedManyWithoutProjectInput = { + create?: Prisma.XOR | Prisma.InviteTokenCreateWithoutProjectInput[] | Prisma.InviteTokenUncheckedCreateWithoutProjectInput[] + connectOrCreate?: Prisma.InviteTokenCreateOrConnectWithoutProjectInput | Prisma.InviteTokenCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.InviteTokenCreateManyProjectInputEnvelope + connect?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] +} + +export type InviteTokenUpdateManyWithoutProjectNestedInput = { + create?: Prisma.XOR | Prisma.InviteTokenCreateWithoutProjectInput[] | Prisma.InviteTokenUncheckedCreateWithoutProjectInput[] + connectOrCreate?: Prisma.InviteTokenCreateOrConnectWithoutProjectInput | Prisma.InviteTokenCreateOrConnectWithoutProjectInput[] + upsert?: Prisma.InviteTokenUpsertWithWhereUniqueWithoutProjectInput | Prisma.InviteTokenUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.InviteTokenCreateManyProjectInputEnvelope + set?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] + disconnect?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] + delete?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] + connect?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] + update?: Prisma.InviteTokenUpdateWithWhereUniqueWithoutProjectInput | Prisma.InviteTokenUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: Prisma.InviteTokenUpdateManyWithWhereWithoutProjectInput | Prisma.InviteTokenUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.InviteTokenScalarWhereInput | Prisma.InviteTokenScalarWhereInput[] +} + +export type InviteTokenUncheckedUpdateManyWithoutProjectNestedInput = { + create?: Prisma.XOR | Prisma.InviteTokenCreateWithoutProjectInput[] | Prisma.InviteTokenUncheckedCreateWithoutProjectInput[] + connectOrCreate?: Prisma.InviteTokenCreateOrConnectWithoutProjectInput | Prisma.InviteTokenCreateOrConnectWithoutProjectInput[] + upsert?: Prisma.InviteTokenUpsertWithWhereUniqueWithoutProjectInput | Prisma.InviteTokenUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.InviteTokenCreateManyProjectInputEnvelope + set?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] + disconnect?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] + delete?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] + connect?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] + update?: Prisma.InviteTokenUpdateWithWhereUniqueWithoutProjectInput | Prisma.InviteTokenUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: Prisma.InviteTokenUpdateManyWithWhereWithoutProjectInput | Prisma.InviteTokenUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.InviteTokenScalarWhereInput | Prisma.InviteTokenScalarWhereInput[] +} + +export type NullableDateTimeFieldUpdateOperationsInput = { + set?: Date | string | null +} + +export type InviteTokenCreateNestedManyWithoutEventInput = { + create?: Prisma.XOR | Prisma.InviteTokenCreateWithoutEventInput[] | Prisma.InviteTokenUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.InviteTokenCreateOrConnectWithoutEventInput | Prisma.InviteTokenCreateOrConnectWithoutEventInput[] + createMany?: Prisma.InviteTokenCreateManyEventInputEnvelope + connect?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] +} + +export type InviteTokenUncheckedCreateNestedManyWithoutEventInput = { + create?: Prisma.XOR | Prisma.InviteTokenCreateWithoutEventInput[] | Prisma.InviteTokenUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.InviteTokenCreateOrConnectWithoutEventInput | Prisma.InviteTokenCreateOrConnectWithoutEventInput[] + createMany?: Prisma.InviteTokenCreateManyEventInputEnvelope + connect?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] +} + +export type InviteTokenUpdateManyWithoutEventNestedInput = { + create?: Prisma.XOR | Prisma.InviteTokenCreateWithoutEventInput[] | Prisma.InviteTokenUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.InviteTokenCreateOrConnectWithoutEventInput | Prisma.InviteTokenCreateOrConnectWithoutEventInput[] + upsert?: Prisma.InviteTokenUpsertWithWhereUniqueWithoutEventInput | Prisma.InviteTokenUpsertWithWhereUniqueWithoutEventInput[] + createMany?: Prisma.InviteTokenCreateManyEventInputEnvelope + set?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] + disconnect?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] + delete?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] + connect?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] + update?: Prisma.InviteTokenUpdateWithWhereUniqueWithoutEventInput | Prisma.InviteTokenUpdateWithWhereUniqueWithoutEventInput[] + updateMany?: Prisma.InviteTokenUpdateManyWithWhereWithoutEventInput | Prisma.InviteTokenUpdateManyWithWhereWithoutEventInput[] + deleteMany?: Prisma.InviteTokenScalarWhereInput | Prisma.InviteTokenScalarWhereInput[] +} + +export type InviteTokenUncheckedUpdateManyWithoutEventNestedInput = { + create?: Prisma.XOR | Prisma.InviteTokenCreateWithoutEventInput[] | Prisma.InviteTokenUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.InviteTokenCreateOrConnectWithoutEventInput | Prisma.InviteTokenCreateOrConnectWithoutEventInput[] + upsert?: Prisma.InviteTokenUpsertWithWhereUniqueWithoutEventInput | Prisma.InviteTokenUpsertWithWhereUniqueWithoutEventInput[] + createMany?: Prisma.InviteTokenCreateManyEventInputEnvelope + set?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] + disconnect?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] + delete?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] + connect?: Prisma.InviteTokenWhereUniqueInput | Prisma.InviteTokenWhereUniqueInput[] + update?: Prisma.InviteTokenUpdateWithWhereUniqueWithoutEventInput | Prisma.InviteTokenUpdateWithWhereUniqueWithoutEventInput[] + updateMany?: Prisma.InviteTokenUpdateManyWithWhereWithoutEventInput | Prisma.InviteTokenUpdateManyWithWhereWithoutEventInput[] + deleteMany?: Prisma.InviteTokenScalarWhereInput | Prisma.InviteTokenScalarWhereInput[] +} + +export type InviteTokenCreateWithoutProjectInput = { + id?: string + email: string + role: $Enums.Role + token: string + expiresAt: Date | string + acceptedAt?: Date | string | null + createdAt?: Date | string + event?: Prisma.EventCreateNestedOneWithoutInvitesInput +} + +export type InviteTokenUncheckedCreateWithoutProjectInput = { + id?: string + email: string + role: $Enums.Role + token: string + expiresAt: Date | string + acceptedAt?: Date | string | null + createdAt?: Date | string + eventId?: string | null +} + +export type InviteTokenCreateOrConnectWithoutProjectInput = { + where: Prisma.InviteTokenWhereUniqueInput + create: Prisma.XOR +} + +export type InviteTokenCreateManyProjectInputEnvelope = { + data: Prisma.InviteTokenCreateManyProjectInput | Prisma.InviteTokenCreateManyProjectInput[] + skipDuplicates?: boolean +} + +export type InviteTokenUpsertWithWhereUniqueWithoutProjectInput = { + where: Prisma.InviteTokenWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type InviteTokenUpdateWithWhereUniqueWithoutProjectInput = { + where: Prisma.InviteTokenWhereUniqueInput + data: Prisma.XOR +} + +export type InviteTokenUpdateManyWithWhereWithoutProjectInput = { + where: Prisma.InviteTokenScalarWhereInput + data: Prisma.XOR +} + +export type InviteTokenScalarWhereInput = { + AND?: Prisma.InviteTokenScalarWhereInput | Prisma.InviteTokenScalarWhereInput[] + OR?: Prisma.InviteTokenScalarWhereInput[] + NOT?: Prisma.InviteTokenScalarWhereInput | Prisma.InviteTokenScalarWhereInput[] + id?: Prisma.StringFilter<"InviteToken"> | string + email?: Prisma.StringFilter<"InviteToken"> | string + role?: Prisma.EnumRoleFilter<"InviteToken"> | $Enums.Role + token?: Prisma.StringFilter<"InviteToken"> | string + expiresAt?: Prisma.DateTimeFilter<"InviteToken"> | Date | string + acceptedAt?: Prisma.DateTimeNullableFilter<"InviteToken"> | Date | string | null + createdAt?: Prisma.DateTimeFilter<"InviteToken"> | Date | string + projectId?: Prisma.StringFilter<"InviteToken"> | string + eventId?: Prisma.StringNullableFilter<"InviteToken"> | string | null +} + +export type InviteTokenCreateWithoutEventInput = { + id?: string + email: string + role: $Enums.Role + token: string + expiresAt: Date | string + acceptedAt?: Date | string | null + createdAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutInvitesInput +} + +export type InviteTokenUncheckedCreateWithoutEventInput = { + id?: string + email: string + role: $Enums.Role + token: string + expiresAt: Date | string + acceptedAt?: Date | string | null + createdAt?: Date | string + projectId: string +} + +export type InviteTokenCreateOrConnectWithoutEventInput = { + where: Prisma.InviteTokenWhereUniqueInput + create: Prisma.XOR +} + +export type InviteTokenCreateManyEventInputEnvelope = { + data: Prisma.InviteTokenCreateManyEventInput | Prisma.InviteTokenCreateManyEventInput[] + skipDuplicates?: boolean +} + +export type InviteTokenUpsertWithWhereUniqueWithoutEventInput = { + where: Prisma.InviteTokenWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type InviteTokenUpdateWithWhereUniqueWithoutEventInput = { + where: Prisma.InviteTokenWhereUniqueInput + data: Prisma.XOR +} + +export type InviteTokenUpdateManyWithWhereWithoutEventInput = { + where: Prisma.InviteTokenScalarWhereInput + data: Prisma.XOR +} + +export type InviteTokenCreateManyProjectInput = { + id?: string + email: string + role: $Enums.Role + token: string + expiresAt: Date | string + acceptedAt?: Date | string | null + createdAt?: Date | string + eventId?: string | null +} + +export type InviteTokenUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + token?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + event?: Prisma.EventUpdateOneWithoutInvitesNestedInput +} + +export type InviteTokenUncheckedUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + token?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type InviteTokenUncheckedUpdateManyWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + token?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type InviteTokenCreateManyEventInput = { + id?: string + email: string + role: $Enums.Role + token: string + expiresAt: Date | string + acceptedAt?: Date | string | null + createdAt?: Date | string + projectId: string +} + +export type InviteTokenUpdateWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + token?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutInvitesNestedInput +} + +export type InviteTokenUncheckedUpdateWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + token?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type InviteTokenUncheckedUpdateManyWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + token?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string +} + + + +export type InviteTokenSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + email?: boolean + role?: boolean + token?: boolean + expiresAt?: boolean + acceptedAt?: boolean + createdAt?: boolean + projectId?: boolean + eventId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs + event?: boolean | Prisma.InviteToken$eventArgs +}, ExtArgs["result"]["inviteToken"]> + +export type InviteTokenSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + email?: boolean + role?: boolean + token?: boolean + expiresAt?: boolean + acceptedAt?: boolean + createdAt?: boolean + projectId?: boolean + eventId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs + event?: boolean | Prisma.InviteToken$eventArgs +}, ExtArgs["result"]["inviteToken"]> + +export type InviteTokenSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + email?: boolean + role?: boolean + token?: boolean + expiresAt?: boolean + acceptedAt?: boolean + createdAt?: boolean + projectId?: boolean + eventId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs + event?: boolean | Prisma.InviteToken$eventArgs +}, ExtArgs["result"]["inviteToken"]> + +export type InviteTokenSelectScalar = { + id?: boolean + email?: boolean + role?: boolean + token?: boolean + expiresAt?: boolean + acceptedAt?: boolean + createdAt?: boolean + projectId?: boolean + eventId?: boolean +} + +export type InviteTokenOmit = runtime.Types.Extensions.GetOmit<"id" | "email" | "role" | "token" | "expiresAt" | "acceptedAt" | "createdAt" | "projectId" | "eventId", ExtArgs["result"]["inviteToken"]> +export type InviteTokenInclude = { + project?: boolean | Prisma.ProjectDefaultArgs + event?: boolean | Prisma.InviteToken$eventArgs +} +export type InviteTokenIncludeCreateManyAndReturn = { + project?: boolean | Prisma.ProjectDefaultArgs + event?: boolean | Prisma.InviteToken$eventArgs +} +export type InviteTokenIncludeUpdateManyAndReturn = { + project?: boolean | Prisma.ProjectDefaultArgs + event?: boolean | Prisma.InviteToken$eventArgs +} + +export type $InviteTokenPayload = { + name: "InviteToken" + objects: { + project: Prisma.$ProjectPayload + event: Prisma.$EventPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + email: string + role: $Enums.Role + token: string + expiresAt: Date + acceptedAt: Date | null + createdAt: Date + projectId: string + eventId: string | null + }, ExtArgs["result"]["inviteToken"]> + composites: {} +} + +export type InviteTokenGetPayload = runtime.Types.Result.GetResult + +export type InviteTokenCountArgs = + Omit & { + select?: InviteTokenCountAggregateInputType | true + } + +export interface InviteTokenDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['InviteToken'], meta: { name: 'InviteToken' } } + /** + * Find zero or one InviteToken that matches the filter. + * @param {InviteTokenFindUniqueArgs} args - Arguments to find a InviteToken + * @example + * // Get one InviteToken + * const inviteToken = await prisma.inviteToken.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__InviteTokenClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one InviteToken that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {InviteTokenFindUniqueOrThrowArgs} args - Arguments to find a InviteToken + * @example + * // Get one InviteToken + * const inviteToken = await prisma.inviteToken.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__InviteTokenClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first InviteToken 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 {InviteTokenFindFirstArgs} args - Arguments to find a InviteToken + * @example + * // Get one InviteToken + * const inviteToken = await prisma.inviteToken.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__InviteTokenClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first InviteToken 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 {InviteTokenFindFirstOrThrowArgs} args - Arguments to find a InviteToken + * @example + * // Get one InviteToken + * const inviteToken = await prisma.inviteToken.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__InviteTokenClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more InviteTokens 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 {InviteTokenFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all InviteTokens + * const inviteTokens = await prisma.inviteToken.findMany() + * + * // Get first 10 InviteTokens + * const inviteTokens = await prisma.inviteToken.findMany({ take: 10 }) + * + * // Only select the `id` + * const inviteTokenWithIdOnly = await prisma.inviteToken.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a InviteToken. + * @param {InviteTokenCreateArgs} args - Arguments to create a InviteToken. + * @example + * // Create one InviteToken + * const InviteToken = await prisma.inviteToken.create({ + * data: { + * // ... data to create a InviteToken + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__InviteTokenClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many InviteTokens. + * @param {InviteTokenCreateManyArgs} args - Arguments to create many InviteTokens. + * @example + * // Create many InviteTokens + * const inviteToken = await prisma.inviteToken.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many InviteTokens and returns the data saved in the database. + * @param {InviteTokenCreateManyAndReturnArgs} args - Arguments to create many InviteTokens. + * @example + * // Create many InviteTokens + * const inviteToken = await prisma.inviteToken.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many InviteTokens and only return the `id` + * const inviteTokenWithIdOnly = await prisma.inviteToken.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 InviteToken. + * @param {InviteTokenDeleteArgs} args - Arguments to delete one InviteToken. + * @example + * // Delete one InviteToken + * const InviteToken = await prisma.inviteToken.delete({ + * where: { + * // ... filter to delete one InviteToken + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__InviteTokenClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one InviteToken. + * @param {InviteTokenUpdateArgs} args - Arguments to update one InviteToken. + * @example + * // Update one InviteToken + * const inviteToken = await prisma.inviteToken.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__InviteTokenClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more InviteTokens. + * @param {InviteTokenDeleteManyArgs} args - Arguments to filter InviteTokens to delete. + * @example + * // Delete a few InviteTokens + * const { count } = await prisma.inviteToken.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more InviteTokens. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {InviteTokenUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many InviteTokens + * const inviteToken = await prisma.inviteToken.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more InviteTokens and returns the data updated in the database. + * @param {InviteTokenUpdateManyAndReturnArgs} args - Arguments to update many InviteTokens. + * @example + * // Update many InviteTokens + * const inviteToken = await prisma.inviteToken.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more InviteTokens and only return the `id` + * const inviteTokenWithIdOnly = await prisma.inviteToken.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 InviteToken. + * @param {InviteTokenUpsertArgs} args - Arguments to update or create a InviteToken. + * @example + * // Update or create a InviteToken + * const inviteToken = await prisma.inviteToken.upsert({ + * create: { + * // ... data to create a InviteToken + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the InviteToken we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__InviteTokenClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of InviteTokens. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {InviteTokenCountArgs} args - Arguments to filter InviteTokens to count. + * @example + * // Count the number of InviteTokens + * const count = await prisma.inviteToken.count({ + * where: { + * // ... the filter for the InviteTokens 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 InviteToken. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {InviteTokenAggregateArgs} 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 InviteToken. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {InviteTokenGroupByArgs} 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 InviteTokenGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: InviteTokenGroupByArgs['orderBy'] } + : { orderBy?: InviteTokenGroupByArgs['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 ? GetInviteTokenGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the InviteToken model + */ +readonly fields: InviteTokenFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for InviteToken. + * 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__InviteTokenClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + project = {}>(args?: Prisma.Subset>): Prisma.Prisma__ProjectClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + event = {}>(args?: Prisma.Subset>): Prisma.Prisma__EventClient, 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 InviteToken model + */ +export interface InviteTokenFieldRefs { + readonly id: Prisma.FieldRef<"InviteToken", 'String'> + readonly email: Prisma.FieldRef<"InviteToken", 'String'> + readonly role: Prisma.FieldRef<"InviteToken", 'Role'> + readonly token: Prisma.FieldRef<"InviteToken", 'String'> + readonly expiresAt: Prisma.FieldRef<"InviteToken", 'DateTime'> + readonly acceptedAt: Prisma.FieldRef<"InviteToken", 'DateTime'> + readonly createdAt: Prisma.FieldRef<"InviteToken", 'DateTime'> + readonly projectId: Prisma.FieldRef<"InviteToken", 'String'> + readonly eventId: Prisma.FieldRef<"InviteToken", 'String'> +} + + +// Custom InputTypes +/** + * InviteToken findUnique + */ +export type InviteTokenFindUniqueArgs = { + /** + * Select specific fields to fetch from the InviteToken + */ + select?: Prisma.InviteTokenSelect | null + /** + * Omit specific fields from the InviteToken + */ + omit?: Prisma.InviteTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteTokenInclude | null + /** + * Filter, which InviteToken to fetch. + */ + where: Prisma.InviteTokenWhereUniqueInput +} + +/** + * InviteToken findUniqueOrThrow + */ +export type InviteTokenFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the InviteToken + */ + select?: Prisma.InviteTokenSelect | null + /** + * Omit specific fields from the InviteToken + */ + omit?: Prisma.InviteTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteTokenInclude | null + /** + * Filter, which InviteToken to fetch. + */ + where: Prisma.InviteTokenWhereUniqueInput +} + +/** + * InviteToken findFirst + */ +export type InviteTokenFindFirstArgs = { + /** + * Select specific fields to fetch from the InviteToken + */ + select?: Prisma.InviteTokenSelect | null + /** + * Omit specific fields from the InviteToken + */ + omit?: Prisma.InviteTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteTokenInclude | null + /** + * Filter, which InviteToken to fetch. + */ + where?: Prisma.InviteTokenWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of InviteTokens to fetch. + */ + orderBy?: Prisma.InviteTokenOrderByWithRelationInput | Prisma.InviteTokenOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for InviteTokens. + */ + cursor?: Prisma.InviteTokenWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` InviteTokens 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` InviteTokens. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of InviteTokens. + */ + distinct?: Prisma.InviteTokenScalarFieldEnum | Prisma.InviteTokenScalarFieldEnum[] +} + +/** + * InviteToken findFirstOrThrow + */ +export type InviteTokenFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the InviteToken + */ + select?: Prisma.InviteTokenSelect | null + /** + * Omit specific fields from the InviteToken + */ + omit?: Prisma.InviteTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteTokenInclude | null + /** + * Filter, which InviteToken to fetch. + */ + where?: Prisma.InviteTokenWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of InviteTokens to fetch. + */ + orderBy?: Prisma.InviteTokenOrderByWithRelationInput | Prisma.InviteTokenOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for InviteTokens. + */ + cursor?: Prisma.InviteTokenWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` InviteTokens 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` InviteTokens. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of InviteTokens. + */ + distinct?: Prisma.InviteTokenScalarFieldEnum | Prisma.InviteTokenScalarFieldEnum[] +} + +/** + * InviteToken findMany + */ +export type InviteTokenFindManyArgs = { + /** + * Select specific fields to fetch from the InviteToken + */ + select?: Prisma.InviteTokenSelect | null + /** + * Omit specific fields from the InviteToken + */ + omit?: Prisma.InviteTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteTokenInclude | null + /** + * Filter, which InviteTokens to fetch. + */ + where?: Prisma.InviteTokenWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of InviteTokens to fetch. + */ + orderBy?: Prisma.InviteTokenOrderByWithRelationInput | Prisma.InviteTokenOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing InviteTokens. + */ + cursor?: Prisma.InviteTokenWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` InviteTokens 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` InviteTokens. + */ + skip?: number + distinct?: Prisma.InviteTokenScalarFieldEnum | Prisma.InviteTokenScalarFieldEnum[] +} + +/** + * InviteToken create + */ +export type InviteTokenCreateArgs = { + /** + * Select specific fields to fetch from the InviteToken + */ + select?: Prisma.InviteTokenSelect | null + /** + * Omit specific fields from the InviteToken + */ + omit?: Prisma.InviteTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteTokenInclude | null + /** + * The data needed to create a InviteToken. + */ + data: Prisma.XOR +} + +/** + * InviteToken createMany + */ +export type InviteTokenCreateManyArgs = { + /** + * The data used to create many InviteTokens. + */ + data: Prisma.InviteTokenCreateManyInput | Prisma.InviteTokenCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * InviteToken createManyAndReturn + */ +export type InviteTokenCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the InviteToken + */ + select?: Prisma.InviteTokenSelectCreateManyAndReturn | null + /** + * Omit specific fields from the InviteToken + */ + omit?: Prisma.InviteTokenOmit | null + /** + * The data used to create many InviteTokens. + */ + data: Prisma.InviteTokenCreateManyInput | Prisma.InviteTokenCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteTokenIncludeCreateManyAndReturn | null +} + +/** + * InviteToken update + */ +export type InviteTokenUpdateArgs = { + /** + * Select specific fields to fetch from the InviteToken + */ + select?: Prisma.InviteTokenSelect | null + /** + * Omit specific fields from the InviteToken + */ + omit?: Prisma.InviteTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteTokenInclude | null + /** + * The data needed to update a InviteToken. + */ + data: Prisma.XOR + /** + * Choose, which InviteToken to update. + */ + where: Prisma.InviteTokenWhereUniqueInput +} + +/** + * InviteToken updateMany + */ +export type InviteTokenUpdateManyArgs = { + /** + * The data used to update InviteTokens. + */ + data: Prisma.XOR + /** + * Filter which InviteTokens to update + */ + where?: Prisma.InviteTokenWhereInput + /** + * Limit how many InviteTokens to update. + */ + limit?: number +} + +/** + * InviteToken updateManyAndReturn + */ +export type InviteTokenUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the InviteToken + */ + select?: Prisma.InviteTokenSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the InviteToken + */ + omit?: Prisma.InviteTokenOmit | null + /** + * The data used to update InviteTokens. + */ + data: Prisma.XOR + /** + * Filter which InviteTokens to update + */ + where?: Prisma.InviteTokenWhereInput + /** + * Limit how many InviteTokens to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteTokenIncludeUpdateManyAndReturn | null +} + +/** + * InviteToken upsert + */ +export type InviteTokenUpsertArgs = { + /** + * Select specific fields to fetch from the InviteToken + */ + select?: Prisma.InviteTokenSelect | null + /** + * Omit specific fields from the InviteToken + */ + omit?: Prisma.InviteTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteTokenInclude | null + /** + * The filter to search for the InviteToken to update in case it exists. + */ + where: Prisma.InviteTokenWhereUniqueInput + /** + * In case the InviteToken found by the `where` argument doesn't exist, create a new InviteToken with this data. + */ + create: Prisma.XOR + /** + * In case the InviteToken was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * InviteToken delete + */ +export type InviteTokenDeleteArgs = { + /** + * Select specific fields to fetch from the InviteToken + */ + select?: Prisma.InviteTokenSelect | null + /** + * Omit specific fields from the InviteToken + */ + omit?: Prisma.InviteTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteTokenInclude | null + /** + * Filter which InviteToken to delete. + */ + where: Prisma.InviteTokenWhereUniqueInput +} + +/** + * InviteToken deleteMany + */ +export type InviteTokenDeleteManyArgs = { + /** + * Filter which InviteTokens to delete + */ + where?: Prisma.InviteTokenWhereInput + /** + * Limit how many InviteTokens to delete. + */ + limit?: number +} + +/** + * InviteToken.event + */ +export type InviteToken$eventArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelect | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventInclude | null + where?: Prisma.EventWhereInput +} + +/** + * InviteToken without action + */ +export type InviteTokenDefaultArgs = { + /** + * Select specific fields to fetch from the InviteToken + */ + select?: Prisma.InviteTokenSelect | null + /** + * Omit specific fields from the InviteToken + */ + omit?: Prisma.InviteTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteTokenInclude | null +} diff --git a/src/lib/generated/prisma/models/Membership.ts b/src/lib/generated/prisma/models/Membership.ts new file mode 100644 index 0000000..fe3a626 --- /dev/null +++ b/src/lib/generated/prisma/models/Membership.ts @@ -0,0 +1,1650 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Membership` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/library" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model Membership + * + */ +export type MembershipModel = runtime.Types.Result.DefaultSelection + +export type AggregateMembership = { + _count: MembershipCountAggregateOutputType | null + _min: MembershipMinAggregateOutputType | null + _max: MembershipMaxAggregateOutputType | null +} + +export type MembershipMinAggregateOutputType = { + id: string | null + role: $Enums.Role | null + createdAt: Date | null + userId: string | null + projectId: string | null + eventId: string | null +} + +export type MembershipMaxAggregateOutputType = { + id: string | null + role: $Enums.Role | null + createdAt: Date | null + userId: string | null + projectId: string | null + eventId: string | null +} + +export type MembershipCountAggregateOutputType = { + id: number + role: number + createdAt: number + userId: number + projectId: number + eventId: number + _all: number +} + + +export type MembershipMinAggregateInputType = { + id?: true + role?: true + createdAt?: true + userId?: true + projectId?: true + eventId?: true +} + +export type MembershipMaxAggregateInputType = { + id?: true + role?: true + createdAt?: true + userId?: true + projectId?: true + eventId?: true +} + +export type MembershipCountAggregateInputType = { + id?: true + role?: true + createdAt?: true + userId?: true + projectId?: true + eventId?: true + _all?: true +} + +export type MembershipAggregateArgs = { + /** + * Filter which Membership to aggregate. + */ + where?: Prisma.MembershipWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Memberships to fetch. + */ + orderBy?: Prisma.MembershipOrderByWithRelationInput | Prisma.MembershipOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.MembershipWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Memberships 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` Memberships. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Memberships + **/ + _count?: true | MembershipCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: MembershipMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: MembershipMaxAggregateInputType +} + +export type GetMembershipAggregateType = { + [P in keyof T & keyof AggregateMembership]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type MembershipGroupByArgs = { + where?: Prisma.MembershipWhereInput + orderBy?: Prisma.MembershipOrderByWithAggregationInput | Prisma.MembershipOrderByWithAggregationInput[] + by: Prisma.MembershipScalarFieldEnum[] | Prisma.MembershipScalarFieldEnum + having?: Prisma.MembershipScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: MembershipCountAggregateInputType | true + _min?: MembershipMinAggregateInputType + _max?: MembershipMaxAggregateInputType +} + +export type MembershipGroupByOutputType = { + id: string + role: $Enums.Role + createdAt: Date + userId: string + projectId: string + eventId: string | null + _count: MembershipCountAggregateOutputType | null + _min: MembershipMinAggregateOutputType | null + _max: MembershipMaxAggregateOutputType | null +} + +type GetMembershipGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof MembershipGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type MembershipWhereInput = { + AND?: Prisma.MembershipWhereInput | Prisma.MembershipWhereInput[] + OR?: Prisma.MembershipWhereInput[] + NOT?: Prisma.MembershipWhereInput | Prisma.MembershipWhereInput[] + id?: Prisma.StringFilter<"Membership"> | string + role?: Prisma.EnumRoleFilter<"Membership"> | $Enums.Role + createdAt?: Prisma.DateTimeFilter<"Membership"> | Date | string + userId?: Prisma.StringFilter<"Membership"> | string + projectId?: Prisma.StringFilter<"Membership"> | string + eventId?: Prisma.StringNullableFilter<"Membership"> | string | null + user?: Prisma.XOR + project?: Prisma.XOR + event?: Prisma.XOR | null +} + +export type MembershipOrderByWithRelationInput = { + id?: Prisma.SortOrder + role?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + userId?: Prisma.SortOrder + projectId?: Prisma.SortOrder + eventId?: Prisma.SortOrderInput | Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput + project?: Prisma.ProjectOrderByWithRelationInput + event?: Prisma.EventOrderByWithRelationInput +} + +export type MembershipWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.MembershipWhereInput | Prisma.MembershipWhereInput[] + OR?: Prisma.MembershipWhereInput[] + NOT?: Prisma.MembershipWhereInput | Prisma.MembershipWhereInput[] + role?: Prisma.EnumRoleFilter<"Membership"> | $Enums.Role + createdAt?: Prisma.DateTimeFilter<"Membership"> | Date | string + userId?: Prisma.StringFilter<"Membership"> | string + projectId?: Prisma.StringFilter<"Membership"> | string + eventId?: Prisma.StringNullableFilter<"Membership"> | string | null + user?: Prisma.XOR + project?: Prisma.XOR + event?: Prisma.XOR | null +}, "id"> + +export type MembershipOrderByWithAggregationInput = { + id?: Prisma.SortOrder + role?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + userId?: Prisma.SortOrder + projectId?: Prisma.SortOrder + eventId?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.MembershipCountOrderByAggregateInput + _max?: Prisma.MembershipMaxOrderByAggregateInput + _min?: Prisma.MembershipMinOrderByAggregateInput +} + +export type MembershipScalarWhereWithAggregatesInput = { + AND?: Prisma.MembershipScalarWhereWithAggregatesInput | Prisma.MembershipScalarWhereWithAggregatesInput[] + OR?: Prisma.MembershipScalarWhereWithAggregatesInput[] + NOT?: Prisma.MembershipScalarWhereWithAggregatesInput | Prisma.MembershipScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Membership"> | string + role?: Prisma.EnumRoleWithAggregatesFilter<"Membership"> | $Enums.Role + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Membership"> | Date | string + userId?: Prisma.StringWithAggregatesFilter<"Membership"> | string + projectId?: Prisma.StringWithAggregatesFilter<"Membership"> | string + eventId?: Prisma.StringNullableWithAggregatesFilter<"Membership"> | string | null +} + +export type MembershipCreateInput = { + id?: string + role: $Enums.Role + createdAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutMembershipsInput + project: Prisma.ProjectCreateNestedOneWithoutMembershipsInput + event?: Prisma.EventCreateNestedOneWithoutMembershipsInput +} + +export type MembershipUncheckedCreateInput = { + id?: string + role: $Enums.Role + createdAt?: Date | string + userId: string + projectId: string + eventId?: string | null +} + +export type MembershipUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutMembershipsNestedInput + project?: Prisma.ProjectUpdateOneRequiredWithoutMembershipsNestedInput + event?: Prisma.EventUpdateOneWithoutMembershipsNestedInput +} + +export type MembershipUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type MembershipCreateManyInput = { + id?: string + role: $Enums.Role + createdAt?: Date | string + userId: string + projectId: string + eventId?: string | null +} + +export type MembershipUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type MembershipUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type MembershipListRelationFilter = { + every?: Prisma.MembershipWhereInput + some?: Prisma.MembershipWhereInput + none?: Prisma.MembershipWhereInput +} + +export type MembershipOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type MembershipCountOrderByAggregateInput = { + id?: Prisma.SortOrder + role?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + userId?: Prisma.SortOrder + projectId?: Prisma.SortOrder + eventId?: Prisma.SortOrder +} + +export type MembershipMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + role?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + userId?: Prisma.SortOrder + projectId?: Prisma.SortOrder + eventId?: Prisma.SortOrder +} + +export type MembershipMinOrderByAggregateInput = { + id?: Prisma.SortOrder + role?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + userId?: Prisma.SortOrder + projectId?: Prisma.SortOrder + eventId?: Prisma.SortOrder +} + +export type MembershipCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.MembershipCreateWithoutUserInput[] | Prisma.MembershipUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.MembershipCreateOrConnectWithoutUserInput | Prisma.MembershipCreateOrConnectWithoutUserInput[] + createMany?: Prisma.MembershipCreateManyUserInputEnvelope + connect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] +} + +export type MembershipUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.MembershipCreateWithoutUserInput[] | Prisma.MembershipUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.MembershipCreateOrConnectWithoutUserInput | Prisma.MembershipCreateOrConnectWithoutUserInput[] + createMany?: Prisma.MembershipCreateManyUserInputEnvelope + connect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] +} + +export type MembershipUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.MembershipCreateWithoutUserInput[] | Prisma.MembershipUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.MembershipCreateOrConnectWithoutUserInput | Prisma.MembershipCreateOrConnectWithoutUserInput[] + upsert?: Prisma.MembershipUpsertWithWhereUniqueWithoutUserInput | Prisma.MembershipUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.MembershipCreateManyUserInputEnvelope + set?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + disconnect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + delete?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + connect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + update?: Prisma.MembershipUpdateWithWhereUniqueWithoutUserInput | Prisma.MembershipUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.MembershipUpdateManyWithWhereWithoutUserInput | Prisma.MembershipUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.MembershipScalarWhereInput | Prisma.MembershipScalarWhereInput[] +} + +export type MembershipUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.MembershipCreateWithoutUserInput[] | Prisma.MembershipUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.MembershipCreateOrConnectWithoutUserInput | Prisma.MembershipCreateOrConnectWithoutUserInput[] + upsert?: Prisma.MembershipUpsertWithWhereUniqueWithoutUserInput | Prisma.MembershipUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.MembershipCreateManyUserInputEnvelope + set?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + disconnect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + delete?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + connect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + update?: Prisma.MembershipUpdateWithWhereUniqueWithoutUserInput | Prisma.MembershipUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.MembershipUpdateManyWithWhereWithoutUserInput | Prisma.MembershipUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.MembershipScalarWhereInput | Prisma.MembershipScalarWhereInput[] +} + +export type MembershipCreateNestedManyWithoutProjectInput = { + create?: Prisma.XOR | Prisma.MembershipCreateWithoutProjectInput[] | Prisma.MembershipUncheckedCreateWithoutProjectInput[] + connectOrCreate?: Prisma.MembershipCreateOrConnectWithoutProjectInput | Prisma.MembershipCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.MembershipCreateManyProjectInputEnvelope + connect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] +} + +export type MembershipUncheckedCreateNestedManyWithoutProjectInput = { + create?: Prisma.XOR | Prisma.MembershipCreateWithoutProjectInput[] | Prisma.MembershipUncheckedCreateWithoutProjectInput[] + connectOrCreate?: Prisma.MembershipCreateOrConnectWithoutProjectInput | Prisma.MembershipCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.MembershipCreateManyProjectInputEnvelope + connect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] +} + +export type MembershipUpdateManyWithoutProjectNestedInput = { + create?: Prisma.XOR | Prisma.MembershipCreateWithoutProjectInput[] | Prisma.MembershipUncheckedCreateWithoutProjectInput[] + connectOrCreate?: Prisma.MembershipCreateOrConnectWithoutProjectInput | Prisma.MembershipCreateOrConnectWithoutProjectInput[] + upsert?: Prisma.MembershipUpsertWithWhereUniqueWithoutProjectInput | Prisma.MembershipUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.MembershipCreateManyProjectInputEnvelope + set?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + disconnect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + delete?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + connect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + update?: Prisma.MembershipUpdateWithWhereUniqueWithoutProjectInput | Prisma.MembershipUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: Prisma.MembershipUpdateManyWithWhereWithoutProjectInput | Prisma.MembershipUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.MembershipScalarWhereInput | Prisma.MembershipScalarWhereInput[] +} + +export type MembershipUncheckedUpdateManyWithoutProjectNestedInput = { + create?: Prisma.XOR | Prisma.MembershipCreateWithoutProjectInput[] | Prisma.MembershipUncheckedCreateWithoutProjectInput[] + connectOrCreate?: Prisma.MembershipCreateOrConnectWithoutProjectInput | Prisma.MembershipCreateOrConnectWithoutProjectInput[] + upsert?: Prisma.MembershipUpsertWithWhereUniqueWithoutProjectInput | Prisma.MembershipUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.MembershipCreateManyProjectInputEnvelope + set?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + disconnect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + delete?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + connect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + update?: Prisma.MembershipUpdateWithWhereUniqueWithoutProjectInput | Prisma.MembershipUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: Prisma.MembershipUpdateManyWithWhereWithoutProjectInput | Prisma.MembershipUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.MembershipScalarWhereInput | Prisma.MembershipScalarWhereInput[] +} + +export type EnumRoleFieldUpdateOperationsInput = { + set?: $Enums.Role +} + +export type MembershipCreateNestedManyWithoutEventInput = { + create?: Prisma.XOR | Prisma.MembershipCreateWithoutEventInput[] | Prisma.MembershipUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.MembershipCreateOrConnectWithoutEventInput | Prisma.MembershipCreateOrConnectWithoutEventInput[] + createMany?: Prisma.MembershipCreateManyEventInputEnvelope + connect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] +} + +export type MembershipUncheckedCreateNestedManyWithoutEventInput = { + create?: Prisma.XOR | Prisma.MembershipCreateWithoutEventInput[] | Prisma.MembershipUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.MembershipCreateOrConnectWithoutEventInput | Prisma.MembershipCreateOrConnectWithoutEventInput[] + createMany?: Prisma.MembershipCreateManyEventInputEnvelope + connect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] +} + +export type MembershipUpdateManyWithoutEventNestedInput = { + create?: Prisma.XOR | Prisma.MembershipCreateWithoutEventInput[] | Prisma.MembershipUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.MembershipCreateOrConnectWithoutEventInput | Prisma.MembershipCreateOrConnectWithoutEventInput[] + upsert?: Prisma.MembershipUpsertWithWhereUniqueWithoutEventInput | Prisma.MembershipUpsertWithWhereUniqueWithoutEventInput[] + createMany?: Prisma.MembershipCreateManyEventInputEnvelope + set?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + disconnect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + delete?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + connect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + update?: Prisma.MembershipUpdateWithWhereUniqueWithoutEventInput | Prisma.MembershipUpdateWithWhereUniqueWithoutEventInput[] + updateMany?: Prisma.MembershipUpdateManyWithWhereWithoutEventInput | Prisma.MembershipUpdateManyWithWhereWithoutEventInput[] + deleteMany?: Prisma.MembershipScalarWhereInput | Prisma.MembershipScalarWhereInput[] +} + +export type MembershipUncheckedUpdateManyWithoutEventNestedInput = { + create?: Prisma.XOR | Prisma.MembershipCreateWithoutEventInput[] | Prisma.MembershipUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.MembershipCreateOrConnectWithoutEventInput | Prisma.MembershipCreateOrConnectWithoutEventInput[] + upsert?: Prisma.MembershipUpsertWithWhereUniqueWithoutEventInput | Prisma.MembershipUpsertWithWhereUniqueWithoutEventInput[] + createMany?: Prisma.MembershipCreateManyEventInputEnvelope + set?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + disconnect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + delete?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + connect?: Prisma.MembershipWhereUniqueInput | Prisma.MembershipWhereUniqueInput[] + update?: Prisma.MembershipUpdateWithWhereUniqueWithoutEventInput | Prisma.MembershipUpdateWithWhereUniqueWithoutEventInput[] + updateMany?: Prisma.MembershipUpdateManyWithWhereWithoutEventInput | Prisma.MembershipUpdateManyWithWhereWithoutEventInput[] + deleteMany?: Prisma.MembershipScalarWhereInput | Prisma.MembershipScalarWhereInput[] +} + +export type MembershipCreateWithoutUserInput = { + id?: string + role: $Enums.Role + createdAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutMembershipsInput + event?: Prisma.EventCreateNestedOneWithoutMembershipsInput +} + +export type MembershipUncheckedCreateWithoutUserInput = { + id?: string + role: $Enums.Role + createdAt?: Date | string + projectId: string + eventId?: string | null +} + +export type MembershipCreateOrConnectWithoutUserInput = { + where: Prisma.MembershipWhereUniqueInput + create: Prisma.XOR +} + +export type MembershipCreateManyUserInputEnvelope = { + data: Prisma.MembershipCreateManyUserInput | Prisma.MembershipCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type MembershipUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.MembershipWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type MembershipUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.MembershipWhereUniqueInput + data: Prisma.XOR +} + +export type MembershipUpdateManyWithWhereWithoutUserInput = { + where: Prisma.MembershipScalarWhereInput + data: Prisma.XOR +} + +export type MembershipScalarWhereInput = { + AND?: Prisma.MembershipScalarWhereInput | Prisma.MembershipScalarWhereInput[] + OR?: Prisma.MembershipScalarWhereInput[] + NOT?: Prisma.MembershipScalarWhereInput | Prisma.MembershipScalarWhereInput[] + id?: Prisma.StringFilter<"Membership"> | string + role?: Prisma.EnumRoleFilter<"Membership"> | $Enums.Role + createdAt?: Prisma.DateTimeFilter<"Membership"> | Date | string + userId?: Prisma.StringFilter<"Membership"> | string + projectId?: Prisma.StringFilter<"Membership"> | string + eventId?: Prisma.StringNullableFilter<"Membership"> | string | null +} + +export type MembershipCreateWithoutProjectInput = { + id?: string + role: $Enums.Role + createdAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutMembershipsInput + event?: Prisma.EventCreateNestedOneWithoutMembershipsInput +} + +export type MembershipUncheckedCreateWithoutProjectInput = { + id?: string + role: $Enums.Role + createdAt?: Date | string + userId: string + eventId?: string | null +} + +export type MembershipCreateOrConnectWithoutProjectInput = { + where: Prisma.MembershipWhereUniqueInput + create: Prisma.XOR +} + +export type MembershipCreateManyProjectInputEnvelope = { + data: Prisma.MembershipCreateManyProjectInput | Prisma.MembershipCreateManyProjectInput[] + skipDuplicates?: boolean +} + +export type MembershipUpsertWithWhereUniqueWithoutProjectInput = { + where: Prisma.MembershipWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type MembershipUpdateWithWhereUniqueWithoutProjectInput = { + where: Prisma.MembershipWhereUniqueInput + data: Prisma.XOR +} + +export type MembershipUpdateManyWithWhereWithoutProjectInput = { + where: Prisma.MembershipScalarWhereInput + data: Prisma.XOR +} + +export type MembershipCreateWithoutEventInput = { + id?: string + role: $Enums.Role + createdAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutMembershipsInput + project: Prisma.ProjectCreateNestedOneWithoutMembershipsInput +} + +export type MembershipUncheckedCreateWithoutEventInput = { + id?: string + role: $Enums.Role + createdAt?: Date | string + userId: string + projectId: string +} + +export type MembershipCreateOrConnectWithoutEventInput = { + where: Prisma.MembershipWhereUniqueInput + create: Prisma.XOR +} + +export type MembershipCreateManyEventInputEnvelope = { + data: Prisma.MembershipCreateManyEventInput | Prisma.MembershipCreateManyEventInput[] + skipDuplicates?: boolean +} + +export type MembershipUpsertWithWhereUniqueWithoutEventInput = { + where: Prisma.MembershipWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type MembershipUpdateWithWhereUniqueWithoutEventInput = { + where: Prisma.MembershipWhereUniqueInput + data: Prisma.XOR +} + +export type MembershipUpdateManyWithWhereWithoutEventInput = { + where: Prisma.MembershipScalarWhereInput + data: Prisma.XOR +} + +export type MembershipCreateManyUserInput = { + id?: string + role: $Enums.Role + createdAt?: Date | string + projectId: string + eventId?: string | null +} + +export type MembershipUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutMembershipsNestedInput + event?: Prisma.EventUpdateOneWithoutMembershipsNestedInput +} + +export type MembershipUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type MembershipUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type MembershipCreateManyProjectInput = { + id?: string + role: $Enums.Role + createdAt?: Date | string + userId: string + eventId?: string | null +} + +export type MembershipUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutMembershipsNestedInput + event?: Prisma.EventUpdateOneWithoutMembershipsNestedInput +} + +export type MembershipUncheckedUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type MembershipUncheckedUpdateManyWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type MembershipCreateManyEventInput = { + id?: string + role: $Enums.Role + createdAt?: Date | string + userId: string + projectId: string +} + +export type MembershipUpdateWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutMembershipsNestedInput + project?: Prisma.ProjectUpdateOneRequiredWithoutMembershipsNestedInput +} + +export type MembershipUncheckedUpdateWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type MembershipUncheckedUpdateManyWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string +} + + + +export type MembershipSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + role?: boolean + createdAt?: boolean + userId?: boolean + projectId?: boolean + eventId?: boolean + user?: boolean | Prisma.UserDefaultArgs + project?: boolean | Prisma.ProjectDefaultArgs + event?: boolean | Prisma.Membership$eventArgs +}, ExtArgs["result"]["membership"]> + +export type MembershipSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + role?: boolean + createdAt?: boolean + userId?: boolean + projectId?: boolean + eventId?: boolean + user?: boolean | Prisma.UserDefaultArgs + project?: boolean | Prisma.ProjectDefaultArgs + event?: boolean | Prisma.Membership$eventArgs +}, ExtArgs["result"]["membership"]> + +export type MembershipSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + role?: boolean + createdAt?: boolean + userId?: boolean + projectId?: boolean + eventId?: boolean + user?: boolean | Prisma.UserDefaultArgs + project?: boolean | Prisma.ProjectDefaultArgs + event?: boolean | Prisma.Membership$eventArgs +}, ExtArgs["result"]["membership"]> + +export type MembershipSelectScalar = { + id?: boolean + role?: boolean + createdAt?: boolean + userId?: boolean + projectId?: boolean + eventId?: boolean +} + +export type MembershipOmit = runtime.Types.Extensions.GetOmit<"id" | "role" | "createdAt" | "userId" | "projectId" | "eventId", ExtArgs["result"]["membership"]> +export type MembershipInclude = { + user?: boolean | Prisma.UserDefaultArgs + project?: boolean | Prisma.ProjectDefaultArgs + event?: boolean | Prisma.Membership$eventArgs +} +export type MembershipIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + project?: boolean | Prisma.ProjectDefaultArgs + event?: boolean | Prisma.Membership$eventArgs +} +export type MembershipIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs + project?: boolean | Prisma.ProjectDefaultArgs + event?: boolean | Prisma.Membership$eventArgs +} + +export type $MembershipPayload = { + name: "Membership" + objects: { + user: Prisma.$UserPayload + project: Prisma.$ProjectPayload + event: Prisma.$EventPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + role: $Enums.Role + createdAt: Date + userId: string + projectId: string + eventId: string | null + }, ExtArgs["result"]["membership"]> + composites: {} +} + +export type MembershipGetPayload = runtime.Types.Result.GetResult + +export type MembershipCountArgs = + Omit & { + select?: MembershipCountAggregateInputType | true + } + +export interface MembershipDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Membership'], meta: { name: 'Membership' } } + /** + * Find zero or one Membership that matches the filter. + * @param {MembershipFindUniqueArgs} args - Arguments to find a Membership + * @example + * // Get one Membership + * const membership = await prisma.membership.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__MembershipClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Membership that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {MembershipFindUniqueOrThrowArgs} args - Arguments to find a Membership + * @example + * // Get one Membership + * const membership = await prisma.membership.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__MembershipClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Membership 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 {MembershipFindFirstArgs} args - Arguments to find a Membership + * @example + * // Get one Membership + * const membership = await prisma.membership.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__MembershipClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Membership 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 {MembershipFindFirstOrThrowArgs} args - Arguments to find a Membership + * @example + * // Get one Membership + * const membership = await prisma.membership.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__MembershipClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Memberships 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 {MembershipFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Memberships + * const memberships = await prisma.membership.findMany() + * + * // Get first 10 Memberships + * const memberships = await prisma.membership.findMany({ take: 10 }) + * + * // Only select the `id` + * const membershipWithIdOnly = await prisma.membership.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Membership. + * @param {MembershipCreateArgs} args - Arguments to create a Membership. + * @example + * // Create one Membership + * const Membership = await prisma.membership.create({ + * data: { + * // ... data to create a Membership + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__MembershipClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Memberships. + * @param {MembershipCreateManyArgs} args - Arguments to create many Memberships. + * @example + * // Create many Memberships + * const membership = await prisma.membership.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Memberships and returns the data saved in the database. + * @param {MembershipCreateManyAndReturnArgs} args - Arguments to create many Memberships. + * @example + * // Create many Memberships + * const membership = await prisma.membership.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Memberships and only return the `id` + * const membershipWithIdOnly = await prisma.membership.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 Membership. + * @param {MembershipDeleteArgs} args - Arguments to delete one Membership. + * @example + * // Delete one Membership + * const Membership = await prisma.membership.delete({ + * where: { + * // ... filter to delete one Membership + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__MembershipClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Membership. + * @param {MembershipUpdateArgs} args - Arguments to update one Membership. + * @example + * // Update one Membership + * const membership = await prisma.membership.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__MembershipClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Memberships. + * @param {MembershipDeleteManyArgs} args - Arguments to filter Memberships to delete. + * @example + * // Delete a few Memberships + * const { count } = await prisma.membership.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Memberships. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MembershipUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Memberships + * const membership = await prisma.membership.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Memberships and returns the data updated in the database. + * @param {MembershipUpdateManyAndReturnArgs} args - Arguments to update many Memberships. + * @example + * // Update many Memberships + * const membership = await prisma.membership.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Memberships and only return the `id` + * const membershipWithIdOnly = await prisma.membership.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 Membership. + * @param {MembershipUpsertArgs} args - Arguments to update or create a Membership. + * @example + * // Update or create a Membership + * const membership = await prisma.membership.upsert({ + * create: { + * // ... data to create a Membership + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Membership we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__MembershipClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Memberships. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MembershipCountArgs} args - Arguments to filter Memberships to count. + * @example + * // Count the number of Memberships + * const count = await prisma.membership.count({ + * where: { + * // ... the filter for the Memberships 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 Membership. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MembershipAggregateArgs} 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 Membership. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MembershipGroupByArgs} 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 MembershipGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: MembershipGroupByArgs['orderBy'] } + : { orderBy?: MembershipGroupByArgs['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 ? GetMembershipGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Membership model + */ +readonly fields: MembershipFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Membership. + * 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__MembershipClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + project = {}>(args?: Prisma.Subset>): Prisma.Prisma__ProjectClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + event = {}>(args?: Prisma.Subset>): Prisma.Prisma__EventClient, 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 Membership model + */ +export interface MembershipFieldRefs { + readonly id: Prisma.FieldRef<"Membership", 'String'> + readonly role: Prisma.FieldRef<"Membership", 'Role'> + readonly createdAt: Prisma.FieldRef<"Membership", 'DateTime'> + readonly userId: Prisma.FieldRef<"Membership", 'String'> + readonly projectId: Prisma.FieldRef<"Membership", 'String'> + readonly eventId: Prisma.FieldRef<"Membership", 'String'> +} + + +// Custom InputTypes +/** + * Membership findUnique + */ +export type MembershipFindUniqueArgs = { + /** + * Select specific fields to fetch from the Membership + */ + select?: Prisma.MembershipSelect | null + /** + * Omit specific fields from the Membership + */ + omit?: Prisma.MembershipOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MembershipInclude | null + /** + * Filter, which Membership to fetch. + */ + where: Prisma.MembershipWhereUniqueInput +} + +/** + * Membership findUniqueOrThrow + */ +export type MembershipFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Membership + */ + select?: Prisma.MembershipSelect | null + /** + * Omit specific fields from the Membership + */ + omit?: Prisma.MembershipOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MembershipInclude | null + /** + * Filter, which Membership to fetch. + */ + where: Prisma.MembershipWhereUniqueInput +} + +/** + * Membership findFirst + */ +export type MembershipFindFirstArgs = { + /** + * Select specific fields to fetch from the Membership + */ + select?: Prisma.MembershipSelect | null + /** + * Omit specific fields from the Membership + */ + omit?: Prisma.MembershipOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MembershipInclude | null + /** + * Filter, which Membership to fetch. + */ + where?: Prisma.MembershipWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Memberships to fetch. + */ + orderBy?: Prisma.MembershipOrderByWithRelationInput | Prisma.MembershipOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Memberships. + */ + cursor?: Prisma.MembershipWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Memberships 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` Memberships. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Memberships. + */ + distinct?: Prisma.MembershipScalarFieldEnum | Prisma.MembershipScalarFieldEnum[] +} + +/** + * Membership findFirstOrThrow + */ +export type MembershipFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Membership + */ + select?: Prisma.MembershipSelect | null + /** + * Omit specific fields from the Membership + */ + omit?: Prisma.MembershipOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MembershipInclude | null + /** + * Filter, which Membership to fetch. + */ + where?: Prisma.MembershipWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Memberships to fetch. + */ + orderBy?: Prisma.MembershipOrderByWithRelationInput | Prisma.MembershipOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Memberships. + */ + cursor?: Prisma.MembershipWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Memberships 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` Memberships. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Memberships. + */ + distinct?: Prisma.MembershipScalarFieldEnum | Prisma.MembershipScalarFieldEnum[] +} + +/** + * Membership findMany + */ +export type MembershipFindManyArgs = { + /** + * Select specific fields to fetch from the Membership + */ + select?: Prisma.MembershipSelect | null + /** + * Omit specific fields from the Membership + */ + omit?: Prisma.MembershipOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MembershipInclude | null + /** + * Filter, which Memberships to fetch. + */ + where?: Prisma.MembershipWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Memberships to fetch. + */ + orderBy?: Prisma.MembershipOrderByWithRelationInput | Prisma.MembershipOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Memberships. + */ + cursor?: Prisma.MembershipWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Memberships 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` Memberships. + */ + skip?: number + distinct?: Prisma.MembershipScalarFieldEnum | Prisma.MembershipScalarFieldEnum[] +} + +/** + * Membership create + */ +export type MembershipCreateArgs = { + /** + * Select specific fields to fetch from the Membership + */ + select?: Prisma.MembershipSelect | null + /** + * Omit specific fields from the Membership + */ + omit?: Prisma.MembershipOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MembershipInclude | null + /** + * The data needed to create a Membership. + */ + data: Prisma.XOR +} + +/** + * Membership createMany + */ +export type MembershipCreateManyArgs = { + /** + * The data used to create many Memberships. + */ + data: Prisma.MembershipCreateManyInput | Prisma.MembershipCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Membership createManyAndReturn + */ +export type MembershipCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Membership + */ + select?: Prisma.MembershipSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Membership + */ + omit?: Prisma.MembershipOmit | null + /** + * The data used to create many Memberships. + */ + data: Prisma.MembershipCreateManyInput | Prisma.MembershipCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MembershipIncludeCreateManyAndReturn | null +} + +/** + * Membership update + */ +export type MembershipUpdateArgs = { + /** + * Select specific fields to fetch from the Membership + */ + select?: Prisma.MembershipSelect | null + /** + * Omit specific fields from the Membership + */ + omit?: Prisma.MembershipOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MembershipInclude | null + /** + * The data needed to update a Membership. + */ + data: Prisma.XOR + /** + * Choose, which Membership to update. + */ + where: Prisma.MembershipWhereUniqueInput +} + +/** + * Membership updateMany + */ +export type MembershipUpdateManyArgs = { + /** + * The data used to update Memberships. + */ + data: Prisma.XOR + /** + * Filter which Memberships to update + */ + where?: Prisma.MembershipWhereInput + /** + * Limit how many Memberships to update. + */ + limit?: number +} + +/** + * Membership updateManyAndReturn + */ +export type MembershipUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Membership + */ + select?: Prisma.MembershipSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Membership + */ + omit?: Prisma.MembershipOmit | null + /** + * The data used to update Memberships. + */ + data: Prisma.XOR + /** + * Filter which Memberships to update + */ + where?: Prisma.MembershipWhereInput + /** + * Limit how many Memberships to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MembershipIncludeUpdateManyAndReturn | null +} + +/** + * Membership upsert + */ +export type MembershipUpsertArgs = { + /** + * Select specific fields to fetch from the Membership + */ + select?: Prisma.MembershipSelect | null + /** + * Omit specific fields from the Membership + */ + omit?: Prisma.MembershipOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MembershipInclude | null + /** + * The filter to search for the Membership to update in case it exists. + */ + where: Prisma.MembershipWhereUniqueInput + /** + * In case the Membership found by the `where` argument doesn't exist, create a new Membership with this data. + */ + create: Prisma.XOR + /** + * In case the Membership was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Membership delete + */ +export type MembershipDeleteArgs = { + /** + * Select specific fields to fetch from the Membership + */ + select?: Prisma.MembershipSelect | null + /** + * Omit specific fields from the Membership + */ + omit?: Prisma.MembershipOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MembershipInclude | null + /** + * Filter which Membership to delete. + */ + where: Prisma.MembershipWhereUniqueInput +} + +/** + * Membership deleteMany + */ +export type MembershipDeleteManyArgs = { + /** + * Filter which Memberships to delete + */ + where?: Prisma.MembershipWhereInput + /** + * Limit how many Memberships to delete. + */ + limit?: number +} + +/** + * Membership.event + */ +export type Membership$eventArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelect | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventInclude | null + where?: Prisma.EventWhereInput +} + +/** + * Membership without action + */ +export type MembershipDefaultArgs = { + /** + * Select specific fields to fetch from the Membership + */ + select?: Prisma.MembershipSelect | null + /** + * Omit specific fields from the Membership + */ + omit?: Prisma.MembershipOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MembershipInclude | null +} diff --git a/src/lib/generated/prisma/models/Project.ts b/src/lib/generated/prisma/models/Project.ts new file mode 100644 index 0000000..3a1d9d2 --- /dev/null +++ b/src/lib/generated/prisma/models/Project.ts @@ -0,0 +1,1688 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Project` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/library" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model Project + * + */ +export type ProjectModel = runtime.Types.Result.DefaultSelection + +export type AggregateProject = { + _count: ProjectCountAggregateOutputType | null + _min: ProjectMinAggregateOutputType | null + _max: ProjectMaxAggregateOutputType | null +} + +export type ProjectMinAggregateOutputType = { + id: string | null + name: string | null + createdAt: Date | null + updatedAt: Date | null + archivedAt: Date | null +} + +export type ProjectMaxAggregateOutputType = { + id: string | null + name: string | null + createdAt: Date | null + updatedAt: Date | null + archivedAt: Date | null +} + +export type ProjectCountAggregateOutputType = { + id: number + name: number + createdAt: number + updatedAt: number + archivedAt: number + _all: number +} + + +export type ProjectMinAggregateInputType = { + id?: true + name?: true + createdAt?: true + updatedAt?: true + archivedAt?: true +} + +export type ProjectMaxAggregateInputType = { + id?: true + name?: true + createdAt?: true + updatedAt?: true + archivedAt?: true +} + +export type ProjectCountAggregateInputType = { + id?: true + name?: true + createdAt?: true + updatedAt?: true + archivedAt?: true + _all?: true +} + +export type ProjectAggregateArgs = { + /** + * Filter which Project to aggregate. + */ + where?: Prisma.ProjectWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Projects to fetch. + */ + orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ProjectWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Projects 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` Projects. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Projects + **/ + _count?: true | ProjectCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ProjectMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ProjectMaxAggregateInputType +} + +export type GetProjectAggregateType = { + [P in keyof T & keyof AggregateProject]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ProjectGroupByArgs = { + where?: Prisma.ProjectWhereInput + orderBy?: Prisma.ProjectOrderByWithAggregationInput | Prisma.ProjectOrderByWithAggregationInput[] + by: Prisma.ProjectScalarFieldEnum[] | Prisma.ProjectScalarFieldEnum + having?: Prisma.ProjectScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ProjectCountAggregateInputType | true + _min?: ProjectMinAggregateInputType + _max?: ProjectMaxAggregateInputType +} + +export type ProjectGroupByOutputType = { + id: string + name: string + createdAt: Date + updatedAt: Date + archivedAt: Date + _count: ProjectCountAggregateOutputType | null + _min: ProjectMinAggregateOutputType | null + _max: ProjectMaxAggregateOutputType | null +} + +type GetProjectGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ProjectGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ProjectWhereInput = { + AND?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] + OR?: Prisma.ProjectWhereInput[] + NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] + id?: Prisma.StringFilter<"Project"> | string + name?: Prisma.StringFilter<"Project"> | string + createdAt?: Prisma.DateTimeFilter<"Project"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Project"> | Date | string + archivedAt?: Prisma.DateTimeFilter<"Project"> | Date | string + memberships?: Prisma.MembershipListRelationFilter + invites?: Prisma.InviteTokenListRelationFilter + events?: Prisma.EventListRelationFilter + households?: Prisma.HouseholdListRelationFilter +} + +export type ProjectOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + archivedAt?: Prisma.SortOrder + memberships?: Prisma.MembershipOrderByRelationAggregateInput + invites?: Prisma.InviteTokenOrderByRelationAggregateInput + events?: Prisma.EventOrderByRelationAggregateInput + households?: Prisma.HouseholdOrderByRelationAggregateInput +} + +export type ProjectWhereUniqueInput = Prisma.AtLeast<{ + id?: string + name?: string + AND?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] + OR?: Prisma.ProjectWhereInput[] + NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] + createdAt?: Prisma.DateTimeFilter<"Project"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Project"> | Date | string + archivedAt?: Prisma.DateTimeFilter<"Project"> | Date | string + memberships?: Prisma.MembershipListRelationFilter + invites?: Prisma.InviteTokenListRelationFilter + events?: Prisma.EventListRelationFilter + households?: Prisma.HouseholdListRelationFilter +}, "id" | "name"> + +export type ProjectOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + archivedAt?: Prisma.SortOrder + _count?: Prisma.ProjectCountOrderByAggregateInput + _max?: Prisma.ProjectMaxOrderByAggregateInput + _min?: Prisma.ProjectMinOrderByAggregateInput +} + +export type ProjectScalarWhereWithAggregatesInput = { + AND?: Prisma.ProjectScalarWhereWithAggregatesInput | Prisma.ProjectScalarWhereWithAggregatesInput[] + OR?: Prisma.ProjectScalarWhereWithAggregatesInput[] + NOT?: Prisma.ProjectScalarWhereWithAggregatesInput | Prisma.ProjectScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Project"> | string + name?: Prisma.StringWithAggregatesFilter<"Project"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Project"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Project"> | Date | string + archivedAt?: Prisma.DateTimeWithAggregatesFilter<"Project"> | Date | string +} + +export type ProjectCreateInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + archivedAt: Date | string + memberships?: Prisma.MembershipCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteTokenCreateNestedManyWithoutProjectInput + events?: Prisma.EventCreateNestedManyWithoutProjectInput + households?: Prisma.HouseholdCreateNestedManyWithoutProjectInput +} + +export type ProjectUncheckedCreateInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + archivedAt: Date | string + memberships?: Prisma.MembershipUncheckedCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteTokenUncheckedCreateNestedManyWithoutProjectInput + events?: Prisma.EventUncheckedCreateNestedManyWithoutProjectInput + households?: Prisma.HouseholdUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + archivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + memberships?: Prisma.MembershipUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteTokenUpdateManyWithoutProjectNestedInput + events?: Prisma.EventUpdateManyWithoutProjectNestedInput + households?: Prisma.HouseholdUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + archivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + memberships?: Prisma.MembershipUncheckedUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteTokenUncheckedUpdateManyWithoutProjectNestedInput + events?: Prisma.EventUncheckedUpdateManyWithoutProjectNestedInput + households?: Prisma.HouseholdUncheckedUpdateManyWithoutProjectNestedInput +} + +export type ProjectCreateManyInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + archivedAt: Date | string +} + +export type ProjectUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + archivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ProjectUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + archivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ProjectCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + archivedAt?: Prisma.SortOrder +} + +export type ProjectMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + archivedAt?: Prisma.SortOrder +} + +export type ProjectMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + archivedAt?: Prisma.SortOrder +} + +export type ProjectScalarRelationFilter = { + is?: Prisma.ProjectWhereInput + isNot?: Prisma.ProjectWhereInput +} + +export type ProjectCreateNestedOneWithoutMembershipsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutMembershipsInput + connect?: Prisma.ProjectWhereUniqueInput +} + +export type ProjectUpdateOneRequiredWithoutMembershipsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutMembershipsInput + upsert?: Prisma.ProjectUpsertWithoutMembershipsInput + connect?: Prisma.ProjectWhereUniqueInput + update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutMembershipsInput> +} + +export type ProjectCreateNestedOneWithoutInvitesInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutInvitesInput + connect?: Prisma.ProjectWhereUniqueInput +} + +export type ProjectUpdateOneRequiredWithoutInvitesNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutInvitesInput + upsert?: Prisma.ProjectUpsertWithoutInvitesInput + connect?: Prisma.ProjectWhereUniqueInput + update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutInvitesInput> +} + +export type ProjectCreateNestedOneWithoutEventsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutEventsInput + connect?: Prisma.ProjectWhereUniqueInput +} + +export type ProjectUpdateOneRequiredWithoutEventsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutEventsInput + upsert?: Prisma.ProjectUpsertWithoutEventsInput + connect?: Prisma.ProjectWhereUniqueInput + update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutEventsInput> +} + +export type ProjectCreateNestedOneWithoutHouseholdsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutHouseholdsInput + connect?: Prisma.ProjectWhereUniqueInput +} + +export type ProjectUpdateOneRequiredWithoutHouseholdsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutHouseholdsInput + upsert?: Prisma.ProjectUpsertWithoutHouseholdsInput + connect?: Prisma.ProjectWhereUniqueInput + update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutHouseholdsInput> +} + +export type ProjectCreateWithoutMembershipsInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + archivedAt: Date | string + invites?: Prisma.InviteTokenCreateNestedManyWithoutProjectInput + events?: Prisma.EventCreateNestedManyWithoutProjectInput + households?: Prisma.HouseholdCreateNestedManyWithoutProjectInput +} + +export type ProjectUncheckedCreateWithoutMembershipsInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + archivedAt: Date | string + invites?: Prisma.InviteTokenUncheckedCreateNestedManyWithoutProjectInput + events?: Prisma.EventUncheckedCreateNestedManyWithoutProjectInput + households?: Prisma.HouseholdUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectCreateOrConnectWithoutMembershipsInput = { + where: Prisma.ProjectWhereUniqueInput + create: Prisma.XOR +} + +export type ProjectUpsertWithoutMembershipsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ProjectWhereInput +} + +export type ProjectUpdateToOneWithWhereWithoutMembershipsInput = { + where?: Prisma.ProjectWhereInput + data: Prisma.XOR +} + +export type ProjectUpdateWithoutMembershipsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + archivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + invites?: Prisma.InviteTokenUpdateManyWithoutProjectNestedInput + events?: Prisma.EventUpdateManyWithoutProjectNestedInput + households?: Prisma.HouseholdUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateWithoutMembershipsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + archivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + invites?: Prisma.InviteTokenUncheckedUpdateManyWithoutProjectNestedInput + events?: Prisma.EventUncheckedUpdateManyWithoutProjectNestedInput + households?: Prisma.HouseholdUncheckedUpdateManyWithoutProjectNestedInput +} + +export type ProjectCreateWithoutInvitesInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + archivedAt: Date | string + memberships?: Prisma.MembershipCreateNestedManyWithoutProjectInput + events?: Prisma.EventCreateNestedManyWithoutProjectInput + households?: Prisma.HouseholdCreateNestedManyWithoutProjectInput +} + +export type ProjectUncheckedCreateWithoutInvitesInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + archivedAt: Date | string + memberships?: Prisma.MembershipUncheckedCreateNestedManyWithoutProjectInput + events?: Prisma.EventUncheckedCreateNestedManyWithoutProjectInput + households?: Prisma.HouseholdUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectCreateOrConnectWithoutInvitesInput = { + where: Prisma.ProjectWhereUniqueInput + create: Prisma.XOR +} + +export type ProjectUpsertWithoutInvitesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ProjectWhereInput +} + +export type ProjectUpdateToOneWithWhereWithoutInvitesInput = { + where?: Prisma.ProjectWhereInput + data: Prisma.XOR +} + +export type ProjectUpdateWithoutInvitesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + archivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + memberships?: Prisma.MembershipUpdateManyWithoutProjectNestedInput + events?: Prisma.EventUpdateManyWithoutProjectNestedInput + households?: Prisma.HouseholdUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateWithoutInvitesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + archivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + memberships?: Prisma.MembershipUncheckedUpdateManyWithoutProjectNestedInput + events?: Prisma.EventUncheckedUpdateManyWithoutProjectNestedInput + households?: Prisma.HouseholdUncheckedUpdateManyWithoutProjectNestedInput +} + +export type ProjectCreateWithoutEventsInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + archivedAt: Date | string + memberships?: Prisma.MembershipCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteTokenCreateNestedManyWithoutProjectInput + households?: Prisma.HouseholdCreateNestedManyWithoutProjectInput +} + +export type ProjectUncheckedCreateWithoutEventsInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + archivedAt: Date | string + memberships?: Prisma.MembershipUncheckedCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteTokenUncheckedCreateNestedManyWithoutProjectInput + households?: Prisma.HouseholdUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectCreateOrConnectWithoutEventsInput = { + where: Prisma.ProjectWhereUniqueInput + create: Prisma.XOR +} + +export type ProjectUpsertWithoutEventsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ProjectWhereInput +} + +export type ProjectUpdateToOneWithWhereWithoutEventsInput = { + where?: Prisma.ProjectWhereInput + data: Prisma.XOR +} + +export type ProjectUpdateWithoutEventsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + archivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + memberships?: Prisma.MembershipUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteTokenUpdateManyWithoutProjectNestedInput + households?: Prisma.HouseholdUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateWithoutEventsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + archivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + memberships?: Prisma.MembershipUncheckedUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteTokenUncheckedUpdateManyWithoutProjectNestedInput + households?: Prisma.HouseholdUncheckedUpdateManyWithoutProjectNestedInput +} + +export type ProjectCreateWithoutHouseholdsInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + archivedAt: Date | string + memberships?: Prisma.MembershipCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteTokenCreateNestedManyWithoutProjectInput + events?: Prisma.EventCreateNestedManyWithoutProjectInput +} + +export type ProjectUncheckedCreateWithoutHouseholdsInput = { + id?: string + name: string + createdAt?: Date | string + updatedAt?: Date | string + archivedAt: Date | string + memberships?: Prisma.MembershipUncheckedCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteTokenUncheckedCreateNestedManyWithoutProjectInput + events?: Prisma.EventUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectCreateOrConnectWithoutHouseholdsInput = { + where: Prisma.ProjectWhereUniqueInput + create: Prisma.XOR +} + +export type ProjectUpsertWithoutHouseholdsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ProjectWhereInput +} + +export type ProjectUpdateToOneWithWhereWithoutHouseholdsInput = { + where?: Prisma.ProjectWhereInput + data: Prisma.XOR +} + +export type ProjectUpdateWithoutHouseholdsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + archivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + memberships?: Prisma.MembershipUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteTokenUpdateManyWithoutProjectNestedInput + events?: Prisma.EventUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateWithoutHouseholdsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + archivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + memberships?: Prisma.MembershipUncheckedUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteTokenUncheckedUpdateManyWithoutProjectNestedInput + events?: Prisma.EventUncheckedUpdateManyWithoutProjectNestedInput +} + + +/** + * Count Type ProjectCountOutputType + */ + +export type ProjectCountOutputType = { + memberships: number + invites: number + events: number + households: number +} + +export type ProjectCountOutputTypeSelect = { + memberships?: boolean | ProjectCountOutputTypeCountMembershipsArgs + invites?: boolean | ProjectCountOutputTypeCountInvitesArgs + events?: boolean | ProjectCountOutputTypeCountEventsArgs + households?: boolean | ProjectCountOutputTypeCountHouseholdsArgs +} + +/** + * ProjectCountOutputType without action + */ +export type ProjectCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the ProjectCountOutputType + */ + select?: Prisma.ProjectCountOutputTypeSelect | null +} + +/** + * ProjectCountOutputType without action + */ +export type ProjectCountOutputTypeCountMembershipsArgs = { + where?: Prisma.MembershipWhereInput +} + +/** + * ProjectCountOutputType without action + */ +export type ProjectCountOutputTypeCountInvitesArgs = { + where?: Prisma.InviteTokenWhereInput +} + +/** + * ProjectCountOutputType without action + */ +export type ProjectCountOutputTypeCountEventsArgs = { + where?: Prisma.EventWhereInput +} + +/** + * ProjectCountOutputType without action + */ +export type ProjectCountOutputTypeCountHouseholdsArgs = { + where?: Prisma.HouseholdWhereInput +} + + +export type ProjectSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + createdAt?: boolean + updatedAt?: boolean + archivedAt?: boolean + memberships?: boolean | Prisma.Project$membershipsArgs + invites?: boolean | Prisma.Project$invitesArgs + events?: boolean | Prisma.Project$eventsArgs + households?: boolean | Prisma.Project$householdsArgs + _count?: boolean | Prisma.ProjectCountOutputTypeDefaultArgs +}, ExtArgs["result"]["project"]> + +export type ProjectSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + createdAt?: boolean + updatedAt?: boolean + archivedAt?: boolean +}, ExtArgs["result"]["project"]> + +export type ProjectSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + createdAt?: boolean + updatedAt?: boolean + archivedAt?: boolean +}, ExtArgs["result"]["project"]> + +export type ProjectSelectScalar = { + id?: boolean + name?: boolean + createdAt?: boolean + updatedAt?: boolean + archivedAt?: boolean +} + +export type ProjectOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "createdAt" | "updatedAt" | "archivedAt", ExtArgs["result"]["project"]> +export type ProjectInclude = { + memberships?: boolean | Prisma.Project$membershipsArgs + invites?: boolean | Prisma.Project$invitesArgs + events?: boolean | Prisma.Project$eventsArgs + households?: boolean | Prisma.Project$householdsArgs + _count?: boolean | Prisma.ProjectCountOutputTypeDefaultArgs +} +export type ProjectIncludeCreateManyAndReturn = {} +export type ProjectIncludeUpdateManyAndReturn = {} + +export type $ProjectPayload = { + name: "Project" + objects: { + memberships: Prisma.$MembershipPayload[] + invites: Prisma.$InviteTokenPayload[] + events: Prisma.$EventPayload[] + households: Prisma.$HouseholdPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + name: string + createdAt: Date + updatedAt: Date + archivedAt: Date + }, ExtArgs["result"]["project"]> + composites: {} +} + +export type ProjectGetPayload = runtime.Types.Result.GetResult + +export type ProjectCountArgs = + Omit & { + select?: ProjectCountAggregateInputType | true + } + +export interface ProjectDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Project'], meta: { name: 'Project' } } + /** + * Find zero or one Project that matches the filter. + * @param {ProjectFindUniqueArgs} args - Arguments to find a Project + * @example + * // Get one Project + * const project = await prisma.project.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Project that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ProjectFindUniqueOrThrowArgs} args - Arguments to find a Project + * @example + * // Get one Project + * const project = await prisma.project.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project 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 {ProjectFindFirstArgs} args - Arguments to find a Project + * @example + * // Get one Project + * const project = await prisma.project.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project 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 {ProjectFindFirstOrThrowArgs} args - Arguments to find a Project + * @example + * // Get one Project + * const project = await prisma.project.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Projects 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 {ProjectFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Projects + * const projects = await prisma.project.findMany() + * + * // Get first 10 Projects + * const projects = await prisma.project.findMany({ take: 10 }) + * + * // Only select the `id` + * const projectWithIdOnly = await prisma.project.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Project. + * @param {ProjectCreateArgs} args - Arguments to create a Project. + * @example + * // Create one Project + * const Project = await prisma.project.create({ + * data: { + * // ... data to create a Project + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Projects. + * @param {ProjectCreateManyArgs} args - Arguments to create many Projects. + * @example + * // Create many Projects + * const project = await prisma.project.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Projects and returns the data saved in the database. + * @param {ProjectCreateManyAndReturnArgs} args - Arguments to create many Projects. + * @example + * // Create many Projects + * const project = await prisma.project.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Projects and only return the `id` + * const projectWithIdOnly = await prisma.project.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 Project. + * @param {ProjectDeleteArgs} args - Arguments to delete one Project. + * @example + * // Delete one Project + * const Project = await prisma.project.delete({ + * where: { + * // ... filter to delete one Project + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Project. + * @param {ProjectUpdateArgs} args - Arguments to update one Project. + * @example + * // Update one Project + * const project = await prisma.project.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Projects. + * @param {ProjectDeleteManyArgs} args - Arguments to filter Projects to delete. + * @example + * // Delete a few Projects + * const { count } = await prisma.project.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Projects. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Projects + * const project = await prisma.project.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Projects and returns the data updated in the database. + * @param {ProjectUpdateManyAndReturnArgs} args - Arguments to update many Projects. + * @example + * // Update many Projects + * const project = await prisma.project.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Projects and only return the `id` + * const projectWithIdOnly = await prisma.project.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 Project. + * @param {ProjectUpsertArgs} args - Arguments to update or create a Project. + * @example + * // Update or create a Project + * const project = await prisma.project.upsert({ + * create: { + * // ... data to create a Project + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Project we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Projects. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectCountArgs} args - Arguments to filter Projects to count. + * @example + * // Count the number of Projects + * const count = await prisma.project.count({ + * where: { + * // ... the filter for the Projects 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 Project. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectAggregateArgs} 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 Project. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectGroupByArgs} 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 ProjectGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ProjectGroupByArgs['orderBy'] } + : { orderBy?: ProjectGroupByArgs['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 ? GetProjectGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Project model + */ +readonly fields: ProjectFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Project. + * 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__ProjectClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + memberships = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + invites = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + events = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + households = {}>(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 Project model + */ +export interface ProjectFieldRefs { + readonly id: Prisma.FieldRef<"Project", 'String'> + readonly name: Prisma.FieldRef<"Project", 'String'> + readonly createdAt: Prisma.FieldRef<"Project", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Project", 'DateTime'> + readonly archivedAt: Prisma.FieldRef<"Project", 'DateTime'> +} + + +// Custom InputTypes +/** + * Project findUnique + */ +export type ProjectFindUniqueArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter, which Project to fetch. + */ + where: Prisma.ProjectWhereUniqueInput +} + +/** + * Project findUniqueOrThrow + */ +export type ProjectFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter, which Project to fetch. + */ + where: Prisma.ProjectWhereUniqueInput +} + +/** + * Project findFirst + */ +export type ProjectFindFirstArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter, which Project to fetch. + */ + where?: Prisma.ProjectWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Projects to fetch. + */ + orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Projects. + */ + cursor?: Prisma.ProjectWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Projects 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` Projects. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Projects. + */ + distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] +} + +/** + * Project findFirstOrThrow + */ +export type ProjectFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter, which Project to fetch. + */ + where?: Prisma.ProjectWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Projects to fetch. + */ + orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Projects. + */ + cursor?: Prisma.ProjectWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Projects 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` Projects. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Projects. + */ + distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] +} + +/** + * Project findMany + */ +export type ProjectFindManyArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter, which Projects to fetch. + */ + where?: Prisma.ProjectWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Projects to fetch. + */ + orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Projects. + */ + cursor?: Prisma.ProjectWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Projects 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` Projects. + */ + skip?: number + distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] +} + +/** + * Project create + */ +export type ProjectCreateArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * The data needed to create a Project. + */ + data: Prisma.XOR +} + +/** + * Project createMany + */ +export type ProjectCreateManyArgs = { + /** + * The data used to create many Projects. + */ + data: Prisma.ProjectCreateManyInput | Prisma.ProjectCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Project createManyAndReturn + */ +export type ProjectCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * The data used to create many Projects. + */ + data: Prisma.ProjectCreateManyInput | Prisma.ProjectCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Project update + */ +export type ProjectUpdateArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * The data needed to update a Project. + */ + data: Prisma.XOR + /** + * Choose, which Project to update. + */ + where: Prisma.ProjectWhereUniqueInput +} + +/** + * Project updateMany + */ +export type ProjectUpdateManyArgs = { + /** + * The data used to update Projects. + */ + data: Prisma.XOR + /** + * Filter which Projects to update + */ + where?: Prisma.ProjectWhereInput + /** + * Limit how many Projects to update. + */ + limit?: number +} + +/** + * Project updateManyAndReturn + */ +export type ProjectUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * The data used to update Projects. + */ + data: Prisma.XOR + /** + * Filter which Projects to update + */ + where?: Prisma.ProjectWhereInput + /** + * Limit how many Projects to update. + */ + limit?: number +} + +/** + * Project upsert + */ +export type ProjectUpsertArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * The filter to search for the Project to update in case it exists. + */ + where: Prisma.ProjectWhereUniqueInput + /** + * In case the Project found by the `where` argument doesn't exist, create a new Project with this data. + */ + create: Prisma.XOR + /** + * In case the Project was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Project delete + */ +export type ProjectDeleteArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter which Project to delete. + */ + where: Prisma.ProjectWhereUniqueInput +} + +/** + * Project deleteMany + */ +export type ProjectDeleteManyArgs = { + /** + * Filter which Projects to delete + */ + where?: Prisma.ProjectWhereInput + /** + * Limit how many Projects to delete. + */ + limit?: number +} + +/** + * Project.memberships + */ +export type Project$membershipsArgs = { + /** + * Select specific fields to fetch from the Membership + */ + select?: Prisma.MembershipSelect | null + /** + * Omit specific fields from the Membership + */ + omit?: Prisma.MembershipOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MembershipInclude | null + where?: Prisma.MembershipWhereInput + orderBy?: Prisma.MembershipOrderByWithRelationInput | Prisma.MembershipOrderByWithRelationInput[] + cursor?: Prisma.MembershipWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.MembershipScalarFieldEnum | Prisma.MembershipScalarFieldEnum[] +} + +/** + * Project.invites + */ +export type Project$invitesArgs = { + /** + * Select specific fields to fetch from the InviteToken + */ + select?: Prisma.InviteTokenSelect | null + /** + * Omit specific fields from the InviteToken + */ + omit?: Prisma.InviteTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteTokenInclude | null + where?: Prisma.InviteTokenWhereInput + orderBy?: Prisma.InviteTokenOrderByWithRelationInput | Prisma.InviteTokenOrderByWithRelationInput[] + cursor?: Prisma.InviteTokenWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.InviteTokenScalarFieldEnum | Prisma.InviteTokenScalarFieldEnum[] +} + +/** + * Project.events + */ +export type Project$eventsArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelect | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventInclude | null + where?: Prisma.EventWhereInput + orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[] + cursor?: Prisma.EventWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.EventScalarFieldEnum | Prisma.EventScalarFieldEnum[] +} + +/** + * Project.households + */ +export type Project$householdsArgs = { + /** + * Select specific fields to fetch from the Household + */ + select?: Prisma.HouseholdSelect | null + /** + * Omit specific fields from the Household + */ + omit?: Prisma.HouseholdOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.HouseholdInclude | null + where?: Prisma.HouseholdWhereInput + orderBy?: Prisma.HouseholdOrderByWithRelationInput | Prisma.HouseholdOrderByWithRelationInput[] + cursor?: Prisma.HouseholdWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.HouseholdScalarFieldEnum | Prisma.HouseholdScalarFieldEnum[] +} + +/** + * Project without action + */ +export type ProjectDefaultArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null +} diff --git a/src/lib/generated/prisma/models/RegistryItem.ts b/src/lib/generated/prisma/models/RegistryItem.ts new file mode 100644 index 0000000..3fa2854 --- /dev/null +++ b/src/lib/generated/prisma/models/RegistryItem.ts @@ -0,0 +1,1435 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `RegistryItem` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/library" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model RegistryItem + * + */ +export type RegistryItemModel = runtime.Types.Result.DefaultSelection + +export type AggregateRegistryItem = { + _count: RegistryItemCountAggregateOutputType | null + _min: RegistryItemMinAggregateOutputType | null + _max: RegistryItemMaxAggregateOutputType | null +} + +export type RegistryItemMinAggregateOutputType = { + id: string | null + slug: string | null + name: string | null + url: string | null + createdAt: Date | null + updatedAt: Date | null + eventId: string | null +} + +export type RegistryItemMaxAggregateOutputType = { + id: string | null + slug: string | null + name: string | null + url: string | null + createdAt: Date | null + updatedAt: Date | null + eventId: string | null +} + +export type RegistryItemCountAggregateOutputType = { + id: number + slug: number + name: number + url: number + createdAt: number + updatedAt: number + eventId: number + _all: number +} + + +export type RegistryItemMinAggregateInputType = { + id?: true + slug?: true + name?: true + url?: true + createdAt?: true + updatedAt?: true + eventId?: true +} + +export type RegistryItemMaxAggregateInputType = { + id?: true + slug?: true + name?: true + url?: true + createdAt?: true + updatedAt?: true + eventId?: true +} + +export type RegistryItemCountAggregateInputType = { + id?: true + slug?: true + name?: true + url?: true + createdAt?: true + updatedAt?: true + eventId?: true + _all?: true +} + +export type RegistryItemAggregateArgs = { + /** + * Filter which RegistryItem to aggregate. + */ + where?: Prisma.RegistryItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of RegistryItems to fetch. + */ + orderBy?: Prisma.RegistryItemOrderByWithRelationInput | Prisma.RegistryItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.RegistryItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` RegistryItems 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` RegistryItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned RegistryItems + **/ + _count?: true | RegistryItemCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: RegistryItemMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: RegistryItemMaxAggregateInputType +} + +export type GetRegistryItemAggregateType = { + [P in keyof T & keyof AggregateRegistryItem]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type RegistryItemGroupByArgs = { + where?: Prisma.RegistryItemWhereInput + orderBy?: Prisma.RegistryItemOrderByWithAggregationInput | Prisma.RegistryItemOrderByWithAggregationInput[] + by: Prisma.RegistryItemScalarFieldEnum[] | Prisma.RegistryItemScalarFieldEnum + having?: Prisma.RegistryItemScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: RegistryItemCountAggregateInputType | true + _min?: RegistryItemMinAggregateInputType + _max?: RegistryItemMaxAggregateInputType +} + +export type RegistryItemGroupByOutputType = { + id: string + slug: string + name: string + url: string + createdAt: Date + updatedAt: Date + eventId: string | null + _count: RegistryItemCountAggregateOutputType | null + _min: RegistryItemMinAggregateOutputType | null + _max: RegistryItemMaxAggregateOutputType | null +} + +type GetRegistryItemGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof RegistryItemGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type RegistryItemWhereInput = { + AND?: Prisma.RegistryItemWhereInput | Prisma.RegistryItemWhereInput[] + OR?: Prisma.RegistryItemWhereInput[] + NOT?: Prisma.RegistryItemWhereInput | Prisma.RegistryItemWhereInput[] + id?: Prisma.StringFilter<"RegistryItem"> | string + slug?: Prisma.StringFilter<"RegistryItem"> | string + name?: Prisma.StringFilter<"RegistryItem"> | string + url?: Prisma.StringFilter<"RegistryItem"> | string + createdAt?: Prisma.DateTimeFilter<"RegistryItem"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"RegistryItem"> | Date | string + eventId?: Prisma.StringNullableFilter<"RegistryItem"> | string | null + event?: Prisma.XOR | null +} + +export type RegistryItemOrderByWithRelationInput = { + id?: Prisma.SortOrder + slug?: Prisma.SortOrder + name?: Prisma.SortOrder + url?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + eventId?: Prisma.SortOrderInput | Prisma.SortOrder + event?: Prisma.EventOrderByWithRelationInput +} + +export type RegistryItemWhereUniqueInput = Prisma.AtLeast<{ + id?: string + eventId_slug?: Prisma.RegistryItemEventIdSlugCompoundUniqueInput + AND?: Prisma.RegistryItemWhereInput | Prisma.RegistryItemWhereInput[] + OR?: Prisma.RegistryItemWhereInput[] + NOT?: Prisma.RegistryItemWhereInput | Prisma.RegistryItemWhereInput[] + slug?: Prisma.StringFilter<"RegistryItem"> | string + name?: Prisma.StringFilter<"RegistryItem"> | string + url?: Prisma.StringFilter<"RegistryItem"> | string + createdAt?: Prisma.DateTimeFilter<"RegistryItem"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"RegistryItem"> | Date | string + eventId?: Prisma.StringNullableFilter<"RegistryItem"> | string | null + event?: Prisma.XOR | null +}, "id" | "eventId_slug"> + +export type RegistryItemOrderByWithAggregationInput = { + id?: Prisma.SortOrder + slug?: Prisma.SortOrder + name?: Prisma.SortOrder + url?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + eventId?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.RegistryItemCountOrderByAggregateInput + _max?: Prisma.RegistryItemMaxOrderByAggregateInput + _min?: Prisma.RegistryItemMinOrderByAggregateInput +} + +export type RegistryItemScalarWhereWithAggregatesInput = { + AND?: Prisma.RegistryItemScalarWhereWithAggregatesInput | Prisma.RegistryItemScalarWhereWithAggregatesInput[] + OR?: Prisma.RegistryItemScalarWhereWithAggregatesInput[] + NOT?: Prisma.RegistryItemScalarWhereWithAggregatesInput | Prisma.RegistryItemScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"RegistryItem"> | string + slug?: Prisma.StringWithAggregatesFilter<"RegistryItem"> | string + name?: Prisma.StringWithAggregatesFilter<"RegistryItem"> | string + url?: Prisma.StringWithAggregatesFilter<"RegistryItem"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"RegistryItem"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"RegistryItem"> | Date | string + eventId?: Prisma.StringNullableWithAggregatesFilter<"RegistryItem"> | string | null +} + +export type RegistryItemCreateInput = { + id?: string + slug: string + name: string + url: string + createdAt?: Date | string + updatedAt?: Date | string + event?: Prisma.EventCreateNestedOneWithoutRegistryItemsInput +} + +export type RegistryItemUncheckedCreateInput = { + id?: string + slug: string + name: string + url: string + createdAt?: Date | string + updatedAt?: Date | string + eventId?: string | null +} + +export type RegistryItemUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + url?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + event?: Prisma.EventUpdateOneWithoutRegistryItemsNestedInput +} + +export type RegistryItemUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + url?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type RegistryItemCreateManyInput = { + id?: string + slug: string + name: string + url: string + createdAt?: Date | string + updatedAt?: Date | string + eventId?: string | null +} + +export type RegistryItemUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + url?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type RegistryItemUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + url?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + eventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type RegistryItemListRelationFilter = { + every?: Prisma.RegistryItemWhereInput + some?: Prisma.RegistryItemWhereInput + none?: Prisma.RegistryItemWhereInput +} + +export type RegistryItemOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type RegistryItemEventIdSlugCompoundUniqueInput = { + eventId: string + slug: string +} + +export type RegistryItemCountOrderByAggregateInput = { + id?: Prisma.SortOrder + slug?: Prisma.SortOrder + name?: Prisma.SortOrder + url?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder +} + +export type RegistryItemMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + slug?: Prisma.SortOrder + name?: Prisma.SortOrder + url?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder +} + +export type RegistryItemMinOrderByAggregateInput = { + id?: Prisma.SortOrder + slug?: Prisma.SortOrder + name?: Prisma.SortOrder + url?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + eventId?: Prisma.SortOrder +} + +export type RegistryItemCreateNestedManyWithoutEventInput = { + create?: Prisma.XOR | Prisma.RegistryItemCreateWithoutEventInput[] | Prisma.RegistryItemUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.RegistryItemCreateOrConnectWithoutEventInput | Prisma.RegistryItemCreateOrConnectWithoutEventInput[] + createMany?: Prisma.RegistryItemCreateManyEventInputEnvelope + connect?: Prisma.RegistryItemWhereUniqueInput | Prisma.RegistryItemWhereUniqueInput[] +} + +export type RegistryItemUncheckedCreateNestedManyWithoutEventInput = { + create?: Prisma.XOR | Prisma.RegistryItemCreateWithoutEventInput[] | Prisma.RegistryItemUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.RegistryItemCreateOrConnectWithoutEventInput | Prisma.RegistryItemCreateOrConnectWithoutEventInput[] + createMany?: Prisma.RegistryItemCreateManyEventInputEnvelope + connect?: Prisma.RegistryItemWhereUniqueInput | Prisma.RegistryItemWhereUniqueInput[] +} + +export type RegistryItemUpdateManyWithoutEventNestedInput = { + create?: Prisma.XOR | Prisma.RegistryItemCreateWithoutEventInput[] | Prisma.RegistryItemUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.RegistryItemCreateOrConnectWithoutEventInput | Prisma.RegistryItemCreateOrConnectWithoutEventInput[] + upsert?: Prisma.RegistryItemUpsertWithWhereUniqueWithoutEventInput | Prisma.RegistryItemUpsertWithWhereUniqueWithoutEventInput[] + createMany?: Prisma.RegistryItemCreateManyEventInputEnvelope + set?: Prisma.RegistryItemWhereUniqueInput | Prisma.RegistryItemWhereUniqueInput[] + disconnect?: Prisma.RegistryItemWhereUniqueInput | Prisma.RegistryItemWhereUniqueInput[] + delete?: Prisma.RegistryItemWhereUniqueInput | Prisma.RegistryItemWhereUniqueInput[] + connect?: Prisma.RegistryItemWhereUniqueInput | Prisma.RegistryItemWhereUniqueInput[] + update?: Prisma.RegistryItemUpdateWithWhereUniqueWithoutEventInput | Prisma.RegistryItemUpdateWithWhereUniqueWithoutEventInput[] + updateMany?: Prisma.RegistryItemUpdateManyWithWhereWithoutEventInput | Prisma.RegistryItemUpdateManyWithWhereWithoutEventInput[] + deleteMany?: Prisma.RegistryItemScalarWhereInput | Prisma.RegistryItemScalarWhereInput[] +} + +export type RegistryItemUncheckedUpdateManyWithoutEventNestedInput = { + create?: Prisma.XOR | Prisma.RegistryItemCreateWithoutEventInput[] | Prisma.RegistryItemUncheckedCreateWithoutEventInput[] + connectOrCreate?: Prisma.RegistryItemCreateOrConnectWithoutEventInput | Prisma.RegistryItemCreateOrConnectWithoutEventInput[] + upsert?: Prisma.RegistryItemUpsertWithWhereUniqueWithoutEventInput | Prisma.RegistryItemUpsertWithWhereUniqueWithoutEventInput[] + createMany?: Prisma.RegistryItemCreateManyEventInputEnvelope + set?: Prisma.RegistryItemWhereUniqueInput | Prisma.RegistryItemWhereUniqueInput[] + disconnect?: Prisma.RegistryItemWhereUniqueInput | Prisma.RegistryItemWhereUniqueInput[] + delete?: Prisma.RegistryItemWhereUniqueInput | Prisma.RegistryItemWhereUniqueInput[] + connect?: Prisma.RegistryItemWhereUniqueInput | Prisma.RegistryItemWhereUniqueInput[] + update?: Prisma.RegistryItemUpdateWithWhereUniqueWithoutEventInput | Prisma.RegistryItemUpdateWithWhereUniqueWithoutEventInput[] + updateMany?: Prisma.RegistryItemUpdateManyWithWhereWithoutEventInput | Prisma.RegistryItemUpdateManyWithWhereWithoutEventInput[] + deleteMany?: Prisma.RegistryItemScalarWhereInput | Prisma.RegistryItemScalarWhereInput[] +} + +export type RegistryItemCreateWithoutEventInput = { + id?: string + slug: string + name: string + url: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type RegistryItemUncheckedCreateWithoutEventInput = { + id?: string + slug: string + name: string + url: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type RegistryItemCreateOrConnectWithoutEventInput = { + where: Prisma.RegistryItemWhereUniqueInput + create: Prisma.XOR +} + +export type RegistryItemCreateManyEventInputEnvelope = { + data: Prisma.RegistryItemCreateManyEventInput | Prisma.RegistryItemCreateManyEventInput[] + skipDuplicates?: boolean +} + +export type RegistryItemUpsertWithWhereUniqueWithoutEventInput = { + where: Prisma.RegistryItemWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type RegistryItemUpdateWithWhereUniqueWithoutEventInput = { + where: Prisma.RegistryItemWhereUniqueInput + data: Prisma.XOR +} + +export type RegistryItemUpdateManyWithWhereWithoutEventInput = { + where: Prisma.RegistryItemScalarWhereInput + data: Prisma.XOR +} + +export type RegistryItemScalarWhereInput = { + AND?: Prisma.RegistryItemScalarWhereInput | Prisma.RegistryItemScalarWhereInput[] + OR?: Prisma.RegistryItemScalarWhereInput[] + NOT?: Prisma.RegistryItemScalarWhereInput | Prisma.RegistryItemScalarWhereInput[] + id?: Prisma.StringFilter<"RegistryItem"> | string + slug?: Prisma.StringFilter<"RegistryItem"> | string + name?: Prisma.StringFilter<"RegistryItem"> | string + url?: Prisma.StringFilter<"RegistryItem"> | string + createdAt?: Prisma.DateTimeFilter<"RegistryItem"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"RegistryItem"> | Date | string + eventId?: Prisma.StringNullableFilter<"RegistryItem"> | string | null +} + +export type RegistryItemCreateManyEventInput = { + id?: string + slug: string + name: string + url: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type RegistryItemUpdateWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + url?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type RegistryItemUncheckedUpdateWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + url?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type RegistryItemUncheckedUpdateManyWithoutEventInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + url?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type RegistryItemSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + slug?: boolean + name?: boolean + url?: boolean + createdAt?: boolean + updatedAt?: boolean + eventId?: boolean + event?: boolean | Prisma.RegistryItem$eventArgs +}, ExtArgs["result"]["registryItem"]> + +export type RegistryItemSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + slug?: boolean + name?: boolean + url?: boolean + createdAt?: boolean + updatedAt?: boolean + eventId?: boolean + event?: boolean | Prisma.RegistryItem$eventArgs +}, ExtArgs["result"]["registryItem"]> + +export type RegistryItemSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + slug?: boolean + name?: boolean + url?: boolean + createdAt?: boolean + updatedAt?: boolean + eventId?: boolean + event?: boolean | Prisma.RegistryItem$eventArgs +}, ExtArgs["result"]["registryItem"]> + +export type RegistryItemSelectScalar = { + id?: boolean + slug?: boolean + name?: boolean + url?: boolean + createdAt?: boolean + updatedAt?: boolean + eventId?: boolean +} + +export type RegistryItemOmit = runtime.Types.Extensions.GetOmit<"id" | "slug" | "name" | "url" | "createdAt" | "updatedAt" | "eventId", ExtArgs["result"]["registryItem"]> +export type RegistryItemInclude = { + event?: boolean | Prisma.RegistryItem$eventArgs +} +export type RegistryItemIncludeCreateManyAndReturn = { + event?: boolean | Prisma.RegistryItem$eventArgs +} +export type RegistryItemIncludeUpdateManyAndReturn = { + event?: boolean | Prisma.RegistryItem$eventArgs +} + +export type $RegistryItemPayload = { + name: "RegistryItem" + objects: { + event: Prisma.$EventPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + slug: string + name: string + url: string + createdAt: Date + updatedAt: Date + eventId: string | null + }, ExtArgs["result"]["registryItem"]> + composites: {} +} + +export type RegistryItemGetPayload = runtime.Types.Result.GetResult + +export type RegistryItemCountArgs = + Omit & { + select?: RegistryItemCountAggregateInputType | true + } + +export interface RegistryItemDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['RegistryItem'], meta: { name: 'RegistryItem' } } + /** + * Find zero or one RegistryItem that matches the filter. + * @param {RegistryItemFindUniqueArgs} args - Arguments to find a RegistryItem + * @example + * // Get one RegistryItem + * const registryItem = await prisma.registryItem.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__RegistryItemClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one RegistryItem that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {RegistryItemFindUniqueOrThrowArgs} args - Arguments to find a RegistryItem + * @example + * // Get one RegistryItem + * const registryItem = await prisma.registryItem.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__RegistryItemClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first RegistryItem 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 {RegistryItemFindFirstArgs} args - Arguments to find a RegistryItem + * @example + * // Get one RegistryItem + * const registryItem = await prisma.registryItem.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__RegistryItemClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first RegistryItem 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 {RegistryItemFindFirstOrThrowArgs} args - Arguments to find a RegistryItem + * @example + * // Get one RegistryItem + * const registryItem = await prisma.registryItem.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__RegistryItemClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more RegistryItems 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 {RegistryItemFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all RegistryItems + * const registryItems = await prisma.registryItem.findMany() + * + * // Get first 10 RegistryItems + * const registryItems = await prisma.registryItem.findMany({ take: 10 }) + * + * // Only select the `id` + * const registryItemWithIdOnly = await prisma.registryItem.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a RegistryItem. + * @param {RegistryItemCreateArgs} args - Arguments to create a RegistryItem. + * @example + * // Create one RegistryItem + * const RegistryItem = await prisma.registryItem.create({ + * data: { + * // ... data to create a RegistryItem + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__RegistryItemClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many RegistryItems. + * @param {RegistryItemCreateManyArgs} args - Arguments to create many RegistryItems. + * @example + * // Create many RegistryItems + * const registryItem = await prisma.registryItem.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many RegistryItems and returns the data saved in the database. + * @param {RegistryItemCreateManyAndReturnArgs} args - Arguments to create many RegistryItems. + * @example + * // Create many RegistryItems + * const registryItem = await prisma.registryItem.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many RegistryItems and only return the `id` + * const registryItemWithIdOnly = await prisma.registryItem.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 RegistryItem. + * @param {RegistryItemDeleteArgs} args - Arguments to delete one RegistryItem. + * @example + * // Delete one RegistryItem + * const RegistryItem = await prisma.registryItem.delete({ + * where: { + * // ... filter to delete one RegistryItem + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__RegistryItemClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one RegistryItem. + * @param {RegistryItemUpdateArgs} args - Arguments to update one RegistryItem. + * @example + * // Update one RegistryItem + * const registryItem = await prisma.registryItem.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__RegistryItemClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more RegistryItems. + * @param {RegistryItemDeleteManyArgs} args - Arguments to filter RegistryItems to delete. + * @example + * // Delete a few RegistryItems + * const { count } = await prisma.registryItem.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more RegistryItems. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {RegistryItemUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many RegistryItems + * const registryItem = await prisma.registryItem.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more RegistryItems and returns the data updated in the database. + * @param {RegistryItemUpdateManyAndReturnArgs} args - Arguments to update many RegistryItems. + * @example + * // Update many RegistryItems + * const registryItem = await prisma.registryItem.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more RegistryItems and only return the `id` + * const registryItemWithIdOnly = await prisma.registryItem.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 RegistryItem. + * @param {RegistryItemUpsertArgs} args - Arguments to update or create a RegistryItem. + * @example + * // Update or create a RegistryItem + * const registryItem = await prisma.registryItem.upsert({ + * create: { + * // ... data to create a RegistryItem + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the RegistryItem we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__RegistryItemClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of RegistryItems. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {RegistryItemCountArgs} args - Arguments to filter RegistryItems to count. + * @example + * // Count the number of RegistryItems + * const count = await prisma.registryItem.count({ + * where: { + * // ... the filter for the RegistryItems 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 RegistryItem. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {RegistryItemAggregateArgs} 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 RegistryItem. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {RegistryItemGroupByArgs} 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 RegistryItemGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: RegistryItemGroupByArgs['orderBy'] } + : { orderBy?: RegistryItemGroupByArgs['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 ? GetRegistryItemGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the RegistryItem model + */ +readonly fields: RegistryItemFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for RegistryItem. + * 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__RegistryItemClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + event = {}>(args?: Prisma.Subset>): Prisma.Prisma__EventClient, 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 RegistryItem model + */ +export interface RegistryItemFieldRefs { + readonly id: Prisma.FieldRef<"RegistryItem", 'String'> + readonly slug: Prisma.FieldRef<"RegistryItem", 'String'> + readonly name: Prisma.FieldRef<"RegistryItem", 'String'> + readonly url: Prisma.FieldRef<"RegistryItem", 'String'> + readonly createdAt: Prisma.FieldRef<"RegistryItem", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"RegistryItem", 'DateTime'> + readonly eventId: Prisma.FieldRef<"RegistryItem", 'String'> +} + + +// Custom InputTypes +/** + * RegistryItem findUnique + */ +export type RegistryItemFindUniqueArgs = { + /** + * Select specific fields to fetch from the RegistryItem + */ + select?: Prisma.RegistryItemSelect | null + /** + * Omit specific fields from the RegistryItem + */ + omit?: Prisma.RegistryItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.RegistryItemInclude | null + /** + * Filter, which RegistryItem to fetch. + */ + where: Prisma.RegistryItemWhereUniqueInput +} + +/** + * RegistryItem findUniqueOrThrow + */ +export type RegistryItemFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the RegistryItem + */ + select?: Prisma.RegistryItemSelect | null + /** + * Omit specific fields from the RegistryItem + */ + omit?: Prisma.RegistryItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.RegistryItemInclude | null + /** + * Filter, which RegistryItem to fetch. + */ + where: Prisma.RegistryItemWhereUniqueInput +} + +/** + * RegistryItem findFirst + */ +export type RegistryItemFindFirstArgs = { + /** + * Select specific fields to fetch from the RegistryItem + */ + select?: Prisma.RegistryItemSelect | null + /** + * Omit specific fields from the RegistryItem + */ + omit?: Prisma.RegistryItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.RegistryItemInclude | null + /** + * Filter, which RegistryItem to fetch. + */ + where?: Prisma.RegistryItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of RegistryItems to fetch. + */ + orderBy?: Prisma.RegistryItemOrderByWithRelationInput | Prisma.RegistryItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for RegistryItems. + */ + cursor?: Prisma.RegistryItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` RegistryItems 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` RegistryItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of RegistryItems. + */ + distinct?: Prisma.RegistryItemScalarFieldEnum | Prisma.RegistryItemScalarFieldEnum[] +} + +/** + * RegistryItem findFirstOrThrow + */ +export type RegistryItemFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the RegistryItem + */ + select?: Prisma.RegistryItemSelect | null + /** + * Omit specific fields from the RegistryItem + */ + omit?: Prisma.RegistryItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.RegistryItemInclude | null + /** + * Filter, which RegistryItem to fetch. + */ + where?: Prisma.RegistryItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of RegistryItems to fetch. + */ + orderBy?: Prisma.RegistryItemOrderByWithRelationInput | Prisma.RegistryItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for RegistryItems. + */ + cursor?: Prisma.RegistryItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` RegistryItems 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` RegistryItems. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of RegistryItems. + */ + distinct?: Prisma.RegistryItemScalarFieldEnum | Prisma.RegistryItemScalarFieldEnum[] +} + +/** + * RegistryItem findMany + */ +export type RegistryItemFindManyArgs = { + /** + * Select specific fields to fetch from the RegistryItem + */ + select?: Prisma.RegistryItemSelect | null + /** + * Omit specific fields from the RegistryItem + */ + omit?: Prisma.RegistryItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.RegistryItemInclude | null + /** + * Filter, which RegistryItems to fetch. + */ + where?: Prisma.RegistryItemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of RegistryItems to fetch. + */ + orderBy?: Prisma.RegistryItemOrderByWithRelationInput | Prisma.RegistryItemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing RegistryItems. + */ + cursor?: Prisma.RegistryItemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` RegistryItems 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` RegistryItems. + */ + skip?: number + distinct?: Prisma.RegistryItemScalarFieldEnum | Prisma.RegistryItemScalarFieldEnum[] +} + +/** + * RegistryItem create + */ +export type RegistryItemCreateArgs = { + /** + * Select specific fields to fetch from the RegistryItem + */ + select?: Prisma.RegistryItemSelect | null + /** + * Omit specific fields from the RegistryItem + */ + omit?: Prisma.RegistryItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.RegistryItemInclude | null + /** + * The data needed to create a RegistryItem. + */ + data: Prisma.XOR +} + +/** + * RegistryItem createMany + */ +export type RegistryItemCreateManyArgs = { + /** + * The data used to create many RegistryItems. + */ + data: Prisma.RegistryItemCreateManyInput | Prisma.RegistryItemCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * RegistryItem createManyAndReturn + */ +export type RegistryItemCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the RegistryItem + */ + select?: Prisma.RegistryItemSelectCreateManyAndReturn | null + /** + * Omit specific fields from the RegistryItem + */ + omit?: Prisma.RegistryItemOmit | null + /** + * The data used to create many RegistryItems. + */ + data: Prisma.RegistryItemCreateManyInput | Prisma.RegistryItemCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.RegistryItemIncludeCreateManyAndReturn | null +} + +/** + * RegistryItem update + */ +export type RegistryItemUpdateArgs = { + /** + * Select specific fields to fetch from the RegistryItem + */ + select?: Prisma.RegistryItemSelect | null + /** + * Omit specific fields from the RegistryItem + */ + omit?: Prisma.RegistryItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.RegistryItemInclude | null + /** + * The data needed to update a RegistryItem. + */ + data: Prisma.XOR + /** + * Choose, which RegistryItem to update. + */ + where: Prisma.RegistryItemWhereUniqueInput +} + +/** + * RegistryItem updateMany + */ +export type RegistryItemUpdateManyArgs = { + /** + * The data used to update RegistryItems. + */ + data: Prisma.XOR + /** + * Filter which RegistryItems to update + */ + where?: Prisma.RegistryItemWhereInput + /** + * Limit how many RegistryItems to update. + */ + limit?: number +} + +/** + * RegistryItem updateManyAndReturn + */ +export type RegistryItemUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the RegistryItem + */ + select?: Prisma.RegistryItemSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the RegistryItem + */ + omit?: Prisma.RegistryItemOmit | null + /** + * The data used to update RegistryItems. + */ + data: Prisma.XOR + /** + * Filter which RegistryItems to update + */ + where?: Prisma.RegistryItemWhereInput + /** + * Limit how many RegistryItems to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.RegistryItemIncludeUpdateManyAndReturn | null +} + +/** + * RegistryItem upsert + */ +export type RegistryItemUpsertArgs = { + /** + * Select specific fields to fetch from the RegistryItem + */ + select?: Prisma.RegistryItemSelect | null + /** + * Omit specific fields from the RegistryItem + */ + omit?: Prisma.RegistryItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.RegistryItemInclude | null + /** + * The filter to search for the RegistryItem to update in case it exists. + */ + where: Prisma.RegistryItemWhereUniqueInput + /** + * In case the RegistryItem found by the `where` argument doesn't exist, create a new RegistryItem with this data. + */ + create: Prisma.XOR + /** + * In case the RegistryItem was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * RegistryItem delete + */ +export type RegistryItemDeleteArgs = { + /** + * Select specific fields to fetch from the RegistryItem + */ + select?: Prisma.RegistryItemSelect | null + /** + * Omit specific fields from the RegistryItem + */ + omit?: Prisma.RegistryItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.RegistryItemInclude | null + /** + * Filter which RegistryItem to delete. + */ + where: Prisma.RegistryItemWhereUniqueInput +} + +/** + * RegistryItem deleteMany + */ +export type RegistryItemDeleteManyArgs = { + /** + * Filter which RegistryItems to delete + */ + where?: Prisma.RegistryItemWhereInput + /** + * Limit how many RegistryItems to delete. + */ + limit?: number +} + +/** + * RegistryItem.event + */ +export type RegistryItem$eventArgs = { + /** + * Select specific fields to fetch from the Event + */ + select?: Prisma.EventSelect | null + /** + * Omit specific fields from the Event + */ + omit?: Prisma.EventOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventInclude | null + where?: Prisma.EventWhereInput +} + +/** + * RegistryItem without action + */ +export type RegistryItemDefaultArgs = { + /** + * Select specific fields to fetch from the RegistryItem + */ + select?: Prisma.RegistryItemSelect | null + /** + * Omit specific fields from the RegistryItem + */ + omit?: Prisma.RegistryItemOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.RegistryItemInclude | null +} diff --git a/src/lib/generated/prisma/models/User.ts b/src/lib/generated/prisma/models/User.ts new file mode 100644 index 0000000..576bb11 --- /dev/null +++ b/src/lib/generated/prisma/models/User.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 `User` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/library" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model User + * + */ +export type UserModel = runtime.Types.Result.DefaultSelection + +export type AggregateUser = { + _count: UserCountAggregateOutputType | null + _min: UserMinAggregateOutputType | null + _max: UserMaxAggregateOutputType | null +} + +export type UserMinAggregateOutputType = { + id: string | null + email: string | null + name: string | null + username: string | null + password: string | null + authProvider: string | null + providerId: string | null + isAdmin: boolean | null + createdAt: Date | null +} + +export type UserMaxAggregateOutputType = { + id: string | null + email: string | null + name: string | null + username: string | null + password: string | null + authProvider: string | null + providerId: string | null + isAdmin: boolean | null + createdAt: Date | null +} + +export type UserCountAggregateOutputType = { + id: number + email: number + name: number + username: number + password: number + authProvider: number + providerId: number + isAdmin: number + createdAt: number + _all: number +} + + +export type UserMinAggregateInputType = { + id?: true + email?: true + name?: true + username?: true + password?: true + authProvider?: true + providerId?: true + isAdmin?: true + createdAt?: true +} + +export type UserMaxAggregateInputType = { + id?: true + email?: true + name?: true + username?: true + password?: true + authProvider?: true + providerId?: true + isAdmin?: true + createdAt?: true +} + +export type UserCountAggregateInputType = { + id?: true + email?: true + name?: true + username?: true + password?: true + authProvider?: true + providerId?: true + isAdmin?: true + createdAt?: 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 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 + _min?: UserMinAggregateInputType + _max?: UserMaxAggregateInputType +} + +export type UserGroupByOutputType = { + id: string + email: string + name: string + username: string + password: string | null + authProvider: string | null + providerId: string | null + isAdmin: boolean + createdAt: Date + _count: UserCountAggregateOutputType | 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 + username?: Prisma.StringFilter<"User"> | string + password?: Prisma.StringNullableFilter<"User"> | string | null + authProvider?: Prisma.StringNullableFilter<"User"> | string | null + providerId?: Prisma.StringNullableFilter<"User"> | string | null + isAdmin?: Prisma.BoolFilter<"User"> | boolean + createdAt?: Prisma.DateTimeFilter<"User"> | Date | string + memberships?: Prisma.MembershipListRelationFilter + fileUploads?: Prisma.FileUploadListRelationFilter + allowedOrigins?: Prisma.AllowedOriginListRelationFilter +} + +export type UserOrderByWithRelationInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + name?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrderInput | Prisma.SortOrder + authProvider?: Prisma.SortOrderInput | Prisma.SortOrder + providerId?: Prisma.SortOrderInput | Prisma.SortOrder + isAdmin?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + memberships?: Prisma.MembershipOrderByRelationAggregateInput + fileUploads?: Prisma.FileUploadOrderByRelationAggregateInput + allowedOrigins?: Prisma.AllowedOriginOrderByRelationAggregateInput +} + +export type UserWhereUniqueInput = Prisma.AtLeast<{ + id?: string + email?: string + username?: string + authProvider_providerId?: Prisma.UserAuthProviderProviderIdCompoundUniqueInput + AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + OR?: Prisma.UserWhereInput[] + NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + name?: Prisma.StringFilter<"User"> | string + password?: Prisma.StringNullableFilter<"User"> | string | null + authProvider?: Prisma.StringNullableFilter<"User"> | string | null + providerId?: Prisma.StringNullableFilter<"User"> | string | null + isAdmin?: Prisma.BoolFilter<"User"> | boolean + createdAt?: Prisma.DateTimeFilter<"User"> | Date | string + memberships?: Prisma.MembershipListRelationFilter + fileUploads?: Prisma.FileUploadListRelationFilter + allowedOrigins?: Prisma.AllowedOriginListRelationFilter +}, "id" | "email" | "username" | "authProvider_providerId"> + +export type UserOrderByWithAggregationInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + name?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrderInput | Prisma.SortOrder + authProvider?: Prisma.SortOrderInput | Prisma.SortOrder + providerId?: Prisma.SortOrderInput | Prisma.SortOrder + isAdmin?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + _count?: Prisma.UserCountOrderByAggregateInput + _max?: Prisma.UserMaxOrderByAggregateInput + _min?: Prisma.UserMinOrderByAggregateInput +} + +export type UserScalarWhereWithAggregatesInput = { + AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] + OR?: Prisma.UserScalarWhereWithAggregatesInput[] + NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"User"> | string + email?: Prisma.StringWithAggregatesFilter<"User"> | string + name?: Prisma.StringWithAggregatesFilter<"User"> | string + username?: Prisma.StringWithAggregatesFilter<"User"> | string + password?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null + authProvider?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null + providerId?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null + isAdmin?: Prisma.BoolWithAggregatesFilter<"User"> | boolean + createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string +} + +export type UserCreateInput = { + id?: string + email: string + name: string + username: string + password?: string | null + authProvider?: string | null + providerId?: string | null + isAdmin?: boolean + createdAt?: Date | string + memberships?: Prisma.MembershipCreateNestedManyWithoutUserInput + fileUploads?: Prisma.FileUploadCreateNestedManyWithoutUploadedByInput + allowedOrigins?: Prisma.AllowedOriginCreateNestedManyWithoutAddedByInput +} + +export type UserUncheckedCreateInput = { + id?: string + email: string + name: string + username: string + password?: string | null + authProvider?: string | null + providerId?: string | null + isAdmin?: boolean + createdAt?: Date | string + memberships?: Prisma.MembershipUncheckedCreateNestedManyWithoutUserInput + fileUploads?: Prisma.FileUploadUncheckedCreateNestedManyWithoutUploadedByInput + allowedOrigins?: Prisma.AllowedOriginUncheckedCreateNestedManyWithoutAddedByInput +} + +export type UserUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isAdmin?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + memberships?: Prisma.MembershipUpdateManyWithoutUserNestedInput + fileUploads?: Prisma.FileUploadUpdateManyWithoutUploadedByNestedInput + allowedOrigins?: Prisma.AllowedOriginUpdateManyWithoutAddedByNestedInput +} + +export type UserUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isAdmin?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + memberships?: Prisma.MembershipUncheckedUpdateManyWithoutUserNestedInput + fileUploads?: Prisma.FileUploadUncheckedUpdateManyWithoutUploadedByNestedInput + allowedOrigins?: Prisma.AllowedOriginUncheckedUpdateManyWithoutAddedByNestedInput +} + +export type UserCreateManyInput = { + id?: string + email: string + name: string + username: string + password?: string | null + authProvider?: string | null + providerId?: string | null + isAdmin?: boolean + createdAt?: Date | string +} + +export type UserUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isAdmin?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isAdmin?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserAuthProviderProviderIdCompoundUniqueInput = { + authProvider: string + providerId: string +} + +export type UserCountOrderByAggregateInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + name?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrder + authProvider?: Prisma.SortOrder + providerId?: Prisma.SortOrder + isAdmin?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + name?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrder + authProvider?: Prisma.SortOrder + providerId?: Prisma.SortOrder + isAdmin?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserMinOrderByAggregateInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + name?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrder + authProvider?: Prisma.SortOrder + providerId?: Prisma.SortOrder + isAdmin?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type UserScalarRelationFilter = { + is?: Prisma.UserWhereInput + isNot?: Prisma.UserWhereInput +} + +export type UserNullableScalarRelationFilter = { + is?: Prisma.UserWhereInput | null + isNot?: Prisma.UserWhereInput | null +} + +export type StringFieldUpdateOperationsInput = { + set?: string +} + +export type NullableStringFieldUpdateOperationsInput = { + set?: string | null +} + +export type BoolFieldUpdateOperationsInput = { + set?: boolean +} + +export type DateTimeFieldUpdateOperationsInput = { + set?: Date | string +} + +export type UserCreateNestedOneWithoutMembershipsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutMembershipsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutMembershipsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutMembershipsInput + upsert?: Prisma.UserUpsertWithoutMembershipsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutMembershipsInput> +} + +export type UserCreateNestedOneWithoutFileUploadsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutFileUploadsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutFileUploadsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutFileUploadsInput + upsert?: Prisma.UserUpsertWithoutFileUploadsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutFileUploadsInput> +} + +export type UserCreateNestedOneWithoutAllowedOriginsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutAllowedOriginsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneWithoutAllowedOriginsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutAllowedOriginsInput + upsert?: Prisma.UserUpsertWithoutAllowedOriginsInput + disconnect?: Prisma.UserWhereInput | boolean + delete?: Prisma.UserWhereInput | boolean + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutAllowedOriginsInput> +} + +export type UserCreateWithoutMembershipsInput = { + id?: string + email: string + name: string + username: string + password?: string | null + authProvider?: string | null + providerId?: string | null + isAdmin?: boolean + createdAt?: Date | string + fileUploads?: Prisma.FileUploadCreateNestedManyWithoutUploadedByInput + allowedOrigins?: Prisma.AllowedOriginCreateNestedManyWithoutAddedByInput +} + +export type UserUncheckedCreateWithoutMembershipsInput = { + id?: string + email: string + name: string + username: string + password?: string | null + authProvider?: string | null + providerId?: string | null + isAdmin?: boolean + createdAt?: Date | string + fileUploads?: Prisma.FileUploadUncheckedCreateNestedManyWithoutUploadedByInput + allowedOrigins?: Prisma.AllowedOriginUncheckedCreateNestedManyWithoutAddedByInput +} + +export type UserCreateOrConnectWithoutMembershipsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutMembershipsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutMembershipsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutMembershipsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isAdmin?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + fileUploads?: Prisma.FileUploadUpdateManyWithoutUploadedByNestedInput + allowedOrigins?: Prisma.AllowedOriginUpdateManyWithoutAddedByNestedInput +} + +export type UserUncheckedUpdateWithoutMembershipsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isAdmin?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + fileUploads?: Prisma.FileUploadUncheckedUpdateManyWithoutUploadedByNestedInput + allowedOrigins?: Prisma.AllowedOriginUncheckedUpdateManyWithoutAddedByNestedInput +} + +export type UserCreateWithoutFileUploadsInput = { + id?: string + email: string + name: string + username: string + password?: string | null + authProvider?: string | null + providerId?: string | null + isAdmin?: boolean + createdAt?: Date | string + memberships?: Prisma.MembershipCreateNestedManyWithoutUserInput + allowedOrigins?: Prisma.AllowedOriginCreateNestedManyWithoutAddedByInput +} + +export type UserUncheckedCreateWithoutFileUploadsInput = { + id?: string + email: string + name: string + username: string + password?: string | null + authProvider?: string | null + providerId?: string | null + isAdmin?: boolean + createdAt?: Date | string + memberships?: Prisma.MembershipUncheckedCreateNestedManyWithoutUserInput + allowedOrigins?: Prisma.AllowedOriginUncheckedCreateNestedManyWithoutAddedByInput +} + +export type UserCreateOrConnectWithoutFileUploadsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutFileUploadsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutFileUploadsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutFileUploadsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isAdmin?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + memberships?: Prisma.MembershipUpdateManyWithoutUserNestedInput + allowedOrigins?: Prisma.AllowedOriginUpdateManyWithoutAddedByNestedInput +} + +export type UserUncheckedUpdateWithoutFileUploadsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isAdmin?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + memberships?: Prisma.MembershipUncheckedUpdateManyWithoutUserNestedInput + allowedOrigins?: Prisma.AllowedOriginUncheckedUpdateManyWithoutAddedByNestedInput +} + +export type UserCreateWithoutAllowedOriginsInput = { + id?: string + email: string + name: string + username: string + password?: string | null + authProvider?: string | null + providerId?: string | null + isAdmin?: boolean + createdAt?: Date | string + memberships?: Prisma.MembershipCreateNestedManyWithoutUserInput + fileUploads?: Prisma.FileUploadCreateNestedManyWithoutUploadedByInput +} + +export type UserUncheckedCreateWithoutAllowedOriginsInput = { + id?: string + email: string + name: string + username: string + password?: string | null + authProvider?: string | null + providerId?: string | null + isAdmin?: boolean + createdAt?: Date | string + memberships?: Prisma.MembershipUncheckedCreateNestedManyWithoutUserInput + fileUploads?: Prisma.FileUploadUncheckedCreateNestedManyWithoutUploadedByInput +} + +export type UserCreateOrConnectWithoutAllowedOriginsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutAllowedOriginsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutAllowedOriginsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutAllowedOriginsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isAdmin?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + memberships?: Prisma.MembershipUpdateManyWithoutUserNestedInput + fileUploads?: Prisma.FileUploadUpdateManyWithoutUploadedByNestedInput +} + +export type UserUncheckedUpdateWithoutAllowedOriginsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isAdmin?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + memberships?: Prisma.MembershipUncheckedUpdateManyWithoutUserNestedInput + fileUploads?: Prisma.FileUploadUncheckedUpdateManyWithoutUploadedByNestedInput +} + + +/** + * Count Type UserCountOutputType + */ + +export type UserCountOutputType = { + memberships: number + fileUploads: number + allowedOrigins: number +} + +export type UserCountOutputTypeSelect = { + memberships?: boolean | UserCountOutputTypeCountMembershipsArgs + fileUploads?: boolean | UserCountOutputTypeCountFileUploadsArgs + allowedOrigins?: boolean | UserCountOutputTypeCountAllowedOriginsArgs +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the UserCountOutputType + */ + select?: Prisma.UserCountOutputTypeSelect | null +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountMembershipsArgs = { + where?: Prisma.MembershipWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountFileUploadsArgs = { + where?: Prisma.FileUploadWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountAllowedOriginsArgs = { + where?: Prisma.AllowedOriginWhereInput +} + + +export type UserSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + email?: boolean + name?: boolean + username?: boolean + password?: boolean + authProvider?: boolean + providerId?: boolean + isAdmin?: boolean + createdAt?: boolean + memberships?: boolean | Prisma.User$membershipsArgs + fileUploads?: boolean | Prisma.User$fileUploadsArgs + allowedOrigins?: boolean | Prisma.User$allowedOriginsArgs + _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs +}, ExtArgs["result"]["user"]> + +export type UserSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + email?: boolean + name?: boolean + username?: boolean + password?: boolean + authProvider?: boolean + providerId?: boolean + isAdmin?: boolean + createdAt?: boolean +}, ExtArgs["result"]["user"]> + +export type UserSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + email?: boolean + name?: boolean + username?: boolean + password?: boolean + authProvider?: boolean + providerId?: boolean + isAdmin?: boolean + createdAt?: boolean +}, ExtArgs["result"]["user"]> + +export type UserSelectScalar = { + id?: boolean + email?: boolean + name?: boolean + username?: boolean + password?: boolean + authProvider?: boolean + providerId?: boolean + isAdmin?: boolean + createdAt?: boolean +} + +export type UserOmit = runtime.Types.Extensions.GetOmit<"id" | "email" | "name" | "username" | "password" | "authProvider" | "providerId" | "isAdmin" | "createdAt", ExtArgs["result"]["user"]> +export type UserInclude = { + memberships?: boolean | Prisma.User$membershipsArgs + fileUploads?: boolean | Prisma.User$fileUploadsArgs + allowedOrigins?: boolean | Prisma.User$allowedOriginsArgs + _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs +} +export type UserIncludeCreateManyAndReturn = {} +export type UserIncludeUpdateManyAndReturn = {} + +export type $UserPayload = { + name: "User" + objects: { + memberships: Prisma.$MembershipPayload[] + fileUploads: Prisma.$FileUploadPayload[] + allowedOrigins: Prisma.$AllowedOriginPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + email: string + name: string + username: string + password: string | null + authProvider: string | null + providerId: string | null + isAdmin: boolean + createdAt: 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" + memberships = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + fileUploads = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + allowedOrigins = {}>(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 username: Prisma.FieldRef<"User", 'String'> + readonly password: Prisma.FieldRef<"User", 'String'> + readonly authProvider: Prisma.FieldRef<"User", 'String'> + readonly providerId: Prisma.FieldRef<"User", 'String'> + readonly isAdmin: Prisma.FieldRef<"User", 'Boolean'> + readonly createdAt: 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.memberships + */ +export type User$membershipsArgs = { + /** + * Select specific fields to fetch from the Membership + */ + select?: Prisma.MembershipSelect | null + /** + * Omit specific fields from the Membership + */ + omit?: Prisma.MembershipOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MembershipInclude | null + where?: Prisma.MembershipWhereInput + orderBy?: Prisma.MembershipOrderByWithRelationInput | Prisma.MembershipOrderByWithRelationInput[] + cursor?: Prisma.MembershipWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.MembershipScalarFieldEnum | Prisma.MembershipScalarFieldEnum[] +} + +/** + * User.fileUploads + */ +export type User$fileUploadsArgs = { + /** + * Select specific fields to fetch from the FileUpload + */ + select?: Prisma.FileUploadSelect | null + /** + * Omit specific fields from the FileUpload + */ + omit?: Prisma.FileUploadOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.FileUploadInclude | null + where?: Prisma.FileUploadWhereInput + orderBy?: Prisma.FileUploadOrderByWithRelationInput | Prisma.FileUploadOrderByWithRelationInput[] + cursor?: Prisma.FileUploadWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.FileUploadScalarFieldEnum | Prisma.FileUploadScalarFieldEnum[] +} + +/** + * User.allowedOrigins + */ +export type User$allowedOriginsArgs = { + /** + * Select specific fields to fetch from the AllowedOrigin + */ + select?: Prisma.AllowedOriginSelect | null + /** + * Omit specific fields from the AllowedOrigin + */ + omit?: Prisma.AllowedOriginOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AllowedOriginInclude | null + where?: Prisma.AllowedOriginWhereInput + orderBy?: Prisma.AllowedOriginOrderByWithRelationInput | Prisma.AllowedOriginOrderByWithRelationInput[] + cursor?: Prisma.AllowedOriginWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AllowedOriginScalarFieldEnum | Prisma.AllowedOriginScalarFieldEnum[] +} + +/** + * 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/src/lib/generated/prisma/models/Vendor.ts b/src/lib/generated/prisma/models/Vendor.ts new file mode 100644 index 0000000..47bb80a --- /dev/null +++ b/src/lib/generated/prisma/models/Vendor.ts @@ -0,0 +1,1954 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Vendor` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/library" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model Vendor + * + */ +export type VendorModel = runtime.Types.Result.DefaultSelection + +export type AggregateVendor = { + _count: VendorCountAggregateOutputType | null + _min: VendorMinAggregateOutputType | null + _max: VendorMaxAggregateOutputType | null +} + +export type VendorMinAggregateOutputType = { + id: string | null + slug: string | null + name: string | null + description: string | null + website: string | null + contactPerson: string | null + email: string | null + phone: string | null + notes: string | null + createdAt: Date | null + updatedAt: Date | null + categoryId: string | null + addressId: string | null +} + +export type VendorMaxAggregateOutputType = { + id: string | null + slug: string | null + name: string | null + description: string | null + website: string | null + contactPerson: string | null + email: string | null + phone: string | null + notes: string | null + createdAt: Date | null + updatedAt: Date | null + categoryId: string | null + addressId: string | null +} + +export type VendorCountAggregateOutputType = { + id: number + slug: number + name: number + description: number + website: number + contactPerson: number + email: number + phone: number + notes: number + createdAt: number + updatedAt: number + categoryId: number + addressId: number + _all: number +} + + +export type VendorMinAggregateInputType = { + id?: true + slug?: true + name?: true + description?: true + website?: true + contactPerson?: true + email?: true + phone?: true + notes?: true + createdAt?: true + updatedAt?: true + categoryId?: true + addressId?: true +} + +export type VendorMaxAggregateInputType = { + id?: true + slug?: true + name?: true + description?: true + website?: true + contactPerson?: true + email?: true + phone?: true + notes?: true + createdAt?: true + updatedAt?: true + categoryId?: true + addressId?: true +} + +export type VendorCountAggregateInputType = { + id?: true + slug?: true + name?: true + description?: true + website?: true + contactPerson?: true + email?: true + phone?: true + notes?: true + createdAt?: true + updatedAt?: true + categoryId?: true + addressId?: true + _all?: true +} + +export type VendorAggregateArgs = { + /** + * Filter which Vendor to aggregate. + */ + where?: Prisma.VendorWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Vendors to fetch. + */ + orderBy?: Prisma.VendorOrderByWithRelationInput | Prisma.VendorOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.VendorWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Vendors 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` Vendors. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Vendors + **/ + _count?: true | VendorCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: VendorMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: VendorMaxAggregateInputType +} + +export type GetVendorAggregateType = { + [P in keyof T & keyof AggregateVendor]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type VendorGroupByArgs = { + where?: Prisma.VendorWhereInput + orderBy?: Prisma.VendorOrderByWithAggregationInput | Prisma.VendorOrderByWithAggregationInput[] + by: Prisma.VendorScalarFieldEnum[] | Prisma.VendorScalarFieldEnum + having?: Prisma.VendorScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: VendorCountAggregateInputType | true + _min?: VendorMinAggregateInputType + _max?: VendorMaxAggregateInputType +} + +export type VendorGroupByOutputType = { + id: string + slug: string + name: string + description: string | null + website: string | null + contactPerson: string | null + email: string | null + phone: string | null + notes: string | null + createdAt: Date + updatedAt: Date + categoryId: string | null + addressId: string | null + _count: VendorCountAggregateOutputType | null + _min: VendorMinAggregateOutputType | null + _max: VendorMaxAggregateOutputType | null +} + +type GetVendorGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof VendorGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type VendorWhereInput = { + AND?: Prisma.VendorWhereInput | Prisma.VendorWhereInput[] + OR?: Prisma.VendorWhereInput[] + NOT?: Prisma.VendorWhereInput | Prisma.VendorWhereInput[] + id?: Prisma.StringFilter<"Vendor"> | string + slug?: Prisma.StringFilter<"Vendor"> | string + name?: Prisma.StringFilter<"Vendor"> | string + description?: Prisma.StringNullableFilter<"Vendor"> | string | null + website?: Prisma.StringNullableFilter<"Vendor"> | string | null + contactPerson?: Prisma.StringNullableFilter<"Vendor"> | string | null + email?: Prisma.StringNullableFilter<"Vendor"> | string | null + phone?: Prisma.StringNullableFilter<"Vendor"> | string | null + notes?: Prisma.StringNullableFilter<"Vendor"> | string | null + createdAt?: Prisma.DateTimeFilter<"Vendor"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Vendor"> | Date | string + categoryId?: Prisma.StringNullableFilter<"Vendor"> | string | null + addressId?: Prisma.StringNullableFilter<"Vendor"> | string | null + category?: Prisma.XOR | null + address?: Prisma.XOR | null + eventVendors?: Prisma.EventVendorListRelationFilter +} + +export type VendorOrderByWithRelationInput = { + id?: Prisma.SortOrder + slug?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + website?: Prisma.SortOrderInput | Prisma.SortOrder + contactPerson?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + phone?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + categoryId?: Prisma.SortOrderInput | Prisma.SortOrder + addressId?: Prisma.SortOrderInput | Prisma.SortOrder + category?: Prisma.VendorCategoryOrderByWithRelationInput + address?: Prisma.AddressOrderByWithRelationInput + eventVendors?: Prisma.EventVendorOrderByRelationAggregateInput +} + +export type VendorWhereUniqueInput = Prisma.AtLeast<{ + id?: string + slug?: string + addressId?: string + AND?: Prisma.VendorWhereInput | Prisma.VendorWhereInput[] + OR?: Prisma.VendorWhereInput[] + NOT?: Prisma.VendorWhereInput | Prisma.VendorWhereInput[] + name?: Prisma.StringFilter<"Vendor"> | string + description?: Prisma.StringNullableFilter<"Vendor"> | string | null + website?: Prisma.StringNullableFilter<"Vendor"> | string | null + contactPerson?: Prisma.StringNullableFilter<"Vendor"> | string | null + email?: Prisma.StringNullableFilter<"Vendor"> | string | null + phone?: Prisma.StringNullableFilter<"Vendor"> | string | null + notes?: Prisma.StringNullableFilter<"Vendor"> | string | null + createdAt?: Prisma.DateTimeFilter<"Vendor"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Vendor"> | Date | string + categoryId?: Prisma.StringNullableFilter<"Vendor"> | string | null + category?: Prisma.XOR | null + address?: Prisma.XOR | null + eventVendors?: Prisma.EventVendorListRelationFilter +}, "id" | "slug" | "addressId"> + +export type VendorOrderByWithAggregationInput = { + id?: Prisma.SortOrder + slug?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + website?: Prisma.SortOrderInput | Prisma.SortOrder + contactPerson?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + phone?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + categoryId?: Prisma.SortOrderInput | Prisma.SortOrder + addressId?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.VendorCountOrderByAggregateInput + _max?: Prisma.VendorMaxOrderByAggregateInput + _min?: Prisma.VendorMinOrderByAggregateInput +} + +export type VendorScalarWhereWithAggregatesInput = { + AND?: Prisma.VendorScalarWhereWithAggregatesInput | Prisma.VendorScalarWhereWithAggregatesInput[] + OR?: Prisma.VendorScalarWhereWithAggregatesInput[] + NOT?: Prisma.VendorScalarWhereWithAggregatesInput | Prisma.VendorScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Vendor"> | string + slug?: Prisma.StringWithAggregatesFilter<"Vendor"> | string + name?: Prisma.StringWithAggregatesFilter<"Vendor"> | string + description?: Prisma.StringNullableWithAggregatesFilter<"Vendor"> | string | null + website?: Prisma.StringNullableWithAggregatesFilter<"Vendor"> | string | null + contactPerson?: Prisma.StringNullableWithAggregatesFilter<"Vendor"> | string | null + email?: Prisma.StringNullableWithAggregatesFilter<"Vendor"> | string | null + phone?: Prisma.StringNullableWithAggregatesFilter<"Vendor"> | string | null + notes?: Prisma.StringNullableWithAggregatesFilter<"Vendor"> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Vendor"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Vendor"> | Date | string + categoryId?: Prisma.StringNullableWithAggregatesFilter<"Vendor"> | string | null + addressId?: Prisma.StringNullableWithAggregatesFilter<"Vendor"> | string | null +} + +export type VendorCreateInput = { + id?: string + slug: string + name: string + description?: string | null + website?: string | null + contactPerson?: string | null + email?: string | null + phone?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + category?: Prisma.VendorCategoryCreateNestedOneWithoutVendorsInput + address?: Prisma.AddressCreateNestedOneWithoutVendorInput + eventVendors?: Prisma.EventVendorCreateNestedManyWithoutVendorInput +} + +export type VendorUncheckedCreateInput = { + id?: string + slug: string + name: string + description?: string | null + website?: string | null + contactPerson?: string | null + email?: string | null + phone?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + categoryId?: string | null + addressId?: string | null + eventVendors?: Prisma.EventVendorUncheckedCreateNestedManyWithoutVendorInput +} + +export type VendorUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + contactPerson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.VendorCategoryUpdateOneWithoutVendorsNestedInput + address?: Prisma.AddressUpdateOneWithoutVendorNestedInput + eventVendors?: Prisma.EventVendorUpdateManyWithoutVendorNestedInput +} + +export type VendorUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + contactPerson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + addressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + eventVendors?: Prisma.EventVendorUncheckedUpdateManyWithoutVendorNestedInput +} + +export type VendorCreateManyInput = { + id?: string + slug: string + name: string + description?: string | null + website?: string | null + contactPerson?: string | null + email?: string | null + phone?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + categoryId?: string | null + addressId?: string | null +} + +export type VendorUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + contactPerson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type VendorUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + contactPerson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + addressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type VendorNullableScalarRelationFilter = { + is?: Prisma.VendorWhereInput | null + isNot?: Prisma.VendorWhereInput | null +} + +export type VendorListRelationFilter = { + every?: Prisma.VendorWhereInput + some?: Prisma.VendorWhereInput + none?: Prisma.VendorWhereInput +} + +export type VendorOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type VendorCountOrderByAggregateInput = { + id?: Prisma.SortOrder + slug?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + website?: Prisma.SortOrder + contactPerson?: Prisma.SortOrder + email?: Prisma.SortOrder + phone?: Prisma.SortOrder + notes?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + addressId?: Prisma.SortOrder +} + +export type VendorMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + slug?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + website?: Prisma.SortOrder + contactPerson?: Prisma.SortOrder + email?: Prisma.SortOrder + phone?: Prisma.SortOrder + notes?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + addressId?: Prisma.SortOrder +} + +export type VendorMinOrderByAggregateInput = { + id?: Prisma.SortOrder + slug?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + website?: Prisma.SortOrder + contactPerson?: Prisma.SortOrder + email?: Prisma.SortOrder + phone?: Prisma.SortOrder + notes?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + categoryId?: Prisma.SortOrder + addressId?: Prisma.SortOrder +} + +export type VendorScalarRelationFilter = { + is?: Prisma.VendorWhereInput + isNot?: Prisma.VendorWhereInput +} + +export type VendorCreateNestedOneWithoutAddressInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.VendorCreateOrConnectWithoutAddressInput + connect?: Prisma.VendorWhereUniqueInput +} + +export type VendorUncheckedCreateNestedOneWithoutAddressInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.VendorCreateOrConnectWithoutAddressInput + connect?: Prisma.VendorWhereUniqueInput +} + +export type VendorUpdateOneWithoutAddressNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.VendorCreateOrConnectWithoutAddressInput + upsert?: Prisma.VendorUpsertWithoutAddressInput + disconnect?: Prisma.VendorWhereInput | boolean + delete?: Prisma.VendorWhereInput | boolean + connect?: Prisma.VendorWhereUniqueInput + update?: Prisma.XOR, Prisma.VendorUncheckedUpdateWithoutAddressInput> +} + +export type VendorUncheckedUpdateOneWithoutAddressNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.VendorCreateOrConnectWithoutAddressInput + upsert?: Prisma.VendorUpsertWithoutAddressInput + disconnect?: Prisma.VendorWhereInput | boolean + delete?: Prisma.VendorWhereInput | boolean + connect?: Prisma.VendorWhereUniqueInput + update?: Prisma.XOR, Prisma.VendorUncheckedUpdateWithoutAddressInput> +} + +export type VendorCreateNestedManyWithoutCategoryInput = { + create?: Prisma.XOR | Prisma.VendorCreateWithoutCategoryInput[] | Prisma.VendorUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.VendorCreateOrConnectWithoutCategoryInput | Prisma.VendorCreateOrConnectWithoutCategoryInput[] + createMany?: Prisma.VendorCreateManyCategoryInputEnvelope + connect?: Prisma.VendorWhereUniqueInput | Prisma.VendorWhereUniqueInput[] +} + +export type VendorUncheckedCreateNestedManyWithoutCategoryInput = { + create?: Prisma.XOR | Prisma.VendorCreateWithoutCategoryInput[] | Prisma.VendorUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.VendorCreateOrConnectWithoutCategoryInput | Prisma.VendorCreateOrConnectWithoutCategoryInput[] + createMany?: Prisma.VendorCreateManyCategoryInputEnvelope + connect?: Prisma.VendorWhereUniqueInput | Prisma.VendorWhereUniqueInput[] +} + +export type VendorUpdateManyWithoutCategoryNestedInput = { + create?: Prisma.XOR | Prisma.VendorCreateWithoutCategoryInput[] | Prisma.VendorUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.VendorCreateOrConnectWithoutCategoryInput | Prisma.VendorCreateOrConnectWithoutCategoryInput[] + upsert?: Prisma.VendorUpsertWithWhereUniqueWithoutCategoryInput | Prisma.VendorUpsertWithWhereUniqueWithoutCategoryInput[] + createMany?: Prisma.VendorCreateManyCategoryInputEnvelope + set?: Prisma.VendorWhereUniqueInput | Prisma.VendorWhereUniqueInput[] + disconnect?: Prisma.VendorWhereUniqueInput | Prisma.VendorWhereUniqueInput[] + delete?: Prisma.VendorWhereUniqueInput | Prisma.VendorWhereUniqueInput[] + connect?: Prisma.VendorWhereUniqueInput | Prisma.VendorWhereUniqueInput[] + update?: Prisma.VendorUpdateWithWhereUniqueWithoutCategoryInput | Prisma.VendorUpdateWithWhereUniqueWithoutCategoryInput[] + updateMany?: Prisma.VendorUpdateManyWithWhereWithoutCategoryInput | Prisma.VendorUpdateManyWithWhereWithoutCategoryInput[] + deleteMany?: Prisma.VendorScalarWhereInput | Prisma.VendorScalarWhereInput[] +} + +export type VendorUncheckedUpdateManyWithoutCategoryNestedInput = { + create?: Prisma.XOR | Prisma.VendorCreateWithoutCategoryInput[] | Prisma.VendorUncheckedCreateWithoutCategoryInput[] + connectOrCreate?: Prisma.VendorCreateOrConnectWithoutCategoryInput | Prisma.VendorCreateOrConnectWithoutCategoryInput[] + upsert?: Prisma.VendorUpsertWithWhereUniqueWithoutCategoryInput | Prisma.VendorUpsertWithWhereUniqueWithoutCategoryInput[] + createMany?: Prisma.VendorCreateManyCategoryInputEnvelope + set?: Prisma.VendorWhereUniqueInput | Prisma.VendorWhereUniqueInput[] + disconnect?: Prisma.VendorWhereUniqueInput | Prisma.VendorWhereUniqueInput[] + delete?: Prisma.VendorWhereUniqueInput | Prisma.VendorWhereUniqueInput[] + connect?: Prisma.VendorWhereUniqueInput | Prisma.VendorWhereUniqueInput[] + update?: Prisma.VendorUpdateWithWhereUniqueWithoutCategoryInput | Prisma.VendorUpdateWithWhereUniqueWithoutCategoryInput[] + updateMany?: Prisma.VendorUpdateManyWithWhereWithoutCategoryInput | Prisma.VendorUpdateManyWithWhereWithoutCategoryInput[] + deleteMany?: Prisma.VendorScalarWhereInput | Prisma.VendorScalarWhereInput[] +} + +export type VendorCreateNestedOneWithoutEventVendorsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.VendorCreateOrConnectWithoutEventVendorsInput + connect?: Prisma.VendorWhereUniqueInput +} + +export type VendorUpdateOneRequiredWithoutEventVendorsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.VendorCreateOrConnectWithoutEventVendorsInput + upsert?: Prisma.VendorUpsertWithoutEventVendorsInput + connect?: Prisma.VendorWhereUniqueInput + update?: Prisma.XOR, Prisma.VendorUncheckedUpdateWithoutEventVendorsInput> +} + +export type VendorCreateWithoutAddressInput = { + id?: string + slug: string + name: string + description?: string | null + website?: string | null + contactPerson?: string | null + email?: string | null + phone?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + category?: Prisma.VendorCategoryCreateNestedOneWithoutVendorsInput + eventVendors?: Prisma.EventVendorCreateNestedManyWithoutVendorInput +} + +export type VendorUncheckedCreateWithoutAddressInput = { + id?: string + slug: string + name: string + description?: string | null + website?: string | null + contactPerson?: string | null + email?: string | null + phone?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + categoryId?: string | null + eventVendors?: Prisma.EventVendorUncheckedCreateNestedManyWithoutVendorInput +} + +export type VendorCreateOrConnectWithoutAddressInput = { + where: Prisma.VendorWhereUniqueInput + create: Prisma.XOR +} + +export type VendorUpsertWithoutAddressInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.VendorWhereInput +} + +export type VendorUpdateToOneWithWhereWithoutAddressInput = { + where?: Prisma.VendorWhereInput + data: Prisma.XOR +} + +export type VendorUpdateWithoutAddressInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + contactPerson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.VendorCategoryUpdateOneWithoutVendorsNestedInput + eventVendors?: Prisma.EventVendorUpdateManyWithoutVendorNestedInput +} + +export type VendorUncheckedUpdateWithoutAddressInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + contactPerson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + eventVendors?: Prisma.EventVendorUncheckedUpdateManyWithoutVendorNestedInput +} + +export type VendorCreateWithoutCategoryInput = { + id?: string + slug: string + name: string + description?: string | null + website?: string | null + contactPerson?: string | null + email?: string | null + phone?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + address?: Prisma.AddressCreateNestedOneWithoutVendorInput + eventVendors?: Prisma.EventVendorCreateNestedManyWithoutVendorInput +} + +export type VendorUncheckedCreateWithoutCategoryInput = { + id?: string + slug: string + name: string + description?: string | null + website?: string | null + contactPerson?: string | null + email?: string | null + phone?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + addressId?: string | null + eventVendors?: Prisma.EventVendorUncheckedCreateNestedManyWithoutVendorInput +} + +export type VendorCreateOrConnectWithoutCategoryInput = { + where: Prisma.VendorWhereUniqueInput + create: Prisma.XOR +} + +export type VendorCreateManyCategoryInputEnvelope = { + data: Prisma.VendorCreateManyCategoryInput | Prisma.VendorCreateManyCategoryInput[] + skipDuplicates?: boolean +} + +export type VendorUpsertWithWhereUniqueWithoutCategoryInput = { + where: Prisma.VendorWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type VendorUpdateWithWhereUniqueWithoutCategoryInput = { + where: Prisma.VendorWhereUniqueInput + data: Prisma.XOR +} + +export type VendorUpdateManyWithWhereWithoutCategoryInput = { + where: Prisma.VendorScalarWhereInput + data: Prisma.XOR +} + +export type VendorScalarWhereInput = { + AND?: Prisma.VendorScalarWhereInput | Prisma.VendorScalarWhereInput[] + OR?: Prisma.VendorScalarWhereInput[] + NOT?: Prisma.VendorScalarWhereInput | Prisma.VendorScalarWhereInput[] + id?: Prisma.StringFilter<"Vendor"> | string + slug?: Prisma.StringFilter<"Vendor"> | string + name?: Prisma.StringFilter<"Vendor"> | string + description?: Prisma.StringNullableFilter<"Vendor"> | string | null + website?: Prisma.StringNullableFilter<"Vendor"> | string | null + contactPerson?: Prisma.StringNullableFilter<"Vendor"> | string | null + email?: Prisma.StringNullableFilter<"Vendor"> | string | null + phone?: Prisma.StringNullableFilter<"Vendor"> | string | null + notes?: Prisma.StringNullableFilter<"Vendor"> | string | null + createdAt?: Prisma.DateTimeFilter<"Vendor"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Vendor"> | Date | string + categoryId?: Prisma.StringNullableFilter<"Vendor"> | string | null + addressId?: Prisma.StringNullableFilter<"Vendor"> | string | null +} + +export type VendorCreateWithoutEventVendorsInput = { + id?: string + slug: string + name: string + description?: string | null + website?: string | null + contactPerson?: string | null + email?: string | null + phone?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + category?: Prisma.VendorCategoryCreateNestedOneWithoutVendorsInput + address?: Prisma.AddressCreateNestedOneWithoutVendorInput +} + +export type VendorUncheckedCreateWithoutEventVendorsInput = { + id?: string + slug: string + name: string + description?: string | null + website?: string | null + contactPerson?: string | null + email?: string | null + phone?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + categoryId?: string | null + addressId?: string | null +} + +export type VendorCreateOrConnectWithoutEventVendorsInput = { + where: Prisma.VendorWhereUniqueInput + create: Prisma.XOR +} + +export type VendorUpsertWithoutEventVendorsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.VendorWhereInput +} + +export type VendorUpdateToOneWithWhereWithoutEventVendorsInput = { + where?: Prisma.VendorWhereInput + data: Prisma.XOR +} + +export type VendorUpdateWithoutEventVendorsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + contactPerson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + category?: Prisma.VendorCategoryUpdateOneWithoutVendorsNestedInput + address?: Prisma.AddressUpdateOneWithoutVendorNestedInput +} + +export type VendorUncheckedUpdateWithoutEventVendorsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + contactPerson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + addressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type VendorCreateManyCategoryInput = { + id?: string + slug: string + name: string + description?: string | null + website?: string | null + contactPerson?: string | null + email?: string | null + phone?: string | null + notes?: string | null + createdAt?: Date | string + updatedAt?: Date | string + addressId?: string | null +} + +export type VendorUpdateWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + contactPerson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + address?: Prisma.AddressUpdateOneWithoutVendorNestedInput + eventVendors?: Prisma.EventVendorUpdateManyWithoutVendorNestedInput +} + +export type VendorUncheckedUpdateWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + contactPerson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + addressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + eventVendors?: Prisma.EventVendorUncheckedUpdateManyWithoutVendorNestedInput +} + +export type VendorUncheckedUpdateManyWithoutCategoryInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + slug?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + contactPerson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + addressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + + +/** + * Count Type VendorCountOutputType + */ + +export type VendorCountOutputType = { + eventVendors: number +} + +export type VendorCountOutputTypeSelect = { + eventVendors?: boolean | VendorCountOutputTypeCountEventVendorsArgs +} + +/** + * VendorCountOutputType without action + */ +export type VendorCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the VendorCountOutputType + */ + select?: Prisma.VendorCountOutputTypeSelect | null +} + +/** + * VendorCountOutputType without action + */ +export type VendorCountOutputTypeCountEventVendorsArgs = { + where?: Prisma.EventVendorWhereInput +} + + +export type VendorSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + slug?: boolean + name?: boolean + description?: boolean + website?: boolean + contactPerson?: boolean + email?: boolean + phone?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + categoryId?: boolean + addressId?: boolean + category?: boolean | Prisma.Vendor$categoryArgs + address?: boolean | Prisma.Vendor$addressArgs + eventVendors?: boolean | Prisma.Vendor$eventVendorsArgs + _count?: boolean | Prisma.VendorCountOutputTypeDefaultArgs +}, ExtArgs["result"]["vendor"]> + +export type VendorSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + slug?: boolean + name?: boolean + description?: boolean + website?: boolean + contactPerson?: boolean + email?: boolean + phone?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + categoryId?: boolean + addressId?: boolean + category?: boolean | Prisma.Vendor$categoryArgs + address?: boolean | Prisma.Vendor$addressArgs +}, ExtArgs["result"]["vendor"]> + +export type VendorSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + slug?: boolean + name?: boolean + description?: boolean + website?: boolean + contactPerson?: boolean + email?: boolean + phone?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + categoryId?: boolean + addressId?: boolean + category?: boolean | Prisma.Vendor$categoryArgs + address?: boolean | Prisma.Vendor$addressArgs +}, ExtArgs["result"]["vendor"]> + +export type VendorSelectScalar = { + id?: boolean + slug?: boolean + name?: boolean + description?: boolean + website?: boolean + contactPerson?: boolean + email?: boolean + phone?: boolean + notes?: boolean + createdAt?: boolean + updatedAt?: boolean + categoryId?: boolean + addressId?: boolean +} + +export type VendorOmit = runtime.Types.Extensions.GetOmit<"id" | "slug" | "name" | "description" | "website" | "contactPerson" | "email" | "phone" | "notes" | "createdAt" | "updatedAt" | "categoryId" | "addressId", ExtArgs["result"]["vendor"]> +export type VendorInclude = { + category?: boolean | Prisma.Vendor$categoryArgs + address?: boolean | Prisma.Vendor$addressArgs + eventVendors?: boolean | Prisma.Vendor$eventVendorsArgs + _count?: boolean | Prisma.VendorCountOutputTypeDefaultArgs +} +export type VendorIncludeCreateManyAndReturn = { + category?: boolean | Prisma.Vendor$categoryArgs + address?: boolean | Prisma.Vendor$addressArgs +} +export type VendorIncludeUpdateManyAndReturn = { + category?: boolean | Prisma.Vendor$categoryArgs + address?: boolean | Prisma.Vendor$addressArgs +} + +export type $VendorPayload = { + name: "Vendor" + objects: { + category: Prisma.$VendorCategoryPayload | null + address: Prisma.$AddressPayload | null + eventVendors: Prisma.$EventVendorPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + slug: string + name: string + description: string | null + website: string | null + contactPerson: string | null + email: string | null + phone: string | null + notes: string | null + createdAt: Date + updatedAt: Date + categoryId: string | null + addressId: string | null + }, ExtArgs["result"]["vendor"]> + composites: {} +} + +export type VendorGetPayload = runtime.Types.Result.GetResult + +export type VendorCountArgs = + Omit & { + select?: VendorCountAggregateInputType | true + } + +export interface VendorDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Vendor'], meta: { name: 'Vendor' } } + /** + * Find zero or one Vendor that matches the filter. + * @param {VendorFindUniqueArgs} args - Arguments to find a Vendor + * @example + * // Get one Vendor + * const vendor = await prisma.vendor.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__VendorClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Vendor that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {VendorFindUniqueOrThrowArgs} args - Arguments to find a Vendor + * @example + * // Get one Vendor + * const vendor = await prisma.vendor.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__VendorClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Vendor 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 {VendorFindFirstArgs} args - Arguments to find a Vendor + * @example + * // Get one Vendor + * const vendor = await prisma.vendor.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__VendorClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Vendor 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 {VendorFindFirstOrThrowArgs} args - Arguments to find a Vendor + * @example + * // Get one Vendor + * const vendor = await prisma.vendor.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__VendorClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Vendors 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 {VendorFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Vendors + * const vendors = await prisma.vendor.findMany() + * + * // Get first 10 Vendors + * const vendors = await prisma.vendor.findMany({ take: 10 }) + * + * // Only select the `id` + * const vendorWithIdOnly = await prisma.vendor.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Vendor. + * @param {VendorCreateArgs} args - Arguments to create a Vendor. + * @example + * // Create one Vendor + * const Vendor = await prisma.vendor.create({ + * data: { + * // ... data to create a Vendor + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__VendorClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Vendors. + * @param {VendorCreateManyArgs} args - Arguments to create many Vendors. + * @example + * // Create many Vendors + * const vendor = await prisma.vendor.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Vendors and returns the data saved in the database. + * @param {VendorCreateManyAndReturnArgs} args - Arguments to create many Vendors. + * @example + * // Create many Vendors + * const vendor = await prisma.vendor.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Vendors and only return the `id` + * const vendorWithIdOnly = await prisma.vendor.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 Vendor. + * @param {VendorDeleteArgs} args - Arguments to delete one Vendor. + * @example + * // Delete one Vendor + * const Vendor = await prisma.vendor.delete({ + * where: { + * // ... filter to delete one Vendor + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__VendorClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Vendor. + * @param {VendorUpdateArgs} args - Arguments to update one Vendor. + * @example + * // Update one Vendor + * const vendor = await prisma.vendor.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__VendorClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Vendors. + * @param {VendorDeleteManyArgs} args - Arguments to filter Vendors to delete. + * @example + * // Delete a few Vendors + * const { count } = await prisma.vendor.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Vendors. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VendorUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Vendors + * const vendor = await prisma.vendor.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Vendors and returns the data updated in the database. + * @param {VendorUpdateManyAndReturnArgs} args - Arguments to update many Vendors. + * @example + * // Update many Vendors + * const vendor = await prisma.vendor.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Vendors and only return the `id` + * const vendorWithIdOnly = await prisma.vendor.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 Vendor. + * @param {VendorUpsertArgs} args - Arguments to update or create a Vendor. + * @example + * // Update or create a Vendor + * const vendor = await prisma.vendor.upsert({ + * create: { + * // ... data to create a Vendor + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Vendor we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__VendorClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Vendors. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VendorCountArgs} args - Arguments to filter Vendors to count. + * @example + * // Count the number of Vendors + * const count = await prisma.vendor.count({ + * where: { + * // ... the filter for the Vendors 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 Vendor. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VendorAggregateArgs} 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 Vendor. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VendorGroupByArgs} 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 VendorGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: VendorGroupByArgs['orderBy'] } + : { orderBy?: VendorGroupByArgs['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 ? GetVendorGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Vendor model + */ +readonly fields: VendorFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Vendor. + * 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__VendorClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + category = {}>(args?: Prisma.Subset>): Prisma.Prisma__VendorCategoryClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + address = {}>(args?: Prisma.Subset>): Prisma.Prisma__AddressClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + eventVendors = {}>(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 Vendor model + */ +export interface VendorFieldRefs { + readonly id: Prisma.FieldRef<"Vendor", 'String'> + readonly slug: Prisma.FieldRef<"Vendor", 'String'> + readonly name: Prisma.FieldRef<"Vendor", 'String'> + readonly description: Prisma.FieldRef<"Vendor", 'String'> + readonly website: Prisma.FieldRef<"Vendor", 'String'> + readonly contactPerson: Prisma.FieldRef<"Vendor", 'String'> + readonly email: Prisma.FieldRef<"Vendor", 'String'> + readonly phone: Prisma.FieldRef<"Vendor", 'String'> + readonly notes: Prisma.FieldRef<"Vendor", 'String'> + readonly createdAt: Prisma.FieldRef<"Vendor", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Vendor", 'DateTime'> + readonly categoryId: Prisma.FieldRef<"Vendor", 'String'> + readonly addressId: Prisma.FieldRef<"Vendor", 'String'> +} + + +// Custom InputTypes +/** + * Vendor findUnique + */ +export type VendorFindUniqueArgs = { + /** + * Select specific fields to fetch from the Vendor + */ + select?: Prisma.VendorSelect | null + /** + * Omit specific fields from the Vendor + */ + omit?: Prisma.VendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorInclude | null + /** + * Filter, which Vendor to fetch. + */ + where: Prisma.VendorWhereUniqueInput +} + +/** + * Vendor findUniqueOrThrow + */ +export type VendorFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Vendor + */ + select?: Prisma.VendorSelect | null + /** + * Omit specific fields from the Vendor + */ + omit?: Prisma.VendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorInclude | null + /** + * Filter, which Vendor to fetch. + */ + where: Prisma.VendorWhereUniqueInput +} + +/** + * Vendor findFirst + */ +export type VendorFindFirstArgs = { + /** + * Select specific fields to fetch from the Vendor + */ + select?: Prisma.VendorSelect | null + /** + * Omit specific fields from the Vendor + */ + omit?: Prisma.VendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorInclude | null + /** + * Filter, which Vendor to fetch. + */ + where?: Prisma.VendorWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Vendors to fetch. + */ + orderBy?: Prisma.VendorOrderByWithRelationInput | Prisma.VendorOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Vendors. + */ + cursor?: Prisma.VendorWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Vendors 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` Vendors. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Vendors. + */ + distinct?: Prisma.VendorScalarFieldEnum | Prisma.VendorScalarFieldEnum[] +} + +/** + * Vendor findFirstOrThrow + */ +export type VendorFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Vendor + */ + select?: Prisma.VendorSelect | null + /** + * Omit specific fields from the Vendor + */ + omit?: Prisma.VendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorInclude | null + /** + * Filter, which Vendor to fetch. + */ + where?: Prisma.VendorWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Vendors to fetch. + */ + orderBy?: Prisma.VendorOrderByWithRelationInput | Prisma.VendorOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Vendors. + */ + cursor?: Prisma.VendorWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Vendors 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` Vendors. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Vendors. + */ + distinct?: Prisma.VendorScalarFieldEnum | Prisma.VendorScalarFieldEnum[] +} + +/** + * Vendor findMany + */ +export type VendorFindManyArgs = { + /** + * Select specific fields to fetch from the Vendor + */ + select?: Prisma.VendorSelect | null + /** + * Omit specific fields from the Vendor + */ + omit?: Prisma.VendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorInclude | null + /** + * Filter, which Vendors to fetch. + */ + where?: Prisma.VendorWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Vendors to fetch. + */ + orderBy?: Prisma.VendorOrderByWithRelationInput | Prisma.VendorOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Vendors. + */ + cursor?: Prisma.VendorWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Vendors 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` Vendors. + */ + skip?: number + distinct?: Prisma.VendorScalarFieldEnum | Prisma.VendorScalarFieldEnum[] +} + +/** + * Vendor create + */ +export type VendorCreateArgs = { + /** + * Select specific fields to fetch from the Vendor + */ + select?: Prisma.VendorSelect | null + /** + * Omit specific fields from the Vendor + */ + omit?: Prisma.VendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorInclude | null + /** + * The data needed to create a Vendor. + */ + data: Prisma.XOR +} + +/** + * Vendor createMany + */ +export type VendorCreateManyArgs = { + /** + * The data used to create many Vendors. + */ + data: Prisma.VendorCreateManyInput | Prisma.VendorCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Vendor createManyAndReturn + */ +export type VendorCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Vendor + */ + select?: Prisma.VendorSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Vendor + */ + omit?: Prisma.VendorOmit | null + /** + * The data used to create many Vendors. + */ + data: Prisma.VendorCreateManyInput | Prisma.VendorCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorIncludeCreateManyAndReturn | null +} + +/** + * Vendor update + */ +export type VendorUpdateArgs = { + /** + * Select specific fields to fetch from the Vendor + */ + select?: Prisma.VendorSelect | null + /** + * Omit specific fields from the Vendor + */ + omit?: Prisma.VendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorInclude | null + /** + * The data needed to update a Vendor. + */ + data: Prisma.XOR + /** + * Choose, which Vendor to update. + */ + where: Prisma.VendorWhereUniqueInput +} + +/** + * Vendor updateMany + */ +export type VendorUpdateManyArgs = { + /** + * The data used to update Vendors. + */ + data: Prisma.XOR + /** + * Filter which Vendors to update + */ + where?: Prisma.VendorWhereInput + /** + * Limit how many Vendors to update. + */ + limit?: number +} + +/** + * Vendor updateManyAndReturn + */ +export type VendorUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Vendor + */ + select?: Prisma.VendorSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Vendor + */ + omit?: Prisma.VendorOmit | null + /** + * The data used to update Vendors. + */ + data: Prisma.XOR + /** + * Filter which Vendors to update + */ + where?: Prisma.VendorWhereInput + /** + * Limit how many Vendors to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorIncludeUpdateManyAndReturn | null +} + +/** + * Vendor upsert + */ +export type VendorUpsertArgs = { + /** + * Select specific fields to fetch from the Vendor + */ + select?: Prisma.VendorSelect | null + /** + * Omit specific fields from the Vendor + */ + omit?: Prisma.VendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorInclude | null + /** + * The filter to search for the Vendor to update in case it exists. + */ + where: Prisma.VendorWhereUniqueInput + /** + * In case the Vendor found by the `where` argument doesn't exist, create a new Vendor with this data. + */ + create: Prisma.XOR + /** + * In case the Vendor was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Vendor delete + */ +export type VendorDeleteArgs = { + /** + * Select specific fields to fetch from the Vendor + */ + select?: Prisma.VendorSelect | null + /** + * Omit specific fields from the Vendor + */ + omit?: Prisma.VendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorInclude | null + /** + * Filter which Vendor to delete. + */ + where: Prisma.VendorWhereUniqueInput +} + +/** + * Vendor deleteMany + */ +export type VendorDeleteManyArgs = { + /** + * Filter which Vendors to delete + */ + where?: Prisma.VendorWhereInput + /** + * Limit how many Vendors to delete. + */ + limit?: number +} + +/** + * Vendor.category + */ +export type Vendor$categoryArgs = { + /** + * Select specific fields to fetch from the VendorCategory + */ + select?: Prisma.VendorCategorySelect | null + /** + * Omit specific fields from the VendorCategory + */ + omit?: Prisma.VendorCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorCategoryInclude | null + where?: Prisma.VendorCategoryWhereInput +} + +/** + * Vendor.address + */ +export type Vendor$addressArgs = { + /** + * Select specific fields to fetch from the Address + */ + select?: Prisma.AddressSelect | null + /** + * Omit specific fields from the Address + */ + omit?: Prisma.AddressOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AddressInclude | null + where?: Prisma.AddressWhereInput +} + +/** + * Vendor.eventVendors + */ +export type Vendor$eventVendorsArgs = { + /** + * Select specific fields to fetch from the EventVendor + */ + select?: Prisma.EventVendorSelect | null + /** + * Omit specific fields from the EventVendor + */ + omit?: Prisma.EventVendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EventVendorInclude | null + where?: Prisma.EventVendorWhereInput + orderBy?: Prisma.EventVendorOrderByWithRelationInput | Prisma.EventVendorOrderByWithRelationInput[] + cursor?: Prisma.EventVendorWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.EventVendorScalarFieldEnum | Prisma.EventVendorScalarFieldEnum[] +} + +/** + * Vendor without action + */ +export type VendorDefaultArgs = { + /** + * Select specific fields to fetch from the Vendor + */ + select?: Prisma.VendorSelect | null + /** + * Omit specific fields from the Vendor + */ + omit?: Prisma.VendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorInclude | null +} diff --git a/src/lib/generated/prisma/models/VendorCategory.ts b/src/lib/generated/prisma/models/VendorCategory.ts new file mode 100644 index 0000000..6dad154 --- /dev/null +++ b/src/lib/generated/prisma/models/VendorCategory.ts @@ -0,0 +1,1292 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `VendorCategory` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/library" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model VendorCategory + * + */ +export type VendorCategoryModel = runtime.Types.Result.DefaultSelection + +export type AggregateVendorCategory = { + _count: VendorCategoryCountAggregateOutputType | null + _min: VendorCategoryMinAggregateOutputType | null + _max: VendorCategoryMaxAggregateOutputType | null +} + +export type VendorCategoryMinAggregateOutputType = { + id: string | null + name: string | null + description: string | null + color: string | null +} + +export type VendorCategoryMaxAggregateOutputType = { + id: string | null + name: string | null + description: string | null + color: string | null +} + +export type VendorCategoryCountAggregateOutputType = { + id: number + name: number + description: number + color: number + _all: number +} + + +export type VendorCategoryMinAggregateInputType = { + id?: true + name?: true + description?: true + color?: true +} + +export type VendorCategoryMaxAggregateInputType = { + id?: true + name?: true + description?: true + color?: true +} + +export type VendorCategoryCountAggregateInputType = { + id?: true + name?: true + description?: true + color?: true + _all?: true +} + +export type VendorCategoryAggregateArgs = { + /** + * Filter which VendorCategory to aggregate. + */ + where?: Prisma.VendorCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of VendorCategories to fetch. + */ + orderBy?: Prisma.VendorCategoryOrderByWithRelationInput | Prisma.VendorCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.VendorCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` VendorCategories 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` VendorCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned VendorCategories + **/ + _count?: true | VendorCategoryCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: VendorCategoryMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: VendorCategoryMaxAggregateInputType +} + +export type GetVendorCategoryAggregateType = { + [P in keyof T & keyof AggregateVendorCategory]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type VendorCategoryGroupByArgs = { + where?: Prisma.VendorCategoryWhereInput + orderBy?: Prisma.VendorCategoryOrderByWithAggregationInput | Prisma.VendorCategoryOrderByWithAggregationInput[] + by: Prisma.VendorCategoryScalarFieldEnum[] | Prisma.VendorCategoryScalarFieldEnum + having?: Prisma.VendorCategoryScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: VendorCategoryCountAggregateInputType | true + _min?: VendorCategoryMinAggregateInputType + _max?: VendorCategoryMaxAggregateInputType +} + +export type VendorCategoryGroupByOutputType = { + id: string + name: string + description: string | null + color: string | null + _count: VendorCategoryCountAggregateOutputType | null + _min: VendorCategoryMinAggregateOutputType | null + _max: VendorCategoryMaxAggregateOutputType | null +} + +type GetVendorCategoryGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof VendorCategoryGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type VendorCategoryWhereInput = { + AND?: Prisma.VendorCategoryWhereInput | Prisma.VendorCategoryWhereInput[] + OR?: Prisma.VendorCategoryWhereInput[] + NOT?: Prisma.VendorCategoryWhereInput | Prisma.VendorCategoryWhereInput[] + id?: Prisma.StringFilter<"VendorCategory"> | string + name?: Prisma.StringFilter<"VendorCategory"> | string + description?: Prisma.StringNullableFilter<"VendorCategory"> | string | null + color?: Prisma.StringNullableFilter<"VendorCategory"> | string | null + vendors?: Prisma.VendorListRelationFilter +} + +export type VendorCategoryOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + color?: Prisma.SortOrderInput | Prisma.SortOrder + vendors?: Prisma.VendorOrderByRelationAggregateInput +} + +export type VendorCategoryWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.VendorCategoryWhereInput | Prisma.VendorCategoryWhereInput[] + OR?: Prisma.VendorCategoryWhereInput[] + NOT?: Prisma.VendorCategoryWhereInput | Prisma.VendorCategoryWhereInput[] + name?: Prisma.StringFilter<"VendorCategory"> | string + description?: Prisma.StringNullableFilter<"VendorCategory"> | string | null + color?: Prisma.StringNullableFilter<"VendorCategory"> | string | null + vendors?: Prisma.VendorListRelationFilter +}, "id"> + +export type VendorCategoryOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + color?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.VendorCategoryCountOrderByAggregateInput + _max?: Prisma.VendorCategoryMaxOrderByAggregateInput + _min?: Prisma.VendorCategoryMinOrderByAggregateInput +} + +export type VendorCategoryScalarWhereWithAggregatesInput = { + AND?: Prisma.VendorCategoryScalarWhereWithAggregatesInput | Prisma.VendorCategoryScalarWhereWithAggregatesInput[] + OR?: Prisma.VendorCategoryScalarWhereWithAggregatesInput[] + NOT?: Prisma.VendorCategoryScalarWhereWithAggregatesInput | Prisma.VendorCategoryScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"VendorCategory"> | string + name?: Prisma.StringWithAggregatesFilter<"VendorCategory"> | string + description?: Prisma.StringNullableWithAggregatesFilter<"VendorCategory"> | string | null + color?: Prisma.StringNullableWithAggregatesFilter<"VendorCategory"> | string | null +} + +export type VendorCategoryCreateInput = { + id?: string + name: string + description?: string | null + color?: string | null + vendors?: Prisma.VendorCreateNestedManyWithoutCategoryInput +} + +export type VendorCategoryUncheckedCreateInput = { + id?: string + name: string + description?: string | null + color?: string | null + vendors?: Prisma.VendorUncheckedCreateNestedManyWithoutCategoryInput +} + +export type VendorCategoryUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + vendors?: Prisma.VendorUpdateManyWithoutCategoryNestedInput +} + +export type VendorCategoryUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + vendors?: Prisma.VendorUncheckedUpdateManyWithoutCategoryNestedInput +} + +export type VendorCategoryCreateManyInput = { + id?: string + name: string + description?: string | null + color?: string | null +} + +export type VendorCategoryUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type VendorCategoryUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type VendorCategoryCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + color?: Prisma.SortOrder +} + +export type VendorCategoryMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + color?: Prisma.SortOrder +} + +export type VendorCategoryMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + color?: Prisma.SortOrder +} + +export type VendorCategoryNullableScalarRelationFilter = { + is?: Prisma.VendorCategoryWhereInput | null + isNot?: Prisma.VendorCategoryWhereInput | null +} + +export type VendorCategoryCreateNestedOneWithoutVendorsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.VendorCategoryCreateOrConnectWithoutVendorsInput + connect?: Prisma.VendorCategoryWhereUniqueInput +} + +export type VendorCategoryUpdateOneWithoutVendorsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.VendorCategoryCreateOrConnectWithoutVendorsInput + upsert?: Prisma.VendorCategoryUpsertWithoutVendorsInput + disconnect?: Prisma.VendorCategoryWhereInput | boolean + delete?: Prisma.VendorCategoryWhereInput | boolean + connect?: Prisma.VendorCategoryWhereUniqueInput + update?: Prisma.XOR, Prisma.VendorCategoryUncheckedUpdateWithoutVendorsInput> +} + +export type VendorCategoryCreateWithoutVendorsInput = { + id?: string + name: string + description?: string | null + color?: string | null +} + +export type VendorCategoryUncheckedCreateWithoutVendorsInput = { + id?: string + name: string + description?: string | null + color?: string | null +} + +export type VendorCategoryCreateOrConnectWithoutVendorsInput = { + where: Prisma.VendorCategoryWhereUniqueInput + create: Prisma.XOR +} + +export type VendorCategoryUpsertWithoutVendorsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.VendorCategoryWhereInput +} + +export type VendorCategoryUpdateToOneWithWhereWithoutVendorsInput = { + where?: Prisma.VendorCategoryWhereInput + data: Prisma.XOR +} + +export type VendorCategoryUpdateWithoutVendorsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type VendorCategoryUncheckedUpdateWithoutVendorsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + + +/** + * Count Type VendorCategoryCountOutputType + */ + +export type VendorCategoryCountOutputType = { + vendors: number +} + +export type VendorCategoryCountOutputTypeSelect = { + vendors?: boolean | VendorCategoryCountOutputTypeCountVendorsArgs +} + +/** + * VendorCategoryCountOutputType without action + */ +export type VendorCategoryCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the VendorCategoryCountOutputType + */ + select?: Prisma.VendorCategoryCountOutputTypeSelect | null +} + +/** + * VendorCategoryCountOutputType without action + */ +export type VendorCategoryCountOutputTypeCountVendorsArgs = { + where?: Prisma.VendorWhereInput +} + + +export type VendorCategorySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + description?: boolean + color?: boolean + vendors?: boolean | Prisma.VendorCategory$vendorsArgs + _count?: boolean | Prisma.VendorCategoryCountOutputTypeDefaultArgs +}, ExtArgs["result"]["vendorCategory"]> + +export type VendorCategorySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + description?: boolean + color?: boolean +}, ExtArgs["result"]["vendorCategory"]> + +export type VendorCategorySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + description?: boolean + color?: boolean +}, ExtArgs["result"]["vendorCategory"]> + +export type VendorCategorySelectScalar = { + id?: boolean + name?: boolean + description?: boolean + color?: boolean +} + +export type VendorCategoryOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "color", ExtArgs["result"]["vendorCategory"]> +export type VendorCategoryInclude = { + vendors?: boolean | Prisma.VendorCategory$vendorsArgs + _count?: boolean | Prisma.VendorCategoryCountOutputTypeDefaultArgs +} +export type VendorCategoryIncludeCreateManyAndReturn = {} +export type VendorCategoryIncludeUpdateManyAndReturn = {} + +export type $VendorCategoryPayload = { + name: "VendorCategory" + objects: { + vendors: Prisma.$VendorPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + name: string + description: string | null + color: string | null + }, ExtArgs["result"]["vendorCategory"]> + composites: {} +} + +export type VendorCategoryGetPayload = runtime.Types.Result.GetResult + +export type VendorCategoryCountArgs = + Omit & { + select?: VendorCategoryCountAggregateInputType | true + } + +export interface VendorCategoryDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['VendorCategory'], meta: { name: 'VendorCategory' } } + /** + * Find zero or one VendorCategory that matches the filter. + * @param {VendorCategoryFindUniqueArgs} args - Arguments to find a VendorCategory + * @example + * // Get one VendorCategory + * const vendorCategory = await prisma.vendorCategory.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__VendorCategoryClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one VendorCategory that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {VendorCategoryFindUniqueOrThrowArgs} args - Arguments to find a VendorCategory + * @example + * // Get one VendorCategory + * const vendorCategory = await prisma.vendorCategory.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__VendorCategoryClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first VendorCategory 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 {VendorCategoryFindFirstArgs} args - Arguments to find a VendorCategory + * @example + * // Get one VendorCategory + * const vendorCategory = await prisma.vendorCategory.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__VendorCategoryClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first VendorCategory 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 {VendorCategoryFindFirstOrThrowArgs} args - Arguments to find a VendorCategory + * @example + * // Get one VendorCategory + * const vendorCategory = await prisma.vendorCategory.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__VendorCategoryClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more VendorCategories 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 {VendorCategoryFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all VendorCategories + * const vendorCategories = await prisma.vendorCategory.findMany() + * + * // Get first 10 VendorCategories + * const vendorCategories = await prisma.vendorCategory.findMany({ take: 10 }) + * + * // Only select the `id` + * const vendorCategoryWithIdOnly = await prisma.vendorCategory.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a VendorCategory. + * @param {VendorCategoryCreateArgs} args - Arguments to create a VendorCategory. + * @example + * // Create one VendorCategory + * const VendorCategory = await prisma.vendorCategory.create({ + * data: { + * // ... data to create a VendorCategory + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__VendorCategoryClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many VendorCategories. + * @param {VendorCategoryCreateManyArgs} args - Arguments to create many VendorCategories. + * @example + * // Create many VendorCategories + * const vendorCategory = await prisma.vendorCategory.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many VendorCategories and returns the data saved in the database. + * @param {VendorCategoryCreateManyAndReturnArgs} args - Arguments to create many VendorCategories. + * @example + * // Create many VendorCategories + * const vendorCategory = await prisma.vendorCategory.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many VendorCategories and only return the `id` + * const vendorCategoryWithIdOnly = await prisma.vendorCategory.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 VendorCategory. + * @param {VendorCategoryDeleteArgs} args - Arguments to delete one VendorCategory. + * @example + * // Delete one VendorCategory + * const VendorCategory = await prisma.vendorCategory.delete({ + * where: { + * // ... filter to delete one VendorCategory + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__VendorCategoryClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one VendorCategory. + * @param {VendorCategoryUpdateArgs} args - Arguments to update one VendorCategory. + * @example + * // Update one VendorCategory + * const vendorCategory = await prisma.vendorCategory.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__VendorCategoryClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more VendorCategories. + * @param {VendorCategoryDeleteManyArgs} args - Arguments to filter VendorCategories to delete. + * @example + * // Delete a few VendorCategories + * const { count } = await prisma.vendorCategory.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more VendorCategories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VendorCategoryUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many VendorCategories + * const vendorCategory = await prisma.vendorCategory.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more VendorCategories and returns the data updated in the database. + * @param {VendorCategoryUpdateManyAndReturnArgs} args - Arguments to update many VendorCategories. + * @example + * // Update many VendorCategories + * const vendorCategory = await prisma.vendorCategory.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more VendorCategories and only return the `id` + * const vendorCategoryWithIdOnly = await prisma.vendorCategory.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 VendorCategory. + * @param {VendorCategoryUpsertArgs} args - Arguments to update or create a VendorCategory. + * @example + * // Update or create a VendorCategory + * const vendorCategory = await prisma.vendorCategory.upsert({ + * create: { + * // ... data to create a VendorCategory + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the VendorCategory we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__VendorCategoryClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of VendorCategories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VendorCategoryCountArgs} args - Arguments to filter VendorCategories to count. + * @example + * // Count the number of VendorCategories + * const count = await prisma.vendorCategory.count({ + * where: { + * // ... the filter for the VendorCategories 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 VendorCategory. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VendorCategoryAggregateArgs} 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 VendorCategory. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VendorCategoryGroupByArgs} 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 VendorCategoryGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: VendorCategoryGroupByArgs['orderBy'] } + : { orderBy?: VendorCategoryGroupByArgs['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 ? GetVendorCategoryGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the VendorCategory model + */ +readonly fields: VendorCategoryFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for VendorCategory. + * 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__VendorCategoryClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + vendors = {}>(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 VendorCategory model + */ +export interface VendorCategoryFieldRefs { + readonly id: Prisma.FieldRef<"VendorCategory", 'String'> + readonly name: Prisma.FieldRef<"VendorCategory", 'String'> + readonly description: Prisma.FieldRef<"VendorCategory", 'String'> + readonly color: Prisma.FieldRef<"VendorCategory", 'String'> +} + + +// Custom InputTypes +/** + * VendorCategory findUnique + */ +export type VendorCategoryFindUniqueArgs = { + /** + * Select specific fields to fetch from the VendorCategory + */ + select?: Prisma.VendorCategorySelect | null + /** + * Omit specific fields from the VendorCategory + */ + omit?: Prisma.VendorCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorCategoryInclude | null + /** + * Filter, which VendorCategory to fetch. + */ + where: Prisma.VendorCategoryWhereUniqueInput +} + +/** + * VendorCategory findUniqueOrThrow + */ +export type VendorCategoryFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the VendorCategory + */ + select?: Prisma.VendorCategorySelect | null + /** + * Omit specific fields from the VendorCategory + */ + omit?: Prisma.VendorCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorCategoryInclude | null + /** + * Filter, which VendorCategory to fetch. + */ + where: Prisma.VendorCategoryWhereUniqueInput +} + +/** + * VendorCategory findFirst + */ +export type VendorCategoryFindFirstArgs = { + /** + * Select specific fields to fetch from the VendorCategory + */ + select?: Prisma.VendorCategorySelect | null + /** + * Omit specific fields from the VendorCategory + */ + omit?: Prisma.VendorCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorCategoryInclude | null + /** + * Filter, which VendorCategory to fetch. + */ + where?: Prisma.VendorCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of VendorCategories to fetch. + */ + orderBy?: Prisma.VendorCategoryOrderByWithRelationInput | Prisma.VendorCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for VendorCategories. + */ + cursor?: Prisma.VendorCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` VendorCategories 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` VendorCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of VendorCategories. + */ + distinct?: Prisma.VendorCategoryScalarFieldEnum | Prisma.VendorCategoryScalarFieldEnum[] +} + +/** + * VendorCategory findFirstOrThrow + */ +export type VendorCategoryFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the VendorCategory + */ + select?: Prisma.VendorCategorySelect | null + /** + * Omit specific fields from the VendorCategory + */ + omit?: Prisma.VendorCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorCategoryInclude | null + /** + * Filter, which VendorCategory to fetch. + */ + where?: Prisma.VendorCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of VendorCategories to fetch. + */ + orderBy?: Prisma.VendorCategoryOrderByWithRelationInput | Prisma.VendorCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for VendorCategories. + */ + cursor?: Prisma.VendorCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` VendorCategories 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` VendorCategories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of VendorCategories. + */ + distinct?: Prisma.VendorCategoryScalarFieldEnum | Prisma.VendorCategoryScalarFieldEnum[] +} + +/** + * VendorCategory findMany + */ +export type VendorCategoryFindManyArgs = { + /** + * Select specific fields to fetch from the VendorCategory + */ + select?: Prisma.VendorCategorySelect | null + /** + * Omit specific fields from the VendorCategory + */ + omit?: Prisma.VendorCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorCategoryInclude | null + /** + * Filter, which VendorCategories to fetch. + */ + where?: Prisma.VendorCategoryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of VendorCategories to fetch. + */ + orderBy?: Prisma.VendorCategoryOrderByWithRelationInput | Prisma.VendorCategoryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing VendorCategories. + */ + cursor?: Prisma.VendorCategoryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` VendorCategories 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` VendorCategories. + */ + skip?: number + distinct?: Prisma.VendorCategoryScalarFieldEnum | Prisma.VendorCategoryScalarFieldEnum[] +} + +/** + * VendorCategory create + */ +export type VendorCategoryCreateArgs = { + /** + * Select specific fields to fetch from the VendorCategory + */ + select?: Prisma.VendorCategorySelect | null + /** + * Omit specific fields from the VendorCategory + */ + omit?: Prisma.VendorCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorCategoryInclude | null + /** + * The data needed to create a VendorCategory. + */ + data: Prisma.XOR +} + +/** + * VendorCategory createMany + */ +export type VendorCategoryCreateManyArgs = { + /** + * The data used to create many VendorCategories. + */ + data: Prisma.VendorCategoryCreateManyInput | Prisma.VendorCategoryCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * VendorCategory createManyAndReturn + */ +export type VendorCategoryCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the VendorCategory + */ + select?: Prisma.VendorCategorySelectCreateManyAndReturn | null + /** + * Omit specific fields from the VendorCategory + */ + omit?: Prisma.VendorCategoryOmit | null + /** + * The data used to create many VendorCategories. + */ + data: Prisma.VendorCategoryCreateManyInput | Prisma.VendorCategoryCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * VendorCategory update + */ +export type VendorCategoryUpdateArgs = { + /** + * Select specific fields to fetch from the VendorCategory + */ + select?: Prisma.VendorCategorySelect | null + /** + * Omit specific fields from the VendorCategory + */ + omit?: Prisma.VendorCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorCategoryInclude | null + /** + * The data needed to update a VendorCategory. + */ + data: Prisma.XOR + /** + * Choose, which VendorCategory to update. + */ + where: Prisma.VendorCategoryWhereUniqueInput +} + +/** + * VendorCategory updateMany + */ +export type VendorCategoryUpdateManyArgs = { + /** + * The data used to update VendorCategories. + */ + data: Prisma.XOR + /** + * Filter which VendorCategories to update + */ + where?: Prisma.VendorCategoryWhereInput + /** + * Limit how many VendorCategories to update. + */ + limit?: number +} + +/** + * VendorCategory updateManyAndReturn + */ +export type VendorCategoryUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the VendorCategory + */ + select?: Prisma.VendorCategorySelectUpdateManyAndReturn | null + /** + * Omit specific fields from the VendorCategory + */ + omit?: Prisma.VendorCategoryOmit | null + /** + * The data used to update VendorCategories. + */ + data: Prisma.XOR + /** + * Filter which VendorCategories to update + */ + where?: Prisma.VendorCategoryWhereInput + /** + * Limit how many VendorCategories to update. + */ + limit?: number +} + +/** + * VendorCategory upsert + */ +export type VendorCategoryUpsertArgs = { + /** + * Select specific fields to fetch from the VendorCategory + */ + select?: Prisma.VendorCategorySelect | null + /** + * Omit specific fields from the VendorCategory + */ + omit?: Prisma.VendorCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorCategoryInclude | null + /** + * The filter to search for the VendorCategory to update in case it exists. + */ + where: Prisma.VendorCategoryWhereUniqueInput + /** + * In case the VendorCategory found by the `where` argument doesn't exist, create a new VendorCategory with this data. + */ + create: Prisma.XOR + /** + * In case the VendorCategory was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * VendorCategory delete + */ +export type VendorCategoryDeleteArgs = { + /** + * Select specific fields to fetch from the VendorCategory + */ + select?: Prisma.VendorCategorySelect | null + /** + * Omit specific fields from the VendorCategory + */ + omit?: Prisma.VendorCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorCategoryInclude | null + /** + * Filter which VendorCategory to delete. + */ + where: Prisma.VendorCategoryWhereUniqueInput +} + +/** + * VendorCategory deleteMany + */ +export type VendorCategoryDeleteManyArgs = { + /** + * Filter which VendorCategories to delete + */ + where?: Prisma.VendorCategoryWhereInput + /** + * Limit how many VendorCategories to delete. + */ + limit?: number +} + +/** + * VendorCategory.vendors + */ +export type VendorCategory$vendorsArgs = { + /** + * Select specific fields to fetch from the Vendor + */ + select?: Prisma.VendorSelect | null + /** + * Omit specific fields from the Vendor + */ + omit?: Prisma.VendorOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorInclude | null + where?: Prisma.VendorWhereInput + orderBy?: Prisma.VendorOrderByWithRelationInput | Prisma.VendorOrderByWithRelationInput[] + cursor?: Prisma.VendorWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.VendorScalarFieldEnum | Prisma.VendorScalarFieldEnum[] +} + +/** + * VendorCategory without action + */ +export type VendorCategoryDefaultArgs = { + /** + * Select specific fields to fetch from the VendorCategory + */ + select?: Prisma.VendorCategorySelect | null + /** + * Omit specific fields from the VendorCategory + */ + omit?: Prisma.VendorCategoryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.VendorCategoryInclude | null +} diff --git a/src/lib/server/db.ts b/src/lib/server/db.ts new file mode 100644 index 0000000..d24016e --- /dev/null +++ b/src/lib/server/db.ts @@ -0,0 +1,16 @@ + +import { PrismaClient } from '#lib/generated/prisma/client.ts'; +import { dev } from '$app/env'; +import { PrismaPg } from '@prisma/adapter-pg'; +import { env } from 'process'; + +const globalForDb = globalThis as unknown as { db?: PrismaClient }; + +function createClient() { + const adapter = new PrismaPg({ connectionString: env.DATABASE_URL }); + return new PrismaClient({ adapter }); +} + +export const db = globalForDb.db ?? createClient(); + +if (dev) globalForDb.db = db; \ No newline at end of file diff --git a/src/routes/(public)/setup/+page.server.ts b/src/routes/(public)/setup/+page.server.ts new file mode 100644 index 0000000..fe9cc8e --- /dev/null +++ b/src/routes/(public)/setup/+page.server.ts @@ -0,0 +1,47 @@ +import type { Actions, PageServerLoad } from './$types'; +import { db } from '../../../lib/server/db'; +import { error, fail, redirect } from '@sveltejs/kit'; + +export const load: PageServerLoad = async () => { + if ((await db.user.count()) > 0) redirect(303, '/login'); +} + +export const actions: Actions = { + default: async ({ request }) => { + if ((await db.user.count()) > 0) error(403, 'Setup has already been completed'); + + const data = await request.formData(); + const email = String(data.get('email') ?? '').trim().toLowerCase(); + const username = String(data.get('username') ?? '').trim(); + const password = String(data.get('password') ?? ''); + const mode = String(data.get('mode') ?? ''); + + const errors: Record = {}; + if (!email.includes('@')) errors.email = 'Enter a valid email'; + if (username.length < 3) errors.username = 'Username must be at least 3 characters'; + if (password.length < 12) errors.password = 'Password must be at least 12 characters'; + if (mode !== 'couple' && mode !== 'planner') errors.mode = 'Choose how you will use the app'; + + if (Object.keys(errors).length > 0) { + return fail(400, { errors, values: { email, username }}); + } + // need a hashing mechanism + // const passwordHash = await hashPassword(password) + + await db.$transaction(async (tx) => { + const user = await tx.user.create({ + data: { email, username, password, authProvider: 'credentials', isAdmin: true } + }); + const project = await tx.project.create({ data: { name: 'My Project' } }); + await tx.membership.create({ + data: { + userId: user.id, + projectId: project.id, + role: mode === 'planner' ? 'PLANNER' : 'COUPLE' + } + }); + }); + + redirect(303, '/login') + } +} \ No newline at end of file