From 2479dd518d5e380a811932166c5c546702ca1a3c Mon Sep 17 00:00:00 2001 From: aronmal Date: Sat, 19 Aug 2023 23:16:49 +0200 Subject: [PATCH] Migration from Prisma to Drizzle-ORM --- .github/workflows/playwright.yml | 3 +- leaky-ships/.gitignore | 4 +- leaky-ships/drizzle.config.ts | 11 + leaky-ships/e2e/email.spec.ts | 30 +- leaky-ships/global.d.ts | 6 - leaky-ships/package.json | 16 +- leaky-ships/pnpm-lock.yaml | 570 +- leaky-ships/prisma/generated/zod/index.ts | 6106 ------------------- leaky-ships/prisma/schema.prisma | 6 +- leaky-ships/src/components/BurgerMenu.tsx | 5 +- leaky-ships/src/drizzle/index.ts | 10 + leaky-ships/src/drizzle/schemas/Tables.ts | 214 + leaky-ships/src/drizzle/schemas/Types.ts | 16 + leaky-ships/src/hooks/useDrawProps.ts | 8 +- leaky-ships/src/hooks/useGameProps.ts | 5 +- leaky-ships/src/hooks/useSocket.ts | 2 +- leaky-ships/src/interfaces/NextApiSocket.ts | 6 +- leaky-ships/src/interfaces/frontend.ts | 3 +- leaky-ships/src/lib/backend/logging.ts | 20 +- leaky-ships/src/lib/backend/sendError.ts | 2 +- leaky-ships/src/lib/prisma.ts | 15 - leaky-ships/src/lib/utils/helpers.ts | 9 +- leaky-ships/src/lib/zodSchemas.ts | 43 +- leaky-ships/src/routes/api/game/[id].ts | 28 +- leaky-ships/src/routes/api/game/create.ts | 42 +- leaky-ships/src/routes/api/game/join.ts | 75 +- leaky-ships/src/routes/api/game/running.ts | 69 +- leaky-ships/src/routes/api/ws.ts | 191 +- leaky-ships/src/server/auth.ts | 6 +- leaky-ships/vite.config.ts | 1 - 30 files changed, 1018 insertions(+), 6504 deletions(-) create mode 100644 leaky-ships/drizzle.config.ts delete mode 100644 leaky-ships/global.d.ts delete mode 100644 leaky-ships/prisma/generated/zod/index.ts create mode 100644 leaky-ships/src/drizzle/index.ts create mode 100644 leaky-ships/src/drizzle/schemas/Tables.ts create mode 100644 leaky-ships/src/drizzle/schemas/Types.ts delete mode 100644 leaky-ships/src/lib/prisma.ts diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 7b2437c..2fdba7b 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -53,8 +53,7 @@ jobs: - name: 'Compiling page' run: | echo "${{ secrets.ENV_FILE }}" > .env - pnpm prisma generate - pnpm run build + pnpm build - name: Run Playwright tests run: pnpm playwright test diff --git a/leaky-ships/.gitignore b/leaky-ships/.gitignore index 1db5839..eb9f5c9 100644 --- a/leaky-ships/.gitignore +++ b/leaky-ships/.gitignore @@ -3,8 +3,8 @@ # logs /log -# prisma -/prisma/migrations +# drizzle +/drizzle/migrations # dependencies /node_modules diff --git a/leaky-ships/drizzle.config.ts b/leaky-ships/drizzle.config.ts new file mode 100644 index 0000000..0d5509c --- /dev/null +++ b/leaky-ships/drizzle.config.ts @@ -0,0 +1,11 @@ +import "dotenv/config" +import type { Config } from "drizzle-kit" + +export default { + schema: "./src/drizzle/schema.ts", + out: "./src/drizzle/migrations", + driver: "pg", + dbCredentials: { + connectionString: process.env.DATABASE_URL ?? "", + }, +} satisfies Config diff --git a/leaky-ships/e2e/email.spec.ts b/leaky-ships/e2e/email.spec.ts index fb4485e..65fd39a 100644 --- a/leaky-ships/e2e/email.spec.ts +++ b/leaky-ships/e2e/email.spec.ts @@ -5,7 +5,9 @@ import { type Page, } from "@playwright/test" import { createHash, randomBytes } from "crypto" -import prisma from "~/lib/prisma" +import { and, desc, eq } from "drizzle-orm" +import db from "~/drizzle" +import { verificationTokens } from "~/drizzle/schemas/Tables" const callbackUrl = process.env.NEXTAUTH_URL + "/" const player1Email = (browser: Browser) => @@ -46,20 +48,20 @@ test.describe.serial("Check Email auth", () => { .update(`${token}${process.env.AUTH_SECRET}`) .digest("hex") - // Use Prisma to fetch the latest token for the email - const latestToken = await prisma.verificationToken.findFirst({ - where: { identifier: player1Email(browser) }, - orderBy: { expires: "desc" }, - }) - await prisma.verificationToken.update({ - where: { - identifier_token: { - identifier: player1Email(browser), - token: latestToken?.token ?? "", - }, - }, - data: { token: hash }, + // Use drizzle to fetch the latest token for the email + const latestToken = await db.query.verificationTokens.findFirst({ + where: eq(verificationTokens.identifier, player1Email(browser)), + orderBy: [desc(verificationTokens.expires)], }) + await db + .update(verificationTokens) + .set({ token: hash }) + .where( + and( + eq(verificationTokens.identifier, player1Email(browser)), + eq(verificationTokens.token, latestToken?.token ?? ""), + ), + ) const params = new URLSearchParams({ callbackUrl, diff --git a/leaky-ships/global.d.ts b/leaky-ships/global.d.ts deleted file mode 100644 index 8134082..0000000 --- a/leaky-ships/global.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { PrismaClient } from "@prisma/client" -import "@total-typescript/ts-reset" - -declare global { - let prismaClient: PrismaClient -} diff --git a/leaky-ships/package.json b/leaky-ships/package.json index 33b1732..6d0da24 100644 --- a/leaky-ships/package.json +++ b/leaky-ships/package.json @@ -5,14 +5,13 @@ "start": "solid-start start --port 3000", "build": "solid-start build", "lint": "eslint --fix \"**/*.{ts,tsx,js,jsx}\"", - "push": "prisma db push", - "postinstall": "prisma generate", + "push": "drizzle-kit push:pg", "test": "pnpm playwright test --ui" }, "type": "module", "dependencies": { "@auth/core": "0.12.0", - "@auth/prisma-adapter": "^1.0.1", + "@auth/drizzle-adapter": "^0.3.1", "@auth/solid-start": "^0.1.1", "@fortawesome/fontawesome-svg-core": "^6.4.2", "@fortawesome/pro-duotone-svg-icons": "^6.4.2", @@ -22,22 +21,23 @@ "@fortawesome/pro-thin-svg-icons": "^6.4.2", "@fortawesome/react-fontawesome": "^0.2.0", "@fortawesome/sharp-solid-svg-icons": "^6.4.2", - "@prisma/client": "^5.1.1", + "@paralleldrive/cuid2": "^2.2.2", "@solidjs/meta": "^0.28.6", "@solidjs/router": "^0.8.3", "classnames": "^2.3.2", "colors": "^1.4.0", + "drizzle-orm": "^0.28.2", + "drizzle-zod": "^0.5.0", "http-status": "^1.6.2", "nodemailer": "6.9.4", - "prisma": "^5.1.1", + "postgres": "^3.3.5", "socket.io": "^4.7.2", "socket.io-client": "^4.7.2", "solid-js": "^1.7.11", "solid-start": "^0.3.3", "solid-zustand": "^1.7.0", "unique-names-generator": "^4.7.1", - "zod": "3.21.1", - "zod-prisma-types": "^2.7.9" + "zod": "3.21.1" }, "devDependencies": { "@playwright/test": "^1.37.0", @@ -48,9 +48,11 @@ "@typescript-eslint/eslint-plugin": "^6.4.0", "autoprefixer": "^10.4.15", "dotenv": "^16.3.1", + "drizzle-kit": "^0.19.12", "eslint": "^8.47.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-solid": "^0.12.1", + "pg": "^8.11.2", "postcss": "^8.4.28", "prettier": "^3.0.2", "prettier-plugin-organize-imports": "^3.2.3", diff --git a/leaky-ships/pnpm-lock.yaml b/leaky-ships/pnpm-lock.yaml index 34b82b4..e09250d 100644 --- a/leaky-ships/pnpm-lock.yaml +++ b/leaky-ships/pnpm-lock.yaml @@ -8,9 +8,9 @@ dependencies: '@auth/core': specifier: 0.12.0 version: 0.12.0(nodemailer@6.9.4) - '@auth/prisma-adapter': - specifier: ^1.0.1 - version: 1.0.1(@prisma/client@5.1.1)(nodemailer@6.9.4) + '@auth/drizzle-adapter': + specifier: ^0.3.1 + version: 0.3.1(nodemailer@6.9.4) '@auth/solid-start': specifier: ^0.1.1 version: 0.1.1(@auth/core@0.12.0)(solid-js@1.7.11)(solid-start@0.3.3) @@ -38,9 +38,9 @@ dependencies: '@fortawesome/sharp-solid-svg-icons': specifier: ^6.4.2 version: 6.4.2 - '@prisma/client': - specifier: ^5.1.1 - version: 5.1.1(prisma@5.1.1) + '@paralleldrive/cuid2': + specifier: ^2.2.2 + version: 2.2.2 '@solidjs/meta': specifier: ^0.28.6 version: 0.28.6(solid-js@1.7.11) @@ -53,15 +53,21 @@ dependencies: colors: specifier: ^1.4.0 version: 1.4.0 + drizzle-orm: + specifier: ^0.28.2 + version: 0.28.2(pg@8.11.2)(postgres@3.3.5) + drizzle-zod: + specifier: ^0.5.0 + version: 0.5.0(drizzle-orm@0.28.2)(zod@3.21.1) http-status: specifier: ^1.6.2 version: 1.6.2 nodemailer: specifier: 6.9.4 version: 6.9.4 - prisma: - specifier: ^5.1.1 - version: 5.1.1 + postgres: + specifier: ^3.3.5 + version: 3.3.5 socket.io: specifier: ^4.7.2 version: 4.7.2 @@ -83,9 +89,6 @@ dependencies: zod: specifier: 3.21.1 version: 3.21.1 - zod-prisma-types: - specifier: ^2.7.9 - version: 2.7.9 devDependencies: '@playwright/test': @@ -112,6 +115,9 @@ devDependencies: dotenv: specifier: ^16.3.1 version: 16.3.1 + drizzle-kit: + specifier: ^0.19.12 + version: 0.19.12 eslint: specifier: ^8.47.0 version: 8.47.0 @@ -121,6 +127,9 @@ devDependencies: eslint-plugin-solid: specifier: ^0.12.1 version: 0.12.1(eslint@8.47.0)(typescript@5.1.6) + pg: + specifier: ^8.11.2 + version: 8.11.2 postcss: specifier: ^8.4.28 version: 8.4.28 @@ -171,6 +180,23 @@ packages: /@antfu/utils@0.7.6: resolution: {integrity: sha512-pvFiLP2BeOKA/ZOS6jxx4XhKzdVLHDhGlFEaZ2flWWYf2xOqVniqpk38I04DFRyz+L0ASggl7SkItTc+ZLju4w==} + /@auth/core@0.11.1(nodemailer@6.9.4): + resolution: {integrity: sha512-PzvebszgJ4NpQNz8Fsjn39oEY8MzULKppr7Um7DX/HLrS3zthgLY0yAnwkA+2/kxwAb36dIkX+C72q6TziiTaA==} + peerDependencies: + nodemailer: ^6.8.0 + peerDependenciesMeta: + nodemailer: + optional: true + dependencies: + '@panva/hkdf': 1.1.1 + cookie: 0.5.0 + jose: 4.14.4 + nodemailer: 6.9.4 + oauth4webapi: 2.3.0 + preact: 10.11.3 + preact-render-to-string: 5.2.3(preact@10.11.3) + dev: false + /@auth/core@0.12.0(nodemailer@6.9.4): resolution: {integrity: sha512-XYipdAc/nKu014VOgpcPyLlj1ghWlnwyloaB1UjQd9ElZRZQ9YpSizzXGLON23t/a0FyabOBBl0/awD2tW58Rg==} peerDependencies: @@ -188,30 +214,10 @@ packages: preact-render-to-string: 5.2.3(preact@10.11.3) dev: false - /@auth/core@0.9.0(nodemailer@6.9.4): - resolution: {integrity: sha512-W2WO0WCBg1T3P8+yjQPzurTQhPv6ecBYfJ2oE3uvXPAX5ZLWAMSjKFAIa9oLZy5pwrB+YehJZPnlIxVilhrVcg==} - peerDependencies: - nodemailer: ^6.8.0 - peerDependenciesMeta: - nodemailer: - optional: true + /@auth/drizzle-adapter@0.3.1(nodemailer@6.9.4): + resolution: {integrity: sha512-zSuewnrozY0EZYVrt2T5VY0R+wA3chXncanmUgvAgoX+pcussKMVFmnSrSYuc3i4vfM2qCmAa6S6dkSH5RViSA==} dependencies: - '@panva/hkdf': 1.1.1 - cookie: 0.5.0 - jose: 4.14.4 - nodemailer: 6.9.4 - oauth4webapi: 2.3.0 - preact: 10.11.3 - preact-render-to-string: 5.2.3(preact@10.11.3) - dev: false - - /@auth/prisma-adapter@1.0.1(@prisma/client@5.1.1)(nodemailer@6.9.4): - resolution: {integrity: sha512-sBp9l/jVr7l9y7rp2Pv6eoP7i8X2CgRNE3jDWJ0B/u+HnKRofXflD1cldPqRSAkJhqH3UxhVtMTEijT9FoofmQ==} - peerDependencies: - '@prisma/client': '>=2.26.0 || >=3 || >=4' - dependencies: - '@auth/core': 0.9.0(nodemailer@6.9.4) - '@prisma/client': 5.1.1(prisma@5.1.1) + '@auth/core': 0.11.1(nodemailer@6.9.4) transitivePeerDependencies: - nodemailer dev: false @@ -1325,6 +1331,24 @@ packages: '@babel/helper-validator-identifier': 7.22.5 to-fast-properties: 2.0.0 + /@drizzle-team/studio@0.0.5: + resolution: {integrity: sha512-ps5qF0tMxWRVu+V5gvCRrQNqlY92aTnIKdq27gm9LZMSdaKYZt6AVvSK1dlUMzs6Rt0Jm80b+eWct6xShBKhIw==} + dev: true + + /@esbuild-kit/core-utils@3.1.0: + resolution: {integrity: sha512-Uuk8RpCg/7fdHSceR1M6XbSZFSuMrxcePFuGgyvsBn+u339dk5OeL4jv2EojwTN2st/unJGsVm4qHWjWNmJ/tw==} + dependencies: + esbuild: 0.17.19 + source-map-support: 0.5.21 + dev: true + + /@esbuild-kit/esm-loader@2.5.5: + resolution: {integrity: sha512-Qwfvj/qoPbClxCRNuac1Du01r9gvNOT+pMYtJDapfB1eoGN1YlJ1BixLyL9WVENRx5RXgNLdfYdx/CuswlGhMw==} + dependencies: + '@esbuild-kit/core-utils': 3.1.0 + get-tsconfig: 4.7.0 + dev: true + /@esbuild/android-arm64@0.17.19: resolution: {integrity: sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==} engines: {node: '>=12'} @@ -1846,6 +1870,11 @@ packages: '@jridgewell/resolve-uri': 3.1.1 '@jridgewell/sourcemap-codec': 1.4.15 + /@noble/hashes@1.3.1: + resolution: {integrity: sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==} + engines: {node: '>= 16'} + dev: false + /@nodelib/fs.scandir@2.1.5: resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -1868,6 +1897,12 @@ packages: resolution: {integrity: sha512-dhPeilub1NuIG0X5Kvhh9lH4iW3ZsHlnzwgwbOlgwQ2wG1IqFzsgHqmKPk3WzsdWAeaxKJxgM0+W433RmN45GA==} dev: false + /@paralleldrive/cuid2@2.2.2: + resolution: {integrity: sha512-ZOBkgDwEdoYVlSeRbYYXs0S9MejQofiVYoTbKzy/6GQa39/q5tQU2IX46+shYnUkpEl3wc+J6wRlar7r2EK2xA==} + dependencies: + '@noble/hashes': 1.3.1 + dev: false + /@playwright/test@1.37.0: resolution: {integrity: sha512-181WBLk4SRUyH1Q96VZl7BP6HcK0b7lbdeKisn3N/vnjitk+9HbdlFz/L5fey05vxaAhldIDnzo8KUoy8S3mmQ==} engines: {node: '>=16'} @@ -1882,50 +1917,6 @@ packages: /@polka/url@1.0.0-next.21: resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==} - /@prisma/client@5.1.1(prisma@5.1.1): - resolution: {integrity: sha512-fxcCeK5pMQGcgCqCrWsi+I2rpIbk0rAhdrN+ke7f34tIrgPwA68ensrpin+9+fZvuV2OtzHmuipwduSY6HswdA==} - engines: {node: '>=16.13'} - requiresBuild: true - peerDependencies: - prisma: '*' - peerDependenciesMeta: - prisma: - optional: true - dependencies: - '@prisma/engines-version': 5.1.1-1.6a3747c37ff169c90047725a05a6ef02e32ac97e - prisma: 5.1.1 - dev: false - - /@prisma/debug@5.1.1: - resolution: {integrity: sha512-R9e2Tn8f+ujVjwn6ne1YkXY35BXzUmxJbGsmD1c8RAZ/NXgbYktEFAwIkOZn5H5zRfY2VDSBvGI6TFpnOu50cg==} - dependencies: - '@types/debug': 4.1.8 - debug: 4.3.4 - strip-ansi: 6.0.1 - transitivePeerDependencies: - - supports-color - dev: false - - /@prisma/engines-version@5.1.1-1.6a3747c37ff169c90047725a05a6ef02e32ac97e: - resolution: {integrity: sha512-owZqbY/wucbr65bXJ/ljrHPgQU5xXTSkmcE/JcbqE1kusuAXV/TLN3/exmz21SZ5rJ7WDkyk70J2G/n68iogbQ==} - dev: false - - /@prisma/engines@5.1.1: - resolution: {integrity: sha512-NV/4nVNWFZSJCCIA3HIFJbbDKO/NARc9ej0tX5S9k2EVbkrFJC4Xt9b0u4rNZWL4V+F5LAjvta8vzEUw0rw+HA==} - requiresBuild: true - dev: false - - /@prisma/generator-helper@5.1.1: - resolution: {integrity: sha512-Qk9iiVk4JZQYZrYsc1Wx9fXFFnS1AH4T7WyLxCIFnX/end0K5tOK75Qxv6mjZAHE0XUGrzoTlZUkbSDVYz/CvQ==} - dependencies: - '@prisma/debug': 5.1.1 - '@types/cross-spawn': 6.0.2 - cross-spawn: 7.0.3 - kleur: 4.1.5 - transitivePeerDependencies: - - supports-color - dev: false - /@rollup/plugin-commonjs@24.1.0(rollup@3.28.0): resolution: {integrity: sha512-eSL45hjhCWI0jCCXcNtLVqM5N1JlBGvlFfY0m6oOYnLCJ6N0qEXoZql4sY2MOUArzhH4SA/qBpTxvvZp2Sc+DQ==} engines: {node: '>=14.0.0'} @@ -2057,12 +2048,6 @@ packages: '@types/node': 18.17.5 dev: false - /@types/cross-spawn@6.0.2: - resolution: {integrity: sha512-KuwNhp3eza+Rhu8IFI5HUXRP0LIhqH5cAjubUvGXXthh4YYBuP2ntwEX+Cz8GJoZUHlKo247wPWOfA9LYEq4cw==} - dependencies: - '@types/node': 18.17.5 - dev: false - /@types/debug@4.1.8: resolution: {integrity: sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==} dependencies: @@ -2537,6 +2522,10 @@ packages: /buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + /buffer-writer@2.0.0: + resolution: {integrity: sha512-a7ZpuTZU1TRtnwyCNW3I5dc0wWNC3VR9S++Ewyk2HHZdrO3CQJqSpd+95Us590V6AL7JqUAH2IwZ/398PmNFgw==} + engines: {node: '>=4'} + /builtin-modules@3.3.0: resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} engines: {node: '>=6'} @@ -2574,6 +2563,11 @@ packages: engines: {node: '>= 6'} dev: true + /camelcase@7.0.1: + resolution: {integrity: sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw==} + engines: {node: '>=14.16'} + dev: true + /caniuse-lite@1.0.30001520: resolution: {integrity: sha512-tahF5O9EiiTzwTUqAeFjIZbn4Dnqxzz7ktrgGlMYNLH43Ul26IgTMH/zvL3DG0lZxBYnlT04axvInszUsZULdA==} @@ -2593,6 +2587,11 @@ packages: supports-color: 7.2.0 dev: true + /chalk@5.3.0: + resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + dev: true + /chokidar@3.5.3: resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==} engines: {node: '>= 8.10.0'} @@ -2611,6 +2610,17 @@ packages: resolution: {integrity: sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==} dev: false + /cli-color@2.0.3: + resolution: {integrity: sha512-OkoZnxyC4ERN3zLzZaY9Emb7f/MhBOIpePv0Ycok0fJYT+Ouo00UBEIwsVsr0yoow++n5YWlSUgST9GKhNHiRQ==} + engines: {node: '>=0.10'} + dependencies: + d: 1.0.1 + es5-ext: 0.10.62 + es6-iterator: 2.0.3 + memoizee: 0.4.15 + timers-ext: 0.1.7 + dev: true + /cliui@8.0.1: resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} engines: {node: '>=12'} @@ -2619,10 +2629,6 @@ packages: strip-ansi: 6.0.1 wrap-ansi: 7.0.0 - /code-block-writer@12.0.0: - resolution: {integrity: sha512-q4dMFMlXtKR3XNBHyMHt/3pwYNA69EDk00lloMOaaUMKPUXBw6lpXtbu3MMVG6/uOihGnRDOlkyqsONEUj60+w==} - dev: false - /color-convert@1.9.3: resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} dependencies: @@ -2653,6 +2659,11 @@ packages: engines: {node: '>= 6'} dev: true + /commander@9.5.0: + resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==} + engines: {node: ^12.20.0 || >=14} + dev: true + /commondir@1.0.1: resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==} @@ -2734,6 +2745,13 @@ packages: /csstype@3.1.2: resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} + /d@1.0.1: + resolution: {integrity: sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==} + dependencies: + es5-ext: 0.10.62 + type: 1.2.0 + dev: true + /debug@2.6.9: resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} peerDependencies: @@ -2803,6 +2821,12 @@ packages: resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} dev: true + /difflib@0.2.4: + resolution: {integrity: sha512-9YVwmMb0wQHQNr5J9m6BSj6fk4pfGITGQOOs+D9Fl+INODWFOfvhIU1hNv6GgR1RBoC/9NJcwu77zShxV0kT7w==} + dependencies: + heap: 0.2.7 + dev: true + /dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -2825,6 +2849,109 @@ packages: resolution: {integrity: sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==} engines: {node: '>=12'} + /dreamopt@0.8.0: + resolution: {integrity: sha512-vyJTp8+mC+G+5dfgsY+r3ckxlz+QMX40VjPQsZc5gxVAxLmi64TBoVkP54A/pRAXMXsbu2GMMBrZPxNv23waMg==} + engines: {node: '>=0.4.0'} + dependencies: + wordwrap: 1.0.0 + dev: true + + /drizzle-kit@0.19.12: + resolution: {integrity: sha512-rcsmh5gUIkvuD0WrbEc+aLpqY2q2J8ltynRcJiJo2l01hhsYvPnX0sgxWlFXlfAIa5ZXNw2nJZhYlslI6tG3MA==} + hasBin: true + dependencies: + '@drizzle-team/studio': 0.0.5 + '@esbuild-kit/esm-loader': 2.5.5 + camelcase: 7.0.1 + chalk: 5.3.0 + commander: 9.5.0 + esbuild: 0.18.20 + esbuild-register: 3.4.2(esbuild@0.18.20) + glob: 8.1.0 + hanji: 0.0.5 + json-diff: 0.9.0 + minimatch: 7.4.6 + zod: 3.21.1 + transitivePeerDependencies: + - supports-color + dev: true + + /drizzle-orm@0.28.2(pg@8.11.2)(postgres@3.3.5): + resolution: {integrity: sha512-QRyuzvpJr7GE6LpvZ/sg2nAKNg2if1uGGkgFTiXn4auuYId//vVJe6HBsDTktfKfcaDGzIYos+/f+PS5EkBmrg==} + peerDependencies: + '@aws-sdk/client-rds-data': '>=3' + '@cloudflare/workers-types': '>=3' + '@libsql/client': '*' + '@neondatabase/serverless': '>=0.1' + '@opentelemetry/api': ^1.4.1 + '@planetscale/database': '>=1' + '@types/better-sqlite3': '*' + '@types/pg': '*' + '@types/sql.js': '*' + '@vercel/postgres': '*' + better-sqlite3: '>=7' + bun-types: '*' + knex: '*' + kysely: '*' + mysql2: '>=2' + pg: '>=8' + postgres: '>=3' + sql.js: '>=1' + sqlite3: '>=5' + peerDependenciesMeta: + '@aws-sdk/client-rds-data': + optional: true + '@cloudflare/workers-types': + optional: true + '@libsql/client': + optional: true + '@neondatabase/serverless': + optional: true + '@opentelemetry/api': + optional: true + '@planetscale/database': + optional: true + '@types/better-sqlite3': + optional: true + '@types/pg': + optional: true + '@types/sql.js': + optional: true + '@vercel/postgres': + optional: true + better-sqlite3: + optional: true + bun-types: + optional: true + knex: + optional: true + kysely: + optional: true + mysql2: + optional: true + pg: + optional: true + postgres: + optional: true + sql.js: + optional: true + sqlite3: + optional: true + dependencies: + pg: 8.11.2 + postgres: 3.3.5 + dev: false + + /drizzle-zod@0.5.0(drizzle-orm@0.28.2)(zod@3.21.1): + resolution: {integrity: sha512-gIOXclphhaleYFEGZFxSyJBoiPRyksGyIPgmgWz6a+j5JeaOrOf1QOPjf1p5AHYA+1O3Q01ondGOZfgObxBTsg==} + peerDependencies: + drizzle-orm: '>=0.23.13' + zod: '*' + dependencies: + drizzle-orm: 0.28.2(pg@8.11.2)(postgres@3.3.5) + zod: 3.21.1 + dev: false + /ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} @@ -2952,6 +3079,40 @@ packages: is-symbol: 1.0.4 dev: true + /es5-ext@0.10.62: + resolution: {integrity: sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==} + engines: {node: '>=0.10'} + requiresBuild: true + dependencies: + es6-iterator: 2.0.3 + es6-symbol: 3.1.3 + next-tick: 1.1.0 + dev: true + + /es6-iterator@2.0.3: + resolution: {integrity: sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==} + dependencies: + d: 1.0.1 + es5-ext: 0.10.62 + es6-symbol: 3.1.3 + dev: true + + /es6-symbol@3.1.3: + resolution: {integrity: sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==} + dependencies: + d: 1.0.1 + ext: 1.7.0 + dev: true + + /es6-weak-map@2.0.3: + resolution: {integrity: sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==} + dependencies: + d: 1.0.1 + es5-ext: 0.10.62 + es6-iterator: 2.0.3 + es6-symbol: 3.1.3 + dev: true + /esbuild-plugin-solid@0.5.0(esbuild@0.17.19)(solid-js@1.7.11): resolution: {integrity: sha512-ITK6n+0ayGFeDVUZWNMxX+vLsasEN1ILrg4pISsNOQ+mq4ljlJJiuXotInd+HE0MzwTcA9wExT1yzDE2hsqPsg==} peerDependencies: @@ -2966,6 +3127,17 @@ packages: transitivePeerDependencies: - supports-color + /esbuild-register@3.4.2(esbuild@0.18.20): + resolution: {integrity: sha512-kG/XyTDyz6+YDuyfB9ZoSIOOmgyFCH+xPRtsCa8W85HLRV5Csp+o3jWVbOSHgSLfyLc5DmP+KFDNwty4mEjC+Q==} + peerDependencies: + esbuild: '>=0.12 <1' + dependencies: + debug: 4.3.4 + esbuild: 0.18.20 + transitivePeerDependencies: + - supports-color + dev: true + /esbuild@0.17.19: resolution: {integrity: sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==} engines: {node: '>=12'} @@ -3174,6 +3346,13 @@ packages: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} + /event-emitter@0.3.5: + resolution: {integrity: sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==} + dependencies: + d: 1.0.1 + es5-ext: 0.10.62 + dev: true + /execa@5.1.1: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} engines: {node: '>=10'} @@ -3202,6 +3381,12 @@ packages: signal-exit: 3.0.7 strip-final-newline: 3.0.0 + /ext@1.7.0: + resolution: {integrity: sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==} + dependencies: + type: 2.7.2 + dev: true + /fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} dev: true @@ -3365,6 +3550,12 @@ packages: get-intrinsic: 1.2.1 dev: true + /get-tsconfig@4.7.0: + resolution: {integrity: sha512-pmjiZ7xtB8URYm74PlGJozDNyhvsVLUcpBa8DZBG3bWHwaHa9bPiRpiSfovw+fjhwONSCWKRyk+JQHEGZmMrzw==} + dependencies: + resolve-pkg-maps: 1.0.0 + dev: true + /glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} @@ -3453,6 +3644,13 @@ packages: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} dev: true + /hanji@0.0.5: + resolution: {integrity: sha512-Abxw1Lq+TnYiL4BueXqMau222fPSPMFtya8HdpWsz/xVAhifXou71mPh/kY2+08RgFcVccjG3uZHs6K5HAe3zw==} + dependencies: + lodash.throttle: 4.1.1 + sisteransi: 1.0.5 + dev: true + /has-bigints@1.0.2: resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==} dev: true @@ -3495,6 +3693,10 @@ packages: dependencies: function-bind: 1.1.1 + /heap@0.2.7: + resolution: {integrity: sha512-2bsegYkkHO+h/9MGbn6KWcE45cHZgPANo5LXF7EvWdT0yT2EguSVO1nDgU5c8+ZOPwp2vMNa7YFsJhVcDR9Sdg==} + dev: true + /html-entities@2.3.3: resolution: {integrity: sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA==} @@ -3672,6 +3874,10 @@ packages: engines: {node: '>=8'} dev: true + /is-promise@2.2.2: + resolution: {integrity: sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==} + dev: true + /is-reference@1.2.1: resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} dependencies: @@ -3780,6 +3986,15 @@ packages: engines: {node: '>=4'} hasBin: true + /json-diff@0.9.0: + resolution: {integrity: sha512-cVnggDrVkAAA3OvFfHpFEhOnmcsUpleEKq4d4O8sQWWSH40MBrWstKigVB1kGrgLWzuom+7rRdaCsnBD6VyObQ==} + hasBin: true + dependencies: + cli-color: 2.0.3 + difflib: 0.2.4 + dreamopt: 0.8.0 + dev: true + /json-schema-traverse@0.4.1: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} dev: true @@ -3814,11 +4029,6 @@ packages: resolution: {integrity: sha512-7n6wXq4gNgBELfDCpzKc+mRrZFs7D+wgfF5WRFLNAr4DA/qtr9Js8uOAVAfHhuLMfAcQ0pRKqbpjx+TcJVdE1Q==} dev: true - /kleur@4.1.5: - resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} - engines: {node: '>=6'} - dev: false - /known-css-properties@0.24.0: resolution: {integrity: sha512-RTSoaUAfLvpR357vWzAz/50Q/BmHfmE6ETSWfutT0AJiw10e6CmcdYRQJlLRd95B53D0Y2aD1jSxD3V3ySF+PA==} dev: true @@ -3854,6 +4064,10 @@ packages: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} dev: true + /lodash.throttle@4.1.1: + resolution: {integrity: sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==} + dev: true + /lodash@4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} @@ -3876,12 +4090,31 @@ packages: yallist: 4.0.0 dev: true + /lru-queue@0.1.0: + resolution: {integrity: sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==} + dependencies: + es5-ext: 0.10.62 + dev: true + /magic-string@0.27.0: resolution: {integrity: sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==} engines: {node: '>=12'} dependencies: '@jridgewell/sourcemap-codec': 1.4.15 + /memoizee@0.4.15: + resolution: {integrity: sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ==} + dependencies: + d: 1.0.1 + es5-ext: 0.10.62 + es6-weak-map: 2.0.3 + event-emitter: 0.3.5 + is-promise: 2.2.2 + lru-queue: 0.1.0 + next-tick: 1.1.0 + timers-ext: 0.1.7 + dev: true + /merge-anything@5.1.7: resolution: {integrity: sha512-eRtbOb1N5iyH0tkQDAoQ4Ipsp/5qSR79Dzrz8hEPxRX10RWWR/iQXdoKmBSRCThY1Fh5EhISDtpSc93fpxUniQ==} engines: {node: '>=12.13'} @@ -3935,6 +4168,13 @@ packages: dependencies: brace-expansion: 2.0.1 + /minimatch@7.4.6: + resolution: {integrity: sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw==} + engines: {node: '>=10'} + dependencies: + brace-expansion: 2.0.1 + dev: true + /minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} @@ -3973,6 +4213,10 @@ packages: resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==} engines: {node: '>= 0.6'} + /next-tick@1.1.0: + resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==} + dev: true + /node-releases@2.0.13: resolution: {integrity: sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==} @@ -4113,6 +4357,9 @@ packages: p-limit: 3.1.0 dev: true + /packet-reader@1.0.0: + resolution: {integrity: sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ==} + /parent-module@1.0.1: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} @@ -4153,6 +4400,62 @@ packages: engines: {node: '>=8'} dev: true + /pg-cloudflare@1.1.1: + resolution: {integrity: sha512-xWPagP/4B6BgFO+EKz3JONXv3YDgvkbVrGw2mTo3D6tVDQRh1e7cqVGvyR3BE+eQgAvx1XhW/iEASj4/jCWl3Q==} + requiresBuild: true + optional: true + + /pg-connection-string@2.6.2: + resolution: {integrity: sha512-ch6OwaeaPYcova4kKZ15sbJ2hKb/VP48ZD2gE7i1J+L4MspCtBMAx8nMgz7bksc7IojCIIWuEhHibSMFH8m8oA==} + + /pg-int8@1.0.1: + resolution: {integrity: sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==} + engines: {node: '>=4.0.0'} + + /pg-pool@3.6.1(pg@8.11.2): + resolution: {integrity: sha512-jizsIzhkIitxCGfPRzJn1ZdcosIt3pz9Sh3V01fm1vZnbnCMgmGl5wvGGdNN2EL9Rmb0EcFoCkixH4Pu+sP9Og==} + peerDependencies: + pg: '>=8.0' + dependencies: + pg: 8.11.2 + + /pg-protocol@1.6.0: + resolution: {integrity: sha512-M+PDm637OY5WM307051+bsDia5Xej6d9IR4GwJse1qA1DIhiKlksvrneZOYQq42OM+spubpcNYEo2FcKQrDk+Q==} + + /pg-types@2.2.0: + resolution: {integrity: sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==} + engines: {node: '>=4'} + dependencies: + pg-int8: 1.0.1 + postgres-array: 2.0.0 + postgres-bytea: 1.0.0 + postgres-date: 1.0.7 + postgres-interval: 1.2.0 + + /pg@8.11.2: + resolution: {integrity: sha512-l4rmVeV8qTIrrPrIR3kZQqBgSN93331s9i6wiUiLOSk0Q7PmUxZD/m1rQI622l3NfqBby9Ar5PABfS/SulfieQ==} + engines: {node: '>= 8.0.0'} + peerDependencies: + pg-native: '>=3.0.1' + peerDependenciesMeta: + pg-native: + optional: true + dependencies: + buffer-writer: 2.0.0 + packet-reader: 1.0.0 + pg-connection-string: 2.6.2 + pg-pool: 3.6.1(pg@8.11.2) + pg-protocol: 1.6.0 + pg-types: 2.2.0 + pgpass: 1.0.5 + optionalDependencies: + pg-cloudflare: 1.1.1 + + /pgpass@1.0.5: + resolution: {integrity: sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==} + dependencies: + split2: 4.2.0 + /picocolors@1.0.0: resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} @@ -4252,6 +4555,28 @@ packages: picocolors: 1.0.0 source-map-js: 1.0.2 + /postgres-array@2.0.0: + resolution: {integrity: sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==} + engines: {node: '>=4'} + + /postgres-bytea@1.0.0: + resolution: {integrity: sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w==} + engines: {node: '>=0.10.0'} + + /postgres-date@1.0.7: + resolution: {integrity: sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==} + engines: {node: '>=0.10.0'} + + /postgres-interval@1.2.0: + resolution: {integrity: sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==} + engines: {node: '>=0.10.0'} + dependencies: + xtend: 4.0.2 + + /postgres@3.3.5: + resolution: {integrity: sha512-+JD93VELV9gHkqpV5gdL5/70HdGtEw4/XE1S4BC8f1mcPmdib3K5XsKVbnR1XcAyC41zOnifJ+9YRKxdIsXiUw==} + dev: false + /preact-render-to-string@5.2.3(preact@10.11.3): resolution: {integrity: sha512-aPDxUn5o3GhWdtJtW0svRC2SS/l8D9MAgo2+AWml+BhDImb27ALf04Q2d+AHqUUOc6RdSXFIBVa2gxzgMKgtZA==} peerDependencies: @@ -4353,15 +4678,6 @@ packages: resolution: {integrity: sha512-WuxUnVtlWL1OfZFQFuqvnvs6MiAGk9UNsBostyBOB0Is9wb5uRESevA6rnl/rkksXaGX3GzZhPup5d6Vp1nFew==} dev: false - /prisma@5.1.1: - resolution: {integrity: sha512-WJFG/U7sMmcc6TjJTTifTfpI6Wjoh55xl4AzopVwAdyK68L9/ogNo8QQ2cxuUjJf/Wa82z/uhyh3wMzvRIBphg==} - engines: {node: '>=16.13'} - hasBin: true - requiresBuild: true - dependencies: - '@prisma/engines': 5.1.1 - dev: false - /prop-types@15.8.1: resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==} dependencies: @@ -4457,6 +4773,10 @@ packages: engines: {node: '>=4'} dev: true + /resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + dev: true + /resolve@1.22.4: resolution: {integrity: sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg==} hasBin: true @@ -4612,6 +4932,10 @@ packages: mrmime: 1.0.1 totalist: 3.0.1 + /sisteransi@1.0.5: + resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} + dev: true + /slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} @@ -4806,6 +5130,10 @@ packages: resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==} engines: {node: '>= 8'} + /split2@4.2.0: + resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} + engines: {node: '>= 10.x'} + /statuses@1.5.0: resolution: {integrity: sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==} engines: {node: '>= 0.6'} @@ -4961,6 +5289,13 @@ packages: any-promise: 1.3.0 dev: true + /timers-ext@0.1.7: + resolution: {integrity: sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==} + dependencies: + es5-ext: 0.10.62 + next-tick: 1.1.0 + dev: true + /titleize@3.0.0: resolution: {integrity: sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==} engines: {node: '>=12'} @@ -5027,6 +5362,14 @@ packages: engines: {node: '>=10'} dev: true + /type@1.2.0: + resolution: {integrity: sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==} + dev: true + + /type@2.7.2: + resolution: {integrity: sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==} + dev: true + /typed-array-buffer@1.0.0: resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==} engines: {node: '>= 0.4'} @@ -5289,6 +5632,10 @@ packages: dependencies: isexe: 2.0.0 + /wordwrap@1.0.0: + resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==} + dev: true + /wrap-ansi@7.0.0: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'} @@ -5318,6 +5665,10 @@ packages: engines: {node: '>=0.4.0'} dev: false + /xtend@4.0.2: + resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} + engines: {node: '>=0.4'} + /y18n@5.0.8: resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} engines: {node: '>=10'} @@ -5355,21 +5706,8 @@ packages: engines: {node: '>=10'} dev: true - /zod-prisma-types@2.7.9: - resolution: {integrity: sha512-JgPN32d/Wm6/E61oHXek2jDT6VxBpKVPmLom7585SmdCyj+xb+OAg8O3G0BLU+gWNiC+Eyt3blo1S/8W9sIaxA==} - hasBin: true - dependencies: - '@prisma/generator-helper': 5.1.1 - code-block-writer: 12.0.0 - lodash: 4.17.21 - zod: 3.21.1 - transitivePeerDependencies: - - supports-color - dev: false - /zod@3.21.1: resolution: {integrity: sha512-+dTu2m6gmCbO9Ahm4ZBDapx2O6ZY9QSPXst2WXjcznPMwf2YNpn3RevLx4KkZp1OPW/ouFcoBtBzFz/LeY69oA==} - dev: false /zustand@4.4.1(react@18.2.0): resolution: {integrity: sha512-QCPfstAS4EBiTQzlaGP1gmorkh/UL1Leaj2tdj+zZCZ/9bm0WS7sI2wnfD5lpOszFqWJ1DcPnGoY8RDL61uokw==} diff --git a/leaky-ships/prisma/generated/zod/index.ts b/leaky-ships/prisma/generated/zod/index.ts deleted file mode 100644 index 6a4e9d7..0000000 --- a/leaky-ships/prisma/generated/zod/index.ts +++ /dev/null @@ -1,6106 +0,0 @@ -import { z } from 'zod'; -import type { Prisma } from '@prisma/client'; - -///////////////////////////////////////// -// HELPER FUNCTIONS -///////////////////////////////////////// - - -///////////////////////////////////////// -// ENUMS -///////////////////////////////////////// - -export const TransactionIsolationLevelSchema = z.enum(['ReadUncommitted','ReadCommitted','RepeatableRead','Serializable']); - -export const AccountScalarFieldEnumSchema = z.enum(['id','userId','type','provider','providerAccountId','refresh_token','access_token','expires_at','ext_expires_in','token_type','scope','id_token','session_state','oauth_token_secret','oauth_token']); - -export const SessionScalarFieldEnumSchema = z.enum(['id','sessionToken','userId','expires']); - -export const UserScalarFieldEnumSchema = z.enum(['id','name','email','emailVerified','image','createdAt','updatedAt']); - -export const VerificationTokenScalarFieldEnumSchema = z.enum(['identifier','token','expires']); - -export const GameScalarFieldEnumSchema = z.enum(['id','createdAt','updatedAt','state','allowSpectators','allowSpecials','allowChat','allowMarkDraw']); - -export const GamepinScalarFieldEnumSchema = z.enum(['id','createdAt','pin','gameId']); - -export const ShipScalarFieldEnumSchema = z.enum(['id','size','variant','x','y','orientation','user_GameId']); - -export const HitScalarFieldEnumSchema = z.enum(['id','x','y','hit','user_GameId']); - -export const User_GameScalarFieldEnumSchema = z.enum(['id','createdAt','gameId','userId','index']); - -export const MoveScalarFieldEnumSchema = z.enum(['id','createdAt','index','type','x','y','orientation','user_game_id']); - -export const ChatScalarFieldEnumSchema = z.enum(['id','createdAt','message','event','user_game_id']); - -export const SortOrderSchema = z.enum(['asc','desc']); - -export const QueryModeSchema = z.enum(['default','insensitive']); - -export const NullsOrderSchema = z.enum(['first','last']); - -export const GameStateSchema = z.enum(['lobby','starting','running','ended','aborted']); - -export type GameStateType = `${z.infer}` - -export const OrientationSchema = z.enum(['h','v']); - -export type OrientationType = `${z.infer}` - -export const MoveTypeSchema = z.enum(['missile','vtorpedo','htorpedo','radar']); - -export type MoveTypeType = `${z.infer}` - -///////////////////////////////////////// -// MODELS -///////////////////////////////////////// - -///////////////////////////////////////// -// ACCOUNT SCHEMA -///////////////////////////////////////// - -export const AccountSchema = z.object({ - id: z.string().cuid(), - userId: z.string(), - type: z.string(), - provider: z.string(), - providerAccountId: z.string(), - refresh_token: z.string().nullable(), - access_token: z.string().nullable(), - expires_at: z.number().int().nullable(), - ext_expires_in: z.number().int().nullable(), - token_type: z.string().nullable(), - scope: z.string().nullable(), - id_token: z.string().nullable(), - session_state: z.string().nullable(), - oauth_token_secret: z.string().nullable(), - oauth_token: z.string().nullable(), -}) - -export type Account = z.infer - -///////////////////////////////////////// -// SESSION SCHEMA -///////////////////////////////////////// - -export const SessionSchema = z.object({ - id: z.string().cuid(), - sessionToken: z.string(), - userId: z.string(), - expires: z.coerce.date(), -}) - -export type Session = z.infer - -///////////////////////////////////////// -// USER SCHEMA -///////////////////////////////////////// - -export const UserSchema = z.object({ - id: z.string().cuid(), - name: z.string().nullable(), - email: z.string().nullable(), - emailVerified: z.coerce.date().nullable(), - image: z.string().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), -}) - -export type User = z.infer - -///////////////////////////////////////// -// VERIFICATION TOKEN SCHEMA -///////////////////////////////////////// - -export const VerificationTokenSchema = z.object({ - identifier: z.string(), - token: z.string(), - expires: z.coerce.date(), -}) - -export type VerificationToken = z.infer - -///////////////////////////////////////// -// GAME SCHEMA -///////////////////////////////////////// - -export const GameSchema = z.object({ - state: GameStateSchema, - id: z.string().cuid(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - allowSpectators: z.boolean(), - allowSpecials: z.boolean(), - allowChat: z.boolean(), - allowMarkDraw: z.boolean(), -}) - -export type Game = z.infer - -///////////////////////////////////////// -// GAMEPIN SCHEMA -///////////////////////////////////////// - -export const GamepinSchema = z.object({ - id: z.string().cuid(), - createdAt: z.coerce.date(), - pin: z.string(), - gameId: z.string(), -}) - -export type Gamepin = z.infer - -///////////////////////////////////////// -// SHIP SCHEMA -///////////////////////////////////////// - -export const ShipSchema = z.object({ - orientation: OrientationSchema, - id: z.string().cuid(), - size: z.number().int(), - variant: z.number().int(), - x: z.number().int(), - y: z.number().int(), - user_GameId: z.string(), -}) - -export type Ship = z.infer - -///////////////////////////////////////// -// HIT SCHEMA -///////////////////////////////////////// - -export const HitSchema = z.object({ - id: z.string().cuid(), - x: z.number().int(), - y: z.number().int(), - hit: z.boolean(), - user_GameId: z.string(), -}) - -export type Hit = z.infer - -///////////////////////////////////////// -// USER GAME SCHEMA -///////////////////////////////////////// - -export const User_GameSchema = z.object({ - id: z.string().cuid(), - createdAt: z.coerce.date(), - gameId: z.string(), - userId: z.string(), - index: z.number().int(), -}) - -export type User_Game = z.infer - -///////////////////////////////////////// -// MOVE SCHEMA -///////////////////////////////////////// - -export const MoveSchema = z.object({ - type: MoveTypeSchema, - orientation: OrientationSchema, - id: z.string().cuid(), - createdAt: z.coerce.date(), - index: z.number().int(), - x: z.number().int(), - y: z.number().int(), - user_game_id: z.string(), -}) - -export type Move = z.infer - -///////////////////////////////////////// -// CHAT SCHEMA -///////////////////////////////////////// - -export const ChatSchema = z.object({ - id: z.string().cuid(), - createdAt: z.coerce.date(), - message: z.string().nullable(), - event: z.string().nullable(), - user_game_id: z.string(), -}) - -export type Chat = z.infer - -///////////////////////////////////////// -// SELECT & INCLUDE -///////////////////////////////////////// - -// ACCOUNT -//------------------------------------------------------ - -export const AccountIncludeSchema: z.ZodType = z.object({ - user: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(), -}).strict() - -export const AccountArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => AccountSelectSchema).optional(), - include: z.lazy(() => AccountIncludeSchema).optional(), -}).strict(); - -export const AccountSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - userId: z.boolean().optional(), - type: z.boolean().optional(), - provider: z.boolean().optional(), - providerAccountId: z.boolean().optional(), - refresh_token: z.boolean().optional(), - access_token: z.boolean().optional(), - expires_at: z.boolean().optional(), - ext_expires_in: z.boolean().optional(), - token_type: z.boolean().optional(), - scope: z.boolean().optional(), - id_token: z.boolean().optional(), - session_state: z.boolean().optional(), - oauth_token_secret: z.boolean().optional(), - oauth_token: z.boolean().optional(), - user: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(), -}).strict() - -// SESSION -//------------------------------------------------------ - -export const SessionIncludeSchema: z.ZodType = z.object({ - user: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(), -}).strict() - -export const SessionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => SessionSelectSchema).optional(), - include: z.lazy(() => SessionIncludeSchema).optional(), -}).strict(); - -export const SessionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - sessionToken: z.boolean().optional(), - userId: z.boolean().optional(), - expires: z.boolean().optional(), - user: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(), -}).strict() - -// USER -//------------------------------------------------------ - -export const UserIncludeSchema: z.ZodType = z.object({ - games: z.union([z.boolean(),z.lazy(() => User_GameFindManyArgsSchema)]).optional(), - accounts: z.union([z.boolean(),z.lazy(() => AccountFindManyArgsSchema)]).optional(), - sessions: z.union([z.boolean(),z.lazy(() => SessionFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => UserCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const UserArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => UserSelectSchema).optional(), - include: z.lazy(() => UserIncludeSchema).optional(), -}).strict(); - -export const UserCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => UserCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const UserCountOutputTypeSelectSchema: z.ZodType = z.object({ - games: z.boolean().optional(), - accounts: z.boolean().optional(), - sessions: z.boolean().optional(), -}).strict(); - -export const UserSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - name: z.boolean().optional(), - email: z.boolean().optional(), - emailVerified: z.boolean().optional(), - image: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - games: z.union([z.boolean(),z.lazy(() => User_GameFindManyArgsSchema)]).optional(), - accounts: z.union([z.boolean(),z.lazy(() => AccountFindManyArgsSchema)]).optional(), - sessions: z.union([z.boolean(),z.lazy(() => SessionFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => UserCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// VERIFICATION TOKEN -//------------------------------------------------------ - -export const VerificationTokenSelectSchema: z.ZodType = z.object({ - identifier: z.boolean().optional(), - token: z.boolean().optional(), - expires: z.boolean().optional(), -}).strict() - -// GAME -//------------------------------------------------------ - -export const GameIncludeSchema: z.ZodType = z.object({ - gamePin: z.union([z.boolean(),z.lazy(() => GamepinArgsSchema)]).optional(), - users: z.union([z.boolean(),z.lazy(() => User_GameFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => GameCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const GameArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => GameSelectSchema).optional(), - include: z.lazy(() => GameIncludeSchema).optional(), -}).strict(); - -export const GameCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => GameCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const GameCountOutputTypeSelectSchema: z.ZodType = z.object({ - users: z.boolean().optional(), -}).strict(); - -export const GameSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - state: z.boolean().optional(), - allowSpectators: z.boolean().optional(), - allowSpecials: z.boolean().optional(), - allowChat: z.boolean().optional(), - allowMarkDraw: z.boolean().optional(), - gamePin: z.union([z.boolean(),z.lazy(() => GamepinArgsSchema)]).optional(), - users: z.union([z.boolean(),z.lazy(() => User_GameFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => GameCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// GAMEPIN -//------------------------------------------------------ - -export const GamepinIncludeSchema: z.ZodType = z.object({ - game: z.union([z.boolean(),z.lazy(() => GameArgsSchema)]).optional(), -}).strict() - -export const GamepinArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => GamepinSelectSchema).optional(), - include: z.lazy(() => GamepinIncludeSchema).optional(), -}).strict(); - -export const GamepinSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - createdAt: z.boolean().optional(), - pin: z.boolean().optional(), - gameId: z.boolean().optional(), - game: z.union([z.boolean(),z.lazy(() => GameArgsSchema)]).optional(), -}).strict() - -// SHIP -//------------------------------------------------------ - -export const ShipIncludeSchema: z.ZodType = z.object({ - User_Game: z.union([z.boolean(),z.lazy(() => User_GameArgsSchema)]).optional(), -}).strict() - -export const ShipArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ShipSelectSchema).optional(), - include: z.lazy(() => ShipIncludeSchema).optional(), -}).strict(); - -export const ShipSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - size: z.boolean().optional(), - variant: z.boolean().optional(), - x: z.boolean().optional(), - y: z.boolean().optional(), - orientation: z.boolean().optional(), - user_GameId: z.boolean().optional(), - User_Game: z.union([z.boolean(),z.lazy(() => User_GameArgsSchema)]).optional(), -}).strict() - -// HIT -//------------------------------------------------------ - -export const HitIncludeSchema: z.ZodType = z.object({ - User_Game: z.union([z.boolean(),z.lazy(() => User_GameArgsSchema)]).optional(), -}).strict() - -export const HitArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => HitSelectSchema).optional(), - include: z.lazy(() => HitIncludeSchema).optional(), -}).strict(); - -export const HitSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - x: z.boolean().optional(), - y: z.boolean().optional(), - hit: z.boolean().optional(), - user_GameId: z.boolean().optional(), - User_Game: z.union([z.boolean(),z.lazy(() => User_GameArgsSchema)]).optional(), -}).strict() - -// USER GAME -//------------------------------------------------------ - -export const User_GameIncludeSchema: z.ZodType = z.object({ - moves: z.union([z.boolean(),z.lazy(() => MoveFindManyArgsSchema)]).optional(), - ships: z.union([z.boolean(),z.lazy(() => ShipFindManyArgsSchema)]).optional(), - hits: z.union([z.boolean(),z.lazy(() => HitFindManyArgsSchema)]).optional(), - chats: z.union([z.boolean(),z.lazy(() => ChatFindManyArgsSchema)]).optional(), - game: z.union([z.boolean(),z.lazy(() => GameArgsSchema)]).optional(), - user: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => User_GameCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const User_GameArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => User_GameSelectSchema).optional(), - include: z.lazy(() => User_GameIncludeSchema).optional(), -}).strict(); - -export const User_GameCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => User_GameCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const User_GameCountOutputTypeSelectSchema: z.ZodType = z.object({ - moves: z.boolean().optional(), - ships: z.boolean().optional(), - hits: z.boolean().optional(), - chats: z.boolean().optional(), -}).strict(); - -export const User_GameSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - createdAt: z.boolean().optional(), - gameId: z.boolean().optional(), - userId: z.boolean().optional(), - index: z.boolean().optional(), - moves: z.union([z.boolean(),z.lazy(() => MoveFindManyArgsSchema)]).optional(), - ships: z.union([z.boolean(),z.lazy(() => ShipFindManyArgsSchema)]).optional(), - hits: z.union([z.boolean(),z.lazy(() => HitFindManyArgsSchema)]).optional(), - chats: z.union([z.boolean(),z.lazy(() => ChatFindManyArgsSchema)]).optional(), - game: z.union([z.boolean(),z.lazy(() => GameArgsSchema)]).optional(), - user: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => User_GameCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// MOVE -//------------------------------------------------------ - -export const MoveIncludeSchema: z.ZodType = z.object({ - user_game: z.union([z.boolean(),z.lazy(() => User_GameArgsSchema)]).optional(), -}).strict() - -export const MoveArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => MoveSelectSchema).optional(), - include: z.lazy(() => MoveIncludeSchema).optional(), -}).strict(); - -export const MoveSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - createdAt: z.boolean().optional(), - index: z.boolean().optional(), - type: z.boolean().optional(), - x: z.boolean().optional(), - y: z.boolean().optional(), - orientation: z.boolean().optional(), - user_game_id: z.boolean().optional(), - user_game: z.union([z.boolean(),z.lazy(() => User_GameArgsSchema)]).optional(), -}).strict() - -// CHAT -//------------------------------------------------------ - -export const ChatIncludeSchema: z.ZodType = z.object({ - user_game: z.union([z.boolean(),z.lazy(() => User_GameArgsSchema)]).optional(), -}).strict() - -export const ChatArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ChatSelectSchema).optional(), - include: z.lazy(() => ChatIncludeSchema).optional(), -}).strict(); - -export const ChatSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - createdAt: z.boolean().optional(), - message: z.boolean().optional(), - event: z.boolean().optional(), - user_game_id: z.boolean().optional(), - user_game: z.union([z.boolean(),z.lazy(() => User_GameArgsSchema)]).optional(), -}).strict() - - -///////////////////////////////////////// -// INPUT TYPES -///////////////////////////////////////// - -export const AccountWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => AccountWhereInputSchema),z.lazy(() => AccountWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => AccountWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => AccountWhereInputSchema),z.lazy(() => AccountWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - provider: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - providerAccountId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - refresh_token: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - access_token: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - expires_at: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - ext_expires_in: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - token_type: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - scope: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - id_token: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - session_state: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - oauth_token_secret: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - oauth_token: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - user: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), -}).strict(); - -export const AccountOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - provider: z.lazy(() => SortOrderSchema).optional(), - providerAccountId: z.lazy(() => SortOrderSchema).optional(), - refresh_token: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - access_token: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - expires_at: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - ext_expires_in: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - token_type: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - scope: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - id_token: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - session_state: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - oauth_token_secret: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - oauth_token: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - user: z.lazy(() => UserOrderByWithRelationInputSchema).optional() -}).strict(); - -export const AccountWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - provider_providerAccountId: z.lazy(() => AccountProviderProviderAccountIdCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - provider_providerAccountId: z.lazy(() => AccountProviderProviderAccountIdCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - provider_providerAccountId: z.lazy(() => AccountProviderProviderAccountIdCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => AccountWhereInputSchema),z.lazy(() => AccountWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => AccountWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => AccountWhereInputSchema),z.lazy(() => AccountWhereInputSchema).array() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - provider: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - providerAccountId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - refresh_token: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - access_token: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - expires_at: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - ext_expires_in: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - token_type: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - scope: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - id_token: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - session_state: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - oauth_token_secret: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - oauth_token: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - user: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), -}).strict()); - -export const AccountOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - provider: z.lazy(() => SortOrderSchema).optional(), - providerAccountId: z.lazy(() => SortOrderSchema).optional(), - refresh_token: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - access_token: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - expires_at: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - ext_expires_in: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - token_type: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - scope: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - id_token: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - session_state: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - oauth_token_secret: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - oauth_token: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - _count: z.lazy(() => AccountCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => AccountAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => AccountMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => AccountMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => AccountSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const AccountScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => AccountScalarWhereWithAggregatesInputSchema),z.lazy(() => AccountScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => AccountScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => AccountScalarWhereWithAggregatesInputSchema),z.lazy(() => AccountScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - provider: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - providerAccountId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - refresh_token: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - access_token: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - expires_at: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - ext_expires_in: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - token_type: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - scope: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - id_token: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - session_state: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - oauth_token_secret: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - oauth_token: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), -}).strict(); - -export const SessionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => SessionWhereInputSchema),z.lazy(() => SessionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => SessionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SessionWhereInputSchema),z.lazy(() => SessionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - sessionToken: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - expires: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - user: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), -}).strict(); - -export const SessionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - sessionToken: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - expires: z.lazy(() => SortOrderSchema).optional(), - user: z.lazy(() => UserOrderByWithRelationInputSchema).optional() -}).strict(); - -export const SessionWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - sessionToken: z.string() - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - sessionToken: z.string(), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - sessionToken: z.string().optional(), - AND: z.union([ z.lazy(() => SessionWhereInputSchema),z.lazy(() => SessionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => SessionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SessionWhereInputSchema),z.lazy(() => SessionWhereInputSchema).array() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - expires: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - user: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), -}).strict()); - -export const SessionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - sessionToken: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - expires: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => SessionCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => SessionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => SessionMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const SessionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => SessionScalarWhereWithAggregatesInputSchema),z.lazy(() => SessionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => SessionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SessionScalarWhereWithAggregatesInputSchema),z.lazy(() => SessionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - sessionToken: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - expires: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const UserWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => UserWhereInputSchema),z.lazy(() => UserWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => UserWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => UserWhereInputSchema),z.lazy(() => UserWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - email: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - emailVerified: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - image: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - games: z.lazy(() => User_GameListRelationFilterSchema).optional(), - accounts: z.lazy(() => AccountListRelationFilterSchema).optional(), - sessions: z.lazy(() => SessionListRelationFilterSchema).optional() -}).strict(); - -export const UserOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - email: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - emailVerified: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - image: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - games: z.lazy(() => User_GameOrderByRelationAggregateInputSchema).optional(), - accounts: z.lazy(() => AccountOrderByRelationAggregateInputSchema).optional(), - sessions: z.lazy(() => SessionOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const UserWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - email: z.string() - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - email: z.string(), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - email: z.string().optional(), - AND: z.union([ z.lazy(() => UserWhereInputSchema),z.lazy(() => UserWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => UserWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => UserWhereInputSchema),z.lazy(() => UserWhereInputSchema).array() ]).optional(), - name: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - emailVerified: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - image: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - games: z.lazy(() => User_GameListRelationFilterSchema).optional(), - accounts: z.lazy(() => AccountListRelationFilterSchema).optional(), - sessions: z.lazy(() => SessionListRelationFilterSchema).optional() -}).strict()); - -export const UserOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - email: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - emailVerified: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - image: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => UserCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => UserMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => UserMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const UserScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => UserScalarWhereWithAggregatesInputSchema),z.lazy(() => UserScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => UserScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => UserScalarWhereWithAggregatesInputSchema),z.lazy(() => UserScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - email: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - emailVerified: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - image: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const VerificationTokenWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => VerificationTokenWhereInputSchema),z.lazy(() => VerificationTokenWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => VerificationTokenWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => VerificationTokenWhereInputSchema),z.lazy(() => VerificationTokenWhereInputSchema).array() ]).optional(), - identifier: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - token: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - expires: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const VerificationTokenOrderByWithRelationInputSchema: z.ZodType = z.object({ - identifier: z.lazy(() => SortOrderSchema).optional(), - token: z.lazy(() => SortOrderSchema).optional(), - expires: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const VerificationTokenWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - token: z.string(), - identifier_token: z.lazy(() => VerificationTokenIdentifierTokenCompoundUniqueInputSchema) - }), - z.object({ - token: z.string(), - }), - z.object({ - identifier_token: z.lazy(() => VerificationTokenIdentifierTokenCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - token: z.string().optional(), - identifier_token: z.lazy(() => VerificationTokenIdentifierTokenCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => VerificationTokenWhereInputSchema),z.lazy(() => VerificationTokenWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => VerificationTokenWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => VerificationTokenWhereInputSchema),z.lazy(() => VerificationTokenWhereInputSchema).array() ]).optional(), - identifier: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - expires: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict()); - -export const VerificationTokenOrderByWithAggregationInputSchema: z.ZodType = z.object({ - identifier: z.lazy(() => SortOrderSchema).optional(), - token: z.lazy(() => SortOrderSchema).optional(), - expires: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => VerificationTokenCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => VerificationTokenMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => VerificationTokenMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const VerificationTokenScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => VerificationTokenScalarWhereWithAggregatesInputSchema),z.lazy(() => VerificationTokenScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => VerificationTokenScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => VerificationTokenScalarWhereWithAggregatesInputSchema),z.lazy(() => VerificationTokenScalarWhereWithAggregatesInputSchema).array() ]).optional(), - identifier: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - token: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - expires: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const GameWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => GameWhereInputSchema),z.lazy(() => GameWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => GameWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => GameWhereInputSchema),z.lazy(() => GameWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - state: z.union([ z.lazy(() => EnumGameStateFilterSchema),z.lazy(() => GameStateSchema) ]).optional(), - allowSpectators: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - allowSpecials: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - allowChat: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - allowMarkDraw: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - gamePin: z.union([ z.lazy(() => GamepinNullableRelationFilterSchema),z.lazy(() => GamepinWhereInputSchema) ]).optional().nullable(), - users: z.lazy(() => User_GameListRelationFilterSchema).optional() -}).strict(); - -export const GameOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - state: z.lazy(() => SortOrderSchema).optional(), - allowSpectators: z.lazy(() => SortOrderSchema).optional(), - allowSpecials: z.lazy(() => SortOrderSchema).optional(), - allowChat: z.lazy(() => SortOrderSchema).optional(), - allowMarkDraw: z.lazy(() => SortOrderSchema).optional(), - gamePin: z.lazy(() => GamepinOrderByWithRelationInputSchema).optional(), - users: z.lazy(() => User_GameOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const GameWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => GameWhereInputSchema),z.lazy(() => GameWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => GameWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => GameWhereInputSchema),z.lazy(() => GameWhereInputSchema).array() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - state: z.union([ z.lazy(() => EnumGameStateFilterSchema),z.lazy(() => GameStateSchema) ]).optional(), - allowSpectators: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - allowSpecials: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - allowChat: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - allowMarkDraw: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - gamePin: z.union([ z.lazy(() => GamepinNullableRelationFilterSchema),z.lazy(() => GamepinWhereInputSchema) ]).optional().nullable(), - users: z.lazy(() => User_GameListRelationFilterSchema).optional() -}).strict()); - -export const GameOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - state: z.lazy(() => SortOrderSchema).optional(), - allowSpectators: z.lazy(() => SortOrderSchema).optional(), - allowSpecials: z.lazy(() => SortOrderSchema).optional(), - allowChat: z.lazy(() => SortOrderSchema).optional(), - allowMarkDraw: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => GameCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => GameMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => GameMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const GameScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => GameScalarWhereWithAggregatesInputSchema),z.lazy(() => GameScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => GameScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => GameScalarWhereWithAggregatesInputSchema),z.lazy(() => GameScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - state: z.union([ z.lazy(() => EnumGameStateWithAggregatesFilterSchema),z.lazy(() => GameStateSchema) ]).optional(), - allowSpectators: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - allowSpecials: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - allowChat: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - allowMarkDraw: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), -}).strict(); - -export const GamepinWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => GamepinWhereInputSchema),z.lazy(() => GamepinWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => GamepinWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => GamepinWhereInputSchema),z.lazy(() => GamepinWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - pin: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - gameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - game: z.union([ z.lazy(() => GameRelationFilterSchema),z.lazy(() => GameWhereInputSchema) ]).optional(), -}).strict(); - -export const GamepinOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - pin: z.lazy(() => SortOrderSchema).optional(), - gameId: z.lazy(() => SortOrderSchema).optional(), - game: z.lazy(() => GameOrderByWithRelationInputSchema).optional() -}).strict(); - -export const GamepinWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - pin: z.string(), - gameId: z.string() - }), - z.object({ - id: z.string().cuid(), - pin: z.string(), - }), - z.object({ - id: z.string().cuid(), - gameId: z.string(), - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - pin: z.string(), - gameId: z.string(), - }), - z.object({ - pin: z.string(), - }), - z.object({ - gameId: z.string(), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - pin: z.string().optional(), - gameId: z.string().optional(), - AND: z.union([ z.lazy(() => GamepinWhereInputSchema),z.lazy(() => GamepinWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => GamepinWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => GamepinWhereInputSchema),z.lazy(() => GamepinWhereInputSchema).array() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - game: z.union([ z.lazy(() => GameRelationFilterSchema),z.lazy(() => GameWhereInputSchema) ]).optional(), -}).strict()); - -export const GamepinOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - pin: z.lazy(() => SortOrderSchema).optional(), - gameId: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => GamepinCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => GamepinMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => GamepinMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const GamepinScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => GamepinScalarWhereWithAggregatesInputSchema),z.lazy(() => GamepinScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => GamepinScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => GamepinScalarWhereWithAggregatesInputSchema),z.lazy(() => GamepinScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - pin: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - gameId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), -}).strict(); - -export const ShipWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ShipWhereInputSchema),z.lazy(() => ShipWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ShipWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ShipWhereInputSchema),z.lazy(() => ShipWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - size: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - variant: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - x: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - y: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - orientation: z.union([ z.lazy(() => EnumOrientationFilterSchema),z.lazy(() => OrientationSchema) ]).optional(), - user_GameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - User_Game: z.union([ z.lazy(() => User_GameRelationFilterSchema),z.lazy(() => User_GameWhereInputSchema) ]).optional(), -}).strict(); - -export const ShipOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - size: z.lazy(() => SortOrderSchema).optional(), - variant: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional(), - orientation: z.lazy(() => SortOrderSchema).optional(), - user_GameId: z.lazy(() => SortOrderSchema).optional(), - User_Game: z.lazy(() => User_GameOrderByWithRelationInputSchema).optional() -}).strict(); - -export const ShipWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => ShipWhereInputSchema),z.lazy(() => ShipWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ShipWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ShipWhereInputSchema),z.lazy(() => ShipWhereInputSchema).array() ]).optional(), - size: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - variant: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - x: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - y: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - orientation: z.union([ z.lazy(() => EnumOrientationFilterSchema),z.lazy(() => OrientationSchema) ]).optional(), - user_GameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - User_Game: z.union([ z.lazy(() => User_GameRelationFilterSchema),z.lazy(() => User_GameWhereInputSchema) ]).optional(), -}).strict()); - -export const ShipOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - size: z.lazy(() => SortOrderSchema).optional(), - variant: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional(), - orientation: z.lazy(() => SortOrderSchema).optional(), - user_GameId: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => ShipCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => ShipAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => ShipMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => ShipMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => ShipSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const ShipScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ShipScalarWhereWithAggregatesInputSchema),z.lazy(() => ShipScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => ShipScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ShipScalarWhereWithAggregatesInputSchema),z.lazy(() => ShipScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - size: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - variant: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - x: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - y: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - orientation: z.union([ z.lazy(() => EnumOrientationWithAggregatesFilterSchema),z.lazy(() => OrientationSchema) ]).optional(), - user_GameId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), -}).strict(); - -export const HitWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => HitWhereInputSchema),z.lazy(() => HitWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => HitWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => HitWhereInputSchema),z.lazy(() => HitWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - x: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - y: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - hit: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - user_GameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - User_Game: z.union([ z.lazy(() => User_GameRelationFilterSchema),z.lazy(() => User_GameWhereInputSchema) ]).optional(), -}).strict(); - -export const HitOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional(), - hit: z.lazy(() => SortOrderSchema).optional(), - user_GameId: z.lazy(() => SortOrderSchema).optional(), - User_Game: z.lazy(() => User_GameOrderByWithRelationInputSchema).optional() -}).strict(); - -export const HitWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => HitWhereInputSchema),z.lazy(() => HitWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => HitWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => HitWhereInputSchema),z.lazy(() => HitWhereInputSchema).array() ]).optional(), - x: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - y: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - hit: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - user_GameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - User_Game: z.union([ z.lazy(() => User_GameRelationFilterSchema),z.lazy(() => User_GameWhereInputSchema) ]).optional(), -}).strict()); - -export const HitOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional(), - hit: z.lazy(() => SortOrderSchema).optional(), - user_GameId: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => HitCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => HitAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => HitMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => HitMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => HitSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const HitScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => HitScalarWhereWithAggregatesInputSchema),z.lazy(() => HitScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => HitScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => HitScalarWhereWithAggregatesInputSchema),z.lazy(() => HitScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - x: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - y: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - hit: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - user_GameId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), -}).strict(); - -export const User_GameWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => User_GameWhereInputSchema),z.lazy(() => User_GameWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => User_GameWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => User_GameWhereInputSchema),z.lazy(() => User_GameWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - gameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - index: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - moves: z.lazy(() => MoveListRelationFilterSchema).optional(), - ships: z.lazy(() => ShipListRelationFilterSchema).optional(), - hits: z.lazy(() => HitListRelationFilterSchema).optional(), - chats: z.lazy(() => ChatListRelationFilterSchema).optional(), - game: z.union([ z.lazy(() => GameRelationFilterSchema),z.lazy(() => GameWhereInputSchema) ]).optional(), - user: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), -}).strict(); - -export const User_GameOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - gameId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - index: z.lazy(() => SortOrderSchema).optional(), - moves: z.lazy(() => MoveOrderByRelationAggregateInputSchema).optional(), - ships: z.lazy(() => ShipOrderByRelationAggregateInputSchema).optional(), - hits: z.lazy(() => HitOrderByRelationAggregateInputSchema).optional(), - chats: z.lazy(() => ChatOrderByRelationAggregateInputSchema).optional(), - game: z.lazy(() => GameOrderByWithRelationInputSchema).optional(), - user: z.lazy(() => UserOrderByWithRelationInputSchema).optional() -}).strict(); - -export const User_GameWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - gameId_index: z.lazy(() => User_GameGameIdIndexCompoundUniqueInputSchema), - gameId_userId: z.lazy(() => User_GameGameIdUserIdCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - gameId_index: z.lazy(() => User_GameGameIdIndexCompoundUniqueInputSchema), - }), - z.object({ - id: z.string().cuid(), - gameId_userId: z.lazy(() => User_GameGameIdUserIdCompoundUniqueInputSchema), - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - gameId_index: z.lazy(() => User_GameGameIdIndexCompoundUniqueInputSchema), - gameId_userId: z.lazy(() => User_GameGameIdUserIdCompoundUniqueInputSchema), - }), - z.object({ - gameId_index: z.lazy(() => User_GameGameIdIndexCompoundUniqueInputSchema), - }), - z.object({ - gameId_userId: z.lazy(() => User_GameGameIdUserIdCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - gameId_index: z.lazy(() => User_GameGameIdIndexCompoundUniqueInputSchema).optional(), - gameId_userId: z.lazy(() => User_GameGameIdUserIdCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => User_GameWhereInputSchema),z.lazy(() => User_GameWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => User_GameWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => User_GameWhereInputSchema),z.lazy(() => User_GameWhereInputSchema).array() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - gameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - index: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - moves: z.lazy(() => MoveListRelationFilterSchema).optional(), - ships: z.lazy(() => ShipListRelationFilterSchema).optional(), - hits: z.lazy(() => HitListRelationFilterSchema).optional(), - chats: z.lazy(() => ChatListRelationFilterSchema).optional(), - game: z.union([ z.lazy(() => GameRelationFilterSchema),z.lazy(() => GameWhereInputSchema) ]).optional(), - user: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), -}).strict()); - -export const User_GameOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - gameId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - index: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => User_GameCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => User_GameAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => User_GameMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => User_GameMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => User_GameSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const User_GameScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => User_GameScalarWhereWithAggregatesInputSchema),z.lazy(() => User_GameScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => User_GameScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => User_GameScalarWhereWithAggregatesInputSchema),z.lazy(() => User_GameScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - gameId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - index: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), -}).strict(); - -export const MoveWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => MoveWhereInputSchema),z.lazy(() => MoveWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => MoveWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => MoveWhereInputSchema),z.lazy(() => MoveWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - index: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - type: z.union([ z.lazy(() => EnumMoveTypeFilterSchema),z.lazy(() => MoveTypeSchema) ]).optional(), - x: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - y: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - orientation: z.union([ z.lazy(() => EnumOrientationFilterSchema),z.lazy(() => OrientationSchema) ]).optional(), - user_game_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - user_game: z.union([ z.lazy(() => User_GameRelationFilterSchema),z.lazy(() => User_GameWhereInputSchema) ]).optional(), -}).strict(); - -export const MoveOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - index: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional(), - orientation: z.lazy(() => SortOrderSchema).optional(), - user_game_id: z.lazy(() => SortOrderSchema).optional(), - user_game: z.lazy(() => User_GameOrderByWithRelationInputSchema).optional() -}).strict(); - -export const MoveWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => MoveWhereInputSchema),z.lazy(() => MoveWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => MoveWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => MoveWhereInputSchema),z.lazy(() => MoveWhereInputSchema).array() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - index: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - type: z.union([ z.lazy(() => EnumMoveTypeFilterSchema),z.lazy(() => MoveTypeSchema) ]).optional(), - x: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - y: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - orientation: z.union([ z.lazy(() => EnumOrientationFilterSchema),z.lazy(() => OrientationSchema) ]).optional(), - user_game_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - user_game: z.union([ z.lazy(() => User_GameRelationFilterSchema),z.lazy(() => User_GameWhereInputSchema) ]).optional(), -}).strict()); - -export const MoveOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - index: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional(), - orientation: z.lazy(() => SortOrderSchema).optional(), - user_game_id: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => MoveCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => MoveAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => MoveMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => MoveMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => MoveSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const MoveScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => MoveScalarWhereWithAggregatesInputSchema),z.lazy(() => MoveScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => MoveScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => MoveScalarWhereWithAggregatesInputSchema),z.lazy(() => MoveScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - index: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - type: z.union([ z.lazy(() => EnumMoveTypeWithAggregatesFilterSchema),z.lazy(() => MoveTypeSchema) ]).optional(), - x: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - y: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - orientation: z.union([ z.lazy(() => EnumOrientationWithAggregatesFilterSchema),z.lazy(() => OrientationSchema) ]).optional(), - user_game_id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), -}).strict(); - -export const ChatWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ChatWhereInputSchema),z.lazy(() => ChatWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ChatWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ChatWhereInputSchema),z.lazy(() => ChatWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - message: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - event: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - user_game_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - user_game: z.union([ z.lazy(() => User_GameRelationFilterSchema),z.lazy(() => User_GameWhereInputSchema) ]).optional(), -}).strict(); - -export const ChatOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - message: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - event: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - user_game_id: z.lazy(() => SortOrderSchema).optional(), - user_game: z.lazy(() => User_GameOrderByWithRelationInputSchema).optional() -}).strict(); - -export const ChatWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => ChatWhereInputSchema),z.lazy(() => ChatWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ChatWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ChatWhereInputSchema),z.lazy(() => ChatWhereInputSchema).array() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - message: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - event: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - user_game_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - user_game: z.union([ z.lazy(() => User_GameRelationFilterSchema),z.lazy(() => User_GameWhereInputSchema) ]).optional(), -}).strict()); - -export const ChatOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - message: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - event: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - user_game_id: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => ChatCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => ChatMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => ChatMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const ChatScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ChatScalarWhereWithAggregatesInputSchema),z.lazy(() => ChatScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => ChatScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ChatScalarWhereWithAggregatesInputSchema),z.lazy(() => ChatScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - message: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - event: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - user_game_id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), -}).strict(); - -export const AccountCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.string(), - provider: z.string(), - providerAccountId: z.string(), - refresh_token: z.string().optional().nullable(), - access_token: z.string().optional().nullable(), - expires_at: z.number().int().optional().nullable(), - ext_expires_in: z.number().int().optional().nullable(), - token_type: z.string().optional().nullable(), - scope: z.string().optional().nullable(), - id_token: z.string().optional().nullable(), - session_state: z.string().optional().nullable(), - oauth_token_secret: z.string().optional().nullable(), - oauth_token: z.string().optional().nullable(), - user: z.lazy(() => UserCreateNestedOneWithoutAccountsInputSchema) -}).strict(); - -export const AccountUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - userId: z.string(), - type: z.string(), - provider: z.string(), - providerAccountId: z.string(), - refresh_token: z.string().optional().nullable(), - access_token: z.string().optional().nullable(), - expires_at: z.number().int().optional().nullable(), - ext_expires_in: z.number().int().optional().nullable(), - token_type: z.string().optional().nullable(), - scope: z.string().optional().nullable(), - id_token: z.string().optional().nullable(), - session_state: z.string().optional().nullable(), - oauth_token_secret: z.string().optional().nullable(), - oauth_token: z.string().optional().nullable() -}).strict(); - -export const AccountUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - provider: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - providerAccountId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - refresh_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - access_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expires_at: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ext_expires_in: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - token_type: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - id_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - session_state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - oauth_token_secret: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - oauth_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - user: z.lazy(() => UserUpdateOneRequiredWithoutAccountsNestedInputSchema).optional() -}).strict(); - -export const AccountUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - provider: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - providerAccountId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - refresh_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - access_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expires_at: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ext_expires_in: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - token_type: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - id_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - session_state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - oauth_token_secret: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - oauth_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const AccountCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - userId: z.string(), - type: z.string(), - provider: z.string(), - providerAccountId: z.string(), - refresh_token: z.string().optional().nullable(), - access_token: z.string().optional().nullable(), - expires_at: z.number().int().optional().nullable(), - ext_expires_in: z.number().int().optional().nullable(), - token_type: z.string().optional().nullable(), - scope: z.string().optional().nullable(), - id_token: z.string().optional().nullable(), - session_state: z.string().optional().nullable(), - oauth_token_secret: z.string().optional().nullable(), - oauth_token: z.string().optional().nullable() -}).strict(); - -export const AccountUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - provider: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - providerAccountId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - refresh_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - access_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expires_at: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ext_expires_in: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - token_type: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - id_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - session_state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - oauth_token_secret: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - oauth_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const AccountUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - provider: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - providerAccountId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - refresh_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - access_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expires_at: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ext_expires_in: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - token_type: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - id_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - session_state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - oauth_token_secret: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - oauth_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const SessionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - sessionToken: z.string(), - expires: z.coerce.date(), - user: z.lazy(() => UserCreateNestedOneWithoutSessionsInputSchema) -}).strict(); - -export const SessionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - sessionToken: z.string(), - userId: z.string(), - expires: z.coerce.date() -}).strict(); - -export const SessionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sessionToken: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expires: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - user: z.lazy(() => UserUpdateOneRequiredWithoutSessionsNestedInputSchema).optional() -}).strict(); - -export const SessionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sessionToken: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expires: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SessionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - sessionToken: z.string(), - userId: z.string(), - expires: z.coerce.date() -}).strict(); - -export const SessionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sessionToken: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expires: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SessionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sessionToken: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expires: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const UserCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string().optional().nullable(), - email: z.string().optional().nullable(), - emailVerified: z.coerce.date().optional().nullable(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - games: z.lazy(() => User_GameCreateNestedManyWithoutUserInputSchema).optional(), - accounts: z.lazy(() => AccountCreateNestedManyWithoutUserInputSchema).optional(), - sessions: z.lazy(() => SessionCreateNestedManyWithoutUserInputSchema).optional() -}).strict(); - -export const UserUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string().optional().nullable(), - email: z.string().optional().nullable(), - emailVerified: z.coerce.date().optional().nullable(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - games: z.lazy(() => User_GameUncheckedCreateNestedManyWithoutUserInputSchema).optional(), - accounts: z.lazy(() => AccountUncheckedCreateNestedManyWithoutUserInputSchema).optional(), - sessions: z.lazy(() => SessionUncheckedCreateNestedManyWithoutUserInputSchema).optional() -}).strict(); - -export const UserUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailVerified: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - games: z.lazy(() => User_GameUpdateManyWithoutUserNestedInputSchema).optional(), - accounts: z.lazy(() => AccountUpdateManyWithoutUserNestedInputSchema).optional(), - sessions: z.lazy(() => SessionUpdateManyWithoutUserNestedInputSchema).optional() -}).strict(); - -export const UserUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailVerified: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - games: z.lazy(() => User_GameUncheckedUpdateManyWithoutUserNestedInputSchema).optional(), - accounts: z.lazy(() => AccountUncheckedUpdateManyWithoutUserNestedInputSchema).optional(), - sessions: z.lazy(() => SessionUncheckedUpdateManyWithoutUserNestedInputSchema).optional() -}).strict(); - -export const UserCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string().optional().nullable(), - email: z.string().optional().nullable(), - emailVerified: z.coerce.date().optional().nullable(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const UserUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailVerified: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const UserUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailVerified: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const VerificationTokenCreateInputSchema: z.ZodType = z.object({ - identifier: z.string(), - token: z.string(), - expires: z.coerce.date() -}).strict(); - -export const VerificationTokenUncheckedCreateInputSchema: z.ZodType = z.object({ - identifier: z.string(), - token: z.string(), - expires: z.coerce.date() -}).strict(); - -export const VerificationTokenUpdateInputSchema: z.ZodType = z.object({ - identifier: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expires: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const VerificationTokenUncheckedUpdateInputSchema: z.ZodType = z.object({ - identifier: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expires: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const VerificationTokenCreateManyInputSchema: z.ZodType = z.object({ - identifier: z.string(), - token: z.string(), - expires: z.coerce.date() -}).strict(); - -export const VerificationTokenUpdateManyMutationInputSchema: z.ZodType = z.object({ - identifier: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expires: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const VerificationTokenUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - identifier: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expires: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const GameCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - state: z.lazy(() => GameStateSchema).optional(), - allowSpectators: z.boolean().optional(), - allowSpecials: z.boolean().optional(), - allowChat: z.boolean().optional(), - allowMarkDraw: z.boolean().optional(), - gamePin: z.lazy(() => GamepinCreateNestedOneWithoutGameInputSchema).optional(), - users: z.lazy(() => User_GameCreateNestedManyWithoutGameInputSchema).optional() -}).strict(); - -export const GameUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - state: z.lazy(() => GameStateSchema).optional(), - allowSpectators: z.boolean().optional(), - allowSpecials: z.boolean().optional(), - allowChat: z.boolean().optional(), - allowMarkDraw: z.boolean().optional(), - gamePin: z.lazy(() => GamepinUncheckedCreateNestedOneWithoutGameInputSchema).optional(), - users: z.lazy(() => User_GameUncheckedCreateNestedManyWithoutGameInputSchema).optional() -}).strict(); - -export const GameUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - state: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => EnumGameStateFieldUpdateOperationsInputSchema) ]).optional(), - allowSpectators: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowSpecials: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowChat: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowMarkDraw: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - gamePin: z.lazy(() => GamepinUpdateOneWithoutGameNestedInputSchema).optional(), - users: z.lazy(() => User_GameUpdateManyWithoutGameNestedInputSchema).optional() -}).strict(); - -export const GameUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - state: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => EnumGameStateFieldUpdateOperationsInputSchema) ]).optional(), - allowSpectators: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowSpecials: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowChat: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowMarkDraw: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - gamePin: z.lazy(() => GamepinUncheckedUpdateOneWithoutGameNestedInputSchema).optional(), - users: z.lazy(() => User_GameUncheckedUpdateManyWithoutGameNestedInputSchema).optional() -}).strict(); - -export const GameCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - state: z.lazy(() => GameStateSchema).optional(), - allowSpectators: z.boolean().optional(), - allowSpecials: z.boolean().optional(), - allowChat: z.boolean().optional(), - allowMarkDraw: z.boolean().optional() -}).strict(); - -export const GameUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - state: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => EnumGameStateFieldUpdateOperationsInputSchema) ]).optional(), - allowSpectators: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowSpecials: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowChat: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowMarkDraw: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const GameUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - state: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => EnumGameStateFieldUpdateOperationsInputSchema) ]).optional(), - allowSpectators: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowSpecials: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowChat: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowMarkDraw: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const GamepinCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - pin: z.string(), - game: z.lazy(() => GameCreateNestedOneWithoutGamePinInputSchema) -}).strict(); - -export const GamepinUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - pin: z.string(), - gameId: z.string() -}).strict(); - -export const GamepinUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - pin: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - game: z.lazy(() => GameUpdateOneRequiredWithoutGamePinNestedInputSchema).optional() -}).strict(); - -export const GamepinUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - pin: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const GamepinCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - pin: z.string(), - gameId: z.string() -}).strict(); - -export const GamepinUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - pin: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const GamepinUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - pin: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ShipCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - size: z.number().int(), - variant: z.number().int(), - x: z.number().int(), - y: z.number().int(), - orientation: z.lazy(() => OrientationSchema), - User_Game: z.lazy(() => User_GameCreateNestedOneWithoutShipsInputSchema) -}).strict(); - -export const ShipUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - size: z.number().int(), - variant: z.number().int(), - x: z.number().int(), - y: z.number().int(), - orientation: z.lazy(() => OrientationSchema), - user_GameId: z.string() -}).strict(); - -export const ShipUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - size: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - variant: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(), - User_Game: z.lazy(() => User_GameUpdateOneRequiredWithoutShipsNestedInputSchema).optional() -}).strict(); - -export const ShipUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - size: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - variant: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(), - user_GameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ShipCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - size: z.number().int(), - variant: z.number().int(), - x: z.number().int(), - y: z.number().int(), - orientation: z.lazy(() => OrientationSchema), - user_GameId: z.string() -}).strict(); - -export const ShipUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - size: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - variant: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ShipUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - size: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - variant: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(), - user_GameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const HitCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - x: z.number().int(), - y: z.number().int(), - hit: z.boolean(), - User_Game: z.lazy(() => User_GameCreateNestedOneWithoutHitsInputSchema) -}).strict(); - -export const HitUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - x: z.number().int(), - y: z.number().int(), - hit: z.boolean(), - user_GameId: z.string() -}).strict(); - -export const HitUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - hit: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - User_Game: z.lazy(() => User_GameUpdateOneRequiredWithoutHitsNestedInputSchema).optional() -}).strict(); - -export const HitUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - hit: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - user_GameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const HitCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - x: z.number().int(), - y: z.number().int(), - hit: z.boolean(), - user_GameId: z.string() -}).strict(); - -export const HitUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - hit: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const HitUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - hit: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - user_GameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const User_GameCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - index: z.number().int(), - moves: z.lazy(() => MoveCreateNestedManyWithoutUser_gameInputSchema).optional(), - ships: z.lazy(() => ShipCreateNestedManyWithoutUser_GameInputSchema).optional(), - hits: z.lazy(() => HitCreateNestedManyWithoutUser_GameInputSchema).optional(), - chats: z.lazy(() => ChatCreateNestedManyWithoutUser_gameInputSchema).optional(), - game: z.lazy(() => GameCreateNestedOneWithoutUsersInputSchema), - user: z.lazy(() => UserCreateNestedOneWithoutGamesInputSchema) -}).strict(); - -export const User_GameUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - gameId: z.string(), - userId: z.string(), - index: z.number().int(), - moves: z.lazy(() => MoveUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional(), - ships: z.lazy(() => ShipUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional(), - hits: z.lazy(() => HitUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional(), - chats: z.lazy(() => ChatUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional() -}).strict(); - -export const User_GameUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - moves: z.lazy(() => MoveUpdateManyWithoutUser_gameNestedInputSchema).optional(), - ships: z.lazy(() => ShipUpdateManyWithoutUser_GameNestedInputSchema).optional(), - hits: z.lazy(() => HitUpdateManyWithoutUser_GameNestedInputSchema).optional(), - chats: z.lazy(() => ChatUpdateManyWithoutUser_gameNestedInputSchema).optional(), - game: z.lazy(() => GameUpdateOneRequiredWithoutUsersNestedInputSchema).optional(), - user: z.lazy(() => UserUpdateOneRequiredWithoutGamesNestedInputSchema).optional() -}).strict(); - -export const User_GameUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - moves: z.lazy(() => MoveUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional(), - ships: z.lazy(() => ShipUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional(), - hits: z.lazy(() => HitUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional(), - chats: z.lazy(() => ChatUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional() -}).strict(); - -export const User_GameCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - gameId: z.string(), - userId: z.string(), - index: z.number().int() -}).strict(); - -export const User_GameUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const User_GameUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const MoveCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - index: z.number().int(), - type: z.lazy(() => MoveTypeSchema), - x: z.number().int(), - y: z.number().int(), - orientation: z.lazy(() => OrientationSchema), - user_game: z.lazy(() => User_GameCreateNestedOneWithoutMovesInputSchema) -}).strict(); - -export const MoveUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - index: z.number().int(), - type: z.lazy(() => MoveTypeSchema), - x: z.number().int(), - y: z.number().int(), - orientation: z.lazy(() => OrientationSchema), - user_game_id: z.string() -}).strict(); - -export const MoveUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => MoveTypeSchema),z.lazy(() => EnumMoveTypeFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(), - user_game: z.lazy(() => User_GameUpdateOneRequiredWithoutMovesNestedInputSchema).optional() -}).strict(); - -export const MoveUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => MoveTypeSchema),z.lazy(() => EnumMoveTypeFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(), - user_game_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const MoveCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - index: z.number().int(), - type: z.lazy(() => MoveTypeSchema), - x: z.number().int(), - y: z.number().int(), - orientation: z.lazy(() => OrientationSchema), - user_game_id: z.string() -}).strict(); - -export const MoveUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => MoveTypeSchema),z.lazy(() => EnumMoveTypeFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const MoveUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => MoveTypeSchema),z.lazy(() => EnumMoveTypeFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(), - user_game_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ChatCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - message: z.string().optional().nullable(), - event: z.string().optional().nullable(), - user_game: z.lazy(() => User_GameCreateNestedOneWithoutChatsInputSchema) -}).strict(); - -export const ChatUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - message: z.string().optional().nullable(), - event: z.string().optional().nullable(), - user_game_id: z.string() -}).strict(); - -export const ChatUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - event: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - user_game: z.lazy(() => User_GameUpdateOneRequiredWithoutChatsNestedInputSchema).optional() -}).strict(); - -export const ChatUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - event: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - user_game_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ChatCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - message: z.string().optional().nullable(), - event: z.string().optional().nullable(), - user_game_id: z.string() -}).strict(); - -export const ChatUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - event: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const ChatUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - event: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - user_game_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const StringFilterSchema: z.ZodType = z.object({ - equals: z.string().optional(), - in: z.string().array().optional(), - notIn: z.string().array().optional(), - lt: z.string().optional(), - lte: z.string().optional(), - gt: z.string().optional(), - gte: z.string().optional(), - contains: z.string().optional(), - startsWith: z.string().optional(), - endsWith: z.string().optional(), - mode: z.lazy(() => QueryModeSchema).optional(), - not: z.union([ z.string(),z.lazy(() => NestedStringFilterSchema) ]).optional(), -}).strict(); - -export const StringNullableFilterSchema: z.ZodType = z.object({ - equals: z.string().optional().nullable(), - in: z.string().array().optional().nullable(), - notIn: z.string().array().optional().nullable(), - lt: z.string().optional(), - lte: z.string().optional(), - gt: z.string().optional(), - gte: z.string().optional(), - contains: z.string().optional(), - startsWith: z.string().optional(), - endsWith: z.string().optional(), - mode: z.lazy(() => QueryModeSchema).optional(), - not: z.union([ z.string(),z.lazy(() => NestedStringNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const IntNullableFilterSchema: z.ZodType = z.object({ - equals: z.number().optional().nullable(), - in: z.number().array().optional().nullable(), - notIn: z.number().array().optional().nullable(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedIntNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const UserRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => UserWhereInputSchema).optional(), - isNot: z.lazy(() => UserWhereInputSchema).optional() -}).strict(); - -export const SortOrderInputSchema: z.ZodType = z.object({ - sort: z.lazy(() => SortOrderSchema), - nulls: z.lazy(() => NullsOrderSchema).optional() -}).strict(); - -export const AccountProviderProviderAccountIdCompoundUniqueInputSchema: z.ZodType = z.object({ - provider: z.string(), - providerAccountId: z.string() -}).strict(); - -export const AccountCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - provider: z.lazy(() => SortOrderSchema).optional(), - providerAccountId: z.lazy(() => SortOrderSchema).optional(), - refresh_token: z.lazy(() => SortOrderSchema).optional(), - access_token: z.lazy(() => SortOrderSchema).optional(), - expires_at: z.lazy(() => SortOrderSchema).optional(), - ext_expires_in: z.lazy(() => SortOrderSchema).optional(), - token_type: z.lazy(() => SortOrderSchema).optional(), - scope: z.lazy(() => SortOrderSchema).optional(), - id_token: z.lazy(() => SortOrderSchema).optional(), - session_state: z.lazy(() => SortOrderSchema).optional(), - oauth_token_secret: z.lazy(() => SortOrderSchema).optional(), - oauth_token: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const AccountAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - expires_at: z.lazy(() => SortOrderSchema).optional(), - ext_expires_in: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const AccountMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - provider: z.lazy(() => SortOrderSchema).optional(), - providerAccountId: z.lazy(() => SortOrderSchema).optional(), - refresh_token: z.lazy(() => SortOrderSchema).optional(), - access_token: z.lazy(() => SortOrderSchema).optional(), - expires_at: z.lazy(() => SortOrderSchema).optional(), - ext_expires_in: z.lazy(() => SortOrderSchema).optional(), - token_type: z.lazy(() => SortOrderSchema).optional(), - scope: z.lazy(() => SortOrderSchema).optional(), - id_token: z.lazy(() => SortOrderSchema).optional(), - session_state: z.lazy(() => SortOrderSchema).optional(), - oauth_token_secret: z.lazy(() => SortOrderSchema).optional(), - oauth_token: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const AccountMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - provider: z.lazy(() => SortOrderSchema).optional(), - providerAccountId: z.lazy(() => SortOrderSchema).optional(), - refresh_token: z.lazy(() => SortOrderSchema).optional(), - access_token: z.lazy(() => SortOrderSchema).optional(), - expires_at: z.lazy(() => SortOrderSchema).optional(), - ext_expires_in: z.lazy(() => SortOrderSchema).optional(), - token_type: z.lazy(() => SortOrderSchema).optional(), - scope: z.lazy(() => SortOrderSchema).optional(), - id_token: z.lazy(() => SortOrderSchema).optional(), - session_state: z.lazy(() => SortOrderSchema).optional(), - oauth_token_secret: z.lazy(() => SortOrderSchema).optional(), - oauth_token: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const AccountSumOrderByAggregateInputSchema: z.ZodType = z.object({ - expires_at: z.lazy(() => SortOrderSchema).optional(), - ext_expires_in: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const StringWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.string().optional(), - in: z.string().array().optional(), - notIn: z.string().array().optional(), - lt: z.string().optional(), - lte: z.string().optional(), - gt: z.string().optional(), - gte: z.string().optional(), - contains: z.string().optional(), - startsWith: z.string().optional(), - endsWith: z.string().optional(), - mode: z.lazy(() => QueryModeSchema).optional(), - not: z.union([ z.string(),z.lazy(() => NestedStringWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedStringFilterSchema).optional(), - _max: z.lazy(() => NestedStringFilterSchema).optional() -}).strict(); - -export const StringNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.string().optional().nullable(), - in: z.string().array().optional().nullable(), - notIn: z.string().array().optional().nullable(), - lt: z.string().optional(), - lte: z.string().optional(), - gt: z.string().optional(), - gte: z.string().optional(), - contains: z.string().optional(), - startsWith: z.string().optional(), - endsWith: z.string().optional(), - mode: z.lazy(() => QueryModeSchema).optional(), - not: z.union([ z.string(),z.lazy(() => NestedStringNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedStringNullableFilterSchema).optional(), - _max: z.lazy(() => NestedStringNullableFilterSchema).optional() -}).strict(); - -export const IntNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.number().optional().nullable(), - in: z.number().array().optional().nullable(), - notIn: z.number().array().optional().nullable(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedIntNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _avg: z.lazy(() => NestedFloatNullableFilterSchema).optional(), - _sum: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _max: z.lazy(() => NestedIntNullableFilterSchema).optional() -}).strict(); - -export const DateTimeFilterSchema: z.ZodType = z.object({ - equals: z.coerce.date().optional(), - in: z.coerce.date().array().optional(), - notIn: z.coerce.date().array().optional(), - lt: z.coerce.date().optional(), - lte: z.coerce.date().optional(), - gt: z.coerce.date().optional(), - gte: z.coerce.date().optional(), - not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeFilterSchema) ]).optional(), -}).strict(); - -export const SessionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - sessionToken: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - expires: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SessionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - sessionToken: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - expires: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SessionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - sessionToken: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - expires: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const DateTimeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.coerce.date().optional(), - in: z.coerce.date().array().optional(), - notIn: z.coerce.date().array().optional(), - lt: z.coerce.date().optional(), - lte: z.coerce.date().optional(), - gt: z.coerce.date().optional(), - gte: z.coerce.date().optional(), - not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedDateTimeFilterSchema).optional(), - _max: z.lazy(() => NestedDateTimeFilterSchema).optional() -}).strict(); - -export const DateTimeNullableFilterSchema: z.ZodType = z.object({ - equals: z.coerce.date().optional().nullable(), - in: z.coerce.date().array().optional().nullable(), - notIn: z.coerce.date().array().optional().nullable(), - lt: z.coerce.date().optional(), - lte: z.coerce.date().optional(), - gt: z.coerce.date().optional(), - gte: z.coerce.date().optional(), - not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const User_GameListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => User_GameWhereInputSchema).optional(), - some: z.lazy(() => User_GameWhereInputSchema).optional(), - none: z.lazy(() => User_GameWhereInputSchema).optional() -}).strict(); - -export const AccountListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => AccountWhereInputSchema).optional(), - some: z.lazy(() => AccountWhereInputSchema).optional(), - none: z.lazy(() => AccountWhereInputSchema).optional() -}).strict(); - -export const SessionListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => SessionWhereInputSchema).optional(), - some: z.lazy(() => SessionWhereInputSchema).optional(), - none: z.lazy(() => SessionWhereInputSchema).optional() -}).strict(); - -export const User_GameOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const AccountOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SessionOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const UserCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - emailVerified: z.lazy(() => SortOrderSchema).optional(), - image: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const UserMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - emailVerified: z.lazy(() => SortOrderSchema).optional(), - image: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const UserMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - emailVerified: z.lazy(() => SortOrderSchema).optional(), - image: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const DateTimeNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.coerce.date().optional().nullable(), - in: z.coerce.date().array().optional().nullable(), - notIn: z.coerce.date().array().optional().nullable(), - lt: z.coerce.date().optional(), - lte: z.coerce.date().optional(), - gt: z.coerce.date().optional(), - gte: z.coerce.date().optional(), - not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedDateTimeNullableFilterSchema).optional(), - _max: z.lazy(() => NestedDateTimeNullableFilterSchema).optional() -}).strict(); - -export const VerificationTokenIdentifierTokenCompoundUniqueInputSchema: z.ZodType = z.object({ - identifier: z.string(), - token: z.string() -}).strict(); - -export const VerificationTokenCountOrderByAggregateInputSchema: z.ZodType = z.object({ - identifier: z.lazy(() => SortOrderSchema).optional(), - token: z.lazy(() => SortOrderSchema).optional(), - expires: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const VerificationTokenMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - identifier: z.lazy(() => SortOrderSchema).optional(), - token: z.lazy(() => SortOrderSchema).optional(), - expires: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const VerificationTokenMinOrderByAggregateInputSchema: z.ZodType = z.object({ - identifier: z.lazy(() => SortOrderSchema).optional(), - token: z.lazy(() => SortOrderSchema).optional(), - expires: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumGameStateFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => GameStateSchema).optional(), - in: z.lazy(() => GameStateSchema).array().optional(), - notIn: z.lazy(() => GameStateSchema).array().optional(), - not: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => NestedEnumGameStateFilterSchema) ]).optional(), -}).strict(); - -export const BoolFilterSchema: z.ZodType = z.object({ - equals: z.boolean().optional(), - not: z.union([ z.boolean(),z.lazy(() => NestedBoolFilterSchema) ]).optional(), -}).strict(); - -export const GamepinNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => GamepinWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => GamepinWhereInputSchema).optional().nullable() -}).strict(); - -export const GameCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - state: z.lazy(() => SortOrderSchema).optional(), - allowSpectators: z.lazy(() => SortOrderSchema).optional(), - allowSpecials: z.lazy(() => SortOrderSchema).optional(), - allowChat: z.lazy(() => SortOrderSchema).optional(), - allowMarkDraw: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const GameMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - state: z.lazy(() => SortOrderSchema).optional(), - allowSpectators: z.lazy(() => SortOrderSchema).optional(), - allowSpecials: z.lazy(() => SortOrderSchema).optional(), - allowChat: z.lazy(() => SortOrderSchema).optional(), - allowMarkDraw: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const GameMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - state: z.lazy(() => SortOrderSchema).optional(), - allowSpectators: z.lazy(() => SortOrderSchema).optional(), - allowSpecials: z.lazy(() => SortOrderSchema).optional(), - allowChat: z.lazy(() => SortOrderSchema).optional(), - allowMarkDraw: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumGameStateWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => GameStateSchema).optional(), - in: z.lazy(() => GameStateSchema).array().optional(), - notIn: z.lazy(() => GameStateSchema).array().optional(), - not: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => NestedEnumGameStateWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumGameStateFilterSchema).optional(), - _max: z.lazy(() => NestedEnumGameStateFilterSchema).optional() -}).strict(); - -export const BoolWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.boolean().optional(), - not: z.union([ z.boolean(),z.lazy(() => NestedBoolWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedBoolFilterSchema).optional(), - _max: z.lazy(() => NestedBoolFilterSchema).optional() -}).strict(); - -export const GameRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => GameWhereInputSchema).optional(), - isNot: z.lazy(() => GameWhereInputSchema).optional() -}).strict(); - -export const GamepinCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - pin: z.lazy(() => SortOrderSchema).optional(), - gameId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const GamepinMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - pin: z.lazy(() => SortOrderSchema).optional(), - gameId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const GamepinMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - pin: z.lazy(() => SortOrderSchema).optional(), - gameId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const IntFilterSchema: z.ZodType = z.object({ - equals: z.number().optional(), - in: z.number().array().optional(), - notIn: z.number().array().optional(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedIntFilterSchema) ]).optional(), -}).strict(); - -export const EnumOrientationFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => OrientationSchema).optional(), - in: z.lazy(() => OrientationSchema).array().optional(), - notIn: z.lazy(() => OrientationSchema).array().optional(), - not: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => NestedEnumOrientationFilterSchema) ]).optional(), -}).strict(); - -export const User_GameRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => User_GameWhereInputSchema).optional(), - isNot: z.lazy(() => User_GameWhereInputSchema).optional() -}).strict(); - -export const ShipCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - size: z.lazy(() => SortOrderSchema).optional(), - variant: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional(), - orientation: z.lazy(() => SortOrderSchema).optional(), - user_GameId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ShipAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - size: z.lazy(() => SortOrderSchema).optional(), - variant: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ShipMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - size: z.lazy(() => SortOrderSchema).optional(), - variant: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional(), - orientation: z.lazy(() => SortOrderSchema).optional(), - user_GameId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ShipMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - size: z.lazy(() => SortOrderSchema).optional(), - variant: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional(), - orientation: z.lazy(() => SortOrderSchema).optional(), - user_GameId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ShipSumOrderByAggregateInputSchema: z.ZodType = z.object({ - size: z.lazy(() => SortOrderSchema).optional(), - variant: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const IntWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.number().optional(), - in: z.number().array().optional(), - notIn: z.number().array().optional(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedIntWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _avg: z.lazy(() => NestedFloatFilterSchema).optional(), - _sum: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedIntFilterSchema).optional(), - _max: z.lazy(() => NestedIntFilterSchema).optional() -}).strict(); - -export const EnumOrientationWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => OrientationSchema).optional(), - in: z.lazy(() => OrientationSchema).array().optional(), - notIn: z.lazy(() => OrientationSchema).array().optional(), - not: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => NestedEnumOrientationWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumOrientationFilterSchema).optional(), - _max: z.lazy(() => NestedEnumOrientationFilterSchema).optional() -}).strict(); - -export const HitCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional(), - hit: z.lazy(() => SortOrderSchema).optional(), - user_GameId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const HitAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const HitMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional(), - hit: z.lazy(() => SortOrderSchema).optional(), - user_GameId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const HitMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional(), - hit: z.lazy(() => SortOrderSchema).optional(), - user_GameId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const HitSumOrderByAggregateInputSchema: z.ZodType = z.object({ - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const MoveListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => MoveWhereInputSchema).optional(), - some: z.lazy(() => MoveWhereInputSchema).optional(), - none: z.lazy(() => MoveWhereInputSchema).optional() -}).strict(); - -export const ShipListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => ShipWhereInputSchema).optional(), - some: z.lazy(() => ShipWhereInputSchema).optional(), - none: z.lazy(() => ShipWhereInputSchema).optional() -}).strict(); - -export const HitListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => HitWhereInputSchema).optional(), - some: z.lazy(() => HitWhereInputSchema).optional(), - none: z.lazy(() => HitWhereInputSchema).optional() -}).strict(); - -export const ChatListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => ChatWhereInputSchema).optional(), - some: z.lazy(() => ChatWhereInputSchema).optional(), - none: z.lazy(() => ChatWhereInputSchema).optional() -}).strict(); - -export const MoveOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ShipOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const HitOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ChatOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const User_GameGameIdIndexCompoundUniqueInputSchema: z.ZodType = z.object({ - gameId: z.string(), - index: z.number() -}).strict(); - -export const User_GameGameIdUserIdCompoundUniqueInputSchema: z.ZodType = z.object({ - gameId: z.string(), - userId: z.string() -}).strict(); - -export const User_GameCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - gameId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - index: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const User_GameAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - index: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const User_GameMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - gameId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - index: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const User_GameMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - gameId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - index: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const User_GameSumOrderByAggregateInputSchema: z.ZodType = z.object({ - index: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumMoveTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => MoveTypeSchema).optional(), - in: z.lazy(() => MoveTypeSchema).array().optional(), - notIn: z.lazy(() => MoveTypeSchema).array().optional(), - not: z.union([ z.lazy(() => MoveTypeSchema),z.lazy(() => NestedEnumMoveTypeFilterSchema) ]).optional(), -}).strict(); - -export const MoveCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - index: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional(), - orientation: z.lazy(() => SortOrderSchema).optional(), - user_game_id: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const MoveAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - index: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const MoveMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - index: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional(), - orientation: z.lazy(() => SortOrderSchema).optional(), - user_game_id: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const MoveMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - index: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional(), - orientation: z.lazy(() => SortOrderSchema).optional(), - user_game_id: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const MoveSumOrderByAggregateInputSchema: z.ZodType = z.object({ - index: z.lazy(() => SortOrderSchema).optional(), - x: z.lazy(() => SortOrderSchema).optional(), - y: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumMoveTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => MoveTypeSchema).optional(), - in: z.lazy(() => MoveTypeSchema).array().optional(), - notIn: z.lazy(() => MoveTypeSchema).array().optional(), - not: z.union([ z.lazy(() => MoveTypeSchema),z.lazy(() => NestedEnumMoveTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumMoveTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumMoveTypeFilterSchema).optional() -}).strict(); - -export const ChatCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - event: z.lazy(() => SortOrderSchema).optional(), - user_game_id: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ChatMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - event: z.lazy(() => SortOrderSchema).optional(), - user_game_id: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ChatMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - event: z.lazy(() => SortOrderSchema).optional(), - user_game_id: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const UserCreateNestedOneWithoutAccountsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserCreateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedCreateWithoutAccountsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutAccountsInputSchema).optional(), - connect: z.lazy(() => UserWhereUniqueInputSchema).optional() -}).strict(); - -export const StringFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.string().optional() -}).strict(); - -export const NullableStringFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.string().optional().nullable() -}).strict(); - -export const NullableIntFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.number().optional().nullable(), - increment: z.number().optional(), - decrement: z.number().optional(), - multiply: z.number().optional(), - divide: z.number().optional() -}).strict(); - -export const UserUpdateOneRequiredWithoutAccountsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserCreateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedCreateWithoutAccountsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutAccountsInputSchema).optional(), - upsert: z.lazy(() => UserUpsertWithoutAccountsInputSchema).optional(), - connect: z.lazy(() => UserWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => UserUpdateToOneWithWhereWithoutAccountsInputSchema),z.lazy(() => UserUpdateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutAccountsInputSchema) ]).optional(), -}).strict(); - -export const UserCreateNestedOneWithoutSessionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserCreateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedCreateWithoutSessionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutSessionsInputSchema).optional(), - connect: z.lazy(() => UserWhereUniqueInputSchema).optional() -}).strict(); - -export const DateTimeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.coerce.date().optional() -}).strict(); - -export const UserUpdateOneRequiredWithoutSessionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserCreateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedCreateWithoutSessionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutSessionsInputSchema).optional(), - upsert: z.lazy(() => UserUpsertWithoutSessionsInputSchema).optional(), - connect: z.lazy(() => UserWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => UserUpdateToOneWithWhereWithoutSessionsInputSchema),z.lazy(() => UserUpdateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutSessionsInputSchema) ]).optional(), -}).strict(); - -export const User_GameCreateNestedManyWithoutUserInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => User_GameCreateWithoutUserInputSchema),z.lazy(() => User_GameCreateWithoutUserInputSchema).array(),z.lazy(() => User_GameUncheckedCreateWithoutUserInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => User_GameCreateOrConnectWithoutUserInputSchema),z.lazy(() => User_GameCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => User_GameCreateManyUserInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const AccountCreateNestedManyWithoutUserInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => AccountCreateWithoutUserInputSchema),z.lazy(() => AccountCreateWithoutUserInputSchema).array(),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => AccountCreateOrConnectWithoutUserInputSchema),z.lazy(() => AccountCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => AccountCreateManyUserInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const SessionCreateNestedManyWithoutUserInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SessionCreateWithoutUserInputSchema),z.lazy(() => SessionCreateWithoutUserInputSchema).array(),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => SessionCreateOrConnectWithoutUserInputSchema),z.lazy(() => SessionCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => SessionCreateManyUserInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const User_GameUncheckedCreateNestedManyWithoutUserInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => User_GameCreateWithoutUserInputSchema),z.lazy(() => User_GameCreateWithoutUserInputSchema).array(),z.lazy(() => User_GameUncheckedCreateWithoutUserInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => User_GameCreateOrConnectWithoutUserInputSchema),z.lazy(() => User_GameCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => User_GameCreateManyUserInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const AccountUncheckedCreateNestedManyWithoutUserInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => AccountCreateWithoutUserInputSchema),z.lazy(() => AccountCreateWithoutUserInputSchema).array(),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => AccountCreateOrConnectWithoutUserInputSchema),z.lazy(() => AccountCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => AccountCreateManyUserInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const SessionUncheckedCreateNestedManyWithoutUserInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SessionCreateWithoutUserInputSchema),z.lazy(() => SessionCreateWithoutUserInputSchema).array(),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => SessionCreateOrConnectWithoutUserInputSchema),z.lazy(() => SessionCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => SessionCreateManyUserInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const NullableDateTimeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.coerce.date().optional().nullable() -}).strict(); - -export const User_GameUpdateManyWithoutUserNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => User_GameCreateWithoutUserInputSchema),z.lazy(() => User_GameCreateWithoutUserInputSchema).array(),z.lazy(() => User_GameUncheckedCreateWithoutUserInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => User_GameCreateOrConnectWithoutUserInputSchema),z.lazy(() => User_GameCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => User_GameUpsertWithWhereUniqueWithoutUserInputSchema),z.lazy(() => User_GameUpsertWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => User_GameCreateManyUserInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => User_GameUpdateWithWhereUniqueWithoutUserInputSchema),z.lazy(() => User_GameUpdateWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => User_GameUpdateManyWithWhereWithoutUserInputSchema),z.lazy(() => User_GameUpdateManyWithWhereWithoutUserInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => User_GameScalarWhereInputSchema),z.lazy(() => User_GameScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const AccountUpdateManyWithoutUserNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => AccountCreateWithoutUserInputSchema),z.lazy(() => AccountCreateWithoutUserInputSchema).array(),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => AccountCreateOrConnectWithoutUserInputSchema),z.lazy(() => AccountCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => AccountUpsertWithWhereUniqueWithoutUserInputSchema),z.lazy(() => AccountUpsertWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => AccountCreateManyUserInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => AccountUpdateWithWhereUniqueWithoutUserInputSchema),z.lazy(() => AccountUpdateWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => AccountUpdateManyWithWhereWithoutUserInputSchema),z.lazy(() => AccountUpdateManyWithWhereWithoutUserInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => AccountScalarWhereInputSchema),z.lazy(() => AccountScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const SessionUpdateManyWithoutUserNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SessionCreateWithoutUserInputSchema),z.lazy(() => SessionCreateWithoutUserInputSchema).array(),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => SessionCreateOrConnectWithoutUserInputSchema),z.lazy(() => SessionCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => SessionUpsertWithWhereUniqueWithoutUserInputSchema),z.lazy(() => SessionUpsertWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => SessionCreateManyUserInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => SessionUpdateWithWhereUniqueWithoutUserInputSchema),z.lazy(() => SessionUpdateWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => SessionUpdateManyWithWhereWithoutUserInputSchema),z.lazy(() => SessionUpdateManyWithWhereWithoutUserInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => SessionScalarWhereInputSchema),z.lazy(() => SessionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const User_GameUncheckedUpdateManyWithoutUserNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => User_GameCreateWithoutUserInputSchema),z.lazy(() => User_GameCreateWithoutUserInputSchema).array(),z.lazy(() => User_GameUncheckedCreateWithoutUserInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => User_GameCreateOrConnectWithoutUserInputSchema),z.lazy(() => User_GameCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => User_GameUpsertWithWhereUniqueWithoutUserInputSchema),z.lazy(() => User_GameUpsertWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => User_GameCreateManyUserInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => User_GameUpdateWithWhereUniqueWithoutUserInputSchema),z.lazy(() => User_GameUpdateWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => User_GameUpdateManyWithWhereWithoutUserInputSchema),z.lazy(() => User_GameUpdateManyWithWhereWithoutUserInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => User_GameScalarWhereInputSchema),z.lazy(() => User_GameScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const AccountUncheckedUpdateManyWithoutUserNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => AccountCreateWithoutUserInputSchema),z.lazy(() => AccountCreateWithoutUserInputSchema).array(),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => AccountCreateOrConnectWithoutUserInputSchema),z.lazy(() => AccountCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => AccountUpsertWithWhereUniqueWithoutUserInputSchema),z.lazy(() => AccountUpsertWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => AccountCreateManyUserInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => AccountUpdateWithWhereUniqueWithoutUserInputSchema),z.lazy(() => AccountUpdateWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => AccountUpdateManyWithWhereWithoutUserInputSchema),z.lazy(() => AccountUpdateManyWithWhereWithoutUserInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => AccountScalarWhereInputSchema),z.lazy(() => AccountScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const SessionUncheckedUpdateManyWithoutUserNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SessionCreateWithoutUserInputSchema),z.lazy(() => SessionCreateWithoutUserInputSchema).array(),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => SessionCreateOrConnectWithoutUserInputSchema),z.lazy(() => SessionCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => SessionUpsertWithWhereUniqueWithoutUserInputSchema),z.lazy(() => SessionUpsertWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => SessionCreateManyUserInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => SessionUpdateWithWhereUniqueWithoutUserInputSchema),z.lazy(() => SessionUpdateWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => SessionUpdateManyWithWhereWithoutUserInputSchema),z.lazy(() => SessionUpdateManyWithWhereWithoutUserInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => SessionScalarWhereInputSchema),z.lazy(() => SessionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const GamepinCreateNestedOneWithoutGameInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => GamepinCreateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedCreateWithoutGameInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => GamepinCreateOrConnectWithoutGameInputSchema).optional(), - connect: z.lazy(() => GamepinWhereUniqueInputSchema).optional() -}).strict(); - -export const User_GameCreateNestedManyWithoutGameInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => User_GameCreateWithoutGameInputSchema),z.lazy(() => User_GameCreateWithoutGameInputSchema).array(),z.lazy(() => User_GameUncheckedCreateWithoutGameInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutGameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => User_GameCreateOrConnectWithoutGameInputSchema),z.lazy(() => User_GameCreateOrConnectWithoutGameInputSchema).array() ]).optional(), - createMany: z.lazy(() => User_GameCreateManyGameInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const GamepinUncheckedCreateNestedOneWithoutGameInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => GamepinCreateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedCreateWithoutGameInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => GamepinCreateOrConnectWithoutGameInputSchema).optional(), - connect: z.lazy(() => GamepinWhereUniqueInputSchema).optional() -}).strict(); - -export const User_GameUncheckedCreateNestedManyWithoutGameInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => User_GameCreateWithoutGameInputSchema),z.lazy(() => User_GameCreateWithoutGameInputSchema).array(),z.lazy(() => User_GameUncheckedCreateWithoutGameInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutGameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => User_GameCreateOrConnectWithoutGameInputSchema),z.lazy(() => User_GameCreateOrConnectWithoutGameInputSchema).array() ]).optional(), - createMany: z.lazy(() => User_GameCreateManyGameInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumGameStateFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => GameStateSchema).optional() -}).strict(); - -export const BoolFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.boolean().optional() -}).strict(); - -export const GamepinUpdateOneWithoutGameNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => GamepinCreateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedCreateWithoutGameInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => GamepinCreateOrConnectWithoutGameInputSchema).optional(), - upsert: z.lazy(() => GamepinUpsertWithoutGameInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => GamepinWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => GamepinWhereInputSchema) ]).optional(), - connect: z.lazy(() => GamepinWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => GamepinUpdateToOneWithWhereWithoutGameInputSchema),z.lazy(() => GamepinUpdateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedUpdateWithoutGameInputSchema) ]).optional(), -}).strict(); - -export const User_GameUpdateManyWithoutGameNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => User_GameCreateWithoutGameInputSchema),z.lazy(() => User_GameCreateWithoutGameInputSchema).array(),z.lazy(() => User_GameUncheckedCreateWithoutGameInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutGameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => User_GameCreateOrConnectWithoutGameInputSchema),z.lazy(() => User_GameCreateOrConnectWithoutGameInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => User_GameUpsertWithWhereUniqueWithoutGameInputSchema),z.lazy(() => User_GameUpsertWithWhereUniqueWithoutGameInputSchema).array() ]).optional(), - createMany: z.lazy(() => User_GameCreateManyGameInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => User_GameUpdateWithWhereUniqueWithoutGameInputSchema),z.lazy(() => User_GameUpdateWithWhereUniqueWithoutGameInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => User_GameUpdateManyWithWhereWithoutGameInputSchema),z.lazy(() => User_GameUpdateManyWithWhereWithoutGameInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => User_GameScalarWhereInputSchema),z.lazy(() => User_GameScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const GamepinUncheckedUpdateOneWithoutGameNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => GamepinCreateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedCreateWithoutGameInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => GamepinCreateOrConnectWithoutGameInputSchema).optional(), - upsert: z.lazy(() => GamepinUpsertWithoutGameInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => GamepinWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => GamepinWhereInputSchema) ]).optional(), - connect: z.lazy(() => GamepinWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => GamepinUpdateToOneWithWhereWithoutGameInputSchema),z.lazy(() => GamepinUpdateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedUpdateWithoutGameInputSchema) ]).optional(), -}).strict(); - -export const User_GameUncheckedUpdateManyWithoutGameNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => User_GameCreateWithoutGameInputSchema),z.lazy(() => User_GameCreateWithoutGameInputSchema).array(),z.lazy(() => User_GameUncheckedCreateWithoutGameInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutGameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => User_GameCreateOrConnectWithoutGameInputSchema),z.lazy(() => User_GameCreateOrConnectWithoutGameInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => User_GameUpsertWithWhereUniqueWithoutGameInputSchema),z.lazy(() => User_GameUpsertWithWhereUniqueWithoutGameInputSchema).array() ]).optional(), - createMany: z.lazy(() => User_GameCreateManyGameInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => User_GameUpdateWithWhereUniqueWithoutGameInputSchema),z.lazy(() => User_GameUpdateWithWhereUniqueWithoutGameInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => User_GameUpdateManyWithWhereWithoutGameInputSchema),z.lazy(() => User_GameUpdateManyWithWhereWithoutGameInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => User_GameScalarWhereInputSchema),z.lazy(() => User_GameScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const GameCreateNestedOneWithoutGamePinInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => GameCreateWithoutGamePinInputSchema),z.lazy(() => GameUncheckedCreateWithoutGamePinInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => GameCreateOrConnectWithoutGamePinInputSchema).optional(), - connect: z.lazy(() => GameWhereUniqueInputSchema).optional() -}).strict(); - -export const GameUpdateOneRequiredWithoutGamePinNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => GameCreateWithoutGamePinInputSchema),z.lazy(() => GameUncheckedCreateWithoutGamePinInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => GameCreateOrConnectWithoutGamePinInputSchema).optional(), - upsert: z.lazy(() => GameUpsertWithoutGamePinInputSchema).optional(), - connect: z.lazy(() => GameWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => GameUpdateToOneWithWhereWithoutGamePinInputSchema),z.lazy(() => GameUpdateWithoutGamePinInputSchema),z.lazy(() => GameUncheckedUpdateWithoutGamePinInputSchema) ]).optional(), -}).strict(); - -export const User_GameCreateNestedOneWithoutShipsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => User_GameCreateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutShipsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => User_GameCreateOrConnectWithoutShipsInputSchema).optional(), - connect: z.lazy(() => User_GameWhereUniqueInputSchema).optional() -}).strict(); - -export const IntFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.number().optional(), - increment: z.number().optional(), - decrement: z.number().optional(), - multiply: z.number().optional(), - divide: z.number().optional() -}).strict(); - -export const EnumOrientationFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => OrientationSchema).optional() -}).strict(); - -export const User_GameUpdateOneRequiredWithoutShipsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => User_GameCreateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutShipsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => User_GameCreateOrConnectWithoutShipsInputSchema).optional(), - upsert: z.lazy(() => User_GameUpsertWithoutShipsInputSchema).optional(), - connect: z.lazy(() => User_GameWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => User_GameUpdateToOneWithWhereWithoutShipsInputSchema),z.lazy(() => User_GameUpdateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutShipsInputSchema) ]).optional(), -}).strict(); - -export const User_GameCreateNestedOneWithoutHitsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => User_GameCreateWithoutHitsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutHitsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => User_GameCreateOrConnectWithoutHitsInputSchema).optional(), - connect: z.lazy(() => User_GameWhereUniqueInputSchema).optional() -}).strict(); - -export const User_GameUpdateOneRequiredWithoutHitsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => User_GameCreateWithoutHitsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutHitsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => User_GameCreateOrConnectWithoutHitsInputSchema).optional(), - upsert: z.lazy(() => User_GameUpsertWithoutHitsInputSchema).optional(), - connect: z.lazy(() => User_GameWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => User_GameUpdateToOneWithWhereWithoutHitsInputSchema),z.lazy(() => User_GameUpdateWithoutHitsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutHitsInputSchema) ]).optional(), -}).strict(); - -export const MoveCreateNestedManyWithoutUser_gameInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => MoveCreateWithoutUser_gameInputSchema),z.lazy(() => MoveCreateWithoutUser_gameInputSchema).array(),z.lazy(() => MoveUncheckedCreateWithoutUser_gameInputSchema),z.lazy(() => MoveUncheckedCreateWithoutUser_gameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => MoveCreateOrConnectWithoutUser_gameInputSchema),z.lazy(() => MoveCreateOrConnectWithoutUser_gameInputSchema).array() ]).optional(), - createMany: z.lazy(() => MoveCreateManyUser_gameInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => MoveWhereUniqueInputSchema),z.lazy(() => MoveWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ShipCreateNestedManyWithoutUser_GameInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ShipCreateWithoutUser_GameInputSchema),z.lazy(() => ShipCreateWithoutUser_GameInputSchema).array(),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ShipCreateOrConnectWithoutUser_GameInputSchema),z.lazy(() => ShipCreateOrConnectWithoutUser_GameInputSchema).array() ]).optional(), - createMany: z.lazy(() => ShipCreateManyUser_GameInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const HitCreateNestedManyWithoutUser_GameInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => HitCreateWithoutUser_GameInputSchema),z.lazy(() => HitCreateWithoutUser_GameInputSchema).array(),z.lazy(() => HitUncheckedCreateWithoutUser_GameInputSchema),z.lazy(() => HitUncheckedCreateWithoutUser_GameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => HitCreateOrConnectWithoutUser_GameInputSchema),z.lazy(() => HitCreateOrConnectWithoutUser_GameInputSchema).array() ]).optional(), - createMany: z.lazy(() => HitCreateManyUser_GameInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => HitWhereUniqueInputSchema),z.lazy(() => HitWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ChatCreateNestedManyWithoutUser_gameInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ChatCreateWithoutUser_gameInputSchema),z.lazy(() => ChatCreateWithoutUser_gameInputSchema).array(),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ChatCreateOrConnectWithoutUser_gameInputSchema),z.lazy(() => ChatCreateOrConnectWithoutUser_gameInputSchema).array() ]).optional(), - createMany: z.lazy(() => ChatCreateManyUser_gameInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ChatWhereUniqueInputSchema),z.lazy(() => ChatWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const GameCreateNestedOneWithoutUsersInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => GameCreateWithoutUsersInputSchema),z.lazy(() => GameUncheckedCreateWithoutUsersInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => GameCreateOrConnectWithoutUsersInputSchema).optional(), - connect: z.lazy(() => GameWhereUniqueInputSchema).optional() -}).strict(); - -export const UserCreateNestedOneWithoutGamesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserCreateWithoutGamesInputSchema),z.lazy(() => UserUncheckedCreateWithoutGamesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutGamesInputSchema).optional(), - connect: z.lazy(() => UserWhereUniqueInputSchema).optional() -}).strict(); - -export const MoveUncheckedCreateNestedManyWithoutUser_gameInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => MoveCreateWithoutUser_gameInputSchema),z.lazy(() => MoveCreateWithoutUser_gameInputSchema).array(),z.lazy(() => MoveUncheckedCreateWithoutUser_gameInputSchema),z.lazy(() => MoveUncheckedCreateWithoutUser_gameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => MoveCreateOrConnectWithoutUser_gameInputSchema),z.lazy(() => MoveCreateOrConnectWithoutUser_gameInputSchema).array() ]).optional(), - createMany: z.lazy(() => MoveCreateManyUser_gameInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => MoveWhereUniqueInputSchema),z.lazy(() => MoveWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ShipUncheckedCreateNestedManyWithoutUser_GameInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ShipCreateWithoutUser_GameInputSchema),z.lazy(() => ShipCreateWithoutUser_GameInputSchema).array(),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ShipCreateOrConnectWithoutUser_GameInputSchema),z.lazy(() => ShipCreateOrConnectWithoutUser_GameInputSchema).array() ]).optional(), - createMany: z.lazy(() => ShipCreateManyUser_GameInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const HitUncheckedCreateNestedManyWithoutUser_GameInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => HitCreateWithoutUser_GameInputSchema),z.lazy(() => HitCreateWithoutUser_GameInputSchema).array(),z.lazy(() => HitUncheckedCreateWithoutUser_GameInputSchema),z.lazy(() => HitUncheckedCreateWithoutUser_GameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => HitCreateOrConnectWithoutUser_GameInputSchema),z.lazy(() => HitCreateOrConnectWithoutUser_GameInputSchema).array() ]).optional(), - createMany: z.lazy(() => HitCreateManyUser_GameInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => HitWhereUniqueInputSchema),z.lazy(() => HitWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ChatUncheckedCreateNestedManyWithoutUser_gameInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ChatCreateWithoutUser_gameInputSchema),z.lazy(() => ChatCreateWithoutUser_gameInputSchema).array(),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ChatCreateOrConnectWithoutUser_gameInputSchema),z.lazy(() => ChatCreateOrConnectWithoutUser_gameInputSchema).array() ]).optional(), - createMany: z.lazy(() => ChatCreateManyUser_gameInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ChatWhereUniqueInputSchema),z.lazy(() => ChatWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const MoveUpdateManyWithoutUser_gameNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => MoveCreateWithoutUser_gameInputSchema),z.lazy(() => MoveCreateWithoutUser_gameInputSchema).array(),z.lazy(() => MoveUncheckedCreateWithoutUser_gameInputSchema),z.lazy(() => MoveUncheckedCreateWithoutUser_gameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => MoveCreateOrConnectWithoutUser_gameInputSchema),z.lazy(() => MoveCreateOrConnectWithoutUser_gameInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => MoveUpsertWithWhereUniqueWithoutUser_gameInputSchema),z.lazy(() => MoveUpsertWithWhereUniqueWithoutUser_gameInputSchema).array() ]).optional(), - createMany: z.lazy(() => MoveCreateManyUser_gameInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => MoveWhereUniqueInputSchema),z.lazy(() => MoveWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => MoveWhereUniqueInputSchema),z.lazy(() => MoveWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => MoveWhereUniqueInputSchema),z.lazy(() => MoveWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => MoveWhereUniqueInputSchema),z.lazy(() => MoveWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => MoveUpdateWithWhereUniqueWithoutUser_gameInputSchema),z.lazy(() => MoveUpdateWithWhereUniqueWithoutUser_gameInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => MoveUpdateManyWithWhereWithoutUser_gameInputSchema),z.lazy(() => MoveUpdateManyWithWhereWithoutUser_gameInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => MoveScalarWhereInputSchema),z.lazy(() => MoveScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ShipUpdateManyWithoutUser_GameNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ShipCreateWithoutUser_GameInputSchema),z.lazy(() => ShipCreateWithoutUser_GameInputSchema).array(),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ShipCreateOrConnectWithoutUser_GameInputSchema),z.lazy(() => ShipCreateOrConnectWithoutUser_GameInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ShipUpsertWithWhereUniqueWithoutUser_GameInputSchema),z.lazy(() => ShipUpsertWithWhereUniqueWithoutUser_GameInputSchema).array() ]).optional(), - createMany: z.lazy(() => ShipCreateManyUser_GameInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ShipUpdateWithWhereUniqueWithoutUser_GameInputSchema),z.lazy(() => ShipUpdateWithWhereUniqueWithoutUser_GameInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ShipUpdateManyWithWhereWithoutUser_GameInputSchema),z.lazy(() => ShipUpdateManyWithWhereWithoutUser_GameInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ShipScalarWhereInputSchema),z.lazy(() => ShipScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const HitUpdateManyWithoutUser_GameNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => HitCreateWithoutUser_GameInputSchema),z.lazy(() => HitCreateWithoutUser_GameInputSchema).array(),z.lazy(() => HitUncheckedCreateWithoutUser_GameInputSchema),z.lazy(() => HitUncheckedCreateWithoutUser_GameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => HitCreateOrConnectWithoutUser_GameInputSchema),z.lazy(() => HitCreateOrConnectWithoutUser_GameInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => HitUpsertWithWhereUniqueWithoutUser_GameInputSchema),z.lazy(() => HitUpsertWithWhereUniqueWithoutUser_GameInputSchema).array() ]).optional(), - createMany: z.lazy(() => HitCreateManyUser_GameInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => HitWhereUniqueInputSchema),z.lazy(() => HitWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => HitWhereUniqueInputSchema),z.lazy(() => HitWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => HitWhereUniqueInputSchema),z.lazy(() => HitWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => HitWhereUniqueInputSchema),z.lazy(() => HitWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => HitUpdateWithWhereUniqueWithoutUser_GameInputSchema),z.lazy(() => HitUpdateWithWhereUniqueWithoutUser_GameInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => HitUpdateManyWithWhereWithoutUser_GameInputSchema),z.lazy(() => HitUpdateManyWithWhereWithoutUser_GameInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => HitScalarWhereInputSchema),z.lazy(() => HitScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ChatUpdateManyWithoutUser_gameNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ChatCreateWithoutUser_gameInputSchema),z.lazy(() => ChatCreateWithoutUser_gameInputSchema).array(),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ChatCreateOrConnectWithoutUser_gameInputSchema),z.lazy(() => ChatCreateOrConnectWithoutUser_gameInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ChatUpsertWithWhereUniqueWithoutUser_gameInputSchema),z.lazy(() => ChatUpsertWithWhereUniqueWithoutUser_gameInputSchema).array() ]).optional(), - createMany: z.lazy(() => ChatCreateManyUser_gameInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ChatWhereUniqueInputSchema),z.lazy(() => ChatWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ChatWhereUniqueInputSchema),z.lazy(() => ChatWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ChatWhereUniqueInputSchema),z.lazy(() => ChatWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ChatWhereUniqueInputSchema),z.lazy(() => ChatWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ChatUpdateWithWhereUniqueWithoutUser_gameInputSchema),z.lazy(() => ChatUpdateWithWhereUniqueWithoutUser_gameInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ChatUpdateManyWithWhereWithoutUser_gameInputSchema),z.lazy(() => ChatUpdateManyWithWhereWithoutUser_gameInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ChatScalarWhereInputSchema),z.lazy(() => ChatScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const GameUpdateOneRequiredWithoutUsersNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => GameCreateWithoutUsersInputSchema),z.lazy(() => GameUncheckedCreateWithoutUsersInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => GameCreateOrConnectWithoutUsersInputSchema).optional(), - upsert: z.lazy(() => GameUpsertWithoutUsersInputSchema).optional(), - connect: z.lazy(() => GameWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => GameUpdateToOneWithWhereWithoutUsersInputSchema),z.lazy(() => GameUpdateWithoutUsersInputSchema),z.lazy(() => GameUncheckedUpdateWithoutUsersInputSchema) ]).optional(), -}).strict(); - -export const UserUpdateOneRequiredWithoutGamesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserCreateWithoutGamesInputSchema),z.lazy(() => UserUncheckedCreateWithoutGamesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutGamesInputSchema).optional(), - upsert: z.lazy(() => UserUpsertWithoutGamesInputSchema).optional(), - connect: z.lazy(() => UserWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => UserUpdateToOneWithWhereWithoutGamesInputSchema),z.lazy(() => UserUpdateWithoutGamesInputSchema),z.lazy(() => UserUncheckedUpdateWithoutGamesInputSchema) ]).optional(), -}).strict(); - -export const MoveUncheckedUpdateManyWithoutUser_gameNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => MoveCreateWithoutUser_gameInputSchema),z.lazy(() => MoveCreateWithoutUser_gameInputSchema).array(),z.lazy(() => MoveUncheckedCreateWithoutUser_gameInputSchema),z.lazy(() => MoveUncheckedCreateWithoutUser_gameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => MoveCreateOrConnectWithoutUser_gameInputSchema),z.lazy(() => MoveCreateOrConnectWithoutUser_gameInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => MoveUpsertWithWhereUniqueWithoutUser_gameInputSchema),z.lazy(() => MoveUpsertWithWhereUniqueWithoutUser_gameInputSchema).array() ]).optional(), - createMany: z.lazy(() => MoveCreateManyUser_gameInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => MoveWhereUniqueInputSchema),z.lazy(() => MoveWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => MoveWhereUniqueInputSchema),z.lazy(() => MoveWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => MoveWhereUniqueInputSchema),z.lazy(() => MoveWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => MoveWhereUniqueInputSchema),z.lazy(() => MoveWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => MoveUpdateWithWhereUniqueWithoutUser_gameInputSchema),z.lazy(() => MoveUpdateWithWhereUniqueWithoutUser_gameInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => MoveUpdateManyWithWhereWithoutUser_gameInputSchema),z.lazy(() => MoveUpdateManyWithWhereWithoutUser_gameInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => MoveScalarWhereInputSchema),z.lazy(() => MoveScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ShipUncheckedUpdateManyWithoutUser_GameNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ShipCreateWithoutUser_GameInputSchema),z.lazy(() => ShipCreateWithoutUser_GameInputSchema).array(),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ShipCreateOrConnectWithoutUser_GameInputSchema),z.lazy(() => ShipCreateOrConnectWithoutUser_GameInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ShipUpsertWithWhereUniqueWithoutUser_GameInputSchema),z.lazy(() => ShipUpsertWithWhereUniqueWithoutUser_GameInputSchema).array() ]).optional(), - createMany: z.lazy(() => ShipCreateManyUser_GameInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ShipUpdateWithWhereUniqueWithoutUser_GameInputSchema),z.lazy(() => ShipUpdateWithWhereUniqueWithoutUser_GameInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ShipUpdateManyWithWhereWithoutUser_GameInputSchema),z.lazy(() => ShipUpdateManyWithWhereWithoutUser_GameInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ShipScalarWhereInputSchema),z.lazy(() => ShipScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const HitUncheckedUpdateManyWithoutUser_GameNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => HitCreateWithoutUser_GameInputSchema),z.lazy(() => HitCreateWithoutUser_GameInputSchema).array(),z.lazy(() => HitUncheckedCreateWithoutUser_GameInputSchema),z.lazy(() => HitUncheckedCreateWithoutUser_GameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => HitCreateOrConnectWithoutUser_GameInputSchema),z.lazy(() => HitCreateOrConnectWithoutUser_GameInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => HitUpsertWithWhereUniqueWithoutUser_GameInputSchema),z.lazy(() => HitUpsertWithWhereUniqueWithoutUser_GameInputSchema).array() ]).optional(), - createMany: z.lazy(() => HitCreateManyUser_GameInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => HitWhereUniqueInputSchema),z.lazy(() => HitWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => HitWhereUniqueInputSchema),z.lazy(() => HitWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => HitWhereUniqueInputSchema),z.lazy(() => HitWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => HitWhereUniqueInputSchema),z.lazy(() => HitWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => HitUpdateWithWhereUniqueWithoutUser_GameInputSchema),z.lazy(() => HitUpdateWithWhereUniqueWithoutUser_GameInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => HitUpdateManyWithWhereWithoutUser_GameInputSchema),z.lazy(() => HitUpdateManyWithWhereWithoutUser_GameInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => HitScalarWhereInputSchema),z.lazy(() => HitScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ChatUncheckedUpdateManyWithoutUser_gameNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ChatCreateWithoutUser_gameInputSchema),z.lazy(() => ChatCreateWithoutUser_gameInputSchema).array(),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ChatCreateOrConnectWithoutUser_gameInputSchema),z.lazy(() => ChatCreateOrConnectWithoutUser_gameInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ChatUpsertWithWhereUniqueWithoutUser_gameInputSchema),z.lazy(() => ChatUpsertWithWhereUniqueWithoutUser_gameInputSchema).array() ]).optional(), - createMany: z.lazy(() => ChatCreateManyUser_gameInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ChatWhereUniqueInputSchema),z.lazy(() => ChatWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ChatWhereUniqueInputSchema),z.lazy(() => ChatWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ChatWhereUniqueInputSchema),z.lazy(() => ChatWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ChatWhereUniqueInputSchema),z.lazy(() => ChatWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ChatUpdateWithWhereUniqueWithoutUser_gameInputSchema),z.lazy(() => ChatUpdateWithWhereUniqueWithoutUser_gameInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ChatUpdateManyWithWhereWithoutUser_gameInputSchema),z.lazy(() => ChatUpdateManyWithWhereWithoutUser_gameInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ChatScalarWhereInputSchema),z.lazy(() => ChatScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const User_GameCreateNestedOneWithoutMovesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => User_GameCreateWithoutMovesInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutMovesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => User_GameCreateOrConnectWithoutMovesInputSchema).optional(), - connect: z.lazy(() => User_GameWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumMoveTypeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => MoveTypeSchema).optional() -}).strict(); - -export const User_GameUpdateOneRequiredWithoutMovesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => User_GameCreateWithoutMovesInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutMovesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => User_GameCreateOrConnectWithoutMovesInputSchema).optional(), - upsert: z.lazy(() => User_GameUpsertWithoutMovesInputSchema).optional(), - connect: z.lazy(() => User_GameWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => User_GameUpdateToOneWithWhereWithoutMovesInputSchema),z.lazy(() => User_GameUpdateWithoutMovesInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutMovesInputSchema) ]).optional(), -}).strict(); - -export const User_GameCreateNestedOneWithoutChatsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => User_GameCreateWithoutChatsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutChatsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => User_GameCreateOrConnectWithoutChatsInputSchema).optional(), - connect: z.lazy(() => User_GameWhereUniqueInputSchema).optional() -}).strict(); - -export const User_GameUpdateOneRequiredWithoutChatsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => User_GameCreateWithoutChatsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutChatsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => User_GameCreateOrConnectWithoutChatsInputSchema).optional(), - upsert: z.lazy(() => User_GameUpsertWithoutChatsInputSchema).optional(), - connect: z.lazy(() => User_GameWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => User_GameUpdateToOneWithWhereWithoutChatsInputSchema),z.lazy(() => User_GameUpdateWithoutChatsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutChatsInputSchema) ]).optional(), -}).strict(); - -export const NestedStringFilterSchema: z.ZodType = z.object({ - equals: z.string().optional(), - in: z.string().array().optional(), - notIn: z.string().array().optional(), - lt: z.string().optional(), - lte: z.string().optional(), - gt: z.string().optional(), - gte: z.string().optional(), - contains: z.string().optional(), - startsWith: z.string().optional(), - endsWith: z.string().optional(), - not: z.union([ z.string(),z.lazy(() => NestedStringFilterSchema) ]).optional(), -}).strict(); - -export const NestedStringNullableFilterSchema: z.ZodType = z.object({ - equals: z.string().optional().nullable(), - in: z.string().array().optional().nullable(), - notIn: z.string().array().optional().nullable(), - lt: z.string().optional(), - lte: z.string().optional(), - gt: z.string().optional(), - gte: z.string().optional(), - contains: z.string().optional(), - startsWith: z.string().optional(), - endsWith: z.string().optional(), - not: z.union([ z.string(),z.lazy(() => NestedStringNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const NestedIntNullableFilterSchema: z.ZodType = z.object({ - equals: z.number().optional().nullable(), - in: z.number().array().optional().nullable(), - notIn: z.number().array().optional().nullable(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedIntNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const NestedStringWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.string().optional(), - in: z.string().array().optional(), - notIn: z.string().array().optional(), - lt: z.string().optional(), - lte: z.string().optional(), - gt: z.string().optional(), - gte: z.string().optional(), - contains: z.string().optional(), - startsWith: z.string().optional(), - endsWith: z.string().optional(), - not: z.union([ z.string(),z.lazy(() => NestedStringWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedStringFilterSchema).optional(), - _max: z.lazy(() => NestedStringFilterSchema).optional() -}).strict(); - -export const NestedIntFilterSchema: z.ZodType = z.object({ - equals: z.number().optional(), - in: z.number().array().optional(), - notIn: z.number().array().optional(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedIntFilterSchema) ]).optional(), -}).strict(); - -export const NestedStringNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.string().optional().nullable(), - in: z.string().array().optional().nullable(), - notIn: z.string().array().optional().nullable(), - lt: z.string().optional(), - lte: z.string().optional(), - gt: z.string().optional(), - gte: z.string().optional(), - contains: z.string().optional(), - startsWith: z.string().optional(), - endsWith: z.string().optional(), - not: z.union([ z.string(),z.lazy(() => NestedStringNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedStringNullableFilterSchema).optional(), - _max: z.lazy(() => NestedStringNullableFilterSchema).optional() -}).strict(); - -export const NestedIntNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.number().optional().nullable(), - in: z.number().array().optional().nullable(), - notIn: z.number().array().optional().nullable(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedIntNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _avg: z.lazy(() => NestedFloatNullableFilterSchema).optional(), - _sum: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _max: z.lazy(() => NestedIntNullableFilterSchema).optional() -}).strict(); - -export const NestedFloatNullableFilterSchema: z.ZodType = z.object({ - equals: z.number().optional().nullable(), - in: z.number().array().optional().nullable(), - notIn: z.number().array().optional().nullable(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedFloatNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const NestedDateTimeFilterSchema: z.ZodType = z.object({ - equals: z.coerce.date().optional(), - in: z.coerce.date().array().optional(), - notIn: z.coerce.date().array().optional(), - lt: z.coerce.date().optional(), - lte: z.coerce.date().optional(), - gt: z.coerce.date().optional(), - gte: z.coerce.date().optional(), - not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeFilterSchema) ]).optional(), -}).strict(); - -export const NestedDateTimeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.coerce.date().optional(), - in: z.coerce.date().array().optional(), - notIn: z.coerce.date().array().optional(), - lt: z.coerce.date().optional(), - lte: z.coerce.date().optional(), - gt: z.coerce.date().optional(), - gte: z.coerce.date().optional(), - not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedDateTimeFilterSchema).optional(), - _max: z.lazy(() => NestedDateTimeFilterSchema).optional() -}).strict(); - -export const NestedDateTimeNullableFilterSchema: z.ZodType = z.object({ - equals: z.coerce.date().optional().nullable(), - in: z.coerce.date().array().optional().nullable(), - notIn: z.coerce.date().array().optional().nullable(), - lt: z.coerce.date().optional(), - lte: z.coerce.date().optional(), - gt: z.coerce.date().optional(), - gte: z.coerce.date().optional(), - not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const NestedDateTimeNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.coerce.date().optional().nullable(), - in: z.coerce.date().array().optional().nullable(), - notIn: z.coerce.date().array().optional().nullable(), - lt: z.coerce.date().optional(), - lte: z.coerce.date().optional(), - gt: z.coerce.date().optional(), - gte: z.coerce.date().optional(), - not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedDateTimeNullableFilterSchema).optional(), - _max: z.lazy(() => NestedDateTimeNullableFilterSchema).optional() -}).strict(); - -export const NestedEnumGameStateFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => GameStateSchema).optional(), - in: z.lazy(() => GameStateSchema).array().optional(), - notIn: z.lazy(() => GameStateSchema).array().optional(), - not: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => NestedEnumGameStateFilterSchema) ]).optional(), -}).strict(); - -export const NestedBoolFilterSchema: z.ZodType = z.object({ - equals: z.boolean().optional(), - not: z.union([ z.boolean(),z.lazy(() => NestedBoolFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumGameStateWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => GameStateSchema).optional(), - in: z.lazy(() => GameStateSchema).array().optional(), - notIn: z.lazy(() => GameStateSchema).array().optional(), - not: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => NestedEnumGameStateWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumGameStateFilterSchema).optional(), - _max: z.lazy(() => NestedEnumGameStateFilterSchema).optional() -}).strict(); - -export const NestedBoolWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.boolean().optional(), - not: z.union([ z.boolean(),z.lazy(() => NestedBoolWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedBoolFilterSchema).optional(), - _max: z.lazy(() => NestedBoolFilterSchema).optional() -}).strict(); - -export const NestedEnumOrientationFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => OrientationSchema).optional(), - in: z.lazy(() => OrientationSchema).array().optional(), - notIn: z.lazy(() => OrientationSchema).array().optional(), - not: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => NestedEnumOrientationFilterSchema) ]).optional(), -}).strict(); - -export const NestedIntWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.number().optional(), - in: z.number().array().optional(), - notIn: z.number().array().optional(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedIntWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _avg: z.lazy(() => NestedFloatFilterSchema).optional(), - _sum: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedIntFilterSchema).optional(), - _max: z.lazy(() => NestedIntFilterSchema).optional() -}).strict(); - -export const NestedFloatFilterSchema: z.ZodType = z.object({ - equals: z.number().optional(), - in: z.number().array().optional(), - notIn: z.number().array().optional(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedFloatFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumOrientationWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => OrientationSchema).optional(), - in: z.lazy(() => OrientationSchema).array().optional(), - notIn: z.lazy(() => OrientationSchema).array().optional(), - not: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => NestedEnumOrientationWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumOrientationFilterSchema).optional(), - _max: z.lazy(() => NestedEnumOrientationFilterSchema).optional() -}).strict(); - -export const NestedEnumMoveTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => MoveTypeSchema).optional(), - in: z.lazy(() => MoveTypeSchema).array().optional(), - notIn: z.lazy(() => MoveTypeSchema).array().optional(), - not: z.union([ z.lazy(() => MoveTypeSchema),z.lazy(() => NestedEnumMoveTypeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumMoveTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => MoveTypeSchema).optional(), - in: z.lazy(() => MoveTypeSchema).array().optional(), - notIn: z.lazy(() => MoveTypeSchema).array().optional(), - not: z.union([ z.lazy(() => MoveTypeSchema),z.lazy(() => NestedEnumMoveTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumMoveTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumMoveTypeFilterSchema).optional() -}).strict(); - -export const UserCreateWithoutAccountsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string().optional().nullable(), - email: z.string().optional().nullable(), - emailVerified: z.coerce.date().optional().nullable(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - games: z.lazy(() => User_GameCreateNestedManyWithoutUserInputSchema).optional(), - sessions: z.lazy(() => SessionCreateNestedManyWithoutUserInputSchema).optional() -}).strict(); - -export const UserUncheckedCreateWithoutAccountsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string().optional().nullable(), - email: z.string().optional().nullable(), - emailVerified: z.coerce.date().optional().nullable(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - games: z.lazy(() => User_GameUncheckedCreateNestedManyWithoutUserInputSchema).optional(), - sessions: z.lazy(() => SessionUncheckedCreateNestedManyWithoutUserInputSchema).optional() -}).strict(); - -export const UserCreateOrConnectWithoutAccountsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserWhereUniqueInputSchema), - create: z.union([ z.lazy(() => UserCreateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedCreateWithoutAccountsInputSchema) ]), -}).strict(); - -export const UserUpsertWithoutAccountsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => UserUpdateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutAccountsInputSchema) ]), - create: z.union([ z.lazy(() => UserCreateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedCreateWithoutAccountsInputSchema) ]), - where: z.lazy(() => UserWhereInputSchema).optional() -}).strict(); - -export const UserUpdateToOneWithWhereWithoutAccountsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserWhereInputSchema).optional(), - data: z.union([ z.lazy(() => UserUpdateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutAccountsInputSchema) ]), -}).strict(); - -export const UserUpdateWithoutAccountsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailVerified: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - games: z.lazy(() => User_GameUpdateManyWithoutUserNestedInputSchema).optional(), - sessions: z.lazy(() => SessionUpdateManyWithoutUserNestedInputSchema).optional() -}).strict(); - -export const UserUncheckedUpdateWithoutAccountsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailVerified: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - games: z.lazy(() => User_GameUncheckedUpdateManyWithoutUserNestedInputSchema).optional(), - sessions: z.lazy(() => SessionUncheckedUpdateManyWithoutUserNestedInputSchema).optional() -}).strict(); - -export const UserCreateWithoutSessionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string().optional().nullable(), - email: z.string().optional().nullable(), - emailVerified: z.coerce.date().optional().nullable(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - games: z.lazy(() => User_GameCreateNestedManyWithoutUserInputSchema).optional(), - accounts: z.lazy(() => AccountCreateNestedManyWithoutUserInputSchema).optional() -}).strict(); - -export const UserUncheckedCreateWithoutSessionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string().optional().nullable(), - email: z.string().optional().nullable(), - emailVerified: z.coerce.date().optional().nullable(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - games: z.lazy(() => User_GameUncheckedCreateNestedManyWithoutUserInputSchema).optional(), - accounts: z.lazy(() => AccountUncheckedCreateNestedManyWithoutUserInputSchema).optional() -}).strict(); - -export const UserCreateOrConnectWithoutSessionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserWhereUniqueInputSchema), - create: z.union([ z.lazy(() => UserCreateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedCreateWithoutSessionsInputSchema) ]), -}).strict(); - -export const UserUpsertWithoutSessionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => UserUpdateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutSessionsInputSchema) ]), - create: z.union([ z.lazy(() => UserCreateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedCreateWithoutSessionsInputSchema) ]), - where: z.lazy(() => UserWhereInputSchema).optional() -}).strict(); - -export const UserUpdateToOneWithWhereWithoutSessionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserWhereInputSchema).optional(), - data: z.union([ z.lazy(() => UserUpdateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutSessionsInputSchema) ]), -}).strict(); - -export const UserUpdateWithoutSessionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailVerified: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - games: z.lazy(() => User_GameUpdateManyWithoutUserNestedInputSchema).optional(), - accounts: z.lazy(() => AccountUpdateManyWithoutUserNestedInputSchema).optional() -}).strict(); - -export const UserUncheckedUpdateWithoutSessionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailVerified: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - games: z.lazy(() => User_GameUncheckedUpdateManyWithoutUserNestedInputSchema).optional(), - accounts: z.lazy(() => AccountUncheckedUpdateManyWithoutUserNestedInputSchema).optional() -}).strict(); - -export const User_GameCreateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - index: z.number().int(), - moves: z.lazy(() => MoveCreateNestedManyWithoutUser_gameInputSchema).optional(), - ships: z.lazy(() => ShipCreateNestedManyWithoutUser_GameInputSchema).optional(), - hits: z.lazy(() => HitCreateNestedManyWithoutUser_GameInputSchema).optional(), - chats: z.lazy(() => ChatCreateNestedManyWithoutUser_gameInputSchema).optional(), - game: z.lazy(() => GameCreateNestedOneWithoutUsersInputSchema) -}).strict(); - -export const User_GameUncheckedCreateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - gameId: z.string(), - index: z.number().int(), - moves: z.lazy(() => MoveUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional(), - ships: z.lazy(() => ShipUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional(), - hits: z.lazy(() => HitUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional(), - chats: z.lazy(() => ChatUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional() -}).strict(); - -export const User_GameCreateOrConnectWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => User_GameWhereUniqueInputSchema), - create: z.union([ z.lazy(() => User_GameCreateWithoutUserInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutUserInputSchema) ]), -}).strict(); - -export const User_GameCreateManyUserInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => User_GameCreateManyUserInputSchema),z.lazy(() => User_GameCreateManyUserInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const AccountCreateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.string(), - provider: z.string(), - providerAccountId: z.string(), - refresh_token: z.string().optional().nullable(), - access_token: z.string().optional().nullable(), - expires_at: z.number().int().optional().nullable(), - ext_expires_in: z.number().int().optional().nullable(), - token_type: z.string().optional().nullable(), - scope: z.string().optional().nullable(), - id_token: z.string().optional().nullable(), - session_state: z.string().optional().nullable(), - oauth_token_secret: z.string().optional().nullable(), - oauth_token: z.string().optional().nullable() -}).strict(); - -export const AccountUncheckedCreateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.string(), - provider: z.string(), - providerAccountId: z.string(), - refresh_token: z.string().optional().nullable(), - access_token: z.string().optional().nullable(), - expires_at: z.number().int().optional().nullable(), - ext_expires_in: z.number().int().optional().nullable(), - token_type: z.string().optional().nullable(), - scope: z.string().optional().nullable(), - id_token: z.string().optional().nullable(), - session_state: z.string().optional().nullable(), - oauth_token_secret: z.string().optional().nullable(), - oauth_token: z.string().optional().nullable() -}).strict(); - -export const AccountCreateOrConnectWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => AccountWhereUniqueInputSchema), - create: z.union([ z.lazy(() => AccountCreateWithoutUserInputSchema),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema) ]), -}).strict(); - -export const AccountCreateManyUserInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => AccountCreateManyUserInputSchema),z.lazy(() => AccountCreateManyUserInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const SessionCreateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - sessionToken: z.string(), - expires: z.coerce.date() -}).strict(); - -export const SessionUncheckedCreateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - sessionToken: z.string(), - expires: z.coerce.date() -}).strict(); - -export const SessionCreateOrConnectWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => SessionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => SessionCreateWithoutUserInputSchema),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema) ]), -}).strict(); - -export const SessionCreateManyUserInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => SessionCreateManyUserInputSchema),z.lazy(() => SessionCreateManyUserInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const User_GameUpsertWithWhereUniqueWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => User_GameWhereUniqueInputSchema), - update: z.union([ z.lazy(() => User_GameUpdateWithoutUserInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutUserInputSchema) ]), - create: z.union([ z.lazy(() => User_GameCreateWithoutUserInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutUserInputSchema) ]), -}).strict(); - -export const User_GameUpdateWithWhereUniqueWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => User_GameWhereUniqueInputSchema), - data: z.union([ z.lazy(() => User_GameUpdateWithoutUserInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutUserInputSchema) ]), -}).strict(); - -export const User_GameUpdateManyWithWhereWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => User_GameScalarWhereInputSchema), - data: z.union([ z.lazy(() => User_GameUpdateManyMutationInputSchema),z.lazy(() => User_GameUncheckedUpdateManyWithoutUserInputSchema) ]), -}).strict(); - -export const User_GameScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => User_GameScalarWhereInputSchema),z.lazy(() => User_GameScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => User_GameScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => User_GameScalarWhereInputSchema),z.lazy(() => User_GameScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - gameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - index: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), -}).strict(); - -export const AccountUpsertWithWhereUniqueWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => AccountWhereUniqueInputSchema), - update: z.union([ z.lazy(() => AccountUpdateWithoutUserInputSchema),z.lazy(() => AccountUncheckedUpdateWithoutUserInputSchema) ]), - create: z.union([ z.lazy(() => AccountCreateWithoutUserInputSchema),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema) ]), -}).strict(); - -export const AccountUpdateWithWhereUniqueWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => AccountWhereUniqueInputSchema), - data: z.union([ z.lazy(() => AccountUpdateWithoutUserInputSchema),z.lazy(() => AccountUncheckedUpdateWithoutUserInputSchema) ]), -}).strict(); - -export const AccountUpdateManyWithWhereWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => AccountScalarWhereInputSchema), - data: z.union([ z.lazy(() => AccountUpdateManyMutationInputSchema),z.lazy(() => AccountUncheckedUpdateManyWithoutUserInputSchema) ]), -}).strict(); - -export const AccountScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => AccountScalarWhereInputSchema),z.lazy(() => AccountScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => AccountScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => AccountScalarWhereInputSchema),z.lazy(() => AccountScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - provider: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - providerAccountId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - refresh_token: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - access_token: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - expires_at: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - ext_expires_in: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - token_type: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - scope: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - id_token: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - session_state: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - oauth_token_secret: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - oauth_token: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), -}).strict(); - -export const SessionUpsertWithWhereUniqueWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => SessionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => SessionUpdateWithoutUserInputSchema),z.lazy(() => SessionUncheckedUpdateWithoutUserInputSchema) ]), - create: z.union([ z.lazy(() => SessionCreateWithoutUserInputSchema),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema) ]), -}).strict(); - -export const SessionUpdateWithWhereUniqueWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => SessionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => SessionUpdateWithoutUserInputSchema),z.lazy(() => SessionUncheckedUpdateWithoutUserInputSchema) ]), -}).strict(); - -export const SessionUpdateManyWithWhereWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => SessionScalarWhereInputSchema), - data: z.union([ z.lazy(() => SessionUpdateManyMutationInputSchema),z.lazy(() => SessionUncheckedUpdateManyWithoutUserInputSchema) ]), -}).strict(); - -export const SessionScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => SessionScalarWhereInputSchema),z.lazy(() => SessionScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => SessionScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SessionScalarWhereInputSchema),z.lazy(() => SessionScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - sessionToken: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - expires: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const GamepinCreateWithoutGameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - pin: z.string() -}).strict(); - -export const GamepinUncheckedCreateWithoutGameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - pin: z.string() -}).strict(); - -export const GamepinCreateOrConnectWithoutGameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => GamepinWhereUniqueInputSchema), - create: z.union([ z.lazy(() => GamepinCreateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedCreateWithoutGameInputSchema) ]), -}).strict(); - -export const User_GameCreateWithoutGameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - index: z.number().int(), - moves: z.lazy(() => MoveCreateNestedManyWithoutUser_gameInputSchema).optional(), - ships: z.lazy(() => ShipCreateNestedManyWithoutUser_GameInputSchema).optional(), - hits: z.lazy(() => HitCreateNestedManyWithoutUser_GameInputSchema).optional(), - chats: z.lazy(() => ChatCreateNestedManyWithoutUser_gameInputSchema).optional(), - user: z.lazy(() => UserCreateNestedOneWithoutGamesInputSchema) -}).strict(); - -export const User_GameUncheckedCreateWithoutGameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - userId: z.string(), - index: z.number().int(), - moves: z.lazy(() => MoveUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional(), - ships: z.lazy(() => ShipUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional(), - hits: z.lazy(() => HitUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional(), - chats: z.lazy(() => ChatUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional() -}).strict(); - -export const User_GameCreateOrConnectWithoutGameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => User_GameWhereUniqueInputSchema), - create: z.union([ z.lazy(() => User_GameCreateWithoutGameInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutGameInputSchema) ]), -}).strict(); - -export const User_GameCreateManyGameInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => User_GameCreateManyGameInputSchema),z.lazy(() => User_GameCreateManyGameInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const GamepinUpsertWithoutGameInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => GamepinUpdateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedUpdateWithoutGameInputSchema) ]), - create: z.union([ z.lazy(() => GamepinCreateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedCreateWithoutGameInputSchema) ]), - where: z.lazy(() => GamepinWhereInputSchema).optional() -}).strict(); - -export const GamepinUpdateToOneWithWhereWithoutGameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => GamepinWhereInputSchema).optional(), - data: z.union([ z.lazy(() => GamepinUpdateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedUpdateWithoutGameInputSchema) ]), -}).strict(); - -export const GamepinUpdateWithoutGameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - pin: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const GamepinUncheckedUpdateWithoutGameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - pin: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const User_GameUpsertWithWhereUniqueWithoutGameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => User_GameWhereUniqueInputSchema), - update: z.union([ z.lazy(() => User_GameUpdateWithoutGameInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutGameInputSchema) ]), - create: z.union([ z.lazy(() => User_GameCreateWithoutGameInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutGameInputSchema) ]), -}).strict(); - -export const User_GameUpdateWithWhereUniqueWithoutGameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => User_GameWhereUniqueInputSchema), - data: z.union([ z.lazy(() => User_GameUpdateWithoutGameInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutGameInputSchema) ]), -}).strict(); - -export const User_GameUpdateManyWithWhereWithoutGameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => User_GameScalarWhereInputSchema), - data: z.union([ z.lazy(() => User_GameUpdateManyMutationInputSchema),z.lazy(() => User_GameUncheckedUpdateManyWithoutGameInputSchema) ]), -}).strict(); - -export const GameCreateWithoutGamePinInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - state: z.lazy(() => GameStateSchema).optional(), - allowSpectators: z.boolean().optional(), - allowSpecials: z.boolean().optional(), - allowChat: z.boolean().optional(), - allowMarkDraw: z.boolean().optional(), - users: z.lazy(() => User_GameCreateNestedManyWithoutGameInputSchema).optional() -}).strict(); - -export const GameUncheckedCreateWithoutGamePinInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - state: z.lazy(() => GameStateSchema).optional(), - allowSpectators: z.boolean().optional(), - allowSpecials: z.boolean().optional(), - allowChat: z.boolean().optional(), - allowMarkDraw: z.boolean().optional(), - users: z.lazy(() => User_GameUncheckedCreateNestedManyWithoutGameInputSchema).optional() -}).strict(); - -export const GameCreateOrConnectWithoutGamePinInputSchema: z.ZodType = z.object({ - where: z.lazy(() => GameWhereUniqueInputSchema), - create: z.union([ z.lazy(() => GameCreateWithoutGamePinInputSchema),z.lazy(() => GameUncheckedCreateWithoutGamePinInputSchema) ]), -}).strict(); - -export const GameUpsertWithoutGamePinInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => GameUpdateWithoutGamePinInputSchema),z.lazy(() => GameUncheckedUpdateWithoutGamePinInputSchema) ]), - create: z.union([ z.lazy(() => GameCreateWithoutGamePinInputSchema),z.lazy(() => GameUncheckedCreateWithoutGamePinInputSchema) ]), - where: z.lazy(() => GameWhereInputSchema).optional() -}).strict(); - -export const GameUpdateToOneWithWhereWithoutGamePinInputSchema: z.ZodType = z.object({ - where: z.lazy(() => GameWhereInputSchema).optional(), - data: z.union([ z.lazy(() => GameUpdateWithoutGamePinInputSchema),z.lazy(() => GameUncheckedUpdateWithoutGamePinInputSchema) ]), -}).strict(); - -export const GameUpdateWithoutGamePinInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - state: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => EnumGameStateFieldUpdateOperationsInputSchema) ]).optional(), - allowSpectators: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowSpecials: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowChat: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowMarkDraw: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => User_GameUpdateManyWithoutGameNestedInputSchema).optional() -}).strict(); - -export const GameUncheckedUpdateWithoutGamePinInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - state: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => EnumGameStateFieldUpdateOperationsInputSchema) ]).optional(), - allowSpectators: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowSpecials: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowChat: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowMarkDraw: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => User_GameUncheckedUpdateManyWithoutGameNestedInputSchema).optional() -}).strict(); - -export const User_GameCreateWithoutShipsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - index: z.number().int(), - moves: z.lazy(() => MoveCreateNestedManyWithoutUser_gameInputSchema).optional(), - hits: z.lazy(() => HitCreateNestedManyWithoutUser_GameInputSchema).optional(), - chats: z.lazy(() => ChatCreateNestedManyWithoutUser_gameInputSchema).optional(), - game: z.lazy(() => GameCreateNestedOneWithoutUsersInputSchema), - user: z.lazy(() => UserCreateNestedOneWithoutGamesInputSchema) -}).strict(); - -export const User_GameUncheckedCreateWithoutShipsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - gameId: z.string(), - userId: z.string(), - index: z.number().int(), - moves: z.lazy(() => MoveUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional(), - hits: z.lazy(() => HitUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional(), - chats: z.lazy(() => ChatUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional() -}).strict(); - -export const User_GameCreateOrConnectWithoutShipsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => User_GameWhereUniqueInputSchema), - create: z.union([ z.lazy(() => User_GameCreateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutShipsInputSchema) ]), -}).strict(); - -export const User_GameUpsertWithoutShipsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => User_GameUpdateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutShipsInputSchema) ]), - create: z.union([ z.lazy(() => User_GameCreateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutShipsInputSchema) ]), - where: z.lazy(() => User_GameWhereInputSchema).optional() -}).strict(); - -export const User_GameUpdateToOneWithWhereWithoutShipsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => User_GameWhereInputSchema).optional(), - data: z.union([ z.lazy(() => User_GameUpdateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutShipsInputSchema) ]), -}).strict(); - -export const User_GameUpdateWithoutShipsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - moves: z.lazy(() => MoveUpdateManyWithoutUser_gameNestedInputSchema).optional(), - hits: z.lazy(() => HitUpdateManyWithoutUser_GameNestedInputSchema).optional(), - chats: z.lazy(() => ChatUpdateManyWithoutUser_gameNestedInputSchema).optional(), - game: z.lazy(() => GameUpdateOneRequiredWithoutUsersNestedInputSchema).optional(), - user: z.lazy(() => UserUpdateOneRequiredWithoutGamesNestedInputSchema).optional() -}).strict(); - -export const User_GameUncheckedUpdateWithoutShipsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - moves: z.lazy(() => MoveUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional(), - hits: z.lazy(() => HitUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional(), - chats: z.lazy(() => ChatUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional() -}).strict(); - -export const User_GameCreateWithoutHitsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - index: z.number().int(), - moves: z.lazy(() => MoveCreateNestedManyWithoutUser_gameInputSchema).optional(), - ships: z.lazy(() => ShipCreateNestedManyWithoutUser_GameInputSchema).optional(), - chats: z.lazy(() => ChatCreateNestedManyWithoutUser_gameInputSchema).optional(), - game: z.lazy(() => GameCreateNestedOneWithoutUsersInputSchema), - user: z.lazy(() => UserCreateNestedOneWithoutGamesInputSchema) -}).strict(); - -export const User_GameUncheckedCreateWithoutHitsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - gameId: z.string(), - userId: z.string(), - index: z.number().int(), - moves: z.lazy(() => MoveUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional(), - ships: z.lazy(() => ShipUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional(), - chats: z.lazy(() => ChatUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional() -}).strict(); - -export const User_GameCreateOrConnectWithoutHitsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => User_GameWhereUniqueInputSchema), - create: z.union([ z.lazy(() => User_GameCreateWithoutHitsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutHitsInputSchema) ]), -}).strict(); - -export const User_GameUpsertWithoutHitsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => User_GameUpdateWithoutHitsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutHitsInputSchema) ]), - create: z.union([ z.lazy(() => User_GameCreateWithoutHitsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutHitsInputSchema) ]), - where: z.lazy(() => User_GameWhereInputSchema).optional() -}).strict(); - -export const User_GameUpdateToOneWithWhereWithoutHitsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => User_GameWhereInputSchema).optional(), - data: z.union([ z.lazy(() => User_GameUpdateWithoutHitsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutHitsInputSchema) ]), -}).strict(); - -export const User_GameUpdateWithoutHitsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - moves: z.lazy(() => MoveUpdateManyWithoutUser_gameNestedInputSchema).optional(), - ships: z.lazy(() => ShipUpdateManyWithoutUser_GameNestedInputSchema).optional(), - chats: z.lazy(() => ChatUpdateManyWithoutUser_gameNestedInputSchema).optional(), - game: z.lazy(() => GameUpdateOneRequiredWithoutUsersNestedInputSchema).optional(), - user: z.lazy(() => UserUpdateOneRequiredWithoutGamesNestedInputSchema).optional() -}).strict(); - -export const User_GameUncheckedUpdateWithoutHitsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - moves: z.lazy(() => MoveUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional(), - ships: z.lazy(() => ShipUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional(), - chats: z.lazy(() => ChatUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional() -}).strict(); - -export const MoveCreateWithoutUser_gameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - index: z.number().int(), - type: z.lazy(() => MoveTypeSchema), - x: z.number().int(), - y: z.number().int(), - orientation: z.lazy(() => OrientationSchema) -}).strict(); - -export const MoveUncheckedCreateWithoutUser_gameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - index: z.number().int(), - type: z.lazy(() => MoveTypeSchema), - x: z.number().int(), - y: z.number().int(), - orientation: z.lazy(() => OrientationSchema) -}).strict(); - -export const MoveCreateOrConnectWithoutUser_gameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => MoveWhereUniqueInputSchema), - create: z.union([ z.lazy(() => MoveCreateWithoutUser_gameInputSchema),z.lazy(() => MoveUncheckedCreateWithoutUser_gameInputSchema) ]), -}).strict(); - -export const MoveCreateManyUser_gameInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => MoveCreateManyUser_gameInputSchema),z.lazy(() => MoveCreateManyUser_gameInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ShipCreateWithoutUser_GameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - size: z.number().int(), - variant: z.number().int(), - x: z.number().int(), - y: z.number().int(), - orientation: z.lazy(() => OrientationSchema) -}).strict(); - -export const ShipUncheckedCreateWithoutUser_GameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - size: z.number().int(), - variant: z.number().int(), - x: z.number().int(), - y: z.number().int(), - orientation: z.lazy(() => OrientationSchema) -}).strict(); - -export const ShipCreateOrConnectWithoutUser_GameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ShipWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ShipCreateWithoutUser_GameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema) ]), -}).strict(); - -export const ShipCreateManyUser_GameInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ShipCreateManyUser_GameInputSchema),z.lazy(() => ShipCreateManyUser_GameInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const HitCreateWithoutUser_GameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - x: z.number().int(), - y: z.number().int(), - hit: z.boolean() -}).strict(); - -export const HitUncheckedCreateWithoutUser_GameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - x: z.number().int(), - y: z.number().int(), - hit: z.boolean() -}).strict(); - -export const HitCreateOrConnectWithoutUser_GameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => HitWhereUniqueInputSchema), - create: z.union([ z.lazy(() => HitCreateWithoutUser_GameInputSchema),z.lazy(() => HitUncheckedCreateWithoutUser_GameInputSchema) ]), -}).strict(); - -export const HitCreateManyUser_GameInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => HitCreateManyUser_GameInputSchema),z.lazy(() => HitCreateManyUser_GameInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ChatCreateWithoutUser_gameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - message: z.string().optional().nullable(), - event: z.string().optional().nullable() -}).strict(); - -export const ChatUncheckedCreateWithoutUser_gameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - message: z.string().optional().nullable(), - event: z.string().optional().nullable() -}).strict(); - -export const ChatCreateOrConnectWithoutUser_gameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ChatWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ChatCreateWithoutUser_gameInputSchema),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema) ]), -}).strict(); - -export const ChatCreateManyUser_gameInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ChatCreateManyUser_gameInputSchema),z.lazy(() => ChatCreateManyUser_gameInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const GameCreateWithoutUsersInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - state: z.lazy(() => GameStateSchema).optional(), - allowSpectators: z.boolean().optional(), - allowSpecials: z.boolean().optional(), - allowChat: z.boolean().optional(), - allowMarkDraw: z.boolean().optional(), - gamePin: z.lazy(() => GamepinCreateNestedOneWithoutGameInputSchema).optional() -}).strict(); - -export const GameUncheckedCreateWithoutUsersInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - state: z.lazy(() => GameStateSchema).optional(), - allowSpectators: z.boolean().optional(), - allowSpecials: z.boolean().optional(), - allowChat: z.boolean().optional(), - allowMarkDraw: z.boolean().optional(), - gamePin: z.lazy(() => GamepinUncheckedCreateNestedOneWithoutGameInputSchema).optional() -}).strict(); - -export const GameCreateOrConnectWithoutUsersInputSchema: z.ZodType = z.object({ - where: z.lazy(() => GameWhereUniqueInputSchema), - create: z.union([ z.lazy(() => GameCreateWithoutUsersInputSchema),z.lazy(() => GameUncheckedCreateWithoutUsersInputSchema) ]), -}).strict(); - -export const UserCreateWithoutGamesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string().optional().nullable(), - email: z.string().optional().nullable(), - emailVerified: z.coerce.date().optional().nullable(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - accounts: z.lazy(() => AccountCreateNestedManyWithoutUserInputSchema).optional(), - sessions: z.lazy(() => SessionCreateNestedManyWithoutUserInputSchema).optional() -}).strict(); - -export const UserUncheckedCreateWithoutGamesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string().optional().nullable(), - email: z.string().optional().nullable(), - emailVerified: z.coerce.date().optional().nullable(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - accounts: z.lazy(() => AccountUncheckedCreateNestedManyWithoutUserInputSchema).optional(), - sessions: z.lazy(() => SessionUncheckedCreateNestedManyWithoutUserInputSchema).optional() -}).strict(); - -export const UserCreateOrConnectWithoutGamesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserWhereUniqueInputSchema), - create: z.union([ z.lazy(() => UserCreateWithoutGamesInputSchema),z.lazy(() => UserUncheckedCreateWithoutGamesInputSchema) ]), -}).strict(); - -export const MoveUpsertWithWhereUniqueWithoutUser_gameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => MoveWhereUniqueInputSchema), - update: z.union([ z.lazy(() => MoveUpdateWithoutUser_gameInputSchema),z.lazy(() => MoveUncheckedUpdateWithoutUser_gameInputSchema) ]), - create: z.union([ z.lazy(() => MoveCreateWithoutUser_gameInputSchema),z.lazy(() => MoveUncheckedCreateWithoutUser_gameInputSchema) ]), -}).strict(); - -export const MoveUpdateWithWhereUniqueWithoutUser_gameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => MoveWhereUniqueInputSchema), - data: z.union([ z.lazy(() => MoveUpdateWithoutUser_gameInputSchema),z.lazy(() => MoveUncheckedUpdateWithoutUser_gameInputSchema) ]), -}).strict(); - -export const MoveUpdateManyWithWhereWithoutUser_gameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => MoveScalarWhereInputSchema), - data: z.union([ z.lazy(() => MoveUpdateManyMutationInputSchema),z.lazy(() => MoveUncheckedUpdateManyWithoutUser_gameInputSchema) ]), -}).strict(); - -export const MoveScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => MoveScalarWhereInputSchema),z.lazy(() => MoveScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => MoveScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => MoveScalarWhereInputSchema),z.lazy(() => MoveScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - index: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - type: z.union([ z.lazy(() => EnumMoveTypeFilterSchema),z.lazy(() => MoveTypeSchema) ]).optional(), - x: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - y: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - orientation: z.union([ z.lazy(() => EnumOrientationFilterSchema),z.lazy(() => OrientationSchema) ]).optional(), - user_game_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), -}).strict(); - -export const ShipUpsertWithWhereUniqueWithoutUser_GameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ShipWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ShipUpdateWithoutUser_GameInputSchema),z.lazy(() => ShipUncheckedUpdateWithoutUser_GameInputSchema) ]), - create: z.union([ z.lazy(() => ShipCreateWithoutUser_GameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema) ]), -}).strict(); - -export const ShipUpdateWithWhereUniqueWithoutUser_GameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ShipWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ShipUpdateWithoutUser_GameInputSchema),z.lazy(() => ShipUncheckedUpdateWithoutUser_GameInputSchema) ]), -}).strict(); - -export const ShipUpdateManyWithWhereWithoutUser_GameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ShipScalarWhereInputSchema), - data: z.union([ z.lazy(() => ShipUpdateManyMutationInputSchema),z.lazy(() => ShipUncheckedUpdateManyWithoutUser_GameInputSchema) ]), -}).strict(); - -export const ShipScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ShipScalarWhereInputSchema),z.lazy(() => ShipScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ShipScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ShipScalarWhereInputSchema),z.lazy(() => ShipScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - size: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - variant: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - x: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - y: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - orientation: z.union([ z.lazy(() => EnumOrientationFilterSchema),z.lazy(() => OrientationSchema) ]).optional(), - user_GameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), -}).strict(); - -export const HitUpsertWithWhereUniqueWithoutUser_GameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => HitWhereUniqueInputSchema), - update: z.union([ z.lazy(() => HitUpdateWithoutUser_GameInputSchema),z.lazy(() => HitUncheckedUpdateWithoutUser_GameInputSchema) ]), - create: z.union([ z.lazy(() => HitCreateWithoutUser_GameInputSchema),z.lazy(() => HitUncheckedCreateWithoutUser_GameInputSchema) ]), -}).strict(); - -export const HitUpdateWithWhereUniqueWithoutUser_GameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => HitWhereUniqueInputSchema), - data: z.union([ z.lazy(() => HitUpdateWithoutUser_GameInputSchema),z.lazy(() => HitUncheckedUpdateWithoutUser_GameInputSchema) ]), -}).strict(); - -export const HitUpdateManyWithWhereWithoutUser_GameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => HitScalarWhereInputSchema), - data: z.union([ z.lazy(() => HitUpdateManyMutationInputSchema),z.lazy(() => HitUncheckedUpdateManyWithoutUser_GameInputSchema) ]), -}).strict(); - -export const HitScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => HitScalarWhereInputSchema),z.lazy(() => HitScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => HitScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => HitScalarWhereInputSchema),z.lazy(() => HitScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - x: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - y: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - hit: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - user_GameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), -}).strict(); - -export const ChatUpsertWithWhereUniqueWithoutUser_gameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ChatWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ChatUpdateWithoutUser_gameInputSchema),z.lazy(() => ChatUncheckedUpdateWithoutUser_gameInputSchema) ]), - create: z.union([ z.lazy(() => ChatCreateWithoutUser_gameInputSchema),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema) ]), -}).strict(); - -export const ChatUpdateWithWhereUniqueWithoutUser_gameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ChatWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ChatUpdateWithoutUser_gameInputSchema),z.lazy(() => ChatUncheckedUpdateWithoutUser_gameInputSchema) ]), -}).strict(); - -export const ChatUpdateManyWithWhereWithoutUser_gameInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ChatScalarWhereInputSchema), - data: z.union([ z.lazy(() => ChatUpdateManyMutationInputSchema),z.lazy(() => ChatUncheckedUpdateManyWithoutUser_gameInputSchema) ]), -}).strict(); - -export const ChatScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ChatScalarWhereInputSchema),z.lazy(() => ChatScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ChatScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ChatScalarWhereInputSchema),z.lazy(() => ChatScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - message: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - event: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - user_game_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), -}).strict(); - -export const GameUpsertWithoutUsersInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => GameUpdateWithoutUsersInputSchema),z.lazy(() => GameUncheckedUpdateWithoutUsersInputSchema) ]), - create: z.union([ z.lazy(() => GameCreateWithoutUsersInputSchema),z.lazy(() => GameUncheckedCreateWithoutUsersInputSchema) ]), - where: z.lazy(() => GameWhereInputSchema).optional() -}).strict(); - -export const GameUpdateToOneWithWhereWithoutUsersInputSchema: z.ZodType = z.object({ - where: z.lazy(() => GameWhereInputSchema).optional(), - data: z.union([ z.lazy(() => GameUpdateWithoutUsersInputSchema),z.lazy(() => GameUncheckedUpdateWithoutUsersInputSchema) ]), -}).strict(); - -export const GameUpdateWithoutUsersInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - state: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => EnumGameStateFieldUpdateOperationsInputSchema) ]).optional(), - allowSpectators: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowSpecials: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowChat: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowMarkDraw: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - gamePin: z.lazy(() => GamepinUpdateOneWithoutGameNestedInputSchema).optional() -}).strict(); - -export const GameUncheckedUpdateWithoutUsersInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - state: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => EnumGameStateFieldUpdateOperationsInputSchema) ]).optional(), - allowSpectators: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowSpecials: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowChat: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - allowMarkDraw: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - gamePin: z.lazy(() => GamepinUncheckedUpdateOneWithoutGameNestedInputSchema).optional() -}).strict(); - -export const UserUpsertWithoutGamesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => UserUpdateWithoutGamesInputSchema),z.lazy(() => UserUncheckedUpdateWithoutGamesInputSchema) ]), - create: z.union([ z.lazy(() => UserCreateWithoutGamesInputSchema),z.lazy(() => UserUncheckedCreateWithoutGamesInputSchema) ]), - where: z.lazy(() => UserWhereInputSchema).optional() -}).strict(); - -export const UserUpdateToOneWithWhereWithoutGamesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserWhereInputSchema).optional(), - data: z.union([ z.lazy(() => UserUpdateWithoutGamesInputSchema),z.lazy(() => UserUncheckedUpdateWithoutGamesInputSchema) ]), -}).strict(); - -export const UserUpdateWithoutGamesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailVerified: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - accounts: z.lazy(() => AccountUpdateManyWithoutUserNestedInputSchema).optional(), - sessions: z.lazy(() => SessionUpdateManyWithoutUserNestedInputSchema).optional() -}).strict(); - -export const UserUncheckedUpdateWithoutGamesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailVerified: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - accounts: z.lazy(() => AccountUncheckedUpdateManyWithoutUserNestedInputSchema).optional(), - sessions: z.lazy(() => SessionUncheckedUpdateManyWithoutUserNestedInputSchema).optional() -}).strict(); - -export const User_GameCreateWithoutMovesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - index: z.number().int(), - ships: z.lazy(() => ShipCreateNestedManyWithoutUser_GameInputSchema).optional(), - hits: z.lazy(() => HitCreateNestedManyWithoutUser_GameInputSchema).optional(), - chats: z.lazy(() => ChatCreateNestedManyWithoutUser_gameInputSchema).optional(), - game: z.lazy(() => GameCreateNestedOneWithoutUsersInputSchema), - user: z.lazy(() => UserCreateNestedOneWithoutGamesInputSchema) -}).strict(); - -export const User_GameUncheckedCreateWithoutMovesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - gameId: z.string(), - userId: z.string(), - index: z.number().int(), - ships: z.lazy(() => ShipUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional(), - hits: z.lazy(() => HitUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional(), - chats: z.lazy(() => ChatUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional() -}).strict(); - -export const User_GameCreateOrConnectWithoutMovesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => User_GameWhereUniqueInputSchema), - create: z.union([ z.lazy(() => User_GameCreateWithoutMovesInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutMovesInputSchema) ]), -}).strict(); - -export const User_GameUpsertWithoutMovesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => User_GameUpdateWithoutMovesInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutMovesInputSchema) ]), - create: z.union([ z.lazy(() => User_GameCreateWithoutMovesInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutMovesInputSchema) ]), - where: z.lazy(() => User_GameWhereInputSchema).optional() -}).strict(); - -export const User_GameUpdateToOneWithWhereWithoutMovesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => User_GameWhereInputSchema).optional(), - data: z.union([ z.lazy(() => User_GameUpdateWithoutMovesInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutMovesInputSchema) ]), -}).strict(); - -export const User_GameUpdateWithoutMovesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - ships: z.lazy(() => ShipUpdateManyWithoutUser_GameNestedInputSchema).optional(), - hits: z.lazy(() => HitUpdateManyWithoutUser_GameNestedInputSchema).optional(), - chats: z.lazy(() => ChatUpdateManyWithoutUser_gameNestedInputSchema).optional(), - game: z.lazy(() => GameUpdateOneRequiredWithoutUsersNestedInputSchema).optional(), - user: z.lazy(() => UserUpdateOneRequiredWithoutGamesNestedInputSchema).optional() -}).strict(); - -export const User_GameUncheckedUpdateWithoutMovesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - ships: z.lazy(() => ShipUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional(), - hits: z.lazy(() => HitUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional(), - chats: z.lazy(() => ChatUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional() -}).strict(); - -export const User_GameCreateWithoutChatsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - index: z.number().int(), - moves: z.lazy(() => MoveCreateNestedManyWithoutUser_gameInputSchema).optional(), - ships: z.lazy(() => ShipCreateNestedManyWithoutUser_GameInputSchema).optional(), - hits: z.lazy(() => HitCreateNestedManyWithoutUser_GameInputSchema).optional(), - game: z.lazy(() => GameCreateNestedOneWithoutUsersInputSchema), - user: z.lazy(() => UserCreateNestedOneWithoutGamesInputSchema) -}).strict(); - -export const User_GameUncheckedCreateWithoutChatsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - gameId: z.string(), - userId: z.string(), - index: z.number().int(), - moves: z.lazy(() => MoveUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional(), - ships: z.lazy(() => ShipUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional(), - hits: z.lazy(() => HitUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional() -}).strict(); - -export const User_GameCreateOrConnectWithoutChatsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => User_GameWhereUniqueInputSchema), - create: z.union([ z.lazy(() => User_GameCreateWithoutChatsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutChatsInputSchema) ]), -}).strict(); - -export const User_GameUpsertWithoutChatsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => User_GameUpdateWithoutChatsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutChatsInputSchema) ]), - create: z.union([ z.lazy(() => User_GameCreateWithoutChatsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutChatsInputSchema) ]), - where: z.lazy(() => User_GameWhereInputSchema).optional() -}).strict(); - -export const User_GameUpdateToOneWithWhereWithoutChatsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => User_GameWhereInputSchema).optional(), - data: z.union([ z.lazy(() => User_GameUpdateWithoutChatsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutChatsInputSchema) ]), -}).strict(); - -export const User_GameUpdateWithoutChatsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - moves: z.lazy(() => MoveUpdateManyWithoutUser_gameNestedInputSchema).optional(), - ships: z.lazy(() => ShipUpdateManyWithoutUser_GameNestedInputSchema).optional(), - hits: z.lazy(() => HitUpdateManyWithoutUser_GameNestedInputSchema).optional(), - game: z.lazy(() => GameUpdateOneRequiredWithoutUsersNestedInputSchema).optional(), - user: z.lazy(() => UserUpdateOneRequiredWithoutGamesNestedInputSchema).optional() -}).strict(); - -export const User_GameUncheckedUpdateWithoutChatsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - moves: z.lazy(() => MoveUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional(), - ships: z.lazy(() => ShipUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional(), - hits: z.lazy(() => HitUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional() -}).strict(); - -export const User_GameCreateManyUserInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - gameId: z.string(), - index: z.number().int() -}).strict(); - -export const AccountCreateManyUserInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.string(), - provider: z.string(), - providerAccountId: z.string(), - refresh_token: z.string().optional().nullable(), - access_token: z.string().optional().nullable(), - expires_at: z.number().int().optional().nullable(), - ext_expires_in: z.number().int().optional().nullable(), - token_type: z.string().optional().nullable(), - scope: z.string().optional().nullable(), - id_token: z.string().optional().nullable(), - session_state: z.string().optional().nullable(), - oauth_token_secret: z.string().optional().nullable(), - oauth_token: z.string().optional().nullable() -}).strict(); - -export const SessionCreateManyUserInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - sessionToken: z.string(), - expires: z.coerce.date() -}).strict(); - -export const User_GameUpdateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - moves: z.lazy(() => MoveUpdateManyWithoutUser_gameNestedInputSchema).optional(), - ships: z.lazy(() => ShipUpdateManyWithoutUser_GameNestedInputSchema).optional(), - hits: z.lazy(() => HitUpdateManyWithoutUser_GameNestedInputSchema).optional(), - chats: z.lazy(() => ChatUpdateManyWithoutUser_gameNestedInputSchema).optional(), - game: z.lazy(() => GameUpdateOneRequiredWithoutUsersNestedInputSchema).optional() -}).strict(); - -export const User_GameUncheckedUpdateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - moves: z.lazy(() => MoveUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional(), - ships: z.lazy(() => ShipUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional(), - hits: z.lazy(() => HitUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional(), - chats: z.lazy(() => ChatUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional() -}).strict(); - -export const User_GameUncheckedUpdateManyWithoutUserInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const AccountUpdateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - provider: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - providerAccountId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - refresh_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - access_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expires_at: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ext_expires_in: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - token_type: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - id_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - session_state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - oauth_token_secret: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - oauth_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const AccountUncheckedUpdateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - provider: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - providerAccountId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - refresh_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - access_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expires_at: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ext_expires_in: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - token_type: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - id_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - session_state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - oauth_token_secret: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - oauth_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const AccountUncheckedUpdateManyWithoutUserInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - provider: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - providerAccountId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - refresh_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - access_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expires_at: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ext_expires_in: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - token_type: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - id_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - session_state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - oauth_token_secret: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - oauth_token: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const SessionUpdateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sessionToken: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expires: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SessionUncheckedUpdateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sessionToken: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expires: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SessionUncheckedUpdateManyWithoutUserInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sessionToken: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expires: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const User_GameCreateManyGameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - userId: z.string(), - index: z.number().int() -}).strict(); - -export const User_GameUpdateWithoutGameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - moves: z.lazy(() => MoveUpdateManyWithoutUser_gameNestedInputSchema).optional(), - ships: z.lazy(() => ShipUpdateManyWithoutUser_GameNestedInputSchema).optional(), - hits: z.lazy(() => HitUpdateManyWithoutUser_GameNestedInputSchema).optional(), - chats: z.lazy(() => ChatUpdateManyWithoutUser_gameNestedInputSchema).optional(), - user: z.lazy(() => UserUpdateOneRequiredWithoutGamesNestedInputSchema).optional() -}).strict(); - -export const User_GameUncheckedUpdateWithoutGameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - moves: z.lazy(() => MoveUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional(), - ships: z.lazy(() => ShipUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional(), - hits: z.lazy(() => HitUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional(), - chats: z.lazy(() => ChatUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional() -}).strict(); - -export const User_GameUncheckedUpdateManyWithoutGameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const MoveCreateManyUser_gameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - index: z.number().int(), - type: z.lazy(() => MoveTypeSchema), - x: z.number().int(), - y: z.number().int(), - orientation: z.lazy(() => OrientationSchema) -}).strict(); - -export const ShipCreateManyUser_GameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - size: z.number().int(), - variant: z.number().int(), - x: z.number().int(), - y: z.number().int(), - orientation: z.lazy(() => OrientationSchema) -}).strict(); - -export const HitCreateManyUser_GameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - x: z.number().int(), - y: z.number().int(), - hit: z.boolean() -}).strict(); - -export const ChatCreateManyUser_gameInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - message: z.string().optional().nullable(), - event: z.string().optional().nullable() -}).strict(); - -export const MoveUpdateWithoutUser_gameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => MoveTypeSchema),z.lazy(() => EnumMoveTypeFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const MoveUncheckedUpdateWithoutUser_gameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => MoveTypeSchema),z.lazy(() => EnumMoveTypeFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const MoveUncheckedUpdateManyWithoutUser_gameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => MoveTypeSchema),z.lazy(() => EnumMoveTypeFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ShipUpdateWithoutUser_GameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - size: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - variant: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ShipUncheckedUpdateWithoutUser_GameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - size: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - variant: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ShipUncheckedUpdateManyWithoutUser_GameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - size: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - variant: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const HitUpdateWithoutUser_GameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - hit: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const HitUncheckedUpdateWithoutUser_GameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - hit: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const HitUncheckedUpdateManyWithoutUser_GameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - hit: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ChatUpdateWithoutUser_gameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - event: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const ChatUncheckedUpdateWithoutUser_gameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - event: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const ChatUncheckedUpdateManyWithoutUser_gameInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - event: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -///////////////////////////////////////// -// ARGS -///////////////////////////////////////// - -export const AccountFindFirstArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - where: AccountWhereInputSchema.optional(), - orderBy: z.union([ AccountOrderByWithRelationInputSchema.array(),AccountOrderByWithRelationInputSchema ]).optional(), - cursor: AccountWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ AccountScalarFieldEnumSchema,AccountScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const AccountFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - where: AccountWhereInputSchema.optional(), - orderBy: z.union([ AccountOrderByWithRelationInputSchema.array(),AccountOrderByWithRelationInputSchema ]).optional(), - cursor: AccountWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ AccountScalarFieldEnumSchema,AccountScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const AccountFindManyArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - where: AccountWhereInputSchema.optional(), - orderBy: z.union([ AccountOrderByWithRelationInputSchema.array(),AccountOrderByWithRelationInputSchema ]).optional(), - cursor: AccountWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ AccountScalarFieldEnumSchema,AccountScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const AccountAggregateArgsSchema: z.ZodType = z.object({ - where: AccountWhereInputSchema.optional(), - orderBy: z.union([ AccountOrderByWithRelationInputSchema.array(),AccountOrderByWithRelationInputSchema ]).optional(), - cursor: AccountWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const AccountGroupByArgsSchema: z.ZodType = z.object({ - where: AccountWhereInputSchema.optional(), - orderBy: z.union([ AccountOrderByWithAggregationInputSchema.array(),AccountOrderByWithAggregationInputSchema ]).optional(), - by: AccountScalarFieldEnumSchema.array(), - having: AccountScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const AccountFindUniqueArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - where: AccountWhereUniqueInputSchema, -}).strict() - -export const AccountFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - where: AccountWhereUniqueInputSchema, -}).strict() - -export const SessionFindFirstArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - where: SessionWhereInputSchema.optional(), - orderBy: z.union([ SessionOrderByWithRelationInputSchema.array(),SessionOrderByWithRelationInputSchema ]).optional(), - cursor: SessionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ SessionScalarFieldEnumSchema,SessionScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const SessionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - where: SessionWhereInputSchema.optional(), - orderBy: z.union([ SessionOrderByWithRelationInputSchema.array(),SessionOrderByWithRelationInputSchema ]).optional(), - cursor: SessionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ SessionScalarFieldEnumSchema,SessionScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const SessionFindManyArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - where: SessionWhereInputSchema.optional(), - orderBy: z.union([ SessionOrderByWithRelationInputSchema.array(),SessionOrderByWithRelationInputSchema ]).optional(), - cursor: SessionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ SessionScalarFieldEnumSchema,SessionScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const SessionAggregateArgsSchema: z.ZodType = z.object({ - where: SessionWhereInputSchema.optional(), - orderBy: z.union([ SessionOrderByWithRelationInputSchema.array(),SessionOrderByWithRelationInputSchema ]).optional(), - cursor: SessionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const SessionGroupByArgsSchema: z.ZodType = z.object({ - where: SessionWhereInputSchema.optional(), - orderBy: z.union([ SessionOrderByWithAggregationInputSchema.array(),SessionOrderByWithAggregationInputSchema ]).optional(), - by: SessionScalarFieldEnumSchema.array(), - having: SessionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const SessionFindUniqueArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - where: SessionWhereUniqueInputSchema, -}).strict() - -export const SessionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - where: SessionWhereUniqueInputSchema, -}).strict() - -export const UserFindFirstArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - where: UserWhereInputSchema.optional(), - orderBy: z.union([ UserOrderByWithRelationInputSchema.array(),UserOrderByWithRelationInputSchema ]).optional(), - cursor: UserWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ UserScalarFieldEnumSchema,UserScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const UserFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - where: UserWhereInputSchema.optional(), - orderBy: z.union([ UserOrderByWithRelationInputSchema.array(),UserOrderByWithRelationInputSchema ]).optional(), - cursor: UserWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ UserScalarFieldEnumSchema,UserScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const UserFindManyArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - where: UserWhereInputSchema.optional(), - orderBy: z.union([ UserOrderByWithRelationInputSchema.array(),UserOrderByWithRelationInputSchema ]).optional(), - cursor: UserWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ UserScalarFieldEnumSchema,UserScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const UserAggregateArgsSchema: z.ZodType = z.object({ - where: UserWhereInputSchema.optional(), - orderBy: z.union([ UserOrderByWithRelationInputSchema.array(),UserOrderByWithRelationInputSchema ]).optional(), - cursor: UserWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const UserGroupByArgsSchema: z.ZodType = z.object({ - where: UserWhereInputSchema.optional(), - orderBy: z.union([ UserOrderByWithAggregationInputSchema.array(),UserOrderByWithAggregationInputSchema ]).optional(), - by: UserScalarFieldEnumSchema.array(), - having: UserScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const UserFindUniqueArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - where: UserWhereUniqueInputSchema, -}).strict() - -export const UserFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - where: UserWhereUniqueInputSchema, -}).strict() - -export const VerificationTokenFindFirstArgsSchema: z.ZodType = z.object({ - select: VerificationTokenSelectSchema.optional(), - where: VerificationTokenWhereInputSchema.optional(), - orderBy: z.union([ VerificationTokenOrderByWithRelationInputSchema.array(),VerificationTokenOrderByWithRelationInputSchema ]).optional(), - cursor: VerificationTokenWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ VerificationTokenScalarFieldEnumSchema,VerificationTokenScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const VerificationTokenFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: VerificationTokenSelectSchema.optional(), - where: VerificationTokenWhereInputSchema.optional(), - orderBy: z.union([ VerificationTokenOrderByWithRelationInputSchema.array(),VerificationTokenOrderByWithRelationInputSchema ]).optional(), - cursor: VerificationTokenWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ VerificationTokenScalarFieldEnumSchema,VerificationTokenScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const VerificationTokenFindManyArgsSchema: z.ZodType = z.object({ - select: VerificationTokenSelectSchema.optional(), - where: VerificationTokenWhereInputSchema.optional(), - orderBy: z.union([ VerificationTokenOrderByWithRelationInputSchema.array(),VerificationTokenOrderByWithRelationInputSchema ]).optional(), - cursor: VerificationTokenWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ VerificationTokenScalarFieldEnumSchema,VerificationTokenScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const VerificationTokenAggregateArgsSchema: z.ZodType = z.object({ - where: VerificationTokenWhereInputSchema.optional(), - orderBy: z.union([ VerificationTokenOrderByWithRelationInputSchema.array(),VerificationTokenOrderByWithRelationInputSchema ]).optional(), - cursor: VerificationTokenWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const VerificationTokenGroupByArgsSchema: z.ZodType = z.object({ - where: VerificationTokenWhereInputSchema.optional(), - orderBy: z.union([ VerificationTokenOrderByWithAggregationInputSchema.array(),VerificationTokenOrderByWithAggregationInputSchema ]).optional(), - by: VerificationTokenScalarFieldEnumSchema.array(), - having: VerificationTokenScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const VerificationTokenFindUniqueArgsSchema: z.ZodType = z.object({ - select: VerificationTokenSelectSchema.optional(), - where: VerificationTokenWhereUniqueInputSchema, -}).strict() - -export const VerificationTokenFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: VerificationTokenSelectSchema.optional(), - where: VerificationTokenWhereUniqueInputSchema, -}).strict() - -export const GameFindFirstArgsSchema: z.ZodType = z.object({ - select: GameSelectSchema.optional(), - include: GameIncludeSchema.optional(), - where: GameWhereInputSchema.optional(), - orderBy: z.union([ GameOrderByWithRelationInputSchema.array(),GameOrderByWithRelationInputSchema ]).optional(), - cursor: GameWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ GameScalarFieldEnumSchema,GameScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const GameFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: GameSelectSchema.optional(), - include: GameIncludeSchema.optional(), - where: GameWhereInputSchema.optional(), - orderBy: z.union([ GameOrderByWithRelationInputSchema.array(),GameOrderByWithRelationInputSchema ]).optional(), - cursor: GameWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ GameScalarFieldEnumSchema,GameScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const GameFindManyArgsSchema: z.ZodType = z.object({ - select: GameSelectSchema.optional(), - include: GameIncludeSchema.optional(), - where: GameWhereInputSchema.optional(), - orderBy: z.union([ GameOrderByWithRelationInputSchema.array(),GameOrderByWithRelationInputSchema ]).optional(), - cursor: GameWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ GameScalarFieldEnumSchema,GameScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const GameAggregateArgsSchema: z.ZodType = z.object({ - where: GameWhereInputSchema.optional(), - orderBy: z.union([ GameOrderByWithRelationInputSchema.array(),GameOrderByWithRelationInputSchema ]).optional(), - cursor: GameWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const GameGroupByArgsSchema: z.ZodType = z.object({ - where: GameWhereInputSchema.optional(), - orderBy: z.union([ GameOrderByWithAggregationInputSchema.array(),GameOrderByWithAggregationInputSchema ]).optional(), - by: GameScalarFieldEnumSchema.array(), - having: GameScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const GameFindUniqueArgsSchema: z.ZodType = z.object({ - select: GameSelectSchema.optional(), - include: GameIncludeSchema.optional(), - where: GameWhereUniqueInputSchema, -}).strict() - -export const GameFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: GameSelectSchema.optional(), - include: GameIncludeSchema.optional(), - where: GameWhereUniqueInputSchema, -}).strict() - -export const GamepinFindFirstArgsSchema: z.ZodType = z.object({ - select: GamepinSelectSchema.optional(), - include: GamepinIncludeSchema.optional(), - where: GamepinWhereInputSchema.optional(), - orderBy: z.union([ GamepinOrderByWithRelationInputSchema.array(),GamepinOrderByWithRelationInputSchema ]).optional(), - cursor: GamepinWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ GamepinScalarFieldEnumSchema,GamepinScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const GamepinFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: GamepinSelectSchema.optional(), - include: GamepinIncludeSchema.optional(), - where: GamepinWhereInputSchema.optional(), - orderBy: z.union([ GamepinOrderByWithRelationInputSchema.array(),GamepinOrderByWithRelationInputSchema ]).optional(), - cursor: GamepinWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ GamepinScalarFieldEnumSchema,GamepinScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const GamepinFindManyArgsSchema: z.ZodType = z.object({ - select: GamepinSelectSchema.optional(), - include: GamepinIncludeSchema.optional(), - where: GamepinWhereInputSchema.optional(), - orderBy: z.union([ GamepinOrderByWithRelationInputSchema.array(),GamepinOrderByWithRelationInputSchema ]).optional(), - cursor: GamepinWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ GamepinScalarFieldEnumSchema,GamepinScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const GamepinAggregateArgsSchema: z.ZodType = z.object({ - where: GamepinWhereInputSchema.optional(), - orderBy: z.union([ GamepinOrderByWithRelationInputSchema.array(),GamepinOrderByWithRelationInputSchema ]).optional(), - cursor: GamepinWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const GamepinGroupByArgsSchema: z.ZodType = z.object({ - where: GamepinWhereInputSchema.optional(), - orderBy: z.union([ GamepinOrderByWithAggregationInputSchema.array(),GamepinOrderByWithAggregationInputSchema ]).optional(), - by: GamepinScalarFieldEnumSchema.array(), - having: GamepinScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const GamepinFindUniqueArgsSchema: z.ZodType = z.object({ - select: GamepinSelectSchema.optional(), - include: GamepinIncludeSchema.optional(), - where: GamepinWhereUniqueInputSchema, -}).strict() - -export const GamepinFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: GamepinSelectSchema.optional(), - include: GamepinIncludeSchema.optional(), - where: GamepinWhereUniqueInputSchema, -}).strict() - -export const ShipFindFirstArgsSchema: z.ZodType = z.object({ - select: ShipSelectSchema.optional(), - include: ShipIncludeSchema.optional(), - where: ShipWhereInputSchema.optional(), - orderBy: z.union([ ShipOrderByWithRelationInputSchema.array(),ShipOrderByWithRelationInputSchema ]).optional(), - cursor: ShipWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ShipScalarFieldEnumSchema,ShipScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const ShipFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: ShipSelectSchema.optional(), - include: ShipIncludeSchema.optional(), - where: ShipWhereInputSchema.optional(), - orderBy: z.union([ ShipOrderByWithRelationInputSchema.array(),ShipOrderByWithRelationInputSchema ]).optional(), - cursor: ShipWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ShipScalarFieldEnumSchema,ShipScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const ShipFindManyArgsSchema: z.ZodType = z.object({ - select: ShipSelectSchema.optional(), - include: ShipIncludeSchema.optional(), - where: ShipWhereInputSchema.optional(), - orderBy: z.union([ ShipOrderByWithRelationInputSchema.array(),ShipOrderByWithRelationInputSchema ]).optional(), - cursor: ShipWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ShipScalarFieldEnumSchema,ShipScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const ShipAggregateArgsSchema: z.ZodType = z.object({ - where: ShipWhereInputSchema.optional(), - orderBy: z.union([ ShipOrderByWithRelationInputSchema.array(),ShipOrderByWithRelationInputSchema ]).optional(), - cursor: ShipWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const ShipGroupByArgsSchema: z.ZodType = z.object({ - where: ShipWhereInputSchema.optional(), - orderBy: z.union([ ShipOrderByWithAggregationInputSchema.array(),ShipOrderByWithAggregationInputSchema ]).optional(), - by: ShipScalarFieldEnumSchema.array(), - having: ShipScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const ShipFindUniqueArgsSchema: z.ZodType = z.object({ - select: ShipSelectSchema.optional(), - include: ShipIncludeSchema.optional(), - where: ShipWhereUniqueInputSchema, -}).strict() - -export const ShipFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: ShipSelectSchema.optional(), - include: ShipIncludeSchema.optional(), - where: ShipWhereUniqueInputSchema, -}).strict() - -export const HitFindFirstArgsSchema: z.ZodType = z.object({ - select: HitSelectSchema.optional(), - include: HitIncludeSchema.optional(), - where: HitWhereInputSchema.optional(), - orderBy: z.union([ HitOrderByWithRelationInputSchema.array(),HitOrderByWithRelationInputSchema ]).optional(), - cursor: HitWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ HitScalarFieldEnumSchema,HitScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const HitFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: HitSelectSchema.optional(), - include: HitIncludeSchema.optional(), - where: HitWhereInputSchema.optional(), - orderBy: z.union([ HitOrderByWithRelationInputSchema.array(),HitOrderByWithRelationInputSchema ]).optional(), - cursor: HitWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ HitScalarFieldEnumSchema,HitScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const HitFindManyArgsSchema: z.ZodType = z.object({ - select: HitSelectSchema.optional(), - include: HitIncludeSchema.optional(), - where: HitWhereInputSchema.optional(), - orderBy: z.union([ HitOrderByWithRelationInputSchema.array(),HitOrderByWithRelationInputSchema ]).optional(), - cursor: HitWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ HitScalarFieldEnumSchema,HitScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const HitAggregateArgsSchema: z.ZodType = z.object({ - where: HitWhereInputSchema.optional(), - orderBy: z.union([ HitOrderByWithRelationInputSchema.array(),HitOrderByWithRelationInputSchema ]).optional(), - cursor: HitWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const HitGroupByArgsSchema: z.ZodType = z.object({ - where: HitWhereInputSchema.optional(), - orderBy: z.union([ HitOrderByWithAggregationInputSchema.array(),HitOrderByWithAggregationInputSchema ]).optional(), - by: HitScalarFieldEnumSchema.array(), - having: HitScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const HitFindUniqueArgsSchema: z.ZodType = z.object({ - select: HitSelectSchema.optional(), - include: HitIncludeSchema.optional(), - where: HitWhereUniqueInputSchema, -}).strict() - -export const HitFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: HitSelectSchema.optional(), - include: HitIncludeSchema.optional(), - where: HitWhereUniqueInputSchema, -}).strict() - -export const User_GameFindFirstArgsSchema: z.ZodType = z.object({ - select: User_GameSelectSchema.optional(), - include: User_GameIncludeSchema.optional(), - where: User_GameWhereInputSchema.optional(), - orderBy: z.union([ User_GameOrderByWithRelationInputSchema.array(),User_GameOrderByWithRelationInputSchema ]).optional(), - cursor: User_GameWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ User_GameScalarFieldEnumSchema,User_GameScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const User_GameFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: User_GameSelectSchema.optional(), - include: User_GameIncludeSchema.optional(), - where: User_GameWhereInputSchema.optional(), - orderBy: z.union([ User_GameOrderByWithRelationInputSchema.array(),User_GameOrderByWithRelationInputSchema ]).optional(), - cursor: User_GameWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ User_GameScalarFieldEnumSchema,User_GameScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const User_GameFindManyArgsSchema: z.ZodType = z.object({ - select: User_GameSelectSchema.optional(), - include: User_GameIncludeSchema.optional(), - where: User_GameWhereInputSchema.optional(), - orderBy: z.union([ User_GameOrderByWithRelationInputSchema.array(),User_GameOrderByWithRelationInputSchema ]).optional(), - cursor: User_GameWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ User_GameScalarFieldEnumSchema,User_GameScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const User_GameAggregateArgsSchema: z.ZodType = z.object({ - where: User_GameWhereInputSchema.optional(), - orderBy: z.union([ User_GameOrderByWithRelationInputSchema.array(),User_GameOrderByWithRelationInputSchema ]).optional(), - cursor: User_GameWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const User_GameGroupByArgsSchema: z.ZodType = z.object({ - where: User_GameWhereInputSchema.optional(), - orderBy: z.union([ User_GameOrderByWithAggregationInputSchema.array(),User_GameOrderByWithAggregationInputSchema ]).optional(), - by: User_GameScalarFieldEnumSchema.array(), - having: User_GameScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const User_GameFindUniqueArgsSchema: z.ZodType = z.object({ - select: User_GameSelectSchema.optional(), - include: User_GameIncludeSchema.optional(), - where: User_GameWhereUniqueInputSchema, -}).strict() - -export const User_GameFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: User_GameSelectSchema.optional(), - include: User_GameIncludeSchema.optional(), - where: User_GameWhereUniqueInputSchema, -}).strict() - -export const MoveFindFirstArgsSchema: z.ZodType = z.object({ - select: MoveSelectSchema.optional(), - include: MoveIncludeSchema.optional(), - where: MoveWhereInputSchema.optional(), - orderBy: z.union([ MoveOrderByWithRelationInputSchema.array(),MoveOrderByWithRelationInputSchema ]).optional(), - cursor: MoveWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ MoveScalarFieldEnumSchema,MoveScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const MoveFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: MoveSelectSchema.optional(), - include: MoveIncludeSchema.optional(), - where: MoveWhereInputSchema.optional(), - orderBy: z.union([ MoveOrderByWithRelationInputSchema.array(),MoveOrderByWithRelationInputSchema ]).optional(), - cursor: MoveWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ MoveScalarFieldEnumSchema,MoveScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const MoveFindManyArgsSchema: z.ZodType = z.object({ - select: MoveSelectSchema.optional(), - include: MoveIncludeSchema.optional(), - where: MoveWhereInputSchema.optional(), - orderBy: z.union([ MoveOrderByWithRelationInputSchema.array(),MoveOrderByWithRelationInputSchema ]).optional(), - cursor: MoveWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ MoveScalarFieldEnumSchema,MoveScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const MoveAggregateArgsSchema: z.ZodType = z.object({ - where: MoveWhereInputSchema.optional(), - orderBy: z.union([ MoveOrderByWithRelationInputSchema.array(),MoveOrderByWithRelationInputSchema ]).optional(), - cursor: MoveWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const MoveGroupByArgsSchema: z.ZodType = z.object({ - where: MoveWhereInputSchema.optional(), - orderBy: z.union([ MoveOrderByWithAggregationInputSchema.array(),MoveOrderByWithAggregationInputSchema ]).optional(), - by: MoveScalarFieldEnumSchema.array(), - having: MoveScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const MoveFindUniqueArgsSchema: z.ZodType = z.object({ - select: MoveSelectSchema.optional(), - include: MoveIncludeSchema.optional(), - where: MoveWhereUniqueInputSchema, -}).strict() - -export const MoveFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: MoveSelectSchema.optional(), - include: MoveIncludeSchema.optional(), - where: MoveWhereUniqueInputSchema, -}).strict() - -export const ChatFindFirstArgsSchema: z.ZodType = z.object({ - select: ChatSelectSchema.optional(), - include: ChatIncludeSchema.optional(), - where: ChatWhereInputSchema.optional(), - orderBy: z.union([ ChatOrderByWithRelationInputSchema.array(),ChatOrderByWithRelationInputSchema ]).optional(), - cursor: ChatWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ChatScalarFieldEnumSchema,ChatScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const ChatFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: ChatSelectSchema.optional(), - include: ChatIncludeSchema.optional(), - where: ChatWhereInputSchema.optional(), - orderBy: z.union([ ChatOrderByWithRelationInputSchema.array(),ChatOrderByWithRelationInputSchema ]).optional(), - cursor: ChatWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ChatScalarFieldEnumSchema,ChatScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const ChatFindManyArgsSchema: z.ZodType = z.object({ - select: ChatSelectSchema.optional(), - include: ChatIncludeSchema.optional(), - where: ChatWhereInputSchema.optional(), - orderBy: z.union([ ChatOrderByWithRelationInputSchema.array(),ChatOrderByWithRelationInputSchema ]).optional(), - cursor: ChatWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ChatScalarFieldEnumSchema,ChatScalarFieldEnumSchema.array() ]).optional(), -}).strict() - -export const ChatAggregateArgsSchema: z.ZodType = z.object({ - where: ChatWhereInputSchema.optional(), - orderBy: z.union([ ChatOrderByWithRelationInputSchema.array(),ChatOrderByWithRelationInputSchema ]).optional(), - cursor: ChatWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const ChatGroupByArgsSchema: z.ZodType = z.object({ - where: ChatWhereInputSchema.optional(), - orderBy: z.union([ ChatOrderByWithAggregationInputSchema.array(),ChatOrderByWithAggregationInputSchema ]).optional(), - by: ChatScalarFieldEnumSchema.array(), - having: ChatScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() - -export const ChatFindUniqueArgsSchema: z.ZodType = z.object({ - select: ChatSelectSchema.optional(), - include: ChatIncludeSchema.optional(), - where: ChatWhereUniqueInputSchema, -}).strict() - -export const ChatFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: ChatSelectSchema.optional(), - include: ChatIncludeSchema.optional(), - where: ChatWhereUniqueInputSchema, -}).strict() - -export const AccountCreateArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - data: z.union([ AccountCreateInputSchema,AccountUncheckedCreateInputSchema ]), -}).strict() - -export const AccountUpsertArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - where: AccountWhereUniqueInputSchema, - create: z.union([ AccountCreateInputSchema,AccountUncheckedCreateInputSchema ]), - update: z.union([ AccountUpdateInputSchema,AccountUncheckedUpdateInputSchema ]), -}).strict() - -export const AccountCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ AccountCreateManyInputSchema,AccountCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() - -export const AccountDeleteArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - where: AccountWhereUniqueInputSchema, -}).strict() - -export const AccountUpdateArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - data: z.union([ AccountUpdateInputSchema,AccountUncheckedUpdateInputSchema ]), - where: AccountWhereUniqueInputSchema, -}).strict() - -export const AccountUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ AccountUpdateManyMutationInputSchema,AccountUncheckedUpdateManyInputSchema ]), - where: AccountWhereInputSchema.optional(), -}).strict() - -export const AccountDeleteManyArgsSchema: z.ZodType = z.object({ - where: AccountWhereInputSchema.optional(), -}).strict() - -export const SessionCreateArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - data: z.union([ SessionCreateInputSchema,SessionUncheckedCreateInputSchema ]), -}).strict() - -export const SessionUpsertArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - where: SessionWhereUniqueInputSchema, - create: z.union([ SessionCreateInputSchema,SessionUncheckedCreateInputSchema ]), - update: z.union([ SessionUpdateInputSchema,SessionUncheckedUpdateInputSchema ]), -}).strict() - -export const SessionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ SessionCreateManyInputSchema,SessionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() - -export const SessionDeleteArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - where: SessionWhereUniqueInputSchema, -}).strict() - -export const SessionUpdateArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - data: z.union([ SessionUpdateInputSchema,SessionUncheckedUpdateInputSchema ]), - where: SessionWhereUniqueInputSchema, -}).strict() - -export const SessionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ SessionUpdateManyMutationInputSchema,SessionUncheckedUpdateManyInputSchema ]), - where: SessionWhereInputSchema.optional(), -}).strict() - -export const SessionDeleteManyArgsSchema: z.ZodType = z.object({ - where: SessionWhereInputSchema.optional(), -}).strict() - -export const UserCreateArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - data: z.union([ UserCreateInputSchema,UserUncheckedCreateInputSchema ]), -}).strict() - -export const UserUpsertArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - where: UserWhereUniqueInputSchema, - create: z.union([ UserCreateInputSchema,UserUncheckedCreateInputSchema ]), - update: z.union([ UserUpdateInputSchema,UserUncheckedUpdateInputSchema ]), -}).strict() - -export const UserCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ UserCreateManyInputSchema,UserCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() - -export const UserDeleteArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - where: UserWhereUniqueInputSchema, -}).strict() - -export const UserUpdateArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - data: z.union([ UserUpdateInputSchema,UserUncheckedUpdateInputSchema ]), - where: UserWhereUniqueInputSchema, -}).strict() - -export const UserUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ UserUpdateManyMutationInputSchema,UserUncheckedUpdateManyInputSchema ]), - where: UserWhereInputSchema.optional(), -}).strict() - -export const UserDeleteManyArgsSchema: z.ZodType = z.object({ - where: UserWhereInputSchema.optional(), -}).strict() - -export const VerificationTokenCreateArgsSchema: z.ZodType = z.object({ - select: VerificationTokenSelectSchema.optional(), - data: z.union([ VerificationTokenCreateInputSchema,VerificationTokenUncheckedCreateInputSchema ]), -}).strict() - -export const VerificationTokenUpsertArgsSchema: z.ZodType = z.object({ - select: VerificationTokenSelectSchema.optional(), - where: VerificationTokenWhereUniqueInputSchema, - create: z.union([ VerificationTokenCreateInputSchema,VerificationTokenUncheckedCreateInputSchema ]), - update: z.union([ VerificationTokenUpdateInputSchema,VerificationTokenUncheckedUpdateInputSchema ]), -}).strict() - -export const VerificationTokenCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ VerificationTokenCreateManyInputSchema,VerificationTokenCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() - -export const VerificationTokenDeleteArgsSchema: z.ZodType = z.object({ - select: VerificationTokenSelectSchema.optional(), - where: VerificationTokenWhereUniqueInputSchema, -}).strict() - -export const VerificationTokenUpdateArgsSchema: z.ZodType = z.object({ - select: VerificationTokenSelectSchema.optional(), - data: z.union([ VerificationTokenUpdateInputSchema,VerificationTokenUncheckedUpdateInputSchema ]), - where: VerificationTokenWhereUniqueInputSchema, -}).strict() - -export const VerificationTokenUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ VerificationTokenUpdateManyMutationInputSchema,VerificationTokenUncheckedUpdateManyInputSchema ]), - where: VerificationTokenWhereInputSchema.optional(), -}).strict() - -export const VerificationTokenDeleteManyArgsSchema: z.ZodType = z.object({ - where: VerificationTokenWhereInputSchema.optional(), -}).strict() - -export const GameCreateArgsSchema: z.ZodType = z.object({ - select: GameSelectSchema.optional(), - include: GameIncludeSchema.optional(), - data: z.union([ GameCreateInputSchema,GameUncheckedCreateInputSchema ]), -}).strict() - -export const GameUpsertArgsSchema: z.ZodType = z.object({ - select: GameSelectSchema.optional(), - include: GameIncludeSchema.optional(), - where: GameWhereUniqueInputSchema, - create: z.union([ GameCreateInputSchema,GameUncheckedCreateInputSchema ]), - update: z.union([ GameUpdateInputSchema,GameUncheckedUpdateInputSchema ]), -}).strict() - -export const GameCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ GameCreateManyInputSchema,GameCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() - -export const GameDeleteArgsSchema: z.ZodType = z.object({ - select: GameSelectSchema.optional(), - include: GameIncludeSchema.optional(), - where: GameWhereUniqueInputSchema, -}).strict() - -export const GameUpdateArgsSchema: z.ZodType = z.object({ - select: GameSelectSchema.optional(), - include: GameIncludeSchema.optional(), - data: z.union([ GameUpdateInputSchema,GameUncheckedUpdateInputSchema ]), - where: GameWhereUniqueInputSchema, -}).strict() - -export const GameUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ GameUpdateManyMutationInputSchema,GameUncheckedUpdateManyInputSchema ]), - where: GameWhereInputSchema.optional(), -}).strict() - -export const GameDeleteManyArgsSchema: z.ZodType = z.object({ - where: GameWhereInputSchema.optional(), -}).strict() - -export const GamepinCreateArgsSchema: z.ZodType = z.object({ - select: GamepinSelectSchema.optional(), - include: GamepinIncludeSchema.optional(), - data: z.union([ GamepinCreateInputSchema,GamepinUncheckedCreateInputSchema ]), -}).strict() - -export const GamepinUpsertArgsSchema: z.ZodType = z.object({ - select: GamepinSelectSchema.optional(), - include: GamepinIncludeSchema.optional(), - where: GamepinWhereUniqueInputSchema, - create: z.union([ GamepinCreateInputSchema,GamepinUncheckedCreateInputSchema ]), - update: z.union([ GamepinUpdateInputSchema,GamepinUncheckedUpdateInputSchema ]), -}).strict() - -export const GamepinCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ GamepinCreateManyInputSchema,GamepinCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() - -export const GamepinDeleteArgsSchema: z.ZodType = z.object({ - select: GamepinSelectSchema.optional(), - include: GamepinIncludeSchema.optional(), - where: GamepinWhereUniqueInputSchema, -}).strict() - -export const GamepinUpdateArgsSchema: z.ZodType = z.object({ - select: GamepinSelectSchema.optional(), - include: GamepinIncludeSchema.optional(), - data: z.union([ GamepinUpdateInputSchema,GamepinUncheckedUpdateInputSchema ]), - where: GamepinWhereUniqueInputSchema, -}).strict() - -export const GamepinUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ GamepinUpdateManyMutationInputSchema,GamepinUncheckedUpdateManyInputSchema ]), - where: GamepinWhereInputSchema.optional(), -}).strict() - -export const GamepinDeleteManyArgsSchema: z.ZodType = z.object({ - where: GamepinWhereInputSchema.optional(), -}).strict() - -export const ShipCreateArgsSchema: z.ZodType = z.object({ - select: ShipSelectSchema.optional(), - include: ShipIncludeSchema.optional(), - data: z.union([ ShipCreateInputSchema,ShipUncheckedCreateInputSchema ]), -}).strict() - -export const ShipUpsertArgsSchema: z.ZodType = z.object({ - select: ShipSelectSchema.optional(), - include: ShipIncludeSchema.optional(), - where: ShipWhereUniqueInputSchema, - create: z.union([ ShipCreateInputSchema,ShipUncheckedCreateInputSchema ]), - update: z.union([ ShipUpdateInputSchema,ShipUncheckedUpdateInputSchema ]), -}).strict() - -export const ShipCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ShipCreateManyInputSchema,ShipCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() - -export const ShipDeleteArgsSchema: z.ZodType = z.object({ - select: ShipSelectSchema.optional(), - include: ShipIncludeSchema.optional(), - where: ShipWhereUniqueInputSchema, -}).strict() - -export const ShipUpdateArgsSchema: z.ZodType = z.object({ - select: ShipSelectSchema.optional(), - include: ShipIncludeSchema.optional(), - data: z.union([ ShipUpdateInputSchema,ShipUncheckedUpdateInputSchema ]), - where: ShipWhereUniqueInputSchema, -}).strict() - -export const ShipUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ShipUpdateManyMutationInputSchema,ShipUncheckedUpdateManyInputSchema ]), - where: ShipWhereInputSchema.optional(), -}).strict() - -export const ShipDeleteManyArgsSchema: z.ZodType = z.object({ - where: ShipWhereInputSchema.optional(), -}).strict() - -export const HitCreateArgsSchema: z.ZodType = z.object({ - select: HitSelectSchema.optional(), - include: HitIncludeSchema.optional(), - data: z.union([ HitCreateInputSchema,HitUncheckedCreateInputSchema ]), -}).strict() - -export const HitUpsertArgsSchema: z.ZodType = z.object({ - select: HitSelectSchema.optional(), - include: HitIncludeSchema.optional(), - where: HitWhereUniqueInputSchema, - create: z.union([ HitCreateInputSchema,HitUncheckedCreateInputSchema ]), - update: z.union([ HitUpdateInputSchema,HitUncheckedUpdateInputSchema ]), -}).strict() - -export const HitCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ HitCreateManyInputSchema,HitCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() - -export const HitDeleteArgsSchema: z.ZodType = z.object({ - select: HitSelectSchema.optional(), - include: HitIncludeSchema.optional(), - where: HitWhereUniqueInputSchema, -}).strict() - -export const HitUpdateArgsSchema: z.ZodType = z.object({ - select: HitSelectSchema.optional(), - include: HitIncludeSchema.optional(), - data: z.union([ HitUpdateInputSchema,HitUncheckedUpdateInputSchema ]), - where: HitWhereUniqueInputSchema, -}).strict() - -export const HitUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ HitUpdateManyMutationInputSchema,HitUncheckedUpdateManyInputSchema ]), - where: HitWhereInputSchema.optional(), -}).strict() - -export const HitDeleteManyArgsSchema: z.ZodType = z.object({ - where: HitWhereInputSchema.optional(), -}).strict() - -export const User_GameCreateArgsSchema: z.ZodType = z.object({ - select: User_GameSelectSchema.optional(), - include: User_GameIncludeSchema.optional(), - data: z.union([ User_GameCreateInputSchema,User_GameUncheckedCreateInputSchema ]), -}).strict() - -export const User_GameUpsertArgsSchema: z.ZodType = z.object({ - select: User_GameSelectSchema.optional(), - include: User_GameIncludeSchema.optional(), - where: User_GameWhereUniqueInputSchema, - create: z.union([ User_GameCreateInputSchema,User_GameUncheckedCreateInputSchema ]), - update: z.union([ User_GameUpdateInputSchema,User_GameUncheckedUpdateInputSchema ]), -}).strict() - -export const User_GameCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ User_GameCreateManyInputSchema,User_GameCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() - -export const User_GameDeleteArgsSchema: z.ZodType = z.object({ - select: User_GameSelectSchema.optional(), - include: User_GameIncludeSchema.optional(), - where: User_GameWhereUniqueInputSchema, -}).strict() - -export const User_GameUpdateArgsSchema: z.ZodType = z.object({ - select: User_GameSelectSchema.optional(), - include: User_GameIncludeSchema.optional(), - data: z.union([ User_GameUpdateInputSchema,User_GameUncheckedUpdateInputSchema ]), - where: User_GameWhereUniqueInputSchema, -}).strict() - -export const User_GameUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ User_GameUpdateManyMutationInputSchema,User_GameUncheckedUpdateManyInputSchema ]), - where: User_GameWhereInputSchema.optional(), -}).strict() - -export const User_GameDeleteManyArgsSchema: z.ZodType = z.object({ - where: User_GameWhereInputSchema.optional(), -}).strict() - -export const MoveCreateArgsSchema: z.ZodType = z.object({ - select: MoveSelectSchema.optional(), - include: MoveIncludeSchema.optional(), - data: z.union([ MoveCreateInputSchema,MoveUncheckedCreateInputSchema ]), -}).strict() - -export const MoveUpsertArgsSchema: z.ZodType = z.object({ - select: MoveSelectSchema.optional(), - include: MoveIncludeSchema.optional(), - where: MoveWhereUniqueInputSchema, - create: z.union([ MoveCreateInputSchema,MoveUncheckedCreateInputSchema ]), - update: z.union([ MoveUpdateInputSchema,MoveUncheckedUpdateInputSchema ]), -}).strict() - -export const MoveCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ MoveCreateManyInputSchema,MoveCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() - -export const MoveDeleteArgsSchema: z.ZodType = z.object({ - select: MoveSelectSchema.optional(), - include: MoveIncludeSchema.optional(), - where: MoveWhereUniqueInputSchema, -}).strict() - -export const MoveUpdateArgsSchema: z.ZodType = z.object({ - select: MoveSelectSchema.optional(), - include: MoveIncludeSchema.optional(), - data: z.union([ MoveUpdateInputSchema,MoveUncheckedUpdateInputSchema ]), - where: MoveWhereUniqueInputSchema, -}).strict() - -export const MoveUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ MoveUpdateManyMutationInputSchema,MoveUncheckedUpdateManyInputSchema ]), - where: MoveWhereInputSchema.optional(), -}).strict() - -export const MoveDeleteManyArgsSchema: z.ZodType = z.object({ - where: MoveWhereInputSchema.optional(), -}).strict() - -export const ChatCreateArgsSchema: z.ZodType = z.object({ - select: ChatSelectSchema.optional(), - include: ChatIncludeSchema.optional(), - data: z.union([ ChatCreateInputSchema,ChatUncheckedCreateInputSchema ]), -}).strict() - -export const ChatUpsertArgsSchema: z.ZodType = z.object({ - select: ChatSelectSchema.optional(), - include: ChatIncludeSchema.optional(), - where: ChatWhereUniqueInputSchema, - create: z.union([ ChatCreateInputSchema,ChatUncheckedCreateInputSchema ]), - update: z.union([ ChatUpdateInputSchema,ChatUncheckedUpdateInputSchema ]), -}).strict() - -export const ChatCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ChatCreateManyInputSchema,ChatCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() - -export const ChatDeleteArgsSchema: z.ZodType = z.object({ - select: ChatSelectSchema.optional(), - include: ChatIncludeSchema.optional(), - where: ChatWhereUniqueInputSchema, -}).strict() - -export const ChatUpdateArgsSchema: z.ZodType = z.object({ - select: ChatSelectSchema.optional(), - include: ChatIncludeSchema.optional(), - data: z.union([ ChatUpdateInputSchema,ChatUncheckedUpdateInputSchema ]), - where: ChatWhereUniqueInputSchema, -}).strict() - -export const ChatUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ChatUpdateManyMutationInputSchema,ChatUncheckedUpdateManyInputSchema ]), - where: ChatWhereInputSchema.optional(), -}).strict() - -export const ChatDeleteManyArgsSchema: z.ZodType = z.object({ - where: ChatWhereInputSchema.optional(), -}).strict() \ No newline at end of file diff --git a/leaky-ships/prisma/schema.prisma b/leaky-ships/prisma/schema.prisma index 9cde5db..8d033a5 100644 --- a/leaky-ships/prisma/schema.prisma +++ b/leaky-ships/prisma/schema.prisma @@ -50,13 +50,13 @@ model User { email String? @unique emailVerified DateTime? @map("email_verified") image String? - createdAt DateTime @default(now()) @map(name: "created_at") - updatedAt DateTime @updatedAt @map(name: "updated_at") + createdAt DateTime @default(now()) @map("created_at") + updatedAt DateTime @updatedAt @map("updated_at") games User_Game[] accounts Account[] sessions Session[] - @@map(name: "users") + @@map("users") } model VerificationToken { diff --git a/leaky-ships/src/components/BurgerMenu.tsx b/leaky-ships/src/components/BurgerMenu.tsx index 32e1cf1..12d5833 100644 --- a/leaky-ships/src/components/BurgerMenu.tsx +++ b/leaky-ships/src/components/BurgerMenu.tsx @@ -1,9 +1,6 @@ import classNames from "classnames" -function BurgerMenu(props: { - onClick?: () => void - blur?: boolean -}) { +function BurgerMenu(props: { onClick?: () => void; blur?: boolean }) { return (