diff --git a/prisma/migrations/20260208084950_replace_category_table_with_strings/migration.sql b/prisma/migrations/20260208084950_replace_category_table_with_strings/migration.sql new file mode 100644 index 0000000..bf064f2 --- /dev/null +++ b/prisma/migrations/20260208084950_replace_category_table_with_strings/migration.sql @@ -0,0 +1,33 @@ +/* + Warnings: + + - You are about to drop the `categories` table. If the table is not empty, all the data it contains will be lost. + - You are about to drop the column `category_id` on the `equipments` table. All the data in the column will be lost. + - You are about to drop the column `sub_category_id` on the `equipments` table. All the data in the column will be lost. + - Added the required column `category` to the `equipments` table without a default value. This is not possible if the table is not empty. + +*/ +-- DropTable +PRAGMA foreign_keys=off; +DROP TABLE "categories"; +PRAGMA foreign_keys=on; + +-- RedefineTables +PRAGMA defer_foreign_keys=ON; +PRAGMA foreign_keys=OFF; +CREATE TABLE "new_equipments" ( + "id" TEXT NOT NULL PRIMARY KEY, + "name" TEXT NOT NULL, + "description" TEXT NOT NULL, + "category" TEXT NOT NULL, + "sub_category" TEXT, + "image_id" TEXT NOT NULL, + "created_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" DATETIME NOT NULL, + CONSTRAINT "equipments_image_id_fkey" FOREIGN KEY ("image_id") REFERENCES "assets" ("id") ON DELETE RESTRICT ON UPDATE CASCADE +); +INSERT INTO "new_equipments" ("created_at", "description", "id", "image_id", "name", "updated_at") SELECT "created_at", "description", "id", "image_id", "name", "updated_at" FROM "equipments"; +DROP TABLE "equipments"; +ALTER TABLE "new_equipments" RENAME TO "equipments"; +PRAGMA foreign_keys=ON; +PRAGMA defer_foreign_keys=OFF; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 87dc8f3..0113002 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -42,37 +42,19 @@ model Character { @@map("characters") } -model Category { - id String @id - name String - parentId String? @map("parent_id") - createdAt DateTime @default(now()) @map("created_at") - updatedAt DateTime @updatedAt @map("updated_at") - - // Relations - parent Category? @relation("CategoryToSubCategory", fields: [parentId], references: [id]) - subCategories Category[] @relation("CategoryToSubCategory") - equipmentsAsMain Equipment[] @relation("CategoryMain") - equipmentsAsSub Equipment[] @relation("CategorySub") - - @@map("categories") -} - model Equipment { - id String @id - name String - description String - categoryId String @map("category_id") - subCategoryId String? @map("sub_category_id") - imageId String @map("image_id") - createdAt DateTime @default(now()) @map("created_at") - updatedAt DateTime @updatedAt @map("updated_at") + id String @id + name String + description String + category String + subCategory String? @map("sub_category") + imageId String @map("image_id") + createdAt DateTime @default(now()) @map("created_at") + updatedAt DateTime @updatedAt @map("updated_at") // Relations - category Category @relation("CategoryMain", fields: [categoryId], references: [id]) - subCategory Category? @relation("CategorySub", fields: [subCategoryId], references: [id]) - image Asset @relation(fields: [imageId], references: [id]) - generations GenerationEquipment[] + image Asset @relation(fields: [imageId], references: [id]) + generations GenerationEquipment[] @@map("equipments") } diff --git a/src/api/equipment.test.ts b/src/api/equipment.test.ts index 384edd6..e3e6e93 100644 --- a/src/api/equipment.test.ts +++ b/src/api/equipment.test.ts @@ -17,7 +17,7 @@ describe('Equipment API', () => { it('GET / should list equipments with filters', async () => { mockEquipmentService.listEquipments.mockResolvedValue({ items: [], total: 0 }) - const req = new Request('http://localhost/?categoryId=cat1', { + const req = new Request('http://localhost/?category=Headwear', { method: 'GET', }) @@ -25,7 +25,7 @@ describe('Equipment API', () => { expect(res.status).toBe(200) expect(mockEquipmentService.listEquipments).toHaveBeenCalledWith( { page: 1, limit: 20 }, - { categoryId: 'cat1', subCategoryId: undefined }, + { category: 'Headwear', subCategory: undefined }, ) }) }) diff --git a/src/api/equipment.ts b/src/api/equipment.ts index ca8f5dd..cd9a674 100644 --- a/src/api/equipment.ts +++ b/src/api/equipment.ts @@ -8,17 +8,14 @@ const app = new Hono() const listSchema = z.object({ page: z.coerce.number().optional().default(1), limit: z.coerce.number().optional().default(20), - categoryId: z.string().optional(), - subCategoryId: z.string().optional(), + category: z.string().optional(), + subCategory: z.string().optional(), }) const route = app.get('/', zValidator('query', listSchema), async (c) => { - const { page, limit, categoryId, subCategoryId } = c.req.valid('query') + const { page, limit, category, subCategory } = c.req.valid('query') - const result = await equipmentService.listEquipments( - { page, limit }, - { categoryId, subCategoryId }, - ) + const result = await equipmentService.listEquipments({ page, limit }, { category, subCategory }) return c.json(result) }) diff --git a/src/api/extract.ts b/src/api/extract.ts index 0eb7db4..4d5de57 100644 --- a/src/api/extract.ts +++ b/src/api/extract.ts @@ -5,7 +5,6 @@ import { z } from 'zod' import { extractionService } from '../service/extraction' import { fileService } from '../service/file' import { equipmentService } from '../service/equipment' -import { categoryService } from '../service/category' import { assetService } from '../service/asset' const app = new Hono() @@ -66,7 +65,7 @@ const route = app.post('/', zValidator('form', extractSchema), async (c) => { let boxes try { - boxes = await extractionService.detectBoundingBoxes(sheetBase64) + boxes = await extractionService.detectBoundingBoxes(sheetBase64, analysis.assets) } catch (err: unknown) { throw new Error(`Detection failed: ${err instanceof Error ? err.message : String(err)}`, { cause: err, @@ -89,7 +88,8 @@ const route = app.post('/', zValidator('form', extractSchema), async (c) => { const originalMeta = analysis.assets.find((a) => a.item_name === crop.name) || { item_name: crop.name, description: 'Extracted asset', - category: 'Uncategorized', + category: 'Others', + sub_category: 'Others', background_color: 'unknown', } @@ -106,20 +106,26 @@ const route = app.post('/', zValidator('form', extractSchema), async (c) => { path: savedFile.filename, }) - // Find or create category - const categoryId = await categoryService.findOrCreate(originalMeta.category) - - // Create Equipment record linked to Asset and Category + // Create Equipment record linked to Asset and using string categories const equipment = await equipmentService.createEquipment({ name: originalMeta.item_name, description: originalMeta.description, imageId: asset.id, - categoryId: categoryId, + category: originalMeta.category, + subCategory: originalMeta.sub_category, }) - refinedAssets.push({ + const refinedAsset = { ...equipment, imageUrl: `/files/${savedFile.filename}`, // Frontend needs URL + } + + refinedAssets.push(refinedAsset) + + // Stream event for progressive display + await stream.writeSSE({ + event: 'asset_refined', + data: JSON.stringify({ asset: refinedAsset }), }) } diff --git a/src/generated/prisma/browser.ts b/src/generated/prisma/browser.ts index ac5c4b6..d0b5239 100644 --- a/src/generated/prisma/browser.ts +++ b/src/generated/prisma/browser.ts @@ -1,3 +1,4 @@ + /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file @@ -15,7 +16,7 @@ import * as Prisma from './internal/prismaNamespaceBrowser.ts' export { Prisma } export * as $Enums from './enums.ts' -export * from './enums.ts' +export * from './enums.ts'; /** * Model Asset * @@ -26,11 +27,6 @@ export type Asset = Prisma.AssetModel * */ export type Character = Prisma.CharacterModel -/** - * Model Category - * - */ -export type Category = Prisma.CategoryModel /** * Model Equipment * diff --git a/src/generated/prisma/client.ts b/src/generated/prisma/client.ts index 9468626..6e602e2 100644 --- a/src/generated/prisma/client.ts +++ b/src/generated/prisma/client.ts @@ -1,3 +1,4 @@ + /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file @@ -14,13 +15,13 @@ import * as path from 'node:path' import { fileURLToPath } from 'node:url' globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url)) -import * as runtime from '@prisma/client/runtime/client' -import * as $Enums from './enums.ts' -import * as $Class from './internal/class.ts' -import * as Prisma from './internal/prismaNamespace.ts' +import * as runtime from "@prisma/client/runtime/client" +import * as $Enums from "./enums.ts" +import * as $Class from "./internal/class.ts" +import * as Prisma from "./internal/prismaNamespace.ts" export * as $Enums from './enums.ts' -export * from './enums.ts' +export * from "./enums.ts" /** * ## Prisma Client * @@ -35,11 +36,7 @@ export * from './enums.ts' * Read more in our [docs](https://pris.ly/d/client). */ export const PrismaClient = $Class.getPrismaClientClass() -export type PrismaClient< - LogOpts extends Prisma.LogLevel = never, - OmitOpts extends Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'], - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = $Class.PrismaClient +export type PrismaClient = $Class.PrismaClient export { Prisma } /** @@ -52,11 +49,6 @@ export type Asset = Prisma.AssetModel * */ export type Character = Prisma.CharacterModel -/** - * Model Category - * - */ -export type Category = Prisma.CategoryModel /** * Model Equipment * diff --git a/src/generated/prisma/commonInputTypes.ts b/src/generated/prisma/commonInputTypes.ts index 1e2a832..e9bb4b6 100644 --- a/src/generated/prisma/commonInputTypes.ts +++ b/src/generated/prisma/commonInputTypes.ts @@ -1,3 +1,4 @@ + /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file @@ -8,9 +9,10 @@ * 🟢 You can import this file directly. */ -import type * as runtime from '@prisma/client/runtime/client' -import * as $Enums from './enums.ts' -import type * as Prisma from './internal/prismaNamespace.ts' +import type * as runtime from "@prisma/client/runtime/client" +import * as $Enums from "./enums.ts" +import type * as Prisma from "./internal/prismaNamespace.ts" + export type StringFilter<$PrismaModel = never> = { equals?: string | Prisma.StringFieldRefInput<$PrismaModel> diff --git a/src/generated/prisma/enums.ts b/src/generated/prisma/enums.ts index 84979fb..a696c2e 100644 --- a/src/generated/prisma/enums.ts +++ b/src/generated/prisma/enums.ts @@ -1,12 +1,15 @@ + /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* - * This file exports all enum related types from the schema. - * - * 🟢 You can import this file directly. - */ +* This file exports all enum related types from the schema. +* +* 🟢 You can import this file directly. +*/ + + // This file is empty because there are no enums in the schema. export {} diff --git a/src/generated/prisma/internal/class.ts b/src/generated/prisma/internal/class.ts index c9dcbd6..cd89b9f 100644 --- a/src/generated/prisma/internal/class.ts +++ b/src/generated/prisma/internal/class.ts @@ -1,3 +1,4 @@ + /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file @@ -10,26 +11,26 @@ * Please import the `PrismaClient` class from the `client.ts` file instead. */ -import * as runtime from '@prisma/client/runtime/client' -import type * as Prisma from './prismaNamespace.ts' +import * as runtime from "@prisma/client/runtime/client" +import type * as Prisma from "./prismaNamespace.ts" + const config: runtime.GetPrismaClientConfig = { - previewFeatures: ['driverAdapters'], - clientVersion: '7.3.0', - engineVersion: '9d6ad21cbbceab97458517b147a6a09ff43aa735', - activeProvider: 'sqlite', - inlineSchema: - '// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = "prisma-client"\n output = "../src/generated/prisma"\n previewFeatures = ["driverAdapters"]\n}\n\ndatasource db {\n provider = "sqlite"\n}\n\nmodel Asset {\n id String @id\n name String\n type String\n path String\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n // Relations\n characters Character[]\n equipments Equipment[]\n generations Generation[]\n\n @@map("assets")\n}\n\nmodel Character {\n id String @id\n name String\n description String?\n imageId String @map("image_id")\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n // Relations\n image Asset @relation(fields: [imageId], references: [id])\n generations Generation[]\n\n @@map("characters")\n}\n\nmodel Category {\n id String @id\n name String\n parentId String? @map("parent_id")\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n // Relations\n parent Category? @relation("CategoryToSubCategory", fields: [parentId], references: [id])\n subCategories Category[] @relation("CategoryToSubCategory")\n equipmentsAsMain Equipment[] @relation("CategoryMain")\n equipmentsAsSub Equipment[] @relation("CategorySub")\n\n @@map("categories")\n}\n\nmodel Equipment {\n id String @id\n name String\n description String\n categoryId String @map("category_id")\n subCategoryId String? @map("sub_category_id")\n imageId String @map("image_id")\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n // Relations\n category Category @relation("CategoryMain", fields: [categoryId], references: [id])\n subCategory Category? @relation("CategorySub", fields: [subCategoryId], references: [id])\n image Asset @relation(fields: [imageId], references: [id])\n generations GenerationEquipment[]\n\n @@map("equipments")\n}\n\nmodel Generation {\n id String @id\n characterId String @map("character_id")\n imageId String @map("image_id")\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n // Relations\n character Character @relation(fields: [characterId], references: [id])\n image Asset @relation(fields: [imageId], references: [id])\n equipments GenerationEquipment[]\n\n @@map("generations")\n}\n\nmodel GenerationEquipment {\n generationId String @map("generation_id")\n equipmentId String @map("equipment_id")\n\n generation Generation @relation(fields: [generationId], references: [id])\n equipment Equipment @relation(fields: [equipmentId], references: [id])\n\n @@id([generationId, equipmentId])\n @@map("generation_equipments")\n}\n', - runtimeDataModel: { - models: {}, - enums: {}, - types: {}, - }, + "previewFeatures": [ + "driverAdapters" + ], + "clientVersion": "7.3.0", + "engineVersion": "9d6ad21cbbceab97458517b147a6a09ff43aa735", + "activeProvider": "sqlite", + "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = \"prisma-client\"\n output = \"../src/generated/prisma\"\n previewFeatures = [\"driverAdapters\"]\n}\n\ndatasource db {\n provider = \"sqlite\"\n}\n\nmodel Asset {\n id String @id\n name String\n type String\n path String\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n // Relations\n characters Character[]\n equipments Equipment[]\n generations Generation[]\n\n @@map(\"assets\")\n}\n\nmodel Character {\n id String @id\n name String\n description String?\n imageId String @map(\"image_id\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n // Relations\n image Asset @relation(fields: [imageId], references: [id])\n generations Generation[]\n\n @@map(\"characters\")\n}\n\nmodel Equipment {\n id String @id\n name String\n description String\n category String\n subCategory String? @map(\"sub_category\")\n imageId String @map(\"image_id\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n // Relations\n image Asset @relation(fields: [imageId], references: [id])\n generations GenerationEquipment[]\n\n @@map(\"equipments\")\n}\n\nmodel Generation {\n id String @id\n characterId String @map(\"character_id\")\n imageId String @map(\"image_id\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n // Relations\n character Character @relation(fields: [characterId], references: [id])\n image Asset @relation(fields: [imageId], references: [id])\n equipments GenerationEquipment[]\n\n @@map(\"generations\")\n}\n\nmodel GenerationEquipment {\n generationId String @map(\"generation_id\")\n equipmentId String @map(\"equipment_id\")\n\n generation Generation @relation(fields: [generationId], references: [id])\n equipment Equipment @relation(fields: [equipmentId], references: [id])\n\n @@id([generationId, equipmentId])\n @@map(\"generation_equipments\")\n}\n", + "runtimeDataModel": { + "models": {}, + "enums": {}, + "types": {} + } } -config.runtimeDataModel = JSON.parse( - '{"models":{"Asset":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"name","kind":"scalar","type":"String"},{"name":"type","kind":"scalar","type":"String"},{"name":"path","kind":"scalar","type":"String"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"characters","kind":"object","type":"Character","relationName":"AssetToCharacter"},{"name":"equipments","kind":"object","type":"Equipment","relationName":"AssetToEquipment"},{"name":"generations","kind":"object","type":"Generation","relationName":"AssetToGeneration"}],"dbName":"assets"},"Character":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"name","kind":"scalar","type":"String"},{"name":"description","kind":"scalar","type":"String"},{"name":"imageId","kind":"scalar","type":"String","dbName":"image_id"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"image","kind":"object","type":"Asset","relationName":"AssetToCharacter"},{"name":"generations","kind":"object","type":"Generation","relationName":"CharacterToGeneration"}],"dbName":"characters"},"Category":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"name","kind":"scalar","type":"String"},{"name":"parentId","kind":"scalar","type":"String","dbName":"parent_id"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"parent","kind":"object","type":"Category","relationName":"CategoryToSubCategory"},{"name":"subCategories","kind":"object","type":"Category","relationName":"CategoryToSubCategory"},{"name":"equipmentsAsMain","kind":"object","type":"Equipment","relationName":"CategoryMain"},{"name":"equipmentsAsSub","kind":"object","type":"Equipment","relationName":"CategorySub"}],"dbName":"categories"},"Equipment":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"name","kind":"scalar","type":"String"},{"name":"description","kind":"scalar","type":"String"},{"name":"categoryId","kind":"scalar","type":"String","dbName":"category_id"},{"name":"subCategoryId","kind":"scalar","type":"String","dbName":"sub_category_id"},{"name":"imageId","kind":"scalar","type":"String","dbName":"image_id"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"category","kind":"object","type":"Category","relationName":"CategoryMain"},{"name":"subCategory","kind":"object","type":"Category","relationName":"CategorySub"},{"name":"image","kind":"object","type":"Asset","relationName":"AssetToEquipment"},{"name":"generations","kind":"object","type":"GenerationEquipment","relationName":"EquipmentToGenerationEquipment"}],"dbName":"equipments"},"Generation":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"characterId","kind":"scalar","type":"String","dbName":"character_id"},{"name":"imageId","kind":"scalar","type":"String","dbName":"image_id"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"character","kind":"object","type":"Character","relationName":"CharacterToGeneration"},{"name":"image","kind":"object","type":"Asset","relationName":"AssetToGeneration"},{"name":"equipments","kind":"object","type":"GenerationEquipment","relationName":"GenerationToGenerationEquipment"}],"dbName":"generations"},"GenerationEquipment":{"fields":[{"name":"generationId","kind":"scalar","type":"String","dbName":"generation_id"},{"name":"equipmentId","kind":"scalar","type":"String","dbName":"equipment_id"},{"name":"generation","kind":"object","type":"Generation","relationName":"GenerationToGenerationEquipment"},{"name":"equipment","kind":"object","type":"Equipment","relationName":"EquipmentToGenerationEquipment"}],"dbName":"generation_equipments"}},"enums":{},"types":{}}', -) +config.runtimeDataModel = JSON.parse("{\"models\":{\"Asset\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"path\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"characters\",\"kind\":\"object\",\"type\":\"Character\",\"relationName\":\"AssetToCharacter\"},{\"name\":\"equipments\",\"kind\":\"object\",\"type\":\"Equipment\",\"relationName\":\"AssetToEquipment\"},{\"name\":\"generations\",\"kind\":\"object\",\"type\":\"Generation\",\"relationName\":\"AssetToGeneration\"}],\"dbName\":\"assets\"},\"Character\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"imageId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"image_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"image\",\"kind\":\"object\",\"type\":\"Asset\",\"relationName\":\"AssetToCharacter\"},{\"name\":\"generations\",\"kind\":\"object\",\"type\":\"Generation\",\"relationName\":\"CharacterToGeneration\"}],\"dbName\":\"characters\"},\"Equipment\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"category\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"subCategory\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"sub_category\"},{\"name\":\"imageId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"image_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"image\",\"kind\":\"object\",\"type\":\"Asset\",\"relationName\":\"AssetToEquipment\"},{\"name\":\"generations\",\"kind\":\"object\",\"type\":\"GenerationEquipment\",\"relationName\":\"EquipmentToGenerationEquipment\"}],\"dbName\":\"equipments\"},\"Generation\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"characterId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"character_id\"},{\"name\":\"imageId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"image_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"character\",\"kind\":\"object\",\"type\":\"Character\",\"relationName\":\"CharacterToGeneration\"},{\"name\":\"image\",\"kind\":\"object\",\"type\":\"Asset\",\"relationName\":\"AssetToGeneration\"},{\"name\":\"equipments\",\"kind\":\"object\",\"type\":\"GenerationEquipment\",\"relationName\":\"GenerationToGenerationEquipment\"}],\"dbName\":\"generations\"},\"GenerationEquipment\":{\"fields\":[{\"name\":\"generationId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"generation_id\"},{\"name\":\"equipmentId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"equipment_id\"},{\"name\":\"generation\",\"kind\":\"object\",\"type\":\"Generation\",\"relationName\":\"GenerationToGenerationEquipment\"},{\"name\":\"equipment\",\"kind\":\"object\",\"type\":\"Equipment\",\"relationName\":\"EquipmentToGenerationEquipment\"}],\"dbName\":\"generation_equipments\"}},\"enums\":{},\"types\":{}}") async function decodeBase64AsWasm(wasmBase64: string): Promise { const { Buffer } = await import('node:buffer') @@ -38,26 +39,23 @@ async function decodeBase64AsWasm(wasmBase64: string): Promise await import('@prisma/client/runtime/query_compiler_fast_bg.sqlite.mjs'), + getRuntime: async () => await import("@prisma/client/runtime/query_compiler_fast_bg.sqlite.mjs"), getQueryCompilerWasmModule: async () => { - const { wasm } = - await import('@prisma/client/runtime/query_compiler_fast_bg.sqlite.wasm-base64.mjs') + const { wasm } = await import("@prisma/client/runtime/query_compiler_fast_bg.sqlite.wasm-base64.mjs") return await decodeBase64AsWasm(wasm) }, - importName: './query_compiler_fast_bg.js', + importName: "./query_compiler_fast_bg.js" } + + export type LogOptions = - 'log' extends keyof ClientOptions - ? ClientOptions['log'] extends Array - ? Prisma.GetEvents - : never - : never + 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never export interface PrismaClientConstructor { - /** + /** * ## Prisma Client * * Type-safe database client for TypeScript @@ -74,13 +72,9 @@ export interface PrismaClientConstructor { new < Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions = LogOptions, - OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } - ? U - : Prisma.PrismaClientOptions['omit'], - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, - >( - options: Prisma.Subset, - ): PrismaClient + OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'], + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs + >(options: Prisma.Subset ): PrismaClient } /** @@ -100,27 +94,23 @@ export interface PrismaClientConstructor { export interface PrismaClient< in LogOpts extends Prisma.LogLevel = never, in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, - in out ExtArgs extends runtime.Types.Extensions.InternalArgs = - runtime.Types.Extensions.DefaultArgs, + in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs > { [K: symbol]: { types: Prisma.TypeMap['other'] } - $on( - eventType: V, - callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void, - ): PrismaClient + $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; /** * Connect with the database */ - $connect(): runtime.Types.Utils.JsPromise + $connect(): runtime.Types.Utils.JsPromise; /** * Disconnect from the database */ - $disconnect(): runtime.Types.Utils.JsPromise + $disconnect(): runtime.Types.Utils.JsPromise; - /** +/** * Executes a prepared raw query and returns the number of affected rows. * @example * ``` @@ -129,10 +119,7 @@ export interface PrismaClient< * * Read more in our [docs](https://pris.ly/d/raw-queries). */ - $executeRaw( - query: TemplateStringsArray | Prisma.Sql, - ...values: any[] - ): Prisma.PrismaPromise + $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * Executes a raw query and returns the number of affected rows. @@ -144,7 +131,7 @@ export interface PrismaClient< * * Read more in our [docs](https://pris.ly/d/raw-queries). */ - $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise + $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; /** * Performs a prepared raw query and returns the `SELECT` data. @@ -155,10 +142,7 @@ export interface PrismaClient< * * Read more in our [docs](https://pris.ly/d/raw-queries). */ - $queryRaw( - query: TemplateStringsArray | Prisma.Sql, - ...values: any[] - ): Prisma.PrismaPromise + $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * Performs a raw query and returns the `SELECT` data. @@ -170,7 +154,8 @@ export interface PrismaClient< * * Read more in our [docs](https://pris.ly/d/raw-queries). */ - $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise + $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; + /** * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. @@ -185,91 +170,63 @@ export interface PrismaClient< * * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions). */ - $transaction

[]>( - arg: [...P], - options?: { isolationLevel?: Prisma.TransactionIsolationLevel }, - ): runtime.Types.Utils.JsPromise> + $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise> - $transaction( - fn: (prisma: Omit) => runtime.Types.Utils.JsPromise, - options?: { - maxWait?: number - timeout?: number - isolationLevel?: Prisma.TransactionIsolationLevel - }, - ): runtime.Types.Utils.JsPromise + $transaction(fn: (prisma: Omit) => runtime.Types.Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise - $extends: runtime.Types.Extensions.ExtendsHook< - 'extends', - Prisma.TypeMapCb, - ExtArgs, - runtime.Types.Utils.Call< - Prisma.TypeMapCb, - { - extArgs: ExtArgs - } - > - > + $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, runtime.Types.Utils.Call, { + extArgs: ExtArgs + }>> - /** + /** * `prisma.asset`: Exposes CRUD operations for the **Asset** model. - * Example usage: - * ```ts - * // Fetch zero or more Assets - * const assets = await prisma.asset.findMany() - * ``` - */ - get asset(): Prisma.AssetDelegate + * Example usage: + * ```ts + * // Fetch zero or more Assets + * const assets = await prisma.asset.findMany() + * ``` + */ + get asset(): Prisma.AssetDelegate; /** * `prisma.character`: Exposes CRUD operations for the **Character** model. - * Example usage: - * ```ts - * // Fetch zero or more Characters - * const characters = await prisma.character.findMany() - * ``` - */ - get character(): Prisma.CharacterDelegate - - /** - * `prisma.category`: Exposes CRUD operations for the **Category** model. - * Example usage: - * ```ts - * // Fetch zero or more Categories - * const categories = await prisma.category.findMany() - * ``` - */ - get category(): Prisma.CategoryDelegate + * Example usage: + * ```ts + * // Fetch zero or more Characters + * const characters = await prisma.character.findMany() + * ``` + */ + get character(): Prisma.CharacterDelegate; /** * `prisma.equipment`: Exposes CRUD operations for the **Equipment** model. - * Example usage: - * ```ts - * // Fetch zero or more Equipment - * const equipment = await prisma.equipment.findMany() - * ``` - */ - get equipment(): Prisma.EquipmentDelegate + * Example usage: + * ```ts + * // Fetch zero or more Equipment + * const equipment = await prisma.equipment.findMany() + * ``` + */ + get equipment(): Prisma.EquipmentDelegate; /** * `prisma.generation`: Exposes CRUD operations for the **Generation** model. - * Example usage: - * ```ts - * // Fetch zero or more Generations - * const generations = await prisma.generation.findMany() - * ``` - */ - get generation(): Prisma.GenerationDelegate + * Example usage: + * ```ts + * // Fetch zero or more Generations + * const generations = await prisma.generation.findMany() + * ``` + */ + get generation(): Prisma.GenerationDelegate; /** * `prisma.generationEquipment`: Exposes CRUD operations for the **GenerationEquipment** model. - * Example usage: - * ```ts - * // Fetch zero or more GenerationEquipments - * const generationEquipments = await prisma.generationEquipment.findMany() - * ``` - */ - get generationEquipment(): Prisma.GenerationEquipmentDelegate + * Example usage: + * ```ts + * // Fetch zero or more GenerationEquipments + * const generationEquipments = await prisma.generationEquipment.findMany() + * ``` + */ + get generationEquipment(): Prisma.GenerationEquipmentDelegate; } export function getPrismaClientClass(): PrismaClientConstructor { diff --git a/src/generated/prisma/internal/prismaNamespace.ts b/src/generated/prisma/internal/prismaNamespace.ts index d1693d4..045b844 100644 --- a/src/generated/prisma/internal/prismaNamespace.ts +++ b/src/generated/prisma/internal/prismaNamespace.ts @@ -1,3 +1,4 @@ + /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file @@ -14,9 +15,9 @@ * model files in the `model` directory! */ -import * as runtime from '@prisma/client/runtime/client' -import type * as Prisma from '../models.ts' -import { type PrismaClient } from './class.ts' +import * as runtime from "@prisma/client/runtime/client" +import type * as Prisma from "../models.ts" +import { type PrismaClient } from "./class.ts" export type * from '../models.ts' @@ -53,6 +54,8 @@ export const raw = runtime.raw export const Sql = runtime.Sql export type Sql = runtime.Sql + + /** * Decimal.js */ @@ -62,8 +65,8 @@ export type Decimal = runtime.Decimal export type DecimalJsLike = runtime.DecimalJsLike /** - * Extensions - */ +* Extensions +*/ export type Extension = runtime.Types.Extensions.UserArgs export const getExtensionContext = runtime.Extensions.getExtensionContext export type Args = runtime.Types.Public.Args @@ -81,8 +84,8 @@ export type PrismaVersion = { * Query Engine version: 9d6ad21cbbceab97458517b147a6a09ff43aa735 */ export const prismaVersion: PrismaVersion = { - client: '7.3.0', - engine: '9d6ad21cbbceab97458517b147a6a09ff43aa735', + client: "7.3.0", + engine: "9d6ad21cbbceab97458517b147a6a09ff43aa735" } /** @@ -97,10 +100,11 @@ export type InputJsonObject = runtime.InputJsonObject export type InputJsonArray = runtime.InputJsonArray export type InputJsonValue = runtime.InputJsonValue + export const NullTypes = { - DbNull: runtime.NullTypes.DbNull as new (secret: never) => typeof runtime.DbNull, - JsonNull: runtime.NullTypes.JsonNull as new (secret: never) => typeof runtime.JsonNull, - AnyNull: runtime.NullTypes.AnyNull as new (secret: never) => typeof runtime.AnyNull, + DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull), + JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull), + AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull), } /** * Helper for filtering JSON entries that have `null` on the database (empty on the db) @@ -123,6 +127,7 @@ export const JsonNull = runtime.JsonNull */ export const AnyNull = runtime.AnyNull + type SelectAndInclude = { select: any include: any @@ -137,18 +142,18 @@ type SelectAndOmit = { * From T, pick a set of properties whose keys are in the union K */ type Prisma__Pick = { - [P in K]: T[P] -} + [P in K]: T[P]; +}; -export type Enumerable = T | Array +export type Enumerable = T | Array; /** * Subset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection */ export type Subset = { - [key in keyof T]: key extends keyof U ? T[key] : never -} + [key in keyof T]: key extends keyof U ? T[key] : never; +}; /** * SelectSubset @@ -157,11 +162,12 @@ export type Subset = { */ export type SelectSubset = { [key in keyof T]: key extends keyof U ? T[key] : never -} & (T extends SelectAndInclude - ? 'Please either choose `select` or `include`.' - : T extends SelectAndOmit - ? 'Please either choose `select` or `omit`.' - : {}) +} & + (T extends SelectAndInclude + ? 'Please either choose `select` or `include`.' + : T extends SelectAndOmit + ? 'Please either choose `select` or `omit`.' + : {}) /** * Subset + Intersection @@ -169,35 +175,37 @@ export type SelectSubset = { */ export type SubsetIntersection = { [key in keyof T]: key extends keyof U ? T[key] : never -} & K +} & + K -type Without = { [P in Exclude]?: never } +type Without = { [P in Exclude]?: never }; /** * XOR is needed to have a real mutually exclusive union type * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types */ -export type XOR = T extends object - ? U extends object - ? (Without & U) | (Without & T) - : U - : T +export type XOR = + T extends object ? + U extends object ? + (Without & U) | (Without & T) + : U : T + /** * Is T a Record? */ -type IsObject = - T extends Array - ? False - : T extends Date - ? False - : T extends Uint8Array - ? False - : T extends BigInt - ? False - : T extends object - ? True - : False +type IsObject = T extends Array +? False +: T extends Date +? False +: T extends Uint8Array +? False +: T extends BigInt +? False +: T extends object +? True +: False + /** * If it's T[], return T @@ -218,14 +226,20 @@ type EitherStrict = Strict<__Either> type EitherLoose = ComputeRaw<__Either> -type _Either = { +type _Either< + O extends object, + K extends Key, + strict extends Boolean +> = { 1: EitherStrict 0: EitherLoose }[strict] -export type Either = O extends unknown - ? _Either - : never +export type Either< + O extends object, + K extends Key, + strict extends Boolean = 1 +> = O extends unknown ? _Either : never export type Union = any @@ -234,67 +248,56 @@ export type PatchUndefined = { } & {} /** Helper Types for "Merge" **/ -export type IntersectOf = (U extends unknown ? (k: U) => void : never) extends ( - k: infer I, -) => void +export type IntersectOf = ( + U extends unknown ? (k: U) => void : never +) extends (k: infer I) => void ? I : never export type Overwrite = { - [K in keyof O]: K extends keyof O1 ? O1[K] : O[K] -} & {} + [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; +} & {}; -type _Merge = IntersectOf< - Overwrite< - U, - { - [K in keyof U]-?: At - } - > -> +type _Merge = IntersectOf; +}>>; -type Key = string | number | symbol -type AtStrict = O[K & keyof O] -type AtLoose = O extends unknown ? AtStrict : never +type Key = string | number | symbol; +type AtStrict = O[K & keyof O]; +type AtLoose = O extends unknown ? AtStrict : never; export type At = { - 1: AtStrict - 0: AtLoose -}[strict] + 1: AtStrict; + 0: AtLoose; +}[strict]; -export type ComputeRaw = A extends Function - ? A - : { - [K in keyof A]: A[K] - } & {} +export type ComputeRaw = A extends Function ? A : { + [K in keyof A]: A[K]; +} & {}; export type OptionalFlat = { - [K in keyof O]?: O[K] -} & {} + [K in keyof O]?: O[K]; +} & {}; type _Record = { - [P in K]: T -} + [P in K]: T; +}; // cause typescript not to expand types and preserve names -type NoExpand = T extends unknown ? T : never +type NoExpand = T extends unknown ? T : never; // this type assumes the passed object is entirely optional export type AtLeast = NoExpand< O extends unknown - ? - | (K extends keyof O ? { [P in K]: O[P] } & O : O) - | ({ [P in keyof O as P extends K ? P : never]-?: O[P] } & O) - : never -> + ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) + | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O + : never>; -type _Strict = U extends unknown - ? U & OptionalFlat<_Record, keyof U>, never>> - : never +type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; -export type Strict = ComputeRaw<_Strict> +export type Strict = ComputeRaw<_Strict>; /** End Helper Types for "Merge" **/ -export type Merge = ComputeRaw<_Merge>> +export type Merge = ComputeRaw<_Merge>>; export type Boolean = True | False @@ -310,10 +313,12 @@ export type Not = { export type Extends = [A1] extends [never] ? 0 // anything `never` is false : A1 extends A2 - ? 1 - : 0 + ? 1 + : 0 -export type Has = Not, U1>> +export type Has = Not< + Extends, U1> +> export type Or = { 0: { @@ -328,17 +333,22 @@ export type Or = { export type Keys = U extends unknown ? keyof U : never -export type GetScalarType = O extends object - ? { - [P in keyof T]: P extends keyof O ? O[P] : never - } - : never +export type GetScalarType = O extends object ? { + [P in keyof T]: P extends keyof O + ? O[P] + : never +} : never -type FieldPaths> = - IsObject extends True ? U : T +type FieldPaths< + T, + U = Omit +> = IsObject extends True ? U : T export type GetHavingFields = { - [K in keyof T]: Or, Extends<'AND', K>>, Extends<'NOT', K>> extends True + [K in keyof T]: Or< + Or, Extends<'AND', K>>, + Extends<'NOT', K> + > extends True ? // infer is only needed to not hit TS limit // based on the brilliant idea of Pierre-Antoine Mills // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 @@ -346,8 +356,8 @@ export type GetHavingFields = { ? GetHavingFields extends object ? Merge> : never> : never : {} extends FieldPaths - ? never - : K + ? never + : K }[keyof T] /** @@ -360,53 +370,41 @@ export type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T /** * Like `Pick`, but additionally can also accept an array of keys */ -export type PickEnumerable | keyof T> = Prisma__Pick< - T, - MaybeTupleToUnion -> +export type PickEnumerable | keyof T> = Prisma__Pick> /** * Exclude all keys with underscores */ export type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T + export type FieldRef = runtime.FieldRef type FieldRefInputType = Model extends never ? never : FieldRef + export const ModelName = { Asset: 'Asset', Character: 'Character', - Category: 'Category', Equipment: 'Equipment', Generation: 'Generation', - GenerationEquipment: 'GenerationEquipment', + GenerationEquipment: 'GenerationEquipment' } as const export type ModelName = (typeof ModelName)[keyof typeof ModelName] -export interface TypeMapCb extends runtime.Types.Utils.Fn< - { extArgs: runtime.Types.Extensions.InternalArgs }, - runtime.Types.Utils.Record -> { + + +export interface TypeMapCb extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record> { returns: TypeMap } -export type TypeMap< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, - GlobalOmitOptions = {}, -> = { +export type TypeMap = { globalOmitOptions: { omit: GlobalOmitOptions } meta: { - modelProps: - | 'asset' - | 'character' - | 'category' - | 'equipment' - | 'generation' - | 'generationEquipment' + modelProps: "asset" | "character" | "equipment" | "generation" | "generationEquipment" txIsolationLevel: TransactionIsolationLevel } model: { @@ -558,80 +556,6 @@ export type TypeMap< } } } - Category: { - payload: Prisma.$CategoryPayload - fields: Prisma.CategoryFieldRefs - operations: { - findUnique: { - args: Prisma.CategoryFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.CategoryFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.CategoryFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.CategoryFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.CategoryFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.CategoryCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.CategoryCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.CategoryCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.CategoryDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.CategoryUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.CategoryDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.CategoryUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.CategoryUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.CategoryUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.CategoryAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.CategoryGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.CategoryCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } Equipment: { payload: Prisma.$EquipmentPayload fields: Prisma.EquipmentFieldRefs @@ -850,9 +774,7 @@ export type TypeMap< } count: { args: Prisma.GenerationEquipmentCountArgs - result: - | runtime.Types.Utils.Optional - | number + result: runtime.Types.Utils.Optional | number } } } @@ -862,19 +784,19 @@ export type TypeMap< payload: any operations: { $executeRaw: { - args: [query: TemplateStringsArray | Sql, ...values: any[]] + args: [query: TemplateStringsArray | Sql, ...values: any[]], result: any } $executeRawUnsafe: { - args: [query: string, ...values: any[]] + args: [query: string, ...values: any[]], result: any } $queryRaw: { - args: [query: TemplateStringsArray | Sql, ...values: any[]] + args: [query: TemplateStringsArray | Sql, ...values: any[]], result: any } $queryRawUnsafe: { - args: [query: string, ...values: any[]] + args: [query: string, ...values: any[]], result: any } } @@ -886,11 +808,11 @@ export type TypeMap< */ export const TransactionIsolationLevel = runtime.makeStrictEnum({ - Serializable: 'Serializable', + Serializable: 'Serializable' } as const) -export type TransactionIsolationLevel = - (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] +export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + export const AssetScalarFieldEnum = { id: 'id', @@ -898,100 +820,99 @@ export const AssetScalarFieldEnum = { type: 'type', path: 'path', createdAt: 'createdAt', - updatedAt: 'updatedAt', + updatedAt: 'updatedAt' } as const export type AssetScalarFieldEnum = (typeof AssetScalarFieldEnum)[keyof typeof AssetScalarFieldEnum] + export const CharacterScalarFieldEnum = { id: 'id', name: 'name', description: 'description', imageId: 'imageId', createdAt: 'createdAt', - updatedAt: 'updatedAt', + updatedAt: 'updatedAt' } as const -export type CharacterScalarFieldEnum = - (typeof CharacterScalarFieldEnum)[keyof typeof CharacterScalarFieldEnum] +export type CharacterScalarFieldEnum = (typeof CharacterScalarFieldEnum)[keyof typeof CharacterScalarFieldEnum] -export const CategoryScalarFieldEnum = { - id: 'id', - name: 'name', - parentId: 'parentId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', -} as const - -export type CategoryScalarFieldEnum = - (typeof CategoryScalarFieldEnum)[keyof typeof CategoryScalarFieldEnum] export const EquipmentScalarFieldEnum = { id: 'id', name: 'name', description: 'description', - categoryId: 'categoryId', - subCategoryId: 'subCategoryId', + category: 'category', + subCategory: 'subCategory', imageId: 'imageId', createdAt: 'createdAt', - updatedAt: 'updatedAt', + updatedAt: 'updatedAt' } as const -export type EquipmentScalarFieldEnum = - (typeof EquipmentScalarFieldEnum)[keyof typeof EquipmentScalarFieldEnum] +export type EquipmentScalarFieldEnum = (typeof EquipmentScalarFieldEnum)[keyof typeof EquipmentScalarFieldEnum] + export const GenerationScalarFieldEnum = { id: 'id', characterId: 'characterId', imageId: 'imageId', createdAt: 'createdAt', - updatedAt: 'updatedAt', + updatedAt: 'updatedAt' } as const -export type GenerationScalarFieldEnum = - (typeof GenerationScalarFieldEnum)[keyof typeof GenerationScalarFieldEnum] +export type GenerationScalarFieldEnum = (typeof GenerationScalarFieldEnum)[keyof typeof GenerationScalarFieldEnum] + export const GenerationEquipmentScalarFieldEnum = { generationId: 'generationId', - equipmentId: 'equipmentId', + equipmentId: 'equipmentId' } as const -export type GenerationEquipmentScalarFieldEnum = - (typeof GenerationEquipmentScalarFieldEnum)[keyof typeof GenerationEquipmentScalarFieldEnum] +export type GenerationEquipmentScalarFieldEnum = (typeof GenerationEquipmentScalarFieldEnum)[keyof typeof GenerationEquipmentScalarFieldEnum] + export const SortOrder = { asc: 'asc', - desc: 'desc', + desc: 'desc' } as const export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + export const NullsOrder = { first: 'first', - last: 'last', + last: 'last' } as const export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] + + /** * Field references */ + /** * Reference to a field of type 'String' */ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> + + /** * Reference to a field of type 'DateTime' */ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> + + /** * Reference to a field of type 'Int' */ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> + /** * Batch Payload for updateMany & deleteMany & createMany */ @@ -999,30 +920,22 @@ export type BatchPayload = { count: number } -export const defineExtension = runtime.Extensions - .defineExtension as unknown as runtime.Types.Extensions.ExtendsHook< - 'define', - TypeMapCb, - runtime.Types.Extensions.DefaultArgs -> +export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs> export type DefaultPrismaClient = PrismaClient export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' -export type PrismaClientOptions = ( - | { - /** - * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`. - */ - adapter: runtime.SqlDriverAdapterFactory - accelerateUrl?: never - } - | { - /** - * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database. - */ - accelerateUrl: string - adapter?: never - } -) & { +export type PrismaClientOptions = ({ + /** + * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`. + */ + adapter: runtime.SqlDriverAdapterFactory + accelerateUrl?: never +} | { + /** + * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database. + */ + accelerateUrl: string + adapter?: never +}) & { /** * @default "colorless" */ @@ -1097,7 +1010,6 @@ export type PrismaClientOptions = ( export type GlobalOmitConfig = { asset?: Prisma.AssetOmit character?: Prisma.CharacterOmit - category?: Prisma.CategoryOmit equipment?: Prisma.EquipmentOmit generation?: Prisma.GenerationOmit generationEquipment?: Prisma.GenerationEquipmentOmit @@ -1110,12 +1022,15 @@ export type LogDefinition = { emit: 'stdout' | 'event' } -export type CheckIsLogLevel = T extends LogLevel ? T : never +export type CheckIsLogLevel = T extends LogLevel ? T : never; -export type GetLogType = CheckIsLogLevel +export type GetLogType = CheckIsLogLevel< + T extends LogDefinition ? T['level'] : T +>; -export type GetEvents = - T extends Array ? GetLogType : never +export type GetEvents = T extends Array + ? GetLogType + : never; export type QueryEvent = { timestamp: Date @@ -1132,6 +1047,7 @@ export type LogEvent = { } /* End Types for Logging */ + export type PrismaAction = | 'findUnique' | 'findUniqueOrThrow' diff --git a/src/generated/prisma/internal/prismaNamespaceBrowser.ts b/src/generated/prisma/internal/prismaNamespaceBrowser.ts index 52bf7fd..9d3321b 100644 --- a/src/generated/prisma/internal/prismaNamespaceBrowser.ts +++ b/src/generated/prisma/internal/prismaNamespaceBrowser.ts @@ -1,3 +1,4 @@ + /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file @@ -14,17 +15,18 @@ * model files in the `model` directory! */ -import * as runtime from '@prisma/client/runtime/index-browser' +import * as runtime from "@prisma/client/runtime/index-browser" export type * from '../models.ts' export type * from './prismaNamespace.ts' export const Decimal = runtime.Decimal + export const NullTypes = { - DbNull: runtime.NullTypes.DbNull as new (secret: never) => typeof runtime.DbNull, - JsonNull: runtime.NullTypes.JsonNull as new (secret: never) => typeof runtime.JsonNull, - AnyNull: runtime.NullTypes.AnyNull as new (secret: never) => typeof runtime.AnyNull, + DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull), + JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull), + AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull), } /** * Helper for filtering JSON entries that have `null` on the database (empty on the db) @@ -47,13 +49,13 @@ export const JsonNull = runtime.JsonNull */ export const AnyNull = runtime.AnyNull + export const ModelName = { Asset: 'Asset', Character: 'Character', - Category: 'Category', Equipment: 'Equipment', Generation: 'Generation', - GenerationEquipment: 'GenerationEquipment', + GenerationEquipment: 'GenerationEquipment' } as const export type ModelName = (typeof ModelName)[keyof typeof ModelName] @@ -63,11 +65,11 @@ export type ModelName = (typeof ModelName)[keyof typeof ModelName] */ export const TransactionIsolationLevel = runtime.makeStrictEnum({ - Serializable: 'Serializable', + Serializable: 'Serializable' } as const) -export type TransactionIsolationLevel = - (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] +export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + export const AssetScalarFieldEnum = { id: 'id', @@ -75,77 +77,68 @@ export const AssetScalarFieldEnum = { type: 'type', path: 'path', createdAt: 'createdAt', - updatedAt: 'updatedAt', + updatedAt: 'updatedAt' } as const export type AssetScalarFieldEnum = (typeof AssetScalarFieldEnum)[keyof typeof AssetScalarFieldEnum] + export const CharacterScalarFieldEnum = { id: 'id', name: 'name', description: 'description', imageId: 'imageId', createdAt: 'createdAt', - updatedAt: 'updatedAt', + updatedAt: 'updatedAt' } as const -export type CharacterScalarFieldEnum = - (typeof CharacterScalarFieldEnum)[keyof typeof CharacterScalarFieldEnum] +export type CharacterScalarFieldEnum = (typeof CharacterScalarFieldEnum)[keyof typeof CharacterScalarFieldEnum] -export const CategoryScalarFieldEnum = { - id: 'id', - name: 'name', - parentId: 'parentId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', -} as const - -export type CategoryScalarFieldEnum = - (typeof CategoryScalarFieldEnum)[keyof typeof CategoryScalarFieldEnum] export const EquipmentScalarFieldEnum = { id: 'id', name: 'name', description: 'description', - categoryId: 'categoryId', - subCategoryId: 'subCategoryId', + category: 'category', + subCategory: 'subCategory', imageId: 'imageId', createdAt: 'createdAt', - updatedAt: 'updatedAt', + updatedAt: 'updatedAt' } as const -export type EquipmentScalarFieldEnum = - (typeof EquipmentScalarFieldEnum)[keyof typeof EquipmentScalarFieldEnum] +export type EquipmentScalarFieldEnum = (typeof EquipmentScalarFieldEnum)[keyof typeof EquipmentScalarFieldEnum] + export const GenerationScalarFieldEnum = { id: 'id', characterId: 'characterId', imageId: 'imageId', createdAt: 'createdAt', - updatedAt: 'updatedAt', + updatedAt: 'updatedAt' } as const -export type GenerationScalarFieldEnum = - (typeof GenerationScalarFieldEnum)[keyof typeof GenerationScalarFieldEnum] +export type GenerationScalarFieldEnum = (typeof GenerationScalarFieldEnum)[keyof typeof GenerationScalarFieldEnum] + export const GenerationEquipmentScalarFieldEnum = { generationId: 'generationId', - equipmentId: 'equipmentId', + equipmentId: 'equipmentId' } as const -export type GenerationEquipmentScalarFieldEnum = - (typeof GenerationEquipmentScalarFieldEnum)[keyof typeof GenerationEquipmentScalarFieldEnum] +export type GenerationEquipmentScalarFieldEnum = (typeof GenerationEquipmentScalarFieldEnum)[keyof typeof GenerationEquipmentScalarFieldEnum] + export const SortOrder = { asc: 'asc', - desc: 'desc', + desc: 'desc' } as const export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + export const NullsOrder = { first: 'first', - last: 'last', + last: 'last' } as const export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] diff --git a/src/generated/prisma/models.ts b/src/generated/prisma/models.ts index d6daaef..deba8a8 100644 --- a/src/generated/prisma/models.ts +++ b/src/generated/prisma/models.ts @@ -1,3 +1,4 @@ + /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file @@ -9,8 +10,7 @@ */ export type * from './models/Asset.ts' export type * from './models/Character.ts' -export type * from './models/Category.ts' export type * from './models/Equipment.ts' export type * from './models/Generation.ts' export type * from './models/GenerationEquipment.ts' -export type * from './commonInputTypes.ts' +export type * from './commonInputTypes.ts' \ No newline at end of file diff --git a/src/generated/prisma/models/Asset.ts b/src/generated/prisma/models/Asset.ts index 3328cce..8f5f84f 100644 --- a/src/generated/prisma/models/Asset.ts +++ b/src/generated/prisma/models/Asset.ts @@ -1,3 +1,4 @@ + /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file @@ -7,9 +8,9 @@ * * 🟢 You can import this file directly. */ -import type * as runtime from '@prisma/client/runtime/client' -import type * as $Enums from '../enums.ts' -import type * as Prisma from '../internal/prismaNamespace.ts' +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model Asset @@ -51,6 +52,7 @@ export type AssetCountAggregateOutputType = { _all: number } + export type AssetMinAggregateInputType = { id?: true name?: true @@ -79,9 +81,7 @@ export type AssetCountAggregateInputType = { _all?: true } -export type AssetAggregateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetAggregateArgs = { /** * Filter which Asset to aggregate. */ @@ -114,33 +114,34 @@ export type AssetAggregateArgs< * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Assets - **/ + **/ _count?: true | AssetCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value - **/ + **/ _min?: AssetMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value - **/ + **/ _max?: AssetMaxAggregateInputType } export type GetAssetAggregateType = { - [P in keyof T & keyof AggregateAsset]: P extends '_count' | 'count' + [P in keyof T & keyof AggregateAsset]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } -export type AssetGroupByArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { + + + +export type AssetGroupByArgs = { where?: Prisma.AssetWhereInput orderBy?: Prisma.AssetOrderByWithAggregationInput | Prisma.AssetOrderByWithAggregationInput[] by: Prisma.AssetScalarFieldEnum[] | Prisma.AssetScalarFieldEnum @@ -166,26 +167,29 @@ export type AssetGroupByOutputType = { type GetAssetGroupByPayload = Prisma.PrismaPromise< Array< - Prisma.PickEnumerable & { - [P in keyof T & keyof AssetGroupByOutputType]: P extends '_count' - ? T[P] extends boolean - ? number + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof AssetGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType : Prisma.GetScalarType - : Prisma.GetScalarType - } + } + > > -> + + export type AssetWhereInput = { AND?: Prisma.AssetWhereInput | Prisma.AssetWhereInput[] OR?: Prisma.AssetWhereInput[] NOT?: Prisma.AssetWhereInput | Prisma.AssetWhereInput[] - id?: Prisma.StringFilter<'Asset'> | string - name?: Prisma.StringFilter<'Asset'> | string - type?: Prisma.StringFilter<'Asset'> | string - path?: Prisma.StringFilter<'Asset'> | string - createdAt?: Prisma.DateTimeFilter<'Asset'> | Date | string - updatedAt?: Prisma.DateTimeFilter<'Asset'> | Date | string + id?: Prisma.StringFilter<"Asset"> | string + name?: Prisma.StringFilter<"Asset"> | string + type?: Prisma.StringFilter<"Asset"> | string + path?: Prisma.StringFilter<"Asset"> | string + createdAt?: Prisma.DateTimeFilter<"Asset"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Asset"> | Date | string characters?: Prisma.CharacterListRelationFilter equipments?: Prisma.EquipmentListRelationFilter generations?: Prisma.GenerationListRelationFilter @@ -203,23 +207,20 @@ export type AssetOrderByWithRelationInput = { generations?: Prisma.GenerationOrderByRelationAggregateInput } -export type AssetWhereUniqueInput = Prisma.AtLeast< - { - id?: string - AND?: Prisma.AssetWhereInput | Prisma.AssetWhereInput[] - OR?: Prisma.AssetWhereInput[] - NOT?: Prisma.AssetWhereInput | Prisma.AssetWhereInput[] - name?: Prisma.StringFilter<'Asset'> | string - type?: Prisma.StringFilter<'Asset'> | string - path?: Prisma.StringFilter<'Asset'> | string - createdAt?: Prisma.DateTimeFilter<'Asset'> | Date | string - updatedAt?: Prisma.DateTimeFilter<'Asset'> | Date | string - characters?: Prisma.CharacterListRelationFilter - equipments?: Prisma.EquipmentListRelationFilter - generations?: Prisma.GenerationListRelationFilter - }, - 'id' -> +export type AssetWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.AssetWhereInput | Prisma.AssetWhereInput[] + OR?: Prisma.AssetWhereInput[] + NOT?: Prisma.AssetWhereInput | Prisma.AssetWhereInput[] + name?: Prisma.StringFilter<"Asset"> | string + type?: Prisma.StringFilter<"Asset"> | string + path?: Prisma.StringFilter<"Asset"> | string + createdAt?: Prisma.DateTimeFilter<"Asset"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Asset"> | Date | string + characters?: Prisma.CharacterListRelationFilter + equipments?: Prisma.EquipmentListRelationFilter + generations?: Prisma.GenerationListRelationFilter +}, "id"> export type AssetOrderByWithAggregationInput = { id?: Prisma.SortOrder @@ -237,12 +238,12 @@ export type AssetScalarWhereWithAggregatesInput = { AND?: Prisma.AssetScalarWhereWithAggregatesInput | Prisma.AssetScalarWhereWithAggregatesInput[] OR?: Prisma.AssetScalarWhereWithAggregatesInput[] NOT?: Prisma.AssetScalarWhereWithAggregatesInput | Prisma.AssetScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<'Asset'> | string - name?: Prisma.StringWithAggregatesFilter<'Asset'> | string - type?: Prisma.StringWithAggregatesFilter<'Asset'> | string - path?: Prisma.StringWithAggregatesFilter<'Asset'> | string - createdAt?: Prisma.DateTimeWithAggregatesFilter<'Asset'> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Asset'> | Date | string + id?: Prisma.StringWithAggregatesFilter<"Asset"> | string + name?: Prisma.StringWithAggregatesFilter<"Asset"> | string + type?: Prisma.StringWithAggregatesFilter<"Asset"> | string + path?: Prisma.StringWithAggregatesFilter<"Asset"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Asset"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Asset"> | Date | string } export type AssetCreateInput = { @@ -361,81 +362,45 @@ export type DateTimeFieldUpdateOperationsInput = { } export type AssetCreateNestedOneWithoutCharactersInput = { - create?: Prisma.XOR< - Prisma.AssetCreateWithoutCharactersInput, - Prisma.AssetUncheckedCreateWithoutCharactersInput - > + create?: Prisma.XOR connectOrCreate?: Prisma.AssetCreateOrConnectWithoutCharactersInput connect?: Prisma.AssetWhereUniqueInput } export type AssetUpdateOneRequiredWithoutCharactersNestedInput = { - create?: Prisma.XOR< - Prisma.AssetCreateWithoutCharactersInput, - Prisma.AssetUncheckedCreateWithoutCharactersInput - > + create?: Prisma.XOR connectOrCreate?: Prisma.AssetCreateOrConnectWithoutCharactersInput upsert?: Prisma.AssetUpsertWithoutCharactersInput connect?: Prisma.AssetWhereUniqueInput - update?: Prisma.XOR< - Prisma.XOR< - Prisma.AssetUpdateToOneWithWhereWithoutCharactersInput, - Prisma.AssetUpdateWithoutCharactersInput - >, - Prisma.AssetUncheckedUpdateWithoutCharactersInput - > + update?: Prisma.XOR, Prisma.AssetUncheckedUpdateWithoutCharactersInput> } export type AssetCreateNestedOneWithoutEquipmentsInput = { - create?: Prisma.XOR< - Prisma.AssetCreateWithoutEquipmentsInput, - Prisma.AssetUncheckedCreateWithoutEquipmentsInput - > + create?: Prisma.XOR connectOrCreate?: Prisma.AssetCreateOrConnectWithoutEquipmentsInput connect?: Prisma.AssetWhereUniqueInput } export type AssetUpdateOneRequiredWithoutEquipmentsNestedInput = { - create?: Prisma.XOR< - Prisma.AssetCreateWithoutEquipmentsInput, - Prisma.AssetUncheckedCreateWithoutEquipmentsInput - > + create?: Prisma.XOR connectOrCreate?: Prisma.AssetCreateOrConnectWithoutEquipmentsInput upsert?: Prisma.AssetUpsertWithoutEquipmentsInput connect?: Prisma.AssetWhereUniqueInput - update?: Prisma.XOR< - Prisma.XOR< - Prisma.AssetUpdateToOneWithWhereWithoutEquipmentsInput, - Prisma.AssetUpdateWithoutEquipmentsInput - >, - Prisma.AssetUncheckedUpdateWithoutEquipmentsInput - > + update?: Prisma.XOR, Prisma.AssetUncheckedUpdateWithoutEquipmentsInput> } export type AssetCreateNestedOneWithoutGenerationsInput = { - create?: Prisma.XOR< - Prisma.AssetCreateWithoutGenerationsInput, - Prisma.AssetUncheckedCreateWithoutGenerationsInput - > + create?: Prisma.XOR connectOrCreate?: Prisma.AssetCreateOrConnectWithoutGenerationsInput connect?: Prisma.AssetWhereUniqueInput } export type AssetUpdateOneRequiredWithoutGenerationsNestedInput = { - create?: Prisma.XOR< - Prisma.AssetCreateWithoutGenerationsInput, - Prisma.AssetUncheckedCreateWithoutGenerationsInput - > + create?: Prisma.XOR connectOrCreate?: Prisma.AssetCreateOrConnectWithoutGenerationsInput upsert?: Prisma.AssetUpsertWithoutGenerationsInput connect?: Prisma.AssetWhereUniqueInput - update?: Prisma.XOR< - Prisma.XOR< - Prisma.AssetUpdateToOneWithWhereWithoutGenerationsInput, - Prisma.AssetUpdateWithoutGenerationsInput - >, - Prisma.AssetUncheckedUpdateWithoutGenerationsInput - > + update?: Prisma.XOR, Prisma.AssetUncheckedUpdateWithoutGenerationsInput> } export type AssetCreateWithoutCharactersInput = { @@ -462,30 +427,18 @@ export type AssetUncheckedCreateWithoutCharactersInput = { export type AssetCreateOrConnectWithoutCharactersInput = { where: Prisma.AssetWhereUniqueInput - create: Prisma.XOR< - Prisma.AssetCreateWithoutCharactersInput, - Prisma.AssetUncheckedCreateWithoutCharactersInput - > + create: Prisma.XOR } export type AssetUpsertWithoutCharactersInput = { - update: Prisma.XOR< - Prisma.AssetUpdateWithoutCharactersInput, - Prisma.AssetUncheckedUpdateWithoutCharactersInput - > - create: Prisma.XOR< - Prisma.AssetCreateWithoutCharactersInput, - Prisma.AssetUncheckedCreateWithoutCharactersInput - > + update: Prisma.XOR + create: Prisma.XOR where?: Prisma.AssetWhereInput } export type AssetUpdateToOneWithWhereWithoutCharactersInput = { where?: Prisma.AssetWhereInput - data: Prisma.XOR< - Prisma.AssetUpdateWithoutCharactersInput, - Prisma.AssetUncheckedUpdateWithoutCharactersInput - > + data: Prisma.XOR } export type AssetUpdateWithoutCharactersInput = { @@ -534,30 +487,18 @@ export type AssetUncheckedCreateWithoutEquipmentsInput = { export type AssetCreateOrConnectWithoutEquipmentsInput = { where: Prisma.AssetWhereUniqueInput - create: Prisma.XOR< - Prisma.AssetCreateWithoutEquipmentsInput, - Prisma.AssetUncheckedCreateWithoutEquipmentsInput - > + create: Prisma.XOR } export type AssetUpsertWithoutEquipmentsInput = { - update: Prisma.XOR< - Prisma.AssetUpdateWithoutEquipmentsInput, - Prisma.AssetUncheckedUpdateWithoutEquipmentsInput - > - create: Prisma.XOR< - Prisma.AssetCreateWithoutEquipmentsInput, - Prisma.AssetUncheckedCreateWithoutEquipmentsInput - > + update: Prisma.XOR + create: Prisma.XOR where?: Prisma.AssetWhereInput } export type AssetUpdateToOneWithWhereWithoutEquipmentsInput = { where?: Prisma.AssetWhereInput - data: Prisma.XOR< - Prisma.AssetUpdateWithoutEquipmentsInput, - Prisma.AssetUncheckedUpdateWithoutEquipmentsInput - > + data: Prisma.XOR } export type AssetUpdateWithoutEquipmentsInput = { @@ -606,30 +547,18 @@ export type AssetUncheckedCreateWithoutGenerationsInput = { export type AssetCreateOrConnectWithoutGenerationsInput = { where: Prisma.AssetWhereUniqueInput - create: Prisma.XOR< - Prisma.AssetCreateWithoutGenerationsInput, - Prisma.AssetUncheckedCreateWithoutGenerationsInput - > + create: Prisma.XOR } export type AssetUpsertWithoutGenerationsInput = { - update: Prisma.XOR< - Prisma.AssetUpdateWithoutGenerationsInput, - Prisma.AssetUncheckedUpdateWithoutGenerationsInput - > - create: Prisma.XOR< - Prisma.AssetCreateWithoutGenerationsInput, - Prisma.AssetUncheckedCreateWithoutGenerationsInput - > + update: Prisma.XOR + create: Prisma.XOR where?: Prisma.AssetWhereInput } export type AssetUpdateToOneWithWhereWithoutGenerationsInput = { where?: Prisma.AssetWhereInput - data: Prisma.XOR< - Prisma.AssetUpdateWithoutGenerationsInput, - Prisma.AssetUncheckedUpdateWithoutGenerationsInput - > + data: Prisma.XOR } export type AssetUpdateWithoutGenerationsInput = { @@ -654,6 +583,7 @@ export type AssetUncheckedUpdateWithoutGenerationsInput = { equipments?: Prisma.EquipmentUncheckedUpdateManyWithoutImageNestedInput } + /** * Count Type AssetCountOutputType */ @@ -664,9 +594,7 @@ export type AssetCountOutputType = { generations: number } -export type AssetCountOutputTypeSelect< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetCountOutputTypeSelect = { characters?: boolean | AssetCountOutputTypeCountCharactersArgs equipments?: boolean | AssetCountOutputTypeCountEquipmentsArgs generations?: boolean | AssetCountOutputTypeCountGenerationsArgs @@ -675,9 +603,7 @@ export type AssetCountOutputTypeSelect< /** * AssetCountOutputType without action */ -export type AssetCountOutputTypeDefaultArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the AssetCountOutputType */ @@ -687,75 +613,55 @@ export type AssetCountOutputTypeDefaultArgs< /** * AssetCountOutputType without action */ -export type AssetCountOutputTypeCountCharactersArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetCountOutputTypeCountCharactersArgs = { where?: Prisma.CharacterWhereInput } /** * AssetCountOutputType without action */ -export type AssetCountOutputTypeCountEquipmentsArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetCountOutputTypeCountEquipmentsArgs = { where?: Prisma.EquipmentWhereInput } /** * AssetCountOutputType without action */ -export type AssetCountOutputTypeCountGenerationsArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetCountOutputTypeCountGenerationsArgs = { where?: Prisma.GenerationWhereInput } -export type AssetSelect< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - id?: boolean - name?: boolean - type?: boolean - path?: boolean - createdAt?: boolean - updatedAt?: boolean - characters?: boolean | Prisma.Asset$charactersArgs - equipments?: boolean | Prisma.Asset$equipmentsArgs - generations?: boolean | Prisma.Asset$generationsArgs - _count?: boolean | Prisma.AssetCountOutputTypeDefaultArgs - }, - ExtArgs['result']['asset'] -> -export type AssetSelectCreateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - id?: boolean - name?: boolean - type?: boolean - path?: boolean - createdAt?: boolean - updatedAt?: boolean - }, - ExtArgs['result']['asset'] -> +export type AssetSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + type?: boolean + path?: boolean + createdAt?: boolean + updatedAt?: boolean + characters?: boolean | Prisma.Asset$charactersArgs + equipments?: boolean | Prisma.Asset$equipmentsArgs + generations?: boolean | Prisma.Asset$generationsArgs + _count?: boolean | Prisma.AssetCountOutputTypeDefaultArgs +}, ExtArgs["result"]["asset"]> -export type AssetSelectUpdateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - id?: boolean - name?: boolean - type?: boolean - path?: boolean - createdAt?: boolean - updatedAt?: boolean - }, - ExtArgs['result']['asset'] -> +export type AssetSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + type?: boolean + path?: boolean + createdAt?: boolean + updatedAt?: boolean +}, ExtArgs["result"]["asset"]> + +export type AssetSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + type?: boolean + path?: boolean + createdAt?: boolean + updatedAt?: boolean +}, ExtArgs["result"]["asset"]> export type AssetSelectScalar = { id?: boolean @@ -766,64 +672,43 @@ export type AssetSelectScalar = { updatedAt?: boolean } -export type AssetOmit< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetOmit< - 'id' | 'name' | 'type' | 'path' | 'createdAt' | 'updatedAt', - ExtArgs['result']['asset'] -> -export type AssetInclude< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "type" | "path" | "createdAt" | "updatedAt", ExtArgs["result"]["asset"]> +export type AssetInclude = { characters?: boolean | Prisma.Asset$charactersArgs equipments?: boolean | Prisma.Asset$equipmentsArgs generations?: boolean | Prisma.Asset$generationsArgs _count?: boolean | Prisma.AssetCountOutputTypeDefaultArgs } -export type AssetIncludeCreateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = {} -export type AssetIncludeUpdateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = {} +export type AssetIncludeCreateManyAndReturn = {} +export type AssetIncludeUpdateManyAndReturn = {} -export type $AssetPayload< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - name: 'Asset' +export type $AssetPayload = { + name: "Asset" objects: { characters: Prisma.$CharacterPayload[] equipments: Prisma.$EquipmentPayload[] generations: Prisma.$GenerationPayload[] } - scalars: runtime.Types.Extensions.GetPayloadResult< - { - id: string - name: string - type: string - path: string - createdAt: Date - updatedAt: Date - }, - ExtArgs['result']['asset'] - > + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + name: string + type: string + path: string + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["asset"]> composites: {} } -export type AssetGetPayload = - runtime.Types.Result.GetResult +export type AssetGetPayload = runtime.Types.Result.GetResult -export type AssetCountArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = Omit & { - select?: AssetCountAggregateInputType | true -} +export type AssetCountArgs = + Omit & { + select?: AssetCountAggregateInputType | true + } -export interface AssetDelegate< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, - GlobalOmitOptions = {}, -> { - [K: symbol]: { types: Prisma.TypeMap['model']['Asset']; meta: { name: 'Asset' } } +export interface AssetDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Asset'], meta: { name: 'Asset' } } /** * Find zero or one Asset that matches the filter. * @param {AssetFindUniqueArgs} args - Arguments to find a Asset @@ -835,19 +720,7 @@ export interface AssetDelegate< * } * }) */ - findUnique( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__AssetClient< - runtime.Types.Result.GetResult< - Prisma.$AssetPayload, - T, - 'findUnique', - GlobalOmitOptions - > | null, - null, - ExtArgs, - GlobalOmitOptions - > + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AssetClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Asset that matches the filter or throw an error with `error.code='P2025'` @@ -861,19 +734,7 @@ export interface AssetDelegate< * } * }) */ - findUniqueOrThrow( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__AssetClient< - runtime.Types.Result.GetResult< - Prisma.$AssetPayload, - T, - 'findUniqueOrThrow', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AssetClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Asset that matches the filter. @@ -888,19 +749,7 @@ export interface AssetDelegate< * } * }) */ - findFirst( - args?: Prisma.SelectSubset>, - ): Prisma.Prisma__AssetClient< - runtime.Types.Result.GetResult< - Prisma.$AssetPayload, - T, - 'findFirst', - GlobalOmitOptions - > | null, - null, - ExtArgs, - GlobalOmitOptions - > + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AssetClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Asset that matches the filter or @@ -916,19 +765,7 @@ export interface AssetDelegate< * } * }) */ - findFirstOrThrow( - args?: Prisma.SelectSubset>, - ): Prisma.Prisma__AssetClient< - runtime.Types.Result.GetResult< - Prisma.$AssetPayload, - T, - 'findFirstOrThrow', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AssetClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Assets that matches the filter. @@ -946,11 +783,7 @@ export interface AssetDelegate< * const assetWithIdOnly = await prisma.asset.findMany({ select: { id: true } }) * */ - findMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult, T, 'findMany', GlobalOmitOptions> - > + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Asset. @@ -964,14 +797,7 @@ export interface AssetDelegate< * }) * */ - create( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__AssetClient< - runtime.Types.Result.GetResult, T, 'create', GlobalOmitOptions>, - never, - ExtArgs, - GlobalOmitOptions - > + create(args: Prisma.SelectSubset>): Prisma.Prisma__AssetClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Assets. @@ -985,9 +811,7 @@ export interface AssetDelegate< * }) * */ - createMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Assets and returns the data saved in the database. @@ -1011,16 +835,7 @@ export interface AssetDelegate< * Read more here: https://pris.ly/d/null-undefined * */ - createManyAndReturn( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$AssetPayload, - T, - 'createManyAndReturn', - GlobalOmitOptions - > - > + createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Asset. @@ -1034,14 +849,7 @@ export interface AssetDelegate< * }) * */ - delete( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__AssetClient< - runtime.Types.Result.GetResult, T, 'delete', GlobalOmitOptions>, - never, - ExtArgs, - GlobalOmitOptions - > + delete(args: Prisma.SelectSubset>): Prisma.Prisma__AssetClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Asset. @@ -1058,14 +866,7 @@ export interface AssetDelegate< * }) * */ - update( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__AssetClient< - runtime.Types.Result.GetResult, T, 'update', GlobalOmitOptions>, - never, - ExtArgs, - GlobalOmitOptions - > + update(args: Prisma.SelectSubset>): Prisma.Prisma__AssetClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Assets. @@ -1079,9 +880,7 @@ export interface AssetDelegate< * }) * */ - deleteMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Assets. @@ -1100,9 +899,7 @@ export interface AssetDelegate< * }) * */ - updateMany( - args: Prisma.SelectSubset>, - ): Prisma.PrismaPromise + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Assets and returns the data updated in the database. @@ -1132,16 +929,7 @@ export interface AssetDelegate< * Read more here: https://pris.ly/d/null-undefined * */ - updateManyAndReturn( - args: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$AssetPayload, - T, - 'updateManyAndReturn', - GlobalOmitOptions - > - > + updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Asset. @@ -1160,14 +948,8 @@ export interface AssetDelegate< * } * }) */ - upsert( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__AssetClient< - runtime.Types.Result.GetResult, T, 'upsert', GlobalOmitOptions>, - never, - ExtArgs, - GlobalOmitOptions - > + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AssetClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + /** * Count the number of Assets. @@ -1181,7 +963,7 @@ export interface AssetDelegate< * // ... the filter for the Assets we want to count * } * }) - **/ + **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< @@ -1215,10 +997,8 @@ export interface AssetDelegate< * }, * take: 10, * }) - **/ - aggregate( - args: Prisma.Subset, - ): Prisma.PrismaPromise> + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Asset. @@ -1237,7 +1017,7 @@ export interface AssetDelegate< * }, * }) * - **/ + **/ groupBy< T extends AssetGroupByArgs, HasSelectOrTake extends Prisma.Or< @@ -1247,58 +1027,59 @@ export interface AssetDelegate< OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AssetGroupByArgs['orderBy'] } : { orderBy?: AssetGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys< - Prisma.Keys> - >, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields], - >( - args: Prisma.SubsetIntersection & InputErrors, - ): {} extends InputErrors ? GetAssetGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Asset model - */ - readonly fields: AssetFieldRefs + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetAssetGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Asset model + */ +readonly fields: AssetFieldRefs; } /** @@ -1307,64 +1088,24 @@ export interface AssetDelegate< * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ -export interface Prisma__AssetClient< - T, - Null = never, - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, - GlobalOmitOptions = {}, -> extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: 'PrismaPromise' - characters = {}>( - args?: Prisma.Subset>, - ): Prisma.PrismaPromise< - | runtime.Types.Result.GetResult< - Prisma.$CharacterPayload, - T, - 'findMany', - GlobalOmitOptions - > - | Null - > - equipments = {}>( - args?: Prisma.Subset>, - ): Prisma.PrismaPromise< - | runtime.Types.Result.GetResult< - Prisma.$EquipmentPayload, - T, - 'findMany', - GlobalOmitOptions - > - | Null - > - generations = {}>( - args?: Prisma.Subset>, - ): Prisma.PrismaPromise< - | runtime.Types.Result.GetResult< - Prisma.$GenerationPayload, - T, - 'findMany', - GlobalOmitOptions - > - | Null - > +export interface Prisma__AssetClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + characters = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + equipments = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + generations = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ - then( - onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, - onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, - ): runtime.Types.Utils.JsPromise + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ - catch( - onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, - ): runtime.Types.Utils.JsPromise + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. @@ -1374,25 +1115,27 @@ export interface Prisma__AssetClient< finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } + + + /** * Fields of the Asset model */ export interface AssetFieldRefs { - readonly id: Prisma.FieldRef<'Asset', 'String'> - readonly name: Prisma.FieldRef<'Asset', 'String'> - readonly type: Prisma.FieldRef<'Asset', 'String'> - readonly path: Prisma.FieldRef<'Asset', 'String'> - readonly createdAt: Prisma.FieldRef<'Asset', 'DateTime'> - readonly updatedAt: Prisma.FieldRef<'Asset', 'DateTime'> + readonly id: Prisma.FieldRef<"Asset", 'String'> + readonly name: Prisma.FieldRef<"Asset", 'String'> + readonly type: Prisma.FieldRef<"Asset", 'String'> + readonly path: Prisma.FieldRef<"Asset", 'String'> + readonly createdAt: Prisma.FieldRef<"Asset", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Asset", 'DateTime'> } + // Custom InputTypes /** * Asset findUnique */ -export type AssetFindUniqueArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetFindUniqueArgs = { /** * Select specific fields to fetch from the Asset */ @@ -1414,9 +1157,7 @@ export type AssetFindUniqueArgs< /** * Asset findUniqueOrThrow */ -export type AssetFindUniqueOrThrowArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Asset */ @@ -1438,9 +1179,7 @@ export type AssetFindUniqueOrThrowArgs< /** * Asset findFirst */ -export type AssetFindFirstArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetFindFirstArgs = { /** * Select specific fields to fetch from the Asset */ @@ -1492,9 +1231,7 @@ export type AssetFindFirstArgs< /** * Asset findFirstOrThrow */ -export type AssetFindFirstOrThrowArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Asset */ @@ -1546,9 +1283,7 @@ export type AssetFindFirstOrThrowArgs< /** * Asset findMany */ -export type AssetFindManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetFindManyArgs = { /** * Select specific fields to fetch from the Asset */ @@ -1595,9 +1330,7 @@ export type AssetFindManyArgs< /** * Asset create */ -export type AssetCreateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetCreateArgs = { /** * Select specific fields to fetch from the Asset */ @@ -1619,9 +1352,7 @@ export type AssetCreateArgs< /** * Asset createMany */ -export type AssetCreateManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetCreateManyArgs = { /** * The data used to create many Assets. */ @@ -1631,9 +1362,7 @@ export type AssetCreateManyArgs< /** * Asset createManyAndReturn */ -export type AssetCreateManyAndReturnArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Asset */ @@ -1651,9 +1380,7 @@ export type AssetCreateManyAndReturnArgs< /** * Asset update */ -export type AssetUpdateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetUpdateArgs = { /** * Select specific fields to fetch from the Asset */ @@ -1679,9 +1406,7 @@ export type AssetUpdateArgs< /** * Asset updateMany */ -export type AssetUpdateManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetUpdateManyArgs = { /** * The data used to update Assets. */ @@ -1699,9 +1424,7 @@ export type AssetUpdateManyArgs< /** * Asset updateManyAndReturn */ -export type AssetUpdateManyAndReturnArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Asset */ @@ -1727,9 +1450,7 @@ export type AssetUpdateManyAndReturnArgs< /** * Asset upsert */ -export type AssetUpsertArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetUpsertArgs = { /** * Select specific fields to fetch from the Asset */ @@ -1759,9 +1480,7 @@ export type AssetUpsertArgs< /** * Asset delete */ -export type AssetDeleteArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetDeleteArgs = { /** * Select specific fields to fetch from the Asset */ @@ -1783,9 +1502,7 @@ export type AssetDeleteArgs< /** * Asset deleteMany */ -export type AssetDeleteManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetDeleteManyArgs = { /** * Filter which Assets to delete */ @@ -1799,9 +1516,7 @@ export type AssetDeleteManyArgs< /** * Asset.characters */ -export type Asset$charactersArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type Asset$charactersArgs = { /** * Select specific fields to fetch from the Character */ @@ -1825,9 +1540,7 @@ export type Asset$charactersArgs< /** * Asset.equipments */ -export type Asset$equipmentsArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type Asset$equipmentsArgs = { /** * Select specific fields to fetch from the Equipment */ @@ -1851,9 +1564,7 @@ export type Asset$equipmentsArgs< /** * Asset.generations */ -export type Asset$generationsArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type Asset$generationsArgs = { /** * Select specific fields to fetch from the Generation */ @@ -1877,9 +1588,7 @@ export type Asset$generationsArgs< /** * Asset without action */ -export type AssetDefaultArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type AssetDefaultArgs = { /** * Select specific fields to fetch from the Asset */ diff --git a/src/generated/prisma/models/Category.ts b/src/generated/prisma/models/Category.ts deleted file mode 100644 index 1a8e244..0000000 --- a/src/generated/prisma/models/Category.ts +++ /dev/null @@ -1,2144 +0,0 @@ -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `Category` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from '@prisma/client/runtime/client' -import type * as $Enums from '../enums.ts' -import type * as Prisma from '../internal/prismaNamespace.ts' - -/** - * Model Category - * - */ -export type CategoryModel = runtime.Types.Result.DefaultSelection - -export type AggregateCategory = { - _count: CategoryCountAggregateOutputType | null - _min: CategoryMinAggregateOutputType | null - _max: CategoryMaxAggregateOutputType | null -} - -export type CategoryMinAggregateOutputType = { - id: string | null - name: string | null - parentId: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type CategoryMaxAggregateOutputType = { - id: string | null - name: string | null - parentId: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type CategoryCountAggregateOutputType = { - id: number - name: number - parentId: number - createdAt: number - updatedAt: number - _all: number -} - -export type CategoryMinAggregateInputType = { - id?: true - name?: true - parentId?: true - createdAt?: true - updatedAt?: true -} - -export type CategoryMaxAggregateInputType = { - id?: true - name?: true - parentId?: true - createdAt?: true - updatedAt?: true -} - -export type CategoryCountAggregateInputType = { - id?: true - name?: true - parentId?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type CategoryAggregateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Filter which Category to aggregate. - */ - where?: Prisma.CategoryWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Categories to fetch. - */ - orderBy?: Prisma.CategoryOrderByWithRelationInput | Prisma.CategoryOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.CategoryWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Categories from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Categories. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Categories - **/ - _count?: true | CategoryCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: CategoryMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: CategoryMaxAggregateInputType -} - -export type GetCategoryAggregateType = { - [P in keyof T & keyof AggregateCategory]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - -export type CategoryGroupByArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - where?: Prisma.CategoryWhereInput - orderBy?: - | Prisma.CategoryOrderByWithAggregationInput - | Prisma.CategoryOrderByWithAggregationInput[] - by: Prisma.CategoryScalarFieldEnum[] | Prisma.CategoryScalarFieldEnum - having?: Prisma.CategoryScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: CategoryCountAggregateInputType | true - _min?: CategoryMinAggregateInputType - _max?: CategoryMaxAggregateInputType -} - -export type CategoryGroupByOutputType = { - id: string - name: string - parentId: string | null - createdAt: Date - updatedAt: Date - _count: CategoryCountAggregateOutputType | null - _min: CategoryMinAggregateOutputType | null - _max: CategoryMaxAggregateOutputType | null -} - -type GetCategoryGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & { - [P in keyof T & keyof CategoryGroupByOutputType]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > -> - -export type CategoryWhereInput = { - AND?: Prisma.CategoryWhereInput | Prisma.CategoryWhereInput[] - OR?: Prisma.CategoryWhereInput[] - NOT?: Prisma.CategoryWhereInput | Prisma.CategoryWhereInput[] - id?: Prisma.StringFilter<'Category'> | string - name?: Prisma.StringFilter<'Category'> | string - parentId?: Prisma.StringNullableFilter<'Category'> | string | null - createdAt?: Prisma.DateTimeFilter<'Category'> | Date | string - updatedAt?: Prisma.DateTimeFilter<'Category'> | Date | string - parent?: Prisma.XOR | null - subCategories?: Prisma.CategoryListRelationFilter - equipmentsAsMain?: Prisma.EquipmentListRelationFilter - equipmentsAsSub?: Prisma.EquipmentListRelationFilter -} - -export type CategoryOrderByWithRelationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - parentId?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - parent?: Prisma.CategoryOrderByWithRelationInput - subCategories?: Prisma.CategoryOrderByRelationAggregateInput - equipmentsAsMain?: Prisma.EquipmentOrderByRelationAggregateInput - equipmentsAsSub?: Prisma.EquipmentOrderByRelationAggregateInput -} - -export type CategoryWhereUniqueInput = Prisma.AtLeast< - { - id?: string - AND?: Prisma.CategoryWhereInput | Prisma.CategoryWhereInput[] - OR?: Prisma.CategoryWhereInput[] - NOT?: Prisma.CategoryWhereInput | Prisma.CategoryWhereInput[] - name?: Prisma.StringFilter<'Category'> | string - parentId?: Prisma.StringNullableFilter<'Category'> | string | null - createdAt?: Prisma.DateTimeFilter<'Category'> | Date | string - updatedAt?: Prisma.DateTimeFilter<'Category'> | Date | string - parent?: Prisma.XOR< - Prisma.CategoryNullableScalarRelationFilter, - Prisma.CategoryWhereInput - > | null - subCategories?: Prisma.CategoryListRelationFilter - equipmentsAsMain?: Prisma.EquipmentListRelationFilter - equipmentsAsSub?: Prisma.EquipmentListRelationFilter - }, - 'id' -> - -export type CategoryOrderByWithAggregationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - parentId?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.CategoryCountOrderByAggregateInput - _max?: Prisma.CategoryMaxOrderByAggregateInput - _min?: Prisma.CategoryMinOrderByAggregateInput -} - -export type CategoryScalarWhereWithAggregatesInput = { - AND?: - | Prisma.CategoryScalarWhereWithAggregatesInput - | Prisma.CategoryScalarWhereWithAggregatesInput[] - OR?: Prisma.CategoryScalarWhereWithAggregatesInput[] - NOT?: - | Prisma.CategoryScalarWhereWithAggregatesInput - | Prisma.CategoryScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<'Category'> | string - name?: Prisma.StringWithAggregatesFilter<'Category'> | string - parentId?: Prisma.StringNullableWithAggregatesFilter<'Category'> | string | null - createdAt?: Prisma.DateTimeWithAggregatesFilter<'Category'> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Category'> | Date | string -} - -export type CategoryCreateInput = { - id: string - name: string - createdAt?: Date | string - updatedAt?: Date | string - parent?: Prisma.CategoryCreateNestedOneWithoutSubCategoriesInput - subCategories?: Prisma.CategoryCreateNestedManyWithoutParentInput - equipmentsAsMain?: Prisma.EquipmentCreateNestedManyWithoutCategoryInput - equipmentsAsSub?: Prisma.EquipmentCreateNestedManyWithoutSubCategoryInput -} - -export type CategoryUncheckedCreateInput = { - id: string - name: string - parentId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - subCategories?: Prisma.CategoryUncheckedCreateNestedManyWithoutParentInput - equipmentsAsMain?: Prisma.EquipmentUncheckedCreateNestedManyWithoutCategoryInput - equipmentsAsSub?: Prisma.EquipmentUncheckedCreateNestedManyWithoutSubCategoryInput -} - -export type CategoryUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - parent?: Prisma.CategoryUpdateOneWithoutSubCategoriesNestedInput - subCategories?: Prisma.CategoryUpdateManyWithoutParentNestedInput - equipmentsAsMain?: Prisma.EquipmentUpdateManyWithoutCategoryNestedInput - equipmentsAsSub?: Prisma.EquipmentUpdateManyWithoutSubCategoryNestedInput -} - -export type CategoryUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - subCategories?: Prisma.CategoryUncheckedUpdateManyWithoutParentNestedInput - equipmentsAsMain?: Prisma.EquipmentUncheckedUpdateManyWithoutCategoryNestedInput - equipmentsAsSub?: Prisma.EquipmentUncheckedUpdateManyWithoutSubCategoryNestedInput -} - -export type CategoryCreateManyInput = { - id: string - name: string - parentId?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type CategoryUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type CategoryUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type CategoryNullableScalarRelationFilter = { - is?: Prisma.CategoryWhereInput | null - isNot?: Prisma.CategoryWhereInput | null -} - -export type CategoryListRelationFilter = { - every?: Prisma.CategoryWhereInput - some?: Prisma.CategoryWhereInput - none?: Prisma.CategoryWhereInput -} - -export type CategoryOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type CategoryCountOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - parentId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type CategoryMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - parentId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type CategoryMinOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - parentId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type CategoryScalarRelationFilter = { - is?: Prisma.CategoryWhereInput - isNot?: Prisma.CategoryWhereInput -} - -export type CategoryCreateNestedOneWithoutSubCategoriesInput = { - create?: Prisma.XOR< - Prisma.CategoryCreateWithoutSubCategoriesInput, - Prisma.CategoryUncheckedCreateWithoutSubCategoriesInput - > - connectOrCreate?: Prisma.CategoryCreateOrConnectWithoutSubCategoriesInput - connect?: Prisma.CategoryWhereUniqueInput -} - -export type CategoryCreateNestedManyWithoutParentInput = { - create?: - | Prisma.XOR< - Prisma.CategoryCreateWithoutParentInput, - Prisma.CategoryUncheckedCreateWithoutParentInput - > - | Prisma.CategoryCreateWithoutParentInput[] - | Prisma.CategoryUncheckedCreateWithoutParentInput[] - connectOrCreate?: - | Prisma.CategoryCreateOrConnectWithoutParentInput - | Prisma.CategoryCreateOrConnectWithoutParentInput[] - createMany?: Prisma.CategoryCreateManyParentInputEnvelope - connect?: Prisma.CategoryWhereUniqueInput | Prisma.CategoryWhereUniqueInput[] -} - -export type CategoryUncheckedCreateNestedManyWithoutParentInput = { - create?: - | Prisma.XOR< - Prisma.CategoryCreateWithoutParentInput, - Prisma.CategoryUncheckedCreateWithoutParentInput - > - | Prisma.CategoryCreateWithoutParentInput[] - | Prisma.CategoryUncheckedCreateWithoutParentInput[] - connectOrCreate?: - | Prisma.CategoryCreateOrConnectWithoutParentInput - | Prisma.CategoryCreateOrConnectWithoutParentInput[] - createMany?: Prisma.CategoryCreateManyParentInputEnvelope - connect?: Prisma.CategoryWhereUniqueInput | Prisma.CategoryWhereUniqueInput[] -} - -export type CategoryUpdateOneWithoutSubCategoriesNestedInput = { - create?: Prisma.XOR< - Prisma.CategoryCreateWithoutSubCategoriesInput, - Prisma.CategoryUncheckedCreateWithoutSubCategoriesInput - > - connectOrCreate?: Prisma.CategoryCreateOrConnectWithoutSubCategoriesInput - upsert?: Prisma.CategoryUpsertWithoutSubCategoriesInput - disconnect?: Prisma.CategoryWhereInput | boolean - delete?: Prisma.CategoryWhereInput | boolean - connect?: Prisma.CategoryWhereUniqueInput - update?: Prisma.XOR< - Prisma.XOR< - Prisma.CategoryUpdateToOneWithWhereWithoutSubCategoriesInput, - Prisma.CategoryUpdateWithoutSubCategoriesInput - >, - Prisma.CategoryUncheckedUpdateWithoutSubCategoriesInput - > -} - -export type CategoryUpdateManyWithoutParentNestedInput = { - create?: - | Prisma.XOR< - Prisma.CategoryCreateWithoutParentInput, - Prisma.CategoryUncheckedCreateWithoutParentInput - > - | Prisma.CategoryCreateWithoutParentInput[] - | Prisma.CategoryUncheckedCreateWithoutParentInput[] - connectOrCreate?: - | Prisma.CategoryCreateOrConnectWithoutParentInput - | Prisma.CategoryCreateOrConnectWithoutParentInput[] - upsert?: - | Prisma.CategoryUpsertWithWhereUniqueWithoutParentInput - | Prisma.CategoryUpsertWithWhereUniqueWithoutParentInput[] - createMany?: Prisma.CategoryCreateManyParentInputEnvelope - set?: Prisma.CategoryWhereUniqueInput | Prisma.CategoryWhereUniqueInput[] - disconnect?: Prisma.CategoryWhereUniqueInput | Prisma.CategoryWhereUniqueInput[] - delete?: Prisma.CategoryWhereUniqueInput | Prisma.CategoryWhereUniqueInput[] - connect?: Prisma.CategoryWhereUniqueInput | Prisma.CategoryWhereUniqueInput[] - update?: - | Prisma.CategoryUpdateWithWhereUniqueWithoutParentInput - | Prisma.CategoryUpdateWithWhereUniqueWithoutParentInput[] - updateMany?: - | Prisma.CategoryUpdateManyWithWhereWithoutParentInput - | Prisma.CategoryUpdateManyWithWhereWithoutParentInput[] - deleteMany?: Prisma.CategoryScalarWhereInput | Prisma.CategoryScalarWhereInput[] -} - -export type CategoryUncheckedUpdateManyWithoutParentNestedInput = { - create?: - | Prisma.XOR< - Prisma.CategoryCreateWithoutParentInput, - Prisma.CategoryUncheckedCreateWithoutParentInput - > - | Prisma.CategoryCreateWithoutParentInput[] - | Prisma.CategoryUncheckedCreateWithoutParentInput[] - connectOrCreate?: - | Prisma.CategoryCreateOrConnectWithoutParentInput - | Prisma.CategoryCreateOrConnectWithoutParentInput[] - upsert?: - | Prisma.CategoryUpsertWithWhereUniqueWithoutParentInput - | Prisma.CategoryUpsertWithWhereUniqueWithoutParentInput[] - createMany?: Prisma.CategoryCreateManyParentInputEnvelope - set?: Prisma.CategoryWhereUniqueInput | Prisma.CategoryWhereUniqueInput[] - disconnect?: Prisma.CategoryWhereUniqueInput | Prisma.CategoryWhereUniqueInput[] - delete?: Prisma.CategoryWhereUniqueInput | Prisma.CategoryWhereUniqueInput[] - connect?: Prisma.CategoryWhereUniqueInput | Prisma.CategoryWhereUniqueInput[] - update?: - | Prisma.CategoryUpdateWithWhereUniqueWithoutParentInput - | Prisma.CategoryUpdateWithWhereUniqueWithoutParentInput[] - updateMany?: - | Prisma.CategoryUpdateManyWithWhereWithoutParentInput - | Prisma.CategoryUpdateManyWithWhereWithoutParentInput[] - deleteMany?: Prisma.CategoryScalarWhereInput | Prisma.CategoryScalarWhereInput[] -} - -export type CategoryCreateNestedOneWithoutEquipmentsAsMainInput = { - create?: Prisma.XOR< - Prisma.CategoryCreateWithoutEquipmentsAsMainInput, - Prisma.CategoryUncheckedCreateWithoutEquipmentsAsMainInput - > - connectOrCreate?: Prisma.CategoryCreateOrConnectWithoutEquipmentsAsMainInput - connect?: Prisma.CategoryWhereUniqueInput -} - -export type CategoryCreateNestedOneWithoutEquipmentsAsSubInput = { - create?: Prisma.XOR< - Prisma.CategoryCreateWithoutEquipmentsAsSubInput, - Prisma.CategoryUncheckedCreateWithoutEquipmentsAsSubInput - > - connectOrCreate?: Prisma.CategoryCreateOrConnectWithoutEquipmentsAsSubInput - connect?: Prisma.CategoryWhereUniqueInput -} - -export type CategoryUpdateOneRequiredWithoutEquipmentsAsMainNestedInput = { - create?: Prisma.XOR< - Prisma.CategoryCreateWithoutEquipmentsAsMainInput, - Prisma.CategoryUncheckedCreateWithoutEquipmentsAsMainInput - > - connectOrCreate?: Prisma.CategoryCreateOrConnectWithoutEquipmentsAsMainInput - upsert?: Prisma.CategoryUpsertWithoutEquipmentsAsMainInput - connect?: Prisma.CategoryWhereUniqueInput - update?: Prisma.XOR< - Prisma.XOR< - Prisma.CategoryUpdateToOneWithWhereWithoutEquipmentsAsMainInput, - Prisma.CategoryUpdateWithoutEquipmentsAsMainInput - >, - Prisma.CategoryUncheckedUpdateWithoutEquipmentsAsMainInput - > -} - -export type CategoryUpdateOneWithoutEquipmentsAsSubNestedInput = { - create?: Prisma.XOR< - Prisma.CategoryCreateWithoutEquipmentsAsSubInput, - Prisma.CategoryUncheckedCreateWithoutEquipmentsAsSubInput - > - connectOrCreate?: Prisma.CategoryCreateOrConnectWithoutEquipmentsAsSubInput - upsert?: Prisma.CategoryUpsertWithoutEquipmentsAsSubInput - disconnect?: Prisma.CategoryWhereInput | boolean - delete?: Prisma.CategoryWhereInput | boolean - connect?: Prisma.CategoryWhereUniqueInput - update?: Prisma.XOR< - Prisma.XOR< - Prisma.CategoryUpdateToOneWithWhereWithoutEquipmentsAsSubInput, - Prisma.CategoryUpdateWithoutEquipmentsAsSubInput - >, - Prisma.CategoryUncheckedUpdateWithoutEquipmentsAsSubInput - > -} - -export type CategoryCreateWithoutSubCategoriesInput = { - id: string - name: string - createdAt?: Date | string - updatedAt?: Date | string - parent?: Prisma.CategoryCreateNestedOneWithoutSubCategoriesInput - equipmentsAsMain?: Prisma.EquipmentCreateNestedManyWithoutCategoryInput - equipmentsAsSub?: Prisma.EquipmentCreateNestedManyWithoutSubCategoryInput -} - -export type CategoryUncheckedCreateWithoutSubCategoriesInput = { - id: string - name: string - parentId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - equipmentsAsMain?: Prisma.EquipmentUncheckedCreateNestedManyWithoutCategoryInput - equipmentsAsSub?: Prisma.EquipmentUncheckedCreateNestedManyWithoutSubCategoryInput -} - -export type CategoryCreateOrConnectWithoutSubCategoriesInput = { - where: Prisma.CategoryWhereUniqueInput - create: Prisma.XOR< - Prisma.CategoryCreateWithoutSubCategoriesInput, - Prisma.CategoryUncheckedCreateWithoutSubCategoriesInput - > -} - -export type CategoryCreateWithoutParentInput = { - id: string - name: string - createdAt?: Date | string - updatedAt?: Date | string - subCategories?: Prisma.CategoryCreateNestedManyWithoutParentInput - equipmentsAsMain?: Prisma.EquipmentCreateNestedManyWithoutCategoryInput - equipmentsAsSub?: Prisma.EquipmentCreateNestedManyWithoutSubCategoryInput -} - -export type CategoryUncheckedCreateWithoutParentInput = { - id: string - name: string - createdAt?: Date | string - updatedAt?: Date | string - subCategories?: Prisma.CategoryUncheckedCreateNestedManyWithoutParentInput - equipmentsAsMain?: Prisma.EquipmentUncheckedCreateNestedManyWithoutCategoryInput - equipmentsAsSub?: Prisma.EquipmentUncheckedCreateNestedManyWithoutSubCategoryInput -} - -export type CategoryCreateOrConnectWithoutParentInput = { - where: Prisma.CategoryWhereUniqueInput - create: Prisma.XOR< - Prisma.CategoryCreateWithoutParentInput, - Prisma.CategoryUncheckedCreateWithoutParentInput - > -} - -export type CategoryCreateManyParentInputEnvelope = { - data: Prisma.CategoryCreateManyParentInput | Prisma.CategoryCreateManyParentInput[] -} - -export type CategoryUpsertWithoutSubCategoriesInput = { - update: Prisma.XOR< - Prisma.CategoryUpdateWithoutSubCategoriesInput, - Prisma.CategoryUncheckedUpdateWithoutSubCategoriesInput - > - create: Prisma.XOR< - Prisma.CategoryCreateWithoutSubCategoriesInput, - Prisma.CategoryUncheckedCreateWithoutSubCategoriesInput - > - where?: Prisma.CategoryWhereInput -} - -export type CategoryUpdateToOneWithWhereWithoutSubCategoriesInput = { - where?: Prisma.CategoryWhereInput - data: Prisma.XOR< - Prisma.CategoryUpdateWithoutSubCategoriesInput, - Prisma.CategoryUncheckedUpdateWithoutSubCategoriesInput - > -} - -export type CategoryUpdateWithoutSubCategoriesInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - parent?: Prisma.CategoryUpdateOneWithoutSubCategoriesNestedInput - equipmentsAsMain?: Prisma.EquipmentUpdateManyWithoutCategoryNestedInput - equipmentsAsSub?: Prisma.EquipmentUpdateManyWithoutSubCategoryNestedInput -} - -export type CategoryUncheckedUpdateWithoutSubCategoriesInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - equipmentsAsMain?: Prisma.EquipmentUncheckedUpdateManyWithoutCategoryNestedInput - equipmentsAsSub?: Prisma.EquipmentUncheckedUpdateManyWithoutSubCategoryNestedInput -} - -export type CategoryUpsertWithWhereUniqueWithoutParentInput = { - where: Prisma.CategoryWhereUniqueInput - update: Prisma.XOR< - Prisma.CategoryUpdateWithoutParentInput, - Prisma.CategoryUncheckedUpdateWithoutParentInput - > - create: Prisma.XOR< - Prisma.CategoryCreateWithoutParentInput, - Prisma.CategoryUncheckedCreateWithoutParentInput - > -} - -export type CategoryUpdateWithWhereUniqueWithoutParentInput = { - where: Prisma.CategoryWhereUniqueInput - data: Prisma.XOR< - Prisma.CategoryUpdateWithoutParentInput, - Prisma.CategoryUncheckedUpdateWithoutParentInput - > -} - -export type CategoryUpdateManyWithWhereWithoutParentInput = { - where: Prisma.CategoryScalarWhereInput - data: Prisma.XOR< - Prisma.CategoryUpdateManyMutationInput, - Prisma.CategoryUncheckedUpdateManyWithoutParentInput - > -} - -export type CategoryScalarWhereInput = { - AND?: Prisma.CategoryScalarWhereInput | Prisma.CategoryScalarWhereInput[] - OR?: Prisma.CategoryScalarWhereInput[] - NOT?: Prisma.CategoryScalarWhereInput | Prisma.CategoryScalarWhereInput[] - id?: Prisma.StringFilter<'Category'> | string - name?: Prisma.StringFilter<'Category'> | string - parentId?: Prisma.StringNullableFilter<'Category'> | string | null - createdAt?: Prisma.DateTimeFilter<'Category'> | Date | string - updatedAt?: Prisma.DateTimeFilter<'Category'> | Date | string -} - -export type CategoryCreateWithoutEquipmentsAsMainInput = { - id: string - name: string - createdAt?: Date | string - updatedAt?: Date | string - parent?: Prisma.CategoryCreateNestedOneWithoutSubCategoriesInput - subCategories?: Prisma.CategoryCreateNestedManyWithoutParentInput - equipmentsAsSub?: Prisma.EquipmentCreateNestedManyWithoutSubCategoryInput -} - -export type CategoryUncheckedCreateWithoutEquipmentsAsMainInput = { - id: string - name: string - parentId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - subCategories?: Prisma.CategoryUncheckedCreateNestedManyWithoutParentInput - equipmentsAsSub?: Prisma.EquipmentUncheckedCreateNestedManyWithoutSubCategoryInput -} - -export type CategoryCreateOrConnectWithoutEquipmentsAsMainInput = { - where: Prisma.CategoryWhereUniqueInput - create: Prisma.XOR< - Prisma.CategoryCreateWithoutEquipmentsAsMainInput, - Prisma.CategoryUncheckedCreateWithoutEquipmentsAsMainInput - > -} - -export type CategoryCreateWithoutEquipmentsAsSubInput = { - id: string - name: string - createdAt?: Date | string - updatedAt?: Date | string - parent?: Prisma.CategoryCreateNestedOneWithoutSubCategoriesInput - subCategories?: Prisma.CategoryCreateNestedManyWithoutParentInput - equipmentsAsMain?: Prisma.EquipmentCreateNestedManyWithoutCategoryInput -} - -export type CategoryUncheckedCreateWithoutEquipmentsAsSubInput = { - id: string - name: string - parentId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - subCategories?: Prisma.CategoryUncheckedCreateNestedManyWithoutParentInput - equipmentsAsMain?: Prisma.EquipmentUncheckedCreateNestedManyWithoutCategoryInput -} - -export type CategoryCreateOrConnectWithoutEquipmentsAsSubInput = { - where: Prisma.CategoryWhereUniqueInput - create: Prisma.XOR< - Prisma.CategoryCreateWithoutEquipmentsAsSubInput, - Prisma.CategoryUncheckedCreateWithoutEquipmentsAsSubInput - > -} - -export type CategoryUpsertWithoutEquipmentsAsMainInput = { - update: Prisma.XOR< - Prisma.CategoryUpdateWithoutEquipmentsAsMainInput, - Prisma.CategoryUncheckedUpdateWithoutEquipmentsAsMainInput - > - create: Prisma.XOR< - Prisma.CategoryCreateWithoutEquipmentsAsMainInput, - Prisma.CategoryUncheckedCreateWithoutEquipmentsAsMainInput - > - where?: Prisma.CategoryWhereInput -} - -export type CategoryUpdateToOneWithWhereWithoutEquipmentsAsMainInput = { - where?: Prisma.CategoryWhereInput - data: Prisma.XOR< - Prisma.CategoryUpdateWithoutEquipmentsAsMainInput, - Prisma.CategoryUncheckedUpdateWithoutEquipmentsAsMainInput - > -} - -export type CategoryUpdateWithoutEquipmentsAsMainInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - parent?: Prisma.CategoryUpdateOneWithoutSubCategoriesNestedInput - subCategories?: Prisma.CategoryUpdateManyWithoutParentNestedInput - equipmentsAsSub?: Prisma.EquipmentUpdateManyWithoutSubCategoryNestedInput -} - -export type CategoryUncheckedUpdateWithoutEquipmentsAsMainInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - subCategories?: Prisma.CategoryUncheckedUpdateManyWithoutParentNestedInput - equipmentsAsSub?: Prisma.EquipmentUncheckedUpdateManyWithoutSubCategoryNestedInput -} - -export type CategoryUpsertWithoutEquipmentsAsSubInput = { - update: Prisma.XOR< - Prisma.CategoryUpdateWithoutEquipmentsAsSubInput, - Prisma.CategoryUncheckedUpdateWithoutEquipmentsAsSubInput - > - create: Prisma.XOR< - Prisma.CategoryCreateWithoutEquipmentsAsSubInput, - Prisma.CategoryUncheckedCreateWithoutEquipmentsAsSubInput - > - where?: Prisma.CategoryWhereInput -} - -export type CategoryUpdateToOneWithWhereWithoutEquipmentsAsSubInput = { - where?: Prisma.CategoryWhereInput - data: Prisma.XOR< - Prisma.CategoryUpdateWithoutEquipmentsAsSubInput, - Prisma.CategoryUncheckedUpdateWithoutEquipmentsAsSubInput - > -} - -export type CategoryUpdateWithoutEquipmentsAsSubInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - parent?: Prisma.CategoryUpdateOneWithoutSubCategoriesNestedInput - subCategories?: Prisma.CategoryUpdateManyWithoutParentNestedInput - equipmentsAsMain?: Prisma.EquipmentUpdateManyWithoutCategoryNestedInput -} - -export type CategoryUncheckedUpdateWithoutEquipmentsAsSubInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - subCategories?: Prisma.CategoryUncheckedUpdateManyWithoutParentNestedInput - equipmentsAsMain?: Prisma.EquipmentUncheckedUpdateManyWithoutCategoryNestedInput -} - -export type CategoryCreateManyParentInput = { - id: string - name: string - createdAt?: Date | string - updatedAt?: Date | string -} - -export type CategoryUpdateWithoutParentInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - subCategories?: Prisma.CategoryUpdateManyWithoutParentNestedInput - equipmentsAsMain?: Prisma.EquipmentUpdateManyWithoutCategoryNestedInput - equipmentsAsSub?: Prisma.EquipmentUpdateManyWithoutSubCategoryNestedInput -} - -export type CategoryUncheckedUpdateWithoutParentInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - subCategories?: Prisma.CategoryUncheckedUpdateManyWithoutParentNestedInput - equipmentsAsMain?: Prisma.EquipmentUncheckedUpdateManyWithoutCategoryNestedInput - equipmentsAsSub?: Prisma.EquipmentUncheckedUpdateManyWithoutSubCategoryNestedInput -} - -export type CategoryUncheckedUpdateManyWithoutParentInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -/** - * Count Type CategoryCountOutputType - */ - -export type CategoryCountOutputType = { - subCategories: number - equipmentsAsMain: number - equipmentsAsSub: number -} - -export type CategoryCountOutputTypeSelect< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - subCategories?: boolean | CategoryCountOutputTypeCountSubCategoriesArgs - equipmentsAsMain?: boolean | CategoryCountOutputTypeCountEquipmentsAsMainArgs - equipmentsAsSub?: boolean | CategoryCountOutputTypeCountEquipmentsAsSubArgs -} - -/** - * CategoryCountOutputType without action - */ -export type CategoryCountOutputTypeDefaultArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the CategoryCountOutputType - */ - select?: Prisma.CategoryCountOutputTypeSelect | null -} - -/** - * CategoryCountOutputType without action - */ -export type CategoryCountOutputTypeCountSubCategoriesArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - where?: Prisma.CategoryWhereInput -} - -/** - * CategoryCountOutputType without action - */ -export type CategoryCountOutputTypeCountEquipmentsAsMainArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - where?: Prisma.EquipmentWhereInput -} - -/** - * CategoryCountOutputType without action - */ -export type CategoryCountOutputTypeCountEquipmentsAsSubArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - where?: Prisma.EquipmentWhereInput -} - -export type CategorySelect< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - id?: boolean - name?: boolean - parentId?: boolean - createdAt?: boolean - updatedAt?: boolean - parent?: boolean | Prisma.Category$parentArgs - subCategories?: boolean | Prisma.Category$subCategoriesArgs - equipmentsAsMain?: boolean | Prisma.Category$equipmentsAsMainArgs - equipmentsAsSub?: boolean | Prisma.Category$equipmentsAsSubArgs - _count?: boolean | Prisma.CategoryCountOutputTypeDefaultArgs - }, - ExtArgs['result']['category'] -> - -export type CategorySelectCreateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - id?: boolean - name?: boolean - parentId?: boolean - createdAt?: boolean - updatedAt?: boolean - parent?: boolean | Prisma.Category$parentArgs - }, - ExtArgs['result']['category'] -> - -export type CategorySelectUpdateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - id?: boolean - name?: boolean - parentId?: boolean - createdAt?: boolean - updatedAt?: boolean - parent?: boolean | Prisma.Category$parentArgs - }, - ExtArgs['result']['category'] -> - -export type CategorySelectScalar = { - id?: boolean - name?: boolean - parentId?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type CategoryOmit< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetOmit< - 'id' | 'name' | 'parentId' | 'createdAt' | 'updatedAt', - ExtArgs['result']['category'] -> -export type CategoryInclude< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - parent?: boolean | Prisma.Category$parentArgs - subCategories?: boolean | Prisma.Category$subCategoriesArgs - equipmentsAsMain?: boolean | Prisma.Category$equipmentsAsMainArgs - equipmentsAsSub?: boolean | Prisma.Category$equipmentsAsSubArgs - _count?: boolean | Prisma.CategoryCountOutputTypeDefaultArgs -} -export type CategoryIncludeCreateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - parent?: boolean | Prisma.Category$parentArgs -} -export type CategoryIncludeUpdateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - parent?: boolean | Prisma.Category$parentArgs -} - -export type $CategoryPayload< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - name: 'Category' - objects: { - parent: Prisma.$CategoryPayload | null - subCategories: Prisma.$CategoryPayload[] - equipmentsAsMain: Prisma.$EquipmentPayload[] - equipmentsAsSub: Prisma.$EquipmentPayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult< - { - id: string - name: string - parentId: string | null - createdAt: Date - updatedAt: Date - }, - ExtArgs['result']['category'] - > - composites: {} -} - -export type CategoryGetPayload = - runtime.Types.Result.GetResult - -export type CategoryCountArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = Omit & { - select?: CategoryCountAggregateInputType | true -} - -export interface CategoryDelegate< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, - GlobalOmitOptions = {}, -> { - [K: symbol]: { types: Prisma.TypeMap['model']['Category']; meta: { name: 'Category' } } - /** - * Find zero or one Category that matches the filter. - * @param {CategoryFindUniqueArgs} args - Arguments to find a Category - * @example - * // Get one Category - * const category = await prisma.category.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__CategoryClient< - runtime.Types.Result.GetResult< - Prisma.$CategoryPayload, - T, - 'findUnique', - GlobalOmitOptions - > | null, - null, - ExtArgs, - GlobalOmitOptions - > - - /** - * Find one Category that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {CategoryFindUniqueOrThrowArgs} args - Arguments to find a Category - * @example - * // Get one Category - * const category = await prisma.category.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__CategoryClient< - runtime.Types.Result.GetResult< - Prisma.$CategoryPayload, - T, - 'findUniqueOrThrow', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > - - /** - * Find the first Category that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CategoryFindFirstArgs} args - Arguments to find a Category - * @example - * // Get one Category - * const category = await prisma.category.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst( - args?: Prisma.SelectSubset>, - ): Prisma.Prisma__CategoryClient< - runtime.Types.Result.GetResult< - Prisma.$CategoryPayload, - T, - 'findFirst', - GlobalOmitOptions - > | null, - null, - ExtArgs, - GlobalOmitOptions - > - - /** - * Find the first Category that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CategoryFindFirstOrThrowArgs} args - Arguments to find a Category - * @example - * // Get one Category - * const category = await prisma.category.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow( - args?: Prisma.SelectSubset>, - ): Prisma.Prisma__CategoryClient< - runtime.Types.Result.GetResult< - Prisma.$CategoryPayload, - T, - 'findFirstOrThrow', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > - - /** - * Find zero or more Categories that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CategoryFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Categories - * const categories = await prisma.category.findMany() - * - * // Get first 10 Categories - * const categories = await prisma.category.findMany({ take: 10 }) - * - * // Only select the `id` - * const categoryWithIdOnly = await prisma.category.findMany({ select: { id: true } }) - * - */ - findMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$CategoryPayload, - T, - 'findMany', - GlobalOmitOptions - > - > - - /** - * Create a Category. - * @param {CategoryCreateArgs} args - Arguments to create a Category. - * @example - * // Create one Category - * const Category = await prisma.category.create({ - * data: { - * // ... data to create a Category - * } - * }) - * - */ - create( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__CategoryClient< - runtime.Types.Result.GetResult< - Prisma.$CategoryPayload, - T, - 'create', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > - - /** - * Create many Categories. - * @param {CategoryCreateManyArgs} args - Arguments to create many Categories. - * @example - * // Create many Categories - * const category = await prisma.category.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise - - /** - * Create many Categories and returns the data saved in the database. - * @param {CategoryCreateManyAndReturnArgs} args - Arguments to create many Categories. - * @example - * // Create many Categories - * const category = await prisma.category.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Categories and only return the `id` - * const categoryWithIdOnly = await prisma.category.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$CategoryPayload, - T, - 'createManyAndReturn', - GlobalOmitOptions - > - > - - /** - * Delete a Category. - * @param {CategoryDeleteArgs} args - Arguments to delete one Category. - * @example - * // Delete one Category - * const Category = await prisma.category.delete({ - * where: { - * // ... filter to delete one Category - * } - * }) - * - */ - delete( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__CategoryClient< - runtime.Types.Result.GetResult< - Prisma.$CategoryPayload, - T, - 'delete', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > - - /** - * Update one Category. - * @param {CategoryUpdateArgs} args - Arguments to update one Category. - * @example - * // Update one Category - * const category = await prisma.category.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__CategoryClient< - runtime.Types.Result.GetResult< - Prisma.$CategoryPayload, - T, - 'update', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > - - /** - * Delete zero or more Categories. - * @param {CategoryDeleteManyArgs} args - Arguments to filter Categories to delete. - * @example - * // Delete a few Categories - * const { count } = await prisma.category.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise - - /** - * Update zero or more Categories. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CategoryUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Categories - * const category = await prisma.category.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany( - args: Prisma.SelectSubset>, - ): Prisma.PrismaPromise - - /** - * Update zero or more Categories and returns the data updated in the database. - * @param {CategoryUpdateManyAndReturnArgs} args - Arguments to update many Categories. - * @example - * // Update many Categories - * const category = await prisma.category.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Categories and only return the `id` - * const categoryWithIdOnly = await prisma.category.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn( - args: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$CategoryPayload, - T, - 'updateManyAndReturn', - GlobalOmitOptions - > - > - - /** - * Create or update one Category. - * @param {CategoryUpsertArgs} args - Arguments to update or create a Category. - * @example - * // Update or create a Category - * const category = await prisma.category.upsert({ - * create: { - * // ... data to create a Category - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Category we want to update - * } - * }) - */ - upsert( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__CategoryClient< - runtime.Types.Result.GetResult< - Prisma.$CategoryPayload, - T, - 'upsert', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > - - /** - * Count the number of Categories. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CategoryCountArgs} args - Arguments to filter Categories to count. - * @example - * // Count the number of Categories - * const count = await prisma.category.count({ - * where: { - * // ... the filter for the Categories we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Category. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CategoryAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate( - args: Prisma.Subset, - ): Prisma.PrismaPromise> - - /** - * Group by Category. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CategoryGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends CategoryGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: CategoryGroupByArgs['orderBy'] } - : { orderBy?: CategoryGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys< - Prisma.Keys> - >, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields], - >( - args: Prisma.SubsetIntersection & InputErrors, - ): {} extends InputErrors ? GetCategoryGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Category model - */ - readonly fields: CategoryFieldRefs -} - -/** - * The delegate class that acts as a "Promise-like" for Category. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__CategoryClient< - T, - Null = never, - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, - GlobalOmitOptions = {}, -> extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: 'PrismaPromise' - parent = {}>( - args?: Prisma.Subset>, - ): Prisma.Prisma__CategoryClient< - runtime.Types.Result.GetResult< - Prisma.$CategoryPayload, - T, - 'findUniqueOrThrow', - GlobalOmitOptions - > | null, - null, - ExtArgs, - GlobalOmitOptions - > - subCategories = {}>( - args?: Prisma.Subset>, - ): Prisma.PrismaPromise< - | runtime.Types.Result.GetResult< - Prisma.$CategoryPayload, - T, - 'findMany', - GlobalOmitOptions - > - | Null - > - equipmentsAsMain = {}>( - args?: Prisma.Subset>, - ): Prisma.PrismaPromise< - | runtime.Types.Result.GetResult< - Prisma.$EquipmentPayload, - T, - 'findMany', - GlobalOmitOptions - > - | Null - > - equipmentsAsSub = {}>( - args?: Prisma.Subset>, - ): Prisma.PrismaPromise< - | runtime.Types.Result.GetResult< - Prisma.$EquipmentPayload, - T, - 'findMany', - GlobalOmitOptions - > - | Null - > - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then( - onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, - onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, - ): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch( - onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, - ): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - -/** - * Fields of the Category model - */ -export interface CategoryFieldRefs { - readonly id: Prisma.FieldRef<'Category', 'String'> - readonly name: Prisma.FieldRef<'Category', 'String'> - readonly parentId: Prisma.FieldRef<'Category', 'String'> - readonly createdAt: Prisma.FieldRef<'Category', 'DateTime'> - readonly updatedAt: Prisma.FieldRef<'Category', 'DateTime'> -} - -// Custom InputTypes -/** - * Category findUnique - */ -export type CategoryFindUniqueArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Category - */ - select?: Prisma.CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: Prisma.CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CategoryInclude | null - /** - * Filter, which Category to fetch. - */ - where: Prisma.CategoryWhereUniqueInput -} - -/** - * Category findUniqueOrThrow - */ -export type CategoryFindUniqueOrThrowArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Category - */ - select?: Prisma.CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: Prisma.CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CategoryInclude | null - /** - * Filter, which Category to fetch. - */ - where: Prisma.CategoryWhereUniqueInput -} - -/** - * Category findFirst - */ -export type CategoryFindFirstArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Category - */ - select?: Prisma.CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: Prisma.CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CategoryInclude | null - /** - * Filter, which Category to fetch. - */ - where?: Prisma.CategoryWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Categories to fetch. - */ - orderBy?: Prisma.CategoryOrderByWithRelationInput | Prisma.CategoryOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Categories. - */ - cursor?: Prisma.CategoryWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Categories from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Categories. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Categories. - */ - distinct?: Prisma.CategoryScalarFieldEnum | Prisma.CategoryScalarFieldEnum[] -} - -/** - * Category findFirstOrThrow - */ -export type CategoryFindFirstOrThrowArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Category - */ - select?: Prisma.CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: Prisma.CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CategoryInclude | null - /** - * Filter, which Category to fetch. - */ - where?: Prisma.CategoryWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Categories to fetch. - */ - orderBy?: Prisma.CategoryOrderByWithRelationInput | Prisma.CategoryOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Categories. - */ - cursor?: Prisma.CategoryWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Categories from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Categories. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Categories. - */ - distinct?: Prisma.CategoryScalarFieldEnum | Prisma.CategoryScalarFieldEnum[] -} - -/** - * Category findMany - */ -export type CategoryFindManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Category - */ - select?: Prisma.CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: Prisma.CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CategoryInclude | null - /** - * Filter, which Categories to fetch. - */ - where?: Prisma.CategoryWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Categories to fetch. - */ - orderBy?: Prisma.CategoryOrderByWithRelationInput | Prisma.CategoryOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Categories. - */ - cursor?: Prisma.CategoryWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Categories from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Categories. - */ - skip?: number - distinct?: Prisma.CategoryScalarFieldEnum | Prisma.CategoryScalarFieldEnum[] -} - -/** - * Category create - */ -export type CategoryCreateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Category - */ - select?: Prisma.CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: Prisma.CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CategoryInclude | null - /** - * The data needed to create a Category. - */ - data: Prisma.XOR -} - -/** - * Category createMany - */ -export type CategoryCreateManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * The data used to create many Categories. - */ - data: Prisma.CategoryCreateManyInput | Prisma.CategoryCreateManyInput[] -} - -/** - * Category createManyAndReturn - */ -export type CategoryCreateManyAndReturnArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Category - */ - select?: Prisma.CategorySelectCreateManyAndReturn | null - /** - * Omit specific fields from the Category - */ - omit?: Prisma.CategoryOmit | null - /** - * The data used to create many Categories. - */ - data: Prisma.CategoryCreateManyInput | Prisma.CategoryCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CategoryIncludeCreateManyAndReturn | null -} - -/** - * Category update - */ -export type CategoryUpdateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Category - */ - select?: Prisma.CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: Prisma.CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CategoryInclude | null - /** - * The data needed to update a Category. - */ - data: Prisma.XOR - /** - * Choose, which Category to update. - */ - where: Prisma.CategoryWhereUniqueInput -} - -/** - * Category updateMany - */ -export type CategoryUpdateManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * The data used to update Categories. - */ - data: Prisma.XOR - /** - * Filter which Categories to update - */ - where?: Prisma.CategoryWhereInput - /** - * Limit how many Categories to update. - */ - limit?: number -} - -/** - * Category updateManyAndReturn - */ -export type CategoryUpdateManyAndReturnArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Category - */ - select?: Prisma.CategorySelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Category - */ - omit?: Prisma.CategoryOmit | null - /** - * The data used to update Categories. - */ - data: Prisma.XOR - /** - * Filter which Categories to update - */ - where?: Prisma.CategoryWhereInput - /** - * Limit how many Categories to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CategoryIncludeUpdateManyAndReturn | null -} - -/** - * Category upsert - */ -export type CategoryUpsertArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Category - */ - select?: Prisma.CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: Prisma.CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CategoryInclude | null - /** - * The filter to search for the Category to update in case it exists. - */ - where: Prisma.CategoryWhereUniqueInput - /** - * In case the Category found by the `where` argument doesn't exist, create a new Category with this data. - */ - create: Prisma.XOR - /** - * In case the Category was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Category delete - */ -export type CategoryDeleteArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Category - */ - select?: Prisma.CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: Prisma.CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CategoryInclude | null - /** - * Filter which Category to delete. - */ - where: Prisma.CategoryWhereUniqueInput -} - -/** - * Category deleteMany - */ -export type CategoryDeleteManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Filter which Categories to delete - */ - where?: Prisma.CategoryWhereInput - /** - * Limit how many Categories to delete. - */ - limit?: number -} - -/** - * Category.parent - */ -export type Category$parentArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Category - */ - select?: Prisma.CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: Prisma.CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CategoryInclude | null - where?: Prisma.CategoryWhereInput -} - -/** - * Category.subCategories - */ -export type Category$subCategoriesArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Category - */ - select?: Prisma.CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: Prisma.CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CategoryInclude | null - where?: Prisma.CategoryWhereInput - orderBy?: Prisma.CategoryOrderByWithRelationInput | Prisma.CategoryOrderByWithRelationInput[] - cursor?: Prisma.CategoryWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.CategoryScalarFieldEnum | Prisma.CategoryScalarFieldEnum[] -} - -/** - * Category.equipmentsAsMain - */ -export type Category$equipmentsAsMainArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Equipment - */ - select?: Prisma.EquipmentSelect | null - /** - * Omit specific fields from the Equipment - */ - omit?: Prisma.EquipmentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.EquipmentInclude | null - where?: Prisma.EquipmentWhereInput - orderBy?: Prisma.EquipmentOrderByWithRelationInput | Prisma.EquipmentOrderByWithRelationInput[] - cursor?: Prisma.EquipmentWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.EquipmentScalarFieldEnum | Prisma.EquipmentScalarFieldEnum[] -} - -/** - * Category.equipmentsAsSub - */ -export type Category$equipmentsAsSubArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Equipment - */ - select?: Prisma.EquipmentSelect | null - /** - * Omit specific fields from the Equipment - */ - omit?: Prisma.EquipmentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.EquipmentInclude | null - where?: Prisma.EquipmentWhereInput - orderBy?: Prisma.EquipmentOrderByWithRelationInput | Prisma.EquipmentOrderByWithRelationInput[] - cursor?: Prisma.EquipmentWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.EquipmentScalarFieldEnum | Prisma.EquipmentScalarFieldEnum[] -} - -/** - * Category without action - */ -export type CategoryDefaultArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Category - */ - select?: Prisma.CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: Prisma.CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CategoryInclude | null -} diff --git a/src/generated/prisma/models/Character.ts b/src/generated/prisma/models/Character.ts index 12d6106..f328342 100644 --- a/src/generated/prisma/models/Character.ts +++ b/src/generated/prisma/models/Character.ts @@ -1,3 +1,4 @@ + /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file @@ -7,9 +8,9 @@ * * 🟢 You can import this file directly. */ -import type * as runtime from '@prisma/client/runtime/client' -import type * as $Enums from '../enums.ts' -import type * as Prisma from '../internal/prismaNamespace.ts' +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model Character @@ -51,6 +52,7 @@ export type CharacterCountAggregateOutputType = { _all: number } + export type CharacterMinAggregateInputType = { id?: true name?: true @@ -79,9 +81,7 @@ export type CharacterCountAggregateInputType = { _all?: true } -export type CharacterAggregateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterAggregateArgs = { /** * Filter which Character to aggregate. */ @@ -114,37 +114,36 @@ export type CharacterAggregateArgs< * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Characters - **/ + **/ _count?: true | CharacterCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value - **/ + **/ _min?: CharacterMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value - **/ + **/ _max?: CharacterMaxAggregateInputType } export type GetCharacterAggregateType = { - [P in keyof T & keyof AggregateCharacter]: P extends '_count' | 'count' + [P in keyof T & keyof AggregateCharacter]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } -export type CharacterGroupByArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { + + + +export type CharacterGroupByArgs = { where?: Prisma.CharacterWhereInput - orderBy?: - | Prisma.CharacterOrderByWithAggregationInput - | Prisma.CharacterOrderByWithAggregationInput[] + orderBy?: Prisma.CharacterOrderByWithAggregationInput | Prisma.CharacterOrderByWithAggregationInput[] by: Prisma.CharacterScalarFieldEnum[] | Prisma.CharacterScalarFieldEnum having?: Prisma.CharacterScalarWhereWithAggregatesInput take?: number @@ -168,26 +167,29 @@ export type CharacterGroupByOutputType = { type GetCharacterGroupByPayload = Prisma.PrismaPromise< Array< - Prisma.PickEnumerable & { - [P in keyof T & keyof CharacterGroupByOutputType]: P extends '_count' - ? T[P] extends boolean - ? number + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof CharacterGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType : Prisma.GetScalarType - : Prisma.GetScalarType - } + } + > > -> + + export type CharacterWhereInput = { AND?: Prisma.CharacterWhereInput | Prisma.CharacterWhereInput[] OR?: Prisma.CharacterWhereInput[] NOT?: Prisma.CharacterWhereInput | Prisma.CharacterWhereInput[] - id?: Prisma.StringFilter<'Character'> | string - name?: Prisma.StringFilter<'Character'> | string - description?: Prisma.StringNullableFilter<'Character'> | string | null - imageId?: Prisma.StringFilter<'Character'> | string - createdAt?: Prisma.DateTimeFilter<'Character'> | Date | string - updatedAt?: Prisma.DateTimeFilter<'Character'> | Date | string + id?: Prisma.StringFilter<"Character"> | string + name?: Prisma.StringFilter<"Character"> | string + description?: Prisma.StringNullableFilter<"Character"> | string | null + imageId?: Prisma.StringFilter<"Character"> | string + createdAt?: Prisma.DateTimeFilter<"Character"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Character"> | Date | string image?: Prisma.XOR generations?: Prisma.GenerationListRelationFilter } @@ -203,22 +205,19 @@ export type CharacterOrderByWithRelationInput = { generations?: Prisma.GenerationOrderByRelationAggregateInput } -export type CharacterWhereUniqueInput = Prisma.AtLeast< - { - id?: string - AND?: Prisma.CharacterWhereInput | Prisma.CharacterWhereInput[] - OR?: Prisma.CharacterWhereInput[] - NOT?: Prisma.CharacterWhereInput | Prisma.CharacterWhereInput[] - name?: Prisma.StringFilter<'Character'> | string - description?: Prisma.StringNullableFilter<'Character'> | string | null - imageId?: Prisma.StringFilter<'Character'> | string - createdAt?: Prisma.DateTimeFilter<'Character'> | Date | string - updatedAt?: Prisma.DateTimeFilter<'Character'> | Date | string - image?: Prisma.XOR - generations?: Prisma.GenerationListRelationFilter - }, - 'id' -> +export type CharacterWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.CharacterWhereInput | Prisma.CharacterWhereInput[] + OR?: Prisma.CharacterWhereInput[] + NOT?: Prisma.CharacterWhereInput | Prisma.CharacterWhereInput[] + name?: Prisma.StringFilter<"Character"> | string + description?: Prisma.StringNullableFilter<"Character"> | string | null + imageId?: Prisma.StringFilter<"Character"> | string + createdAt?: Prisma.DateTimeFilter<"Character"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Character"> | Date | string + image?: Prisma.XOR + generations?: Prisma.GenerationListRelationFilter +}, "id"> export type CharacterOrderByWithAggregationInput = { id?: Prisma.SortOrder @@ -233,19 +232,15 @@ export type CharacterOrderByWithAggregationInput = { } export type CharacterScalarWhereWithAggregatesInput = { - AND?: - | Prisma.CharacterScalarWhereWithAggregatesInput - | Prisma.CharacterScalarWhereWithAggregatesInput[] + AND?: Prisma.CharacterScalarWhereWithAggregatesInput | Prisma.CharacterScalarWhereWithAggregatesInput[] OR?: Prisma.CharacterScalarWhereWithAggregatesInput[] - NOT?: - | Prisma.CharacterScalarWhereWithAggregatesInput - | Prisma.CharacterScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<'Character'> | string - name?: Prisma.StringWithAggregatesFilter<'Character'> | string - description?: Prisma.StringNullableWithAggregatesFilter<'Character'> | string | null - imageId?: Prisma.StringWithAggregatesFilter<'Character'> | string - createdAt?: Prisma.DateTimeWithAggregatesFilter<'Character'> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Character'> | Date | string + NOT?: Prisma.CharacterScalarWhereWithAggregatesInput | Prisma.CharacterScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Character"> | string + name?: Prisma.StringWithAggregatesFilter<"Character"> | string + description?: Prisma.StringNullableWithAggregatesFilter<"Character"> | string | null + imageId?: Prisma.StringWithAggregatesFilter<"Character"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Character"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Character"> | Date | string } export type CharacterCreateInput = { @@ -357,88 +352,44 @@ export type CharacterScalarRelationFilter = { } export type CharacterCreateNestedManyWithoutImageInput = { - create?: - | Prisma.XOR< - Prisma.CharacterCreateWithoutImageInput, - Prisma.CharacterUncheckedCreateWithoutImageInput - > - | Prisma.CharacterCreateWithoutImageInput[] - | Prisma.CharacterUncheckedCreateWithoutImageInput[] - connectOrCreate?: - | Prisma.CharacterCreateOrConnectWithoutImageInput - | Prisma.CharacterCreateOrConnectWithoutImageInput[] + create?: Prisma.XOR | Prisma.CharacterCreateWithoutImageInput[] | Prisma.CharacterUncheckedCreateWithoutImageInput[] + connectOrCreate?: Prisma.CharacterCreateOrConnectWithoutImageInput | Prisma.CharacterCreateOrConnectWithoutImageInput[] createMany?: Prisma.CharacterCreateManyImageInputEnvelope connect?: Prisma.CharacterWhereUniqueInput | Prisma.CharacterWhereUniqueInput[] } export type CharacterUncheckedCreateNestedManyWithoutImageInput = { - create?: - | Prisma.XOR< - Prisma.CharacterCreateWithoutImageInput, - Prisma.CharacterUncheckedCreateWithoutImageInput - > - | Prisma.CharacterCreateWithoutImageInput[] - | Prisma.CharacterUncheckedCreateWithoutImageInput[] - connectOrCreate?: - | Prisma.CharacterCreateOrConnectWithoutImageInput - | Prisma.CharacterCreateOrConnectWithoutImageInput[] + create?: Prisma.XOR | Prisma.CharacterCreateWithoutImageInput[] | Prisma.CharacterUncheckedCreateWithoutImageInput[] + connectOrCreate?: Prisma.CharacterCreateOrConnectWithoutImageInput | Prisma.CharacterCreateOrConnectWithoutImageInput[] createMany?: Prisma.CharacterCreateManyImageInputEnvelope connect?: Prisma.CharacterWhereUniqueInput | Prisma.CharacterWhereUniqueInput[] } export type CharacterUpdateManyWithoutImageNestedInput = { - create?: - | Prisma.XOR< - Prisma.CharacterCreateWithoutImageInput, - Prisma.CharacterUncheckedCreateWithoutImageInput - > - | Prisma.CharacterCreateWithoutImageInput[] - | Prisma.CharacterUncheckedCreateWithoutImageInput[] - connectOrCreate?: - | Prisma.CharacterCreateOrConnectWithoutImageInput - | Prisma.CharacterCreateOrConnectWithoutImageInput[] - upsert?: - | Prisma.CharacterUpsertWithWhereUniqueWithoutImageInput - | Prisma.CharacterUpsertWithWhereUniqueWithoutImageInput[] + create?: Prisma.XOR | Prisma.CharacterCreateWithoutImageInput[] | Prisma.CharacterUncheckedCreateWithoutImageInput[] + connectOrCreate?: Prisma.CharacterCreateOrConnectWithoutImageInput | Prisma.CharacterCreateOrConnectWithoutImageInput[] + upsert?: Prisma.CharacterUpsertWithWhereUniqueWithoutImageInput | Prisma.CharacterUpsertWithWhereUniqueWithoutImageInput[] createMany?: Prisma.CharacterCreateManyImageInputEnvelope set?: Prisma.CharacterWhereUniqueInput | Prisma.CharacterWhereUniqueInput[] disconnect?: Prisma.CharacterWhereUniqueInput | Prisma.CharacterWhereUniqueInput[] delete?: Prisma.CharacterWhereUniqueInput | Prisma.CharacterWhereUniqueInput[] connect?: Prisma.CharacterWhereUniqueInput | Prisma.CharacterWhereUniqueInput[] - update?: - | Prisma.CharacterUpdateWithWhereUniqueWithoutImageInput - | Prisma.CharacterUpdateWithWhereUniqueWithoutImageInput[] - updateMany?: - | Prisma.CharacterUpdateManyWithWhereWithoutImageInput - | Prisma.CharacterUpdateManyWithWhereWithoutImageInput[] + update?: Prisma.CharacterUpdateWithWhereUniqueWithoutImageInput | Prisma.CharacterUpdateWithWhereUniqueWithoutImageInput[] + updateMany?: Prisma.CharacterUpdateManyWithWhereWithoutImageInput | Prisma.CharacterUpdateManyWithWhereWithoutImageInput[] deleteMany?: Prisma.CharacterScalarWhereInput | Prisma.CharacterScalarWhereInput[] } export type CharacterUncheckedUpdateManyWithoutImageNestedInput = { - create?: - | Prisma.XOR< - Prisma.CharacterCreateWithoutImageInput, - Prisma.CharacterUncheckedCreateWithoutImageInput - > - | Prisma.CharacterCreateWithoutImageInput[] - | Prisma.CharacterUncheckedCreateWithoutImageInput[] - connectOrCreate?: - | Prisma.CharacterCreateOrConnectWithoutImageInput - | Prisma.CharacterCreateOrConnectWithoutImageInput[] - upsert?: - | Prisma.CharacterUpsertWithWhereUniqueWithoutImageInput - | Prisma.CharacterUpsertWithWhereUniqueWithoutImageInput[] + create?: Prisma.XOR | Prisma.CharacterCreateWithoutImageInput[] | Prisma.CharacterUncheckedCreateWithoutImageInput[] + connectOrCreate?: Prisma.CharacterCreateOrConnectWithoutImageInput | Prisma.CharacterCreateOrConnectWithoutImageInput[] + upsert?: Prisma.CharacterUpsertWithWhereUniqueWithoutImageInput | Prisma.CharacterUpsertWithWhereUniqueWithoutImageInput[] createMany?: Prisma.CharacterCreateManyImageInputEnvelope set?: Prisma.CharacterWhereUniqueInput | Prisma.CharacterWhereUniqueInput[] disconnect?: Prisma.CharacterWhereUniqueInput | Prisma.CharacterWhereUniqueInput[] delete?: Prisma.CharacterWhereUniqueInput | Prisma.CharacterWhereUniqueInput[] connect?: Prisma.CharacterWhereUniqueInput | Prisma.CharacterWhereUniqueInput[] - update?: - | Prisma.CharacterUpdateWithWhereUniqueWithoutImageInput - | Prisma.CharacterUpdateWithWhereUniqueWithoutImageInput[] - updateMany?: - | Prisma.CharacterUpdateManyWithWhereWithoutImageInput - | Prisma.CharacterUpdateManyWithWhereWithoutImageInput[] + update?: Prisma.CharacterUpdateWithWhereUniqueWithoutImageInput | Prisma.CharacterUpdateWithWhereUniqueWithoutImageInput[] + updateMany?: Prisma.CharacterUpdateManyWithWhereWithoutImageInput | Prisma.CharacterUpdateManyWithWhereWithoutImageInput[] deleteMany?: Prisma.CharacterScalarWhereInput | Prisma.CharacterScalarWhereInput[] } @@ -447,29 +398,17 @@ export type NullableStringFieldUpdateOperationsInput = { } export type CharacterCreateNestedOneWithoutGenerationsInput = { - create?: Prisma.XOR< - Prisma.CharacterCreateWithoutGenerationsInput, - Prisma.CharacterUncheckedCreateWithoutGenerationsInput - > + create?: Prisma.XOR connectOrCreate?: Prisma.CharacterCreateOrConnectWithoutGenerationsInput connect?: Prisma.CharacterWhereUniqueInput } export type CharacterUpdateOneRequiredWithoutGenerationsNestedInput = { - create?: Prisma.XOR< - Prisma.CharacterCreateWithoutGenerationsInput, - Prisma.CharacterUncheckedCreateWithoutGenerationsInput - > + create?: Prisma.XOR connectOrCreate?: Prisma.CharacterCreateOrConnectWithoutGenerationsInput upsert?: Prisma.CharacterUpsertWithoutGenerationsInput connect?: Prisma.CharacterWhereUniqueInput - update?: Prisma.XOR< - Prisma.XOR< - Prisma.CharacterUpdateToOneWithWhereWithoutGenerationsInput, - Prisma.CharacterUpdateWithoutGenerationsInput - >, - Prisma.CharacterUncheckedUpdateWithoutGenerationsInput - > + update?: Prisma.XOR, Prisma.CharacterUncheckedUpdateWithoutGenerationsInput> } export type CharacterCreateWithoutImageInput = { @@ -492,10 +431,7 @@ export type CharacterUncheckedCreateWithoutImageInput = { export type CharacterCreateOrConnectWithoutImageInput = { where: Prisma.CharacterWhereUniqueInput - create: Prisma.XOR< - Prisma.CharacterCreateWithoutImageInput, - Prisma.CharacterUncheckedCreateWithoutImageInput - > + create: Prisma.XOR } export type CharacterCreateManyImageInputEnvelope = { @@ -504,42 +440,30 @@ export type CharacterCreateManyImageInputEnvelope = { export type CharacterUpsertWithWhereUniqueWithoutImageInput = { where: Prisma.CharacterWhereUniqueInput - update: Prisma.XOR< - Prisma.CharacterUpdateWithoutImageInput, - Prisma.CharacterUncheckedUpdateWithoutImageInput - > - create: Prisma.XOR< - Prisma.CharacterCreateWithoutImageInput, - Prisma.CharacterUncheckedCreateWithoutImageInput - > + update: Prisma.XOR + create: Prisma.XOR } export type CharacterUpdateWithWhereUniqueWithoutImageInput = { where: Prisma.CharacterWhereUniqueInput - data: Prisma.XOR< - Prisma.CharacterUpdateWithoutImageInput, - Prisma.CharacterUncheckedUpdateWithoutImageInput - > + data: Prisma.XOR } export type CharacterUpdateManyWithWhereWithoutImageInput = { where: Prisma.CharacterScalarWhereInput - data: Prisma.XOR< - Prisma.CharacterUpdateManyMutationInput, - Prisma.CharacterUncheckedUpdateManyWithoutImageInput - > + data: Prisma.XOR } export type CharacterScalarWhereInput = { AND?: Prisma.CharacterScalarWhereInput | Prisma.CharacterScalarWhereInput[] OR?: Prisma.CharacterScalarWhereInput[] NOT?: Prisma.CharacterScalarWhereInput | Prisma.CharacterScalarWhereInput[] - id?: Prisma.StringFilter<'Character'> | string - name?: Prisma.StringFilter<'Character'> | string - description?: Prisma.StringNullableFilter<'Character'> | string | null - imageId?: Prisma.StringFilter<'Character'> | string - createdAt?: Prisma.DateTimeFilter<'Character'> | Date | string - updatedAt?: Prisma.DateTimeFilter<'Character'> | Date | string + id?: Prisma.StringFilter<"Character"> | string + name?: Prisma.StringFilter<"Character"> | string + description?: Prisma.StringNullableFilter<"Character"> | string | null + imageId?: Prisma.StringFilter<"Character"> | string + createdAt?: Prisma.DateTimeFilter<"Character"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Character"> | Date | string } export type CharacterCreateWithoutGenerationsInput = { @@ -562,30 +486,18 @@ export type CharacterUncheckedCreateWithoutGenerationsInput = { export type CharacterCreateOrConnectWithoutGenerationsInput = { where: Prisma.CharacterWhereUniqueInput - create: Prisma.XOR< - Prisma.CharacterCreateWithoutGenerationsInput, - Prisma.CharacterUncheckedCreateWithoutGenerationsInput - > + create: Prisma.XOR } export type CharacterUpsertWithoutGenerationsInput = { - update: Prisma.XOR< - Prisma.CharacterUpdateWithoutGenerationsInput, - Prisma.CharacterUncheckedUpdateWithoutGenerationsInput - > - create: Prisma.XOR< - Prisma.CharacterCreateWithoutGenerationsInput, - Prisma.CharacterUncheckedCreateWithoutGenerationsInput - > + update: Prisma.XOR + create: Prisma.XOR where?: Prisma.CharacterWhereInput } export type CharacterUpdateToOneWithWhereWithoutGenerationsInput = { where?: Prisma.CharacterWhereInput - data: Prisma.XOR< - Prisma.CharacterUpdateWithoutGenerationsInput, - Prisma.CharacterUncheckedUpdateWithoutGenerationsInput - > + data: Prisma.XOR } export type CharacterUpdateWithoutGenerationsInput = { @@ -640,6 +552,7 @@ export type CharacterUncheckedUpdateManyWithoutImageInput = { updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } + /** * Count Type CharacterCountOutputType */ @@ -648,18 +561,14 @@ export type CharacterCountOutputType = { generations: number } -export type CharacterCountOutputTypeSelect< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterCountOutputTypeSelect = { generations?: boolean | CharacterCountOutputTypeCountGenerationsArgs } /** * CharacterCountOutputType without action */ -export type CharacterCountOutputTypeDefaultArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CharacterCountOutputType */ @@ -669,58 +578,42 @@ export type CharacterCountOutputTypeDefaultArgs< /** * CharacterCountOutputType without action */ -export type CharacterCountOutputTypeCountGenerationsArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterCountOutputTypeCountGenerationsArgs = { where?: Prisma.GenerationWhereInput } -export type CharacterSelect< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - id?: boolean - name?: boolean - description?: boolean - imageId?: boolean - createdAt?: boolean - updatedAt?: boolean - image?: boolean | Prisma.AssetDefaultArgs - generations?: boolean | Prisma.Character$generationsArgs - _count?: boolean | Prisma.CharacterCountOutputTypeDefaultArgs - }, - ExtArgs['result']['character'] -> -export type CharacterSelectCreateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - id?: boolean - name?: boolean - description?: boolean - imageId?: boolean - createdAt?: boolean - updatedAt?: boolean - image?: boolean | Prisma.AssetDefaultArgs - }, - ExtArgs['result']['character'] -> +export type CharacterSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + description?: boolean + imageId?: boolean + createdAt?: boolean + updatedAt?: boolean + image?: boolean | Prisma.AssetDefaultArgs + generations?: boolean | Prisma.Character$generationsArgs + _count?: boolean | Prisma.CharacterCountOutputTypeDefaultArgs +}, ExtArgs["result"]["character"]> -export type CharacterSelectUpdateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - id?: boolean - name?: boolean - description?: boolean - imageId?: boolean - createdAt?: boolean - updatedAt?: boolean - image?: boolean | Prisma.AssetDefaultArgs - }, - ExtArgs['result']['character'] -> +export type CharacterSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + description?: boolean + imageId?: boolean + createdAt?: boolean + updatedAt?: boolean + image?: boolean | Prisma.AssetDefaultArgs +}, ExtArgs["result"]["character"]> + +export type CharacterSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + description?: boolean + imageId?: boolean + createdAt?: boolean + updatedAt?: boolean + image?: boolean | Prisma.AssetDefaultArgs +}, ExtArgs["result"]["character"]> export type CharacterSelectScalar = { id?: boolean @@ -731,66 +624,45 @@ export type CharacterSelectScalar = { updatedAt?: boolean } -export type CharacterOmit< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetOmit< - 'id' | 'name' | 'description' | 'imageId' | 'createdAt' | 'updatedAt', - ExtArgs['result']['character'] -> -export type CharacterInclude< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "imageId" | "createdAt" | "updatedAt", ExtArgs["result"]["character"]> +export type CharacterInclude = { image?: boolean | Prisma.AssetDefaultArgs generations?: boolean | Prisma.Character$generationsArgs _count?: boolean | Prisma.CharacterCountOutputTypeDefaultArgs } -export type CharacterIncludeCreateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterIncludeCreateManyAndReturn = { image?: boolean | Prisma.AssetDefaultArgs } -export type CharacterIncludeUpdateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterIncludeUpdateManyAndReturn = { image?: boolean | Prisma.AssetDefaultArgs } -export type $CharacterPayload< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - name: 'Character' +export type $CharacterPayload = { + name: "Character" objects: { image: Prisma.$AssetPayload generations: Prisma.$GenerationPayload[] } - scalars: runtime.Types.Extensions.GetPayloadResult< - { - id: string - name: string - description: string | null - imageId: string - createdAt: Date - updatedAt: Date - }, - ExtArgs['result']['character'] - > + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + name: string + description: string | null + imageId: string + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["character"]> composites: {} } -export type CharacterGetPayload = - runtime.Types.Result.GetResult +export type CharacterGetPayload = runtime.Types.Result.GetResult -export type CharacterCountArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = Omit & { - select?: CharacterCountAggregateInputType | true -} +export type CharacterCountArgs = + Omit & { + select?: CharacterCountAggregateInputType | true + } -export interface CharacterDelegate< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, - GlobalOmitOptions = {}, -> { - [K: symbol]: { types: Prisma.TypeMap['model']['Character']; meta: { name: 'Character' } } +export interface CharacterDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Character'], meta: { name: 'Character' } } /** * Find zero or one Character that matches the filter. * @param {CharacterFindUniqueArgs} args - Arguments to find a Character @@ -802,19 +674,7 @@ export interface CharacterDelegate< * } * }) */ - findUnique( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__CharacterClient< - runtime.Types.Result.GetResult< - Prisma.$CharacterPayload, - T, - 'findUnique', - GlobalOmitOptions - > | null, - null, - ExtArgs, - GlobalOmitOptions - > + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__CharacterClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Character that matches the filter or throw an error with `error.code='P2025'` @@ -828,19 +688,7 @@ export interface CharacterDelegate< * } * }) */ - findUniqueOrThrow( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__CharacterClient< - runtime.Types.Result.GetResult< - Prisma.$CharacterPayload, - T, - 'findUniqueOrThrow', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__CharacterClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Character that matches the filter. @@ -855,19 +703,7 @@ export interface CharacterDelegate< * } * }) */ - findFirst( - args?: Prisma.SelectSubset>, - ): Prisma.Prisma__CharacterClient< - runtime.Types.Result.GetResult< - Prisma.$CharacterPayload, - T, - 'findFirst', - GlobalOmitOptions - > | null, - null, - ExtArgs, - GlobalOmitOptions - > + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__CharacterClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Character that matches the filter or @@ -883,19 +719,7 @@ export interface CharacterDelegate< * } * }) */ - findFirstOrThrow( - args?: Prisma.SelectSubset>, - ): Prisma.Prisma__CharacterClient< - runtime.Types.Result.GetResult< - Prisma.$CharacterPayload, - T, - 'findFirstOrThrow', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__CharacterClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Characters that matches the filter. @@ -913,16 +737,7 @@ export interface CharacterDelegate< * const characterWithIdOnly = await prisma.character.findMany({ select: { id: true } }) * */ - findMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$CharacterPayload, - T, - 'findMany', - GlobalOmitOptions - > - > + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Character. @@ -936,19 +751,7 @@ export interface CharacterDelegate< * }) * */ - create( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__CharacterClient< - runtime.Types.Result.GetResult< - Prisma.$CharacterPayload, - T, - 'create', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + create(args: Prisma.SelectSubset>): Prisma.Prisma__CharacterClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Characters. @@ -962,9 +765,7 @@ export interface CharacterDelegate< * }) * */ - createMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Characters and returns the data saved in the database. @@ -988,16 +789,7 @@ export interface CharacterDelegate< * Read more here: https://pris.ly/d/null-undefined * */ - createManyAndReturn( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$CharacterPayload, - T, - 'createManyAndReturn', - GlobalOmitOptions - > - > + createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Character. @@ -1011,19 +803,7 @@ export interface CharacterDelegate< * }) * */ - delete( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__CharacterClient< - runtime.Types.Result.GetResult< - Prisma.$CharacterPayload, - T, - 'delete', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + delete(args: Prisma.SelectSubset>): Prisma.Prisma__CharacterClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Character. @@ -1040,19 +820,7 @@ export interface CharacterDelegate< * }) * */ - update( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__CharacterClient< - runtime.Types.Result.GetResult< - Prisma.$CharacterPayload, - T, - 'update', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + update(args: Prisma.SelectSubset>): Prisma.Prisma__CharacterClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Characters. @@ -1066,9 +834,7 @@ export interface CharacterDelegate< * }) * */ - deleteMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Characters. @@ -1087,9 +853,7 @@ export interface CharacterDelegate< * }) * */ - updateMany( - args: Prisma.SelectSubset>, - ): Prisma.PrismaPromise + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Characters and returns the data updated in the database. @@ -1119,16 +883,7 @@ export interface CharacterDelegate< * Read more here: https://pris.ly/d/null-undefined * */ - updateManyAndReturn( - args: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$CharacterPayload, - T, - 'updateManyAndReturn', - GlobalOmitOptions - > - > + updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Character. @@ -1147,19 +902,8 @@ export interface CharacterDelegate< * } * }) */ - upsert( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__CharacterClient< - runtime.Types.Result.GetResult< - Prisma.$CharacterPayload, - T, - 'upsert', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__CharacterClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + /** * Count the number of Characters. @@ -1173,7 +917,7 @@ export interface CharacterDelegate< * // ... the filter for the Characters we want to count * } * }) - **/ + **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< @@ -1207,10 +951,8 @@ export interface CharacterDelegate< * }, * take: 10, * }) - **/ - aggregate( - args: Prisma.Subset, - ): Prisma.PrismaPromise> + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Character. @@ -1229,7 +971,7 @@ export interface CharacterDelegate< * }, * }) * - **/ + **/ groupBy< T extends CharacterGroupByArgs, HasSelectOrTake extends Prisma.Or< @@ -1239,58 +981,59 @@ export interface CharacterDelegate< OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: CharacterGroupByArgs['orderBy'] } : { orderBy?: CharacterGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys< - Prisma.Keys> - >, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields], - >( - args: Prisma.SubsetIntersection & InputErrors, - ): {} extends InputErrors ? GetCharacterGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Character model - */ - readonly fields: CharacterFieldRefs + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetCharacterGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Character model + */ +readonly fields: CharacterFieldRefs; } /** @@ -1299,56 +1042,23 @@ export interface CharacterDelegate< * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ -export interface Prisma__CharacterClient< - T, - Null = never, - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, - GlobalOmitOptions = {}, -> extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: 'PrismaPromise' - image = {}>( - args?: Prisma.Subset>, - ): Prisma.Prisma__AssetClient< - | runtime.Types.Result.GetResult< - Prisma.$AssetPayload, - T, - 'findUniqueOrThrow', - GlobalOmitOptions - > - | Null, - Null, - ExtArgs, - GlobalOmitOptions - > - generations = {}>( - args?: Prisma.Subset>, - ): Prisma.PrismaPromise< - | runtime.Types.Result.GetResult< - Prisma.$GenerationPayload, - T, - 'findMany', - GlobalOmitOptions - > - | Null - > +export interface Prisma__CharacterClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + image = {}>(args?: Prisma.Subset>): Prisma.Prisma__AssetClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + generations = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ - then( - onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, - onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, - ): runtime.Types.Utils.JsPromise + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ - catch( - onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, - ): runtime.Types.Utils.JsPromise + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. @@ -1358,25 +1068,27 @@ export interface Prisma__CharacterClient< finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } + + + /** * Fields of the Character model */ export interface CharacterFieldRefs { - readonly id: Prisma.FieldRef<'Character', 'String'> - readonly name: Prisma.FieldRef<'Character', 'String'> - readonly description: Prisma.FieldRef<'Character', 'String'> - readonly imageId: Prisma.FieldRef<'Character', 'String'> - readonly createdAt: Prisma.FieldRef<'Character', 'DateTime'> - readonly updatedAt: Prisma.FieldRef<'Character', 'DateTime'> + readonly id: Prisma.FieldRef<"Character", 'String'> + readonly name: Prisma.FieldRef<"Character", 'String'> + readonly description: Prisma.FieldRef<"Character", 'String'> + readonly imageId: Prisma.FieldRef<"Character", 'String'> + readonly createdAt: Prisma.FieldRef<"Character", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Character", 'DateTime'> } + // Custom InputTypes /** * Character findUnique */ -export type CharacterFindUniqueArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterFindUniqueArgs = { /** * Select specific fields to fetch from the Character */ @@ -1398,9 +1110,7 @@ export type CharacterFindUniqueArgs< /** * Character findUniqueOrThrow */ -export type CharacterFindUniqueOrThrowArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Character */ @@ -1422,9 +1132,7 @@ export type CharacterFindUniqueOrThrowArgs< /** * Character findFirst */ -export type CharacterFindFirstArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterFindFirstArgs = { /** * Select specific fields to fetch from the Character */ @@ -1476,9 +1184,7 @@ export type CharacterFindFirstArgs< /** * Character findFirstOrThrow */ -export type CharacterFindFirstOrThrowArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Character */ @@ -1530,9 +1236,7 @@ export type CharacterFindFirstOrThrowArgs< /** * Character findMany */ -export type CharacterFindManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterFindManyArgs = { /** * Select specific fields to fetch from the Character */ @@ -1579,9 +1283,7 @@ export type CharacterFindManyArgs< /** * Character create */ -export type CharacterCreateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterCreateArgs = { /** * Select specific fields to fetch from the Character */ @@ -1603,9 +1305,7 @@ export type CharacterCreateArgs< /** * Character createMany */ -export type CharacterCreateManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterCreateManyArgs = { /** * The data used to create many Characters. */ @@ -1615,9 +1315,7 @@ export type CharacterCreateManyArgs< /** * Character createManyAndReturn */ -export type CharacterCreateManyAndReturnArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Character */ @@ -1639,9 +1337,7 @@ export type CharacterCreateManyAndReturnArgs< /** * Character update */ -export type CharacterUpdateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterUpdateArgs = { /** * Select specific fields to fetch from the Character */ @@ -1667,16 +1363,11 @@ export type CharacterUpdateArgs< /** * Character updateMany */ -export type CharacterUpdateManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterUpdateManyArgs = { /** * The data used to update Characters. */ - data: Prisma.XOR< - Prisma.CharacterUpdateManyMutationInput, - Prisma.CharacterUncheckedUpdateManyInput - > + data: Prisma.XOR /** * Filter which Characters to update */ @@ -1690,9 +1381,7 @@ export type CharacterUpdateManyArgs< /** * Character updateManyAndReturn */ -export type CharacterUpdateManyAndReturnArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Character */ @@ -1704,10 +1393,7 @@ export type CharacterUpdateManyAndReturnArgs< /** * The data used to update Characters. */ - data: Prisma.XOR< - Prisma.CharacterUpdateManyMutationInput, - Prisma.CharacterUncheckedUpdateManyInput - > + data: Prisma.XOR /** * Filter which Characters to update */ @@ -1725,9 +1411,7 @@ export type CharacterUpdateManyAndReturnArgs< /** * Character upsert */ -export type CharacterUpsertArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterUpsertArgs = { /** * Select specific fields to fetch from the Character */ @@ -1757,9 +1441,7 @@ export type CharacterUpsertArgs< /** * Character delete */ -export type CharacterDeleteArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterDeleteArgs = { /** * Select specific fields to fetch from the Character */ @@ -1781,9 +1463,7 @@ export type CharacterDeleteArgs< /** * Character deleteMany */ -export type CharacterDeleteManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterDeleteManyArgs = { /** * Filter which Characters to delete */ @@ -1797,9 +1477,7 @@ export type CharacterDeleteManyArgs< /** * Character.generations */ -export type Character$generationsArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type Character$generationsArgs = { /** * Select specific fields to fetch from the Generation */ @@ -1823,9 +1501,7 @@ export type Character$generationsArgs< /** * Character without action */ -export type CharacterDefaultArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type CharacterDefaultArgs = { /** * Select specific fields to fetch from the Character */ diff --git a/src/generated/prisma/models/Equipment.ts b/src/generated/prisma/models/Equipment.ts index db53ad6..4300672 100644 --- a/src/generated/prisma/models/Equipment.ts +++ b/src/generated/prisma/models/Equipment.ts @@ -1,3 +1,4 @@ + /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file @@ -7,9 +8,9 @@ * * 🟢 You can import this file directly. */ -import type * as runtime from '@prisma/client/runtime/client' -import type * as $Enums from '../enums.ts' -import type * as Prisma from '../internal/prismaNamespace.ts' +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model Equipment @@ -27,8 +28,8 @@ export type EquipmentMinAggregateOutputType = { id: string | null name: string | null description: string | null - categoryId: string | null - subCategoryId: string | null + category: string | null + subCategory: string | null imageId: string | null createdAt: Date | null updatedAt: Date | null @@ -38,8 +39,8 @@ export type EquipmentMaxAggregateOutputType = { id: string | null name: string | null description: string | null - categoryId: string | null - subCategoryId: string | null + category: string | null + subCategory: string | null imageId: string | null createdAt: Date | null updatedAt: Date | null @@ -49,20 +50,21 @@ export type EquipmentCountAggregateOutputType = { id: number name: number description: number - categoryId: number - subCategoryId: number + category: number + subCategory: number imageId: number createdAt: number updatedAt: number _all: number } + export type EquipmentMinAggregateInputType = { id?: true name?: true description?: true - categoryId?: true - subCategoryId?: true + category?: true + subCategory?: true imageId?: true createdAt?: true updatedAt?: true @@ -72,8 +74,8 @@ export type EquipmentMaxAggregateInputType = { id?: true name?: true description?: true - categoryId?: true - subCategoryId?: true + category?: true + subCategory?: true imageId?: true createdAt?: true updatedAt?: true @@ -83,17 +85,15 @@ export type EquipmentCountAggregateInputType = { id?: true name?: true description?: true - categoryId?: true - subCategoryId?: true + category?: true + subCategory?: true imageId?: true createdAt?: true updatedAt?: true _all?: true } -export type EquipmentAggregateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentAggregateArgs = { /** * Filter which Equipment to aggregate. */ @@ -126,37 +126,36 @@ export type EquipmentAggregateArgs< * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Equipment - **/ + **/ _count?: true | EquipmentCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value - **/ + **/ _min?: EquipmentMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value - **/ + **/ _max?: EquipmentMaxAggregateInputType } export type GetEquipmentAggregateType = { - [P in keyof T & keyof AggregateEquipment]: P extends '_count' | 'count' + [P in keyof T & keyof AggregateEquipment]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } -export type EquipmentGroupByArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { + + + +export type EquipmentGroupByArgs = { where?: Prisma.EquipmentWhereInput - orderBy?: - | Prisma.EquipmentOrderByWithAggregationInput - | Prisma.EquipmentOrderByWithAggregationInput[] + orderBy?: Prisma.EquipmentOrderByWithAggregationInput | Prisma.EquipmentOrderByWithAggregationInput[] by: Prisma.EquipmentScalarFieldEnum[] | Prisma.EquipmentScalarFieldEnum having?: Prisma.EquipmentScalarWhereWithAggregatesInput take?: number @@ -170,8 +169,8 @@ export type EquipmentGroupByOutputType = { id: string name: string description: string - categoryId: string - subCategoryId: string | null + category: string + subCategory: string | null imageId: string createdAt: Date updatedAt: Date @@ -182,33 +181,31 @@ export type EquipmentGroupByOutputType = { type GetEquipmentGroupByPayload = Prisma.PrismaPromise< Array< - Prisma.PickEnumerable & { - [P in keyof T & keyof EquipmentGroupByOutputType]: P extends '_count' - ? T[P] extends boolean - ? number + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof EquipmentGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType : Prisma.GetScalarType - : Prisma.GetScalarType - } + } + > > -> + + export type EquipmentWhereInput = { AND?: Prisma.EquipmentWhereInput | Prisma.EquipmentWhereInput[] OR?: Prisma.EquipmentWhereInput[] NOT?: Prisma.EquipmentWhereInput | Prisma.EquipmentWhereInput[] - id?: Prisma.StringFilter<'Equipment'> | string - name?: Prisma.StringFilter<'Equipment'> | string - description?: Prisma.StringFilter<'Equipment'> | string - categoryId?: Prisma.StringFilter<'Equipment'> | string - subCategoryId?: Prisma.StringNullableFilter<'Equipment'> | string | null - imageId?: Prisma.StringFilter<'Equipment'> | string - createdAt?: Prisma.DateTimeFilter<'Equipment'> | Date | string - updatedAt?: Prisma.DateTimeFilter<'Equipment'> | Date | string - category?: Prisma.XOR - subCategory?: Prisma.XOR< - Prisma.CategoryNullableScalarRelationFilter, - Prisma.CategoryWhereInput - > | null + id?: Prisma.StringFilter<"Equipment"> | string + name?: Prisma.StringFilter<"Equipment"> | string + description?: Prisma.StringFilter<"Equipment"> | string + category?: Prisma.StringFilter<"Equipment"> | string + subCategory?: Prisma.StringNullableFilter<"Equipment"> | string | null + imageId?: Prisma.StringFilter<"Equipment"> | string + createdAt?: Prisma.DateTimeFilter<"Equipment"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Equipment"> | Date | string image?: Prisma.XOR generations?: Prisma.GenerationEquipmentListRelationFilter } @@ -217,47 +214,37 @@ export type EquipmentOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder - categoryId?: Prisma.SortOrder - subCategoryId?: Prisma.SortOrderInput | Prisma.SortOrder + category?: Prisma.SortOrder + subCategory?: Prisma.SortOrderInput | Prisma.SortOrder imageId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder - category?: Prisma.CategoryOrderByWithRelationInput - subCategory?: Prisma.CategoryOrderByWithRelationInput image?: Prisma.AssetOrderByWithRelationInput generations?: Prisma.GenerationEquipmentOrderByRelationAggregateInput } -export type EquipmentWhereUniqueInput = Prisma.AtLeast< - { - id?: string - AND?: Prisma.EquipmentWhereInput | Prisma.EquipmentWhereInput[] - OR?: Prisma.EquipmentWhereInput[] - NOT?: Prisma.EquipmentWhereInput | Prisma.EquipmentWhereInput[] - name?: Prisma.StringFilter<'Equipment'> | string - description?: Prisma.StringFilter<'Equipment'> | string - categoryId?: Prisma.StringFilter<'Equipment'> | string - subCategoryId?: Prisma.StringNullableFilter<'Equipment'> | string | null - imageId?: Prisma.StringFilter<'Equipment'> | string - createdAt?: Prisma.DateTimeFilter<'Equipment'> | Date | string - updatedAt?: Prisma.DateTimeFilter<'Equipment'> | Date | string - category?: Prisma.XOR - subCategory?: Prisma.XOR< - Prisma.CategoryNullableScalarRelationFilter, - Prisma.CategoryWhereInput - > | null - image?: Prisma.XOR - generations?: Prisma.GenerationEquipmentListRelationFilter - }, - 'id' -> +export type EquipmentWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.EquipmentWhereInput | Prisma.EquipmentWhereInput[] + OR?: Prisma.EquipmentWhereInput[] + NOT?: Prisma.EquipmentWhereInput | Prisma.EquipmentWhereInput[] + name?: Prisma.StringFilter<"Equipment"> | string + description?: Prisma.StringFilter<"Equipment"> | string + category?: Prisma.StringFilter<"Equipment"> | string + subCategory?: Prisma.StringNullableFilter<"Equipment"> | string | null + imageId?: Prisma.StringFilter<"Equipment"> | string + createdAt?: Prisma.DateTimeFilter<"Equipment"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Equipment"> | Date | string + image?: Prisma.XOR + generations?: Prisma.GenerationEquipmentListRelationFilter +}, "id"> export type EquipmentOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder - categoryId?: Prisma.SortOrder - subCategoryId?: Prisma.SortOrderInput | Prisma.SortOrder + category?: Prisma.SortOrder + subCategory?: Prisma.SortOrderInput | Prisma.SortOrder imageId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder @@ -267,31 +254,27 @@ export type EquipmentOrderByWithAggregationInput = { } export type EquipmentScalarWhereWithAggregatesInput = { - AND?: - | Prisma.EquipmentScalarWhereWithAggregatesInput - | Prisma.EquipmentScalarWhereWithAggregatesInput[] + AND?: Prisma.EquipmentScalarWhereWithAggregatesInput | Prisma.EquipmentScalarWhereWithAggregatesInput[] OR?: Prisma.EquipmentScalarWhereWithAggregatesInput[] - NOT?: - | Prisma.EquipmentScalarWhereWithAggregatesInput - | Prisma.EquipmentScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<'Equipment'> | string - name?: Prisma.StringWithAggregatesFilter<'Equipment'> | string - description?: Prisma.StringWithAggregatesFilter<'Equipment'> | string - categoryId?: Prisma.StringWithAggregatesFilter<'Equipment'> | string - subCategoryId?: Prisma.StringNullableWithAggregatesFilter<'Equipment'> | string | null - imageId?: Prisma.StringWithAggregatesFilter<'Equipment'> | string - createdAt?: Prisma.DateTimeWithAggregatesFilter<'Equipment'> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Equipment'> | Date | string + NOT?: Prisma.EquipmentScalarWhereWithAggregatesInput | Prisma.EquipmentScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Equipment"> | string + name?: Prisma.StringWithAggregatesFilter<"Equipment"> | string + description?: Prisma.StringWithAggregatesFilter<"Equipment"> | string + category?: Prisma.StringWithAggregatesFilter<"Equipment"> | string + subCategory?: Prisma.StringNullableWithAggregatesFilter<"Equipment"> | string | null + imageId?: Prisma.StringWithAggregatesFilter<"Equipment"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Equipment"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Equipment"> | Date | string } export type EquipmentCreateInput = { id: string name: string description: string + category: string + subCategory?: string | null createdAt?: Date | string updatedAt?: Date | string - category: Prisma.CategoryCreateNestedOneWithoutEquipmentsAsMainInput - subCategory?: Prisma.CategoryCreateNestedOneWithoutEquipmentsAsSubInput image: Prisma.AssetCreateNestedOneWithoutEquipmentsInput generations?: Prisma.GenerationEquipmentCreateNestedManyWithoutEquipmentInput } @@ -300,8 +283,8 @@ export type EquipmentUncheckedCreateInput = { id: string name: string description: string - categoryId: string - subCategoryId?: string | null + category: string + subCategory?: string | null imageId: string createdAt?: Date | string updatedAt?: Date | string @@ -312,10 +295,10 @@ export type EquipmentUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string + category?: Prisma.StringFieldUpdateOperationsInput | string + subCategory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - category?: Prisma.CategoryUpdateOneRequiredWithoutEquipmentsAsMainNestedInput - subCategory?: Prisma.CategoryUpdateOneWithoutEquipmentsAsSubNestedInput image?: Prisma.AssetUpdateOneRequiredWithoutEquipmentsNestedInput generations?: Prisma.GenerationEquipmentUpdateManyWithoutEquipmentNestedInput } @@ -324,8 +307,8 @@ export type EquipmentUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string - categoryId?: Prisma.StringFieldUpdateOperationsInput | string - subCategoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + category?: Prisma.StringFieldUpdateOperationsInput | string + subCategory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null imageId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string @@ -336,8 +319,8 @@ export type EquipmentCreateManyInput = { id: string name: string description: string - categoryId: string - subCategoryId?: string | null + category: string + subCategory?: string | null imageId: string createdAt?: Date | string updatedAt?: Date | string @@ -347,6 +330,8 @@ export type EquipmentUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string + category?: Prisma.StringFieldUpdateOperationsInput | string + subCategory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } @@ -355,8 +340,8 @@ export type EquipmentUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string - categoryId?: Prisma.StringFieldUpdateOperationsInput | string - subCategoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + category?: Prisma.StringFieldUpdateOperationsInput | string + subCategory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null imageId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string @@ -376,8 +361,8 @@ export type EquipmentCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder - categoryId?: Prisma.SortOrder - subCategoryId?: Prisma.SortOrder + category?: Prisma.SortOrder + subCategory?: Prisma.SortOrder imageId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder @@ -387,8 +372,8 @@ export type EquipmentMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder - categoryId?: Prisma.SortOrder - subCategoryId?: Prisma.SortOrder + category?: Prisma.SortOrder + subCategory?: Prisma.SortOrder imageId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder @@ -398,8 +383,8 @@ export type EquipmentMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder - categoryId?: Prisma.SortOrder - subCategoryId?: Prisma.SortOrder + category?: Prisma.SortOrder + subCategory?: Prisma.SortOrder imageId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder @@ -411,297 +396,69 @@ export type EquipmentScalarRelationFilter = { } export type EquipmentCreateNestedManyWithoutImageInput = { - create?: - | Prisma.XOR< - Prisma.EquipmentCreateWithoutImageInput, - Prisma.EquipmentUncheckedCreateWithoutImageInput - > - | Prisma.EquipmentCreateWithoutImageInput[] - | Prisma.EquipmentUncheckedCreateWithoutImageInput[] - connectOrCreate?: - | Prisma.EquipmentCreateOrConnectWithoutImageInput - | Prisma.EquipmentCreateOrConnectWithoutImageInput[] + create?: Prisma.XOR | Prisma.EquipmentCreateWithoutImageInput[] | Prisma.EquipmentUncheckedCreateWithoutImageInput[] + connectOrCreate?: Prisma.EquipmentCreateOrConnectWithoutImageInput | Prisma.EquipmentCreateOrConnectWithoutImageInput[] createMany?: Prisma.EquipmentCreateManyImageInputEnvelope connect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] } export type EquipmentUncheckedCreateNestedManyWithoutImageInput = { - create?: - | Prisma.XOR< - Prisma.EquipmentCreateWithoutImageInput, - Prisma.EquipmentUncheckedCreateWithoutImageInput - > - | Prisma.EquipmentCreateWithoutImageInput[] - | Prisma.EquipmentUncheckedCreateWithoutImageInput[] - connectOrCreate?: - | Prisma.EquipmentCreateOrConnectWithoutImageInput - | Prisma.EquipmentCreateOrConnectWithoutImageInput[] + create?: Prisma.XOR | Prisma.EquipmentCreateWithoutImageInput[] | Prisma.EquipmentUncheckedCreateWithoutImageInput[] + connectOrCreate?: Prisma.EquipmentCreateOrConnectWithoutImageInput | Prisma.EquipmentCreateOrConnectWithoutImageInput[] createMany?: Prisma.EquipmentCreateManyImageInputEnvelope connect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] } export type EquipmentUpdateManyWithoutImageNestedInput = { - create?: - | Prisma.XOR< - Prisma.EquipmentCreateWithoutImageInput, - Prisma.EquipmentUncheckedCreateWithoutImageInput - > - | Prisma.EquipmentCreateWithoutImageInput[] - | Prisma.EquipmentUncheckedCreateWithoutImageInput[] - connectOrCreate?: - | Prisma.EquipmentCreateOrConnectWithoutImageInput - | Prisma.EquipmentCreateOrConnectWithoutImageInput[] - upsert?: - | Prisma.EquipmentUpsertWithWhereUniqueWithoutImageInput - | Prisma.EquipmentUpsertWithWhereUniqueWithoutImageInput[] + create?: Prisma.XOR | Prisma.EquipmentCreateWithoutImageInput[] | Prisma.EquipmentUncheckedCreateWithoutImageInput[] + connectOrCreate?: Prisma.EquipmentCreateOrConnectWithoutImageInput | Prisma.EquipmentCreateOrConnectWithoutImageInput[] + upsert?: Prisma.EquipmentUpsertWithWhereUniqueWithoutImageInput | Prisma.EquipmentUpsertWithWhereUniqueWithoutImageInput[] createMany?: Prisma.EquipmentCreateManyImageInputEnvelope set?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] disconnect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] delete?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] connect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - update?: - | Prisma.EquipmentUpdateWithWhereUniqueWithoutImageInput - | Prisma.EquipmentUpdateWithWhereUniqueWithoutImageInput[] - updateMany?: - | Prisma.EquipmentUpdateManyWithWhereWithoutImageInput - | Prisma.EquipmentUpdateManyWithWhereWithoutImageInput[] + update?: Prisma.EquipmentUpdateWithWhereUniqueWithoutImageInput | Prisma.EquipmentUpdateWithWhereUniqueWithoutImageInput[] + updateMany?: Prisma.EquipmentUpdateManyWithWhereWithoutImageInput | Prisma.EquipmentUpdateManyWithWhereWithoutImageInput[] deleteMany?: Prisma.EquipmentScalarWhereInput | Prisma.EquipmentScalarWhereInput[] } export type EquipmentUncheckedUpdateManyWithoutImageNestedInput = { - create?: - | Prisma.XOR< - Prisma.EquipmentCreateWithoutImageInput, - Prisma.EquipmentUncheckedCreateWithoutImageInput - > - | Prisma.EquipmentCreateWithoutImageInput[] - | Prisma.EquipmentUncheckedCreateWithoutImageInput[] - connectOrCreate?: - | Prisma.EquipmentCreateOrConnectWithoutImageInput - | Prisma.EquipmentCreateOrConnectWithoutImageInput[] - upsert?: - | Prisma.EquipmentUpsertWithWhereUniqueWithoutImageInput - | Prisma.EquipmentUpsertWithWhereUniqueWithoutImageInput[] + create?: Prisma.XOR | Prisma.EquipmentCreateWithoutImageInput[] | Prisma.EquipmentUncheckedCreateWithoutImageInput[] + connectOrCreate?: Prisma.EquipmentCreateOrConnectWithoutImageInput | Prisma.EquipmentCreateOrConnectWithoutImageInput[] + upsert?: Prisma.EquipmentUpsertWithWhereUniqueWithoutImageInput | Prisma.EquipmentUpsertWithWhereUniqueWithoutImageInput[] createMany?: Prisma.EquipmentCreateManyImageInputEnvelope set?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] disconnect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] delete?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] connect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - update?: - | Prisma.EquipmentUpdateWithWhereUniqueWithoutImageInput - | Prisma.EquipmentUpdateWithWhereUniqueWithoutImageInput[] - updateMany?: - | Prisma.EquipmentUpdateManyWithWhereWithoutImageInput - | Prisma.EquipmentUpdateManyWithWhereWithoutImageInput[] - deleteMany?: Prisma.EquipmentScalarWhereInput | Prisma.EquipmentScalarWhereInput[] -} - -export type EquipmentCreateNestedManyWithoutCategoryInput = { - create?: - | Prisma.XOR< - Prisma.EquipmentCreateWithoutCategoryInput, - Prisma.EquipmentUncheckedCreateWithoutCategoryInput - > - | Prisma.EquipmentCreateWithoutCategoryInput[] - | Prisma.EquipmentUncheckedCreateWithoutCategoryInput[] - connectOrCreate?: - | Prisma.EquipmentCreateOrConnectWithoutCategoryInput - | Prisma.EquipmentCreateOrConnectWithoutCategoryInput[] - createMany?: Prisma.EquipmentCreateManyCategoryInputEnvelope - connect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] -} - -export type EquipmentCreateNestedManyWithoutSubCategoryInput = { - create?: - | Prisma.XOR< - Prisma.EquipmentCreateWithoutSubCategoryInput, - Prisma.EquipmentUncheckedCreateWithoutSubCategoryInput - > - | Prisma.EquipmentCreateWithoutSubCategoryInput[] - | Prisma.EquipmentUncheckedCreateWithoutSubCategoryInput[] - connectOrCreate?: - | Prisma.EquipmentCreateOrConnectWithoutSubCategoryInput - | Prisma.EquipmentCreateOrConnectWithoutSubCategoryInput[] - createMany?: Prisma.EquipmentCreateManySubCategoryInputEnvelope - connect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] -} - -export type EquipmentUncheckedCreateNestedManyWithoutCategoryInput = { - create?: - | Prisma.XOR< - Prisma.EquipmentCreateWithoutCategoryInput, - Prisma.EquipmentUncheckedCreateWithoutCategoryInput - > - | Prisma.EquipmentCreateWithoutCategoryInput[] - | Prisma.EquipmentUncheckedCreateWithoutCategoryInput[] - connectOrCreate?: - | Prisma.EquipmentCreateOrConnectWithoutCategoryInput - | Prisma.EquipmentCreateOrConnectWithoutCategoryInput[] - createMany?: Prisma.EquipmentCreateManyCategoryInputEnvelope - connect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] -} - -export type EquipmentUncheckedCreateNestedManyWithoutSubCategoryInput = { - create?: - | Prisma.XOR< - Prisma.EquipmentCreateWithoutSubCategoryInput, - Prisma.EquipmentUncheckedCreateWithoutSubCategoryInput - > - | Prisma.EquipmentCreateWithoutSubCategoryInput[] - | Prisma.EquipmentUncheckedCreateWithoutSubCategoryInput[] - connectOrCreate?: - | Prisma.EquipmentCreateOrConnectWithoutSubCategoryInput - | Prisma.EquipmentCreateOrConnectWithoutSubCategoryInput[] - createMany?: Prisma.EquipmentCreateManySubCategoryInputEnvelope - connect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] -} - -export type EquipmentUpdateManyWithoutCategoryNestedInput = { - create?: - | Prisma.XOR< - Prisma.EquipmentCreateWithoutCategoryInput, - Prisma.EquipmentUncheckedCreateWithoutCategoryInput - > - | Prisma.EquipmentCreateWithoutCategoryInput[] - | Prisma.EquipmentUncheckedCreateWithoutCategoryInput[] - connectOrCreate?: - | Prisma.EquipmentCreateOrConnectWithoutCategoryInput - | Prisma.EquipmentCreateOrConnectWithoutCategoryInput[] - upsert?: - | Prisma.EquipmentUpsertWithWhereUniqueWithoutCategoryInput - | Prisma.EquipmentUpsertWithWhereUniqueWithoutCategoryInput[] - createMany?: Prisma.EquipmentCreateManyCategoryInputEnvelope - set?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - disconnect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - delete?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - connect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - update?: - | Prisma.EquipmentUpdateWithWhereUniqueWithoutCategoryInput - | Prisma.EquipmentUpdateWithWhereUniqueWithoutCategoryInput[] - updateMany?: - | Prisma.EquipmentUpdateManyWithWhereWithoutCategoryInput - | Prisma.EquipmentUpdateManyWithWhereWithoutCategoryInput[] - deleteMany?: Prisma.EquipmentScalarWhereInput | Prisma.EquipmentScalarWhereInput[] -} - -export type EquipmentUpdateManyWithoutSubCategoryNestedInput = { - create?: - | Prisma.XOR< - Prisma.EquipmentCreateWithoutSubCategoryInput, - Prisma.EquipmentUncheckedCreateWithoutSubCategoryInput - > - | Prisma.EquipmentCreateWithoutSubCategoryInput[] - | Prisma.EquipmentUncheckedCreateWithoutSubCategoryInput[] - connectOrCreate?: - | Prisma.EquipmentCreateOrConnectWithoutSubCategoryInput - | Prisma.EquipmentCreateOrConnectWithoutSubCategoryInput[] - upsert?: - | Prisma.EquipmentUpsertWithWhereUniqueWithoutSubCategoryInput - | Prisma.EquipmentUpsertWithWhereUniqueWithoutSubCategoryInput[] - createMany?: Prisma.EquipmentCreateManySubCategoryInputEnvelope - set?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - disconnect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - delete?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - connect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - update?: - | Prisma.EquipmentUpdateWithWhereUniqueWithoutSubCategoryInput - | Prisma.EquipmentUpdateWithWhereUniqueWithoutSubCategoryInput[] - updateMany?: - | Prisma.EquipmentUpdateManyWithWhereWithoutSubCategoryInput - | Prisma.EquipmentUpdateManyWithWhereWithoutSubCategoryInput[] - deleteMany?: Prisma.EquipmentScalarWhereInput | Prisma.EquipmentScalarWhereInput[] -} - -export type EquipmentUncheckedUpdateManyWithoutCategoryNestedInput = { - create?: - | Prisma.XOR< - Prisma.EquipmentCreateWithoutCategoryInput, - Prisma.EquipmentUncheckedCreateWithoutCategoryInput - > - | Prisma.EquipmentCreateWithoutCategoryInput[] - | Prisma.EquipmentUncheckedCreateWithoutCategoryInput[] - connectOrCreate?: - | Prisma.EquipmentCreateOrConnectWithoutCategoryInput - | Prisma.EquipmentCreateOrConnectWithoutCategoryInput[] - upsert?: - | Prisma.EquipmentUpsertWithWhereUniqueWithoutCategoryInput - | Prisma.EquipmentUpsertWithWhereUniqueWithoutCategoryInput[] - createMany?: Prisma.EquipmentCreateManyCategoryInputEnvelope - set?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - disconnect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - delete?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - connect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - update?: - | Prisma.EquipmentUpdateWithWhereUniqueWithoutCategoryInput - | Prisma.EquipmentUpdateWithWhereUniqueWithoutCategoryInput[] - updateMany?: - | Prisma.EquipmentUpdateManyWithWhereWithoutCategoryInput - | Prisma.EquipmentUpdateManyWithWhereWithoutCategoryInput[] - deleteMany?: Prisma.EquipmentScalarWhereInput | Prisma.EquipmentScalarWhereInput[] -} - -export type EquipmentUncheckedUpdateManyWithoutSubCategoryNestedInput = { - create?: - | Prisma.XOR< - Prisma.EquipmentCreateWithoutSubCategoryInput, - Prisma.EquipmentUncheckedCreateWithoutSubCategoryInput - > - | Prisma.EquipmentCreateWithoutSubCategoryInput[] - | Prisma.EquipmentUncheckedCreateWithoutSubCategoryInput[] - connectOrCreate?: - | Prisma.EquipmentCreateOrConnectWithoutSubCategoryInput - | Prisma.EquipmentCreateOrConnectWithoutSubCategoryInput[] - upsert?: - | Prisma.EquipmentUpsertWithWhereUniqueWithoutSubCategoryInput - | Prisma.EquipmentUpsertWithWhereUniqueWithoutSubCategoryInput[] - createMany?: Prisma.EquipmentCreateManySubCategoryInputEnvelope - set?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - disconnect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - delete?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - connect?: Prisma.EquipmentWhereUniqueInput | Prisma.EquipmentWhereUniqueInput[] - update?: - | Prisma.EquipmentUpdateWithWhereUniqueWithoutSubCategoryInput - | Prisma.EquipmentUpdateWithWhereUniqueWithoutSubCategoryInput[] - updateMany?: - | Prisma.EquipmentUpdateManyWithWhereWithoutSubCategoryInput - | Prisma.EquipmentUpdateManyWithWhereWithoutSubCategoryInput[] + update?: Prisma.EquipmentUpdateWithWhereUniqueWithoutImageInput | Prisma.EquipmentUpdateWithWhereUniqueWithoutImageInput[] + updateMany?: Prisma.EquipmentUpdateManyWithWhereWithoutImageInput | Prisma.EquipmentUpdateManyWithWhereWithoutImageInput[] deleteMany?: Prisma.EquipmentScalarWhereInput | Prisma.EquipmentScalarWhereInput[] } export type EquipmentCreateNestedOneWithoutGenerationsInput = { - create?: Prisma.XOR< - Prisma.EquipmentCreateWithoutGenerationsInput, - Prisma.EquipmentUncheckedCreateWithoutGenerationsInput - > + create?: Prisma.XOR connectOrCreate?: Prisma.EquipmentCreateOrConnectWithoutGenerationsInput connect?: Prisma.EquipmentWhereUniqueInput } export type EquipmentUpdateOneRequiredWithoutGenerationsNestedInput = { - create?: Prisma.XOR< - Prisma.EquipmentCreateWithoutGenerationsInput, - Prisma.EquipmentUncheckedCreateWithoutGenerationsInput - > + create?: Prisma.XOR connectOrCreate?: Prisma.EquipmentCreateOrConnectWithoutGenerationsInput upsert?: Prisma.EquipmentUpsertWithoutGenerationsInput connect?: Prisma.EquipmentWhereUniqueInput - update?: Prisma.XOR< - Prisma.XOR< - Prisma.EquipmentUpdateToOneWithWhereWithoutGenerationsInput, - Prisma.EquipmentUpdateWithoutGenerationsInput - >, - Prisma.EquipmentUncheckedUpdateWithoutGenerationsInput - > + update?: Prisma.XOR, Prisma.EquipmentUncheckedUpdateWithoutGenerationsInput> } export type EquipmentCreateWithoutImageInput = { id: string name: string description: string + category: string + subCategory?: string | null createdAt?: Date | string updatedAt?: Date | string - category: Prisma.CategoryCreateNestedOneWithoutEquipmentsAsMainInput - subCategory?: Prisma.CategoryCreateNestedOneWithoutEquipmentsAsSubInput generations?: Prisma.GenerationEquipmentCreateNestedManyWithoutEquipmentInput } @@ -709,8 +466,8 @@ export type EquipmentUncheckedCreateWithoutImageInput = { id: string name: string description: string - categoryId: string - subCategoryId?: string | null + category: string + subCategory?: string | null createdAt?: Date | string updatedAt?: Date | string generations?: Prisma.GenerationEquipmentUncheckedCreateNestedManyWithoutEquipmentInput @@ -718,10 +475,7 @@ export type EquipmentUncheckedCreateWithoutImageInput = { export type EquipmentCreateOrConnectWithoutImageInput = { where: Prisma.EquipmentWhereUniqueInput - create: Prisma.XOR< - Prisma.EquipmentCreateWithoutImageInput, - Prisma.EquipmentUncheckedCreateWithoutImageInput - > + create: Prisma.XOR } export type EquipmentCreateManyImageInputEnvelope = { @@ -730,178 +484,42 @@ export type EquipmentCreateManyImageInputEnvelope = { export type EquipmentUpsertWithWhereUniqueWithoutImageInput = { where: Prisma.EquipmentWhereUniqueInput - update: Prisma.XOR< - Prisma.EquipmentUpdateWithoutImageInput, - Prisma.EquipmentUncheckedUpdateWithoutImageInput - > - create: Prisma.XOR< - Prisma.EquipmentCreateWithoutImageInput, - Prisma.EquipmentUncheckedCreateWithoutImageInput - > + update: Prisma.XOR + create: Prisma.XOR } export type EquipmentUpdateWithWhereUniqueWithoutImageInput = { where: Prisma.EquipmentWhereUniqueInput - data: Prisma.XOR< - Prisma.EquipmentUpdateWithoutImageInput, - Prisma.EquipmentUncheckedUpdateWithoutImageInput - > + data: Prisma.XOR } export type EquipmentUpdateManyWithWhereWithoutImageInput = { where: Prisma.EquipmentScalarWhereInput - data: Prisma.XOR< - Prisma.EquipmentUpdateManyMutationInput, - Prisma.EquipmentUncheckedUpdateManyWithoutImageInput - > + data: Prisma.XOR } export type EquipmentScalarWhereInput = { AND?: Prisma.EquipmentScalarWhereInput | Prisma.EquipmentScalarWhereInput[] OR?: Prisma.EquipmentScalarWhereInput[] NOT?: Prisma.EquipmentScalarWhereInput | Prisma.EquipmentScalarWhereInput[] - id?: Prisma.StringFilter<'Equipment'> | string - name?: Prisma.StringFilter<'Equipment'> | string - description?: Prisma.StringFilter<'Equipment'> | string - categoryId?: Prisma.StringFilter<'Equipment'> | string - subCategoryId?: Prisma.StringNullableFilter<'Equipment'> | string | null - imageId?: Prisma.StringFilter<'Equipment'> | string - createdAt?: Prisma.DateTimeFilter<'Equipment'> | Date | string - updatedAt?: Prisma.DateTimeFilter<'Equipment'> | Date | string -} - -export type EquipmentCreateWithoutCategoryInput = { - id: string - name: string - description: string - createdAt?: Date | string - updatedAt?: Date | string - subCategory?: Prisma.CategoryCreateNestedOneWithoutEquipmentsAsSubInput - image: Prisma.AssetCreateNestedOneWithoutEquipmentsInput - generations?: Prisma.GenerationEquipmentCreateNestedManyWithoutEquipmentInput -} - -export type EquipmentUncheckedCreateWithoutCategoryInput = { - id: string - name: string - description: string - subCategoryId?: string | null - imageId: string - createdAt?: Date | string - updatedAt?: Date | string - generations?: Prisma.GenerationEquipmentUncheckedCreateNestedManyWithoutEquipmentInput -} - -export type EquipmentCreateOrConnectWithoutCategoryInput = { - where: Prisma.EquipmentWhereUniqueInput - create: Prisma.XOR< - Prisma.EquipmentCreateWithoutCategoryInput, - Prisma.EquipmentUncheckedCreateWithoutCategoryInput - > -} - -export type EquipmentCreateManyCategoryInputEnvelope = { - data: Prisma.EquipmentCreateManyCategoryInput | Prisma.EquipmentCreateManyCategoryInput[] -} - -export type EquipmentCreateWithoutSubCategoryInput = { - id: string - name: string - description: string - createdAt?: Date | string - updatedAt?: Date | string - category: Prisma.CategoryCreateNestedOneWithoutEquipmentsAsMainInput - image: Prisma.AssetCreateNestedOneWithoutEquipmentsInput - generations?: Prisma.GenerationEquipmentCreateNestedManyWithoutEquipmentInput -} - -export type EquipmentUncheckedCreateWithoutSubCategoryInput = { - id: string - name: string - description: string - categoryId: string - imageId: string - createdAt?: Date | string - updatedAt?: Date | string - generations?: Prisma.GenerationEquipmentUncheckedCreateNestedManyWithoutEquipmentInput -} - -export type EquipmentCreateOrConnectWithoutSubCategoryInput = { - where: Prisma.EquipmentWhereUniqueInput - create: Prisma.XOR< - Prisma.EquipmentCreateWithoutSubCategoryInput, - Prisma.EquipmentUncheckedCreateWithoutSubCategoryInput - > -} - -export type EquipmentCreateManySubCategoryInputEnvelope = { - data: Prisma.EquipmentCreateManySubCategoryInput | Prisma.EquipmentCreateManySubCategoryInput[] -} - -export type EquipmentUpsertWithWhereUniqueWithoutCategoryInput = { - where: Prisma.EquipmentWhereUniqueInput - update: Prisma.XOR< - Prisma.EquipmentUpdateWithoutCategoryInput, - Prisma.EquipmentUncheckedUpdateWithoutCategoryInput - > - create: Prisma.XOR< - Prisma.EquipmentCreateWithoutCategoryInput, - Prisma.EquipmentUncheckedCreateWithoutCategoryInput - > -} - -export type EquipmentUpdateWithWhereUniqueWithoutCategoryInput = { - where: Prisma.EquipmentWhereUniqueInput - data: Prisma.XOR< - Prisma.EquipmentUpdateWithoutCategoryInput, - Prisma.EquipmentUncheckedUpdateWithoutCategoryInput - > -} - -export type EquipmentUpdateManyWithWhereWithoutCategoryInput = { - where: Prisma.EquipmentScalarWhereInput - data: Prisma.XOR< - Prisma.EquipmentUpdateManyMutationInput, - Prisma.EquipmentUncheckedUpdateManyWithoutCategoryInput - > -} - -export type EquipmentUpsertWithWhereUniqueWithoutSubCategoryInput = { - where: Prisma.EquipmentWhereUniqueInput - update: Prisma.XOR< - Prisma.EquipmentUpdateWithoutSubCategoryInput, - Prisma.EquipmentUncheckedUpdateWithoutSubCategoryInput - > - create: Prisma.XOR< - Prisma.EquipmentCreateWithoutSubCategoryInput, - Prisma.EquipmentUncheckedCreateWithoutSubCategoryInput - > -} - -export type EquipmentUpdateWithWhereUniqueWithoutSubCategoryInput = { - where: Prisma.EquipmentWhereUniqueInput - data: Prisma.XOR< - Prisma.EquipmentUpdateWithoutSubCategoryInput, - Prisma.EquipmentUncheckedUpdateWithoutSubCategoryInput - > -} - -export type EquipmentUpdateManyWithWhereWithoutSubCategoryInput = { - where: Prisma.EquipmentScalarWhereInput - data: Prisma.XOR< - Prisma.EquipmentUpdateManyMutationInput, - Prisma.EquipmentUncheckedUpdateManyWithoutSubCategoryInput - > + id?: Prisma.StringFilter<"Equipment"> | string + name?: Prisma.StringFilter<"Equipment"> | string + description?: Prisma.StringFilter<"Equipment"> | string + category?: Prisma.StringFilter<"Equipment"> | string + subCategory?: Prisma.StringNullableFilter<"Equipment"> | string | null + imageId?: Prisma.StringFilter<"Equipment"> | string + createdAt?: Prisma.DateTimeFilter<"Equipment"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Equipment"> | Date | string } export type EquipmentCreateWithoutGenerationsInput = { id: string name: string description: string + category: string + subCategory?: string | null createdAt?: Date | string updatedAt?: Date | string - category: Prisma.CategoryCreateNestedOneWithoutEquipmentsAsMainInput - subCategory?: Prisma.CategoryCreateNestedOneWithoutEquipmentsAsSubInput image: Prisma.AssetCreateNestedOneWithoutEquipmentsInput } @@ -909,8 +527,8 @@ export type EquipmentUncheckedCreateWithoutGenerationsInput = { id: string name: string description: string - categoryId: string - subCategoryId?: string | null + category: string + subCategory?: string | null imageId: string createdAt?: Date | string updatedAt?: Date | string @@ -918,40 +536,28 @@ export type EquipmentUncheckedCreateWithoutGenerationsInput = { export type EquipmentCreateOrConnectWithoutGenerationsInput = { where: Prisma.EquipmentWhereUniqueInput - create: Prisma.XOR< - Prisma.EquipmentCreateWithoutGenerationsInput, - Prisma.EquipmentUncheckedCreateWithoutGenerationsInput - > + create: Prisma.XOR } export type EquipmentUpsertWithoutGenerationsInput = { - update: Prisma.XOR< - Prisma.EquipmentUpdateWithoutGenerationsInput, - Prisma.EquipmentUncheckedUpdateWithoutGenerationsInput - > - create: Prisma.XOR< - Prisma.EquipmentCreateWithoutGenerationsInput, - Prisma.EquipmentUncheckedCreateWithoutGenerationsInput - > + update: Prisma.XOR + create: Prisma.XOR where?: Prisma.EquipmentWhereInput } export type EquipmentUpdateToOneWithWhereWithoutGenerationsInput = { where?: Prisma.EquipmentWhereInput - data: Prisma.XOR< - Prisma.EquipmentUpdateWithoutGenerationsInput, - Prisma.EquipmentUncheckedUpdateWithoutGenerationsInput - > + data: Prisma.XOR } export type EquipmentUpdateWithoutGenerationsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string + category?: Prisma.StringFieldUpdateOperationsInput | string + subCategory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - category?: Prisma.CategoryUpdateOneRequiredWithoutEquipmentsAsMainNestedInput - subCategory?: Prisma.CategoryUpdateOneWithoutEquipmentsAsSubNestedInput image?: Prisma.AssetUpdateOneRequiredWithoutEquipmentsNestedInput } @@ -959,8 +565,8 @@ export type EquipmentUncheckedUpdateWithoutGenerationsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string - categoryId?: Prisma.StringFieldUpdateOperationsInput | string - subCategoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + category?: Prisma.StringFieldUpdateOperationsInput | string + subCategory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null imageId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string @@ -970,8 +576,8 @@ export type EquipmentCreateManyImageInput = { id: string name: string description: string - categoryId: string - subCategoryId?: string | null + category: string + subCategory?: string | null createdAt?: Date | string updatedAt?: Date | string } @@ -980,10 +586,10 @@ export type EquipmentUpdateWithoutImageInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string + category?: Prisma.StringFieldUpdateOperationsInput | string + subCategory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - category?: Prisma.CategoryUpdateOneRequiredWithoutEquipmentsAsMainNestedInput - subCategory?: Prisma.CategoryUpdateOneWithoutEquipmentsAsSubNestedInput generations?: Prisma.GenerationEquipmentUpdateManyWithoutEquipmentNestedInput } @@ -991,8 +597,8 @@ export type EquipmentUncheckedUpdateWithoutImageInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string - categoryId?: Prisma.StringFieldUpdateOperationsInput | string - subCategoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + category?: Prisma.StringFieldUpdateOperationsInput | string + subCategory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string generations?: Prisma.GenerationEquipmentUncheckedUpdateManyWithoutEquipmentNestedInput @@ -1002,95 +608,12 @@ export type EquipmentUncheckedUpdateManyWithoutImageInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string - categoryId?: Prisma.StringFieldUpdateOperationsInput | string - subCategoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + category?: Prisma.StringFieldUpdateOperationsInput | string + subCategory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } -export type EquipmentCreateManyCategoryInput = { - id: string - name: string - description: string - subCategoryId?: string | null - imageId: string - createdAt?: Date | string - updatedAt?: Date | string -} - -export type EquipmentCreateManySubCategoryInput = { - id: string - name: string - description: string - categoryId: string - imageId: string - createdAt?: Date | string - updatedAt?: Date | string -} - -export type EquipmentUpdateWithoutCategoryInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - subCategory?: Prisma.CategoryUpdateOneWithoutEquipmentsAsSubNestedInput - image?: Prisma.AssetUpdateOneRequiredWithoutEquipmentsNestedInput - generations?: Prisma.GenerationEquipmentUpdateManyWithoutEquipmentNestedInput -} - -export type EquipmentUncheckedUpdateWithoutCategoryInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.StringFieldUpdateOperationsInput | string - subCategoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - imageId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - generations?: Prisma.GenerationEquipmentUncheckedUpdateManyWithoutEquipmentNestedInput -} - -export type EquipmentUncheckedUpdateManyWithoutCategoryInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.StringFieldUpdateOperationsInput | string - subCategoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - imageId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type EquipmentUpdateWithoutSubCategoryInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - category?: Prisma.CategoryUpdateOneRequiredWithoutEquipmentsAsMainNestedInput - image?: Prisma.AssetUpdateOneRequiredWithoutEquipmentsNestedInput - generations?: Prisma.GenerationEquipmentUpdateManyWithoutEquipmentNestedInput -} - -export type EquipmentUncheckedUpdateWithoutSubCategoryInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.StringFieldUpdateOperationsInput | string - categoryId?: Prisma.StringFieldUpdateOperationsInput | string - imageId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - generations?: Prisma.GenerationEquipmentUncheckedUpdateManyWithoutEquipmentNestedInput -} - -export type EquipmentUncheckedUpdateManyWithoutSubCategoryInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.StringFieldUpdateOperationsInput | string - categoryId?: Prisma.StringFieldUpdateOperationsInput | string - imageId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} /** * Count Type EquipmentCountOutputType @@ -1100,18 +623,14 @@ export type EquipmentCountOutputType = { generations: number } -export type EquipmentCountOutputTypeSelect< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentCountOutputTypeSelect = { generations?: boolean | EquipmentCountOutputTypeCountGenerationsArgs } /** * EquipmentCountOutputType without action */ -export type EquipmentCountOutputTypeDefaultArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the EquipmentCountOutputType */ @@ -1121,159 +640,101 @@ export type EquipmentCountOutputTypeDefaultArgs< /** * EquipmentCountOutputType without action */ -export type EquipmentCountOutputTypeCountGenerationsArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentCountOutputTypeCountGenerationsArgs = { where?: Prisma.GenerationEquipmentWhereInput } -export type EquipmentSelect< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - id?: boolean - name?: boolean - description?: boolean - categoryId?: boolean - subCategoryId?: boolean - imageId?: boolean - createdAt?: boolean - updatedAt?: boolean - category?: boolean | Prisma.CategoryDefaultArgs - subCategory?: boolean | Prisma.Equipment$subCategoryArgs - image?: boolean | Prisma.AssetDefaultArgs - generations?: boolean | Prisma.Equipment$generationsArgs - _count?: boolean | Prisma.EquipmentCountOutputTypeDefaultArgs - }, - ExtArgs['result']['equipment'] -> -export type EquipmentSelectCreateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - id?: boolean - name?: boolean - description?: boolean - categoryId?: boolean - subCategoryId?: boolean - imageId?: boolean - createdAt?: boolean - updatedAt?: boolean - category?: boolean | Prisma.CategoryDefaultArgs - subCategory?: boolean | Prisma.Equipment$subCategoryArgs - image?: boolean | Prisma.AssetDefaultArgs - }, - ExtArgs['result']['equipment'] -> +export type EquipmentSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + description?: boolean + category?: boolean + subCategory?: boolean + imageId?: boolean + createdAt?: boolean + updatedAt?: boolean + image?: boolean | Prisma.AssetDefaultArgs + generations?: boolean | Prisma.Equipment$generationsArgs + _count?: boolean | Prisma.EquipmentCountOutputTypeDefaultArgs +}, ExtArgs["result"]["equipment"]> -export type EquipmentSelectUpdateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - id?: boolean - name?: boolean - description?: boolean - categoryId?: boolean - subCategoryId?: boolean - imageId?: boolean - createdAt?: boolean - updatedAt?: boolean - category?: boolean | Prisma.CategoryDefaultArgs - subCategory?: boolean | Prisma.Equipment$subCategoryArgs - image?: boolean | Prisma.AssetDefaultArgs - }, - ExtArgs['result']['equipment'] -> +export type EquipmentSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + description?: boolean + category?: boolean + subCategory?: boolean + imageId?: boolean + createdAt?: boolean + updatedAt?: boolean + image?: boolean | Prisma.AssetDefaultArgs +}, ExtArgs["result"]["equipment"]> + +export type EquipmentSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + description?: boolean + category?: boolean + subCategory?: boolean + imageId?: boolean + createdAt?: boolean + updatedAt?: boolean + image?: boolean | Prisma.AssetDefaultArgs +}, ExtArgs["result"]["equipment"]> export type EquipmentSelectScalar = { id?: boolean name?: boolean description?: boolean - categoryId?: boolean - subCategoryId?: boolean + category?: boolean + subCategory?: boolean imageId?: boolean createdAt?: boolean updatedAt?: boolean } -export type EquipmentOmit< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetOmit< - | 'id' - | 'name' - | 'description' - | 'categoryId' - | 'subCategoryId' - | 'imageId' - | 'createdAt' - | 'updatedAt', - ExtArgs['result']['equipment'] -> -export type EquipmentInclude< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - category?: boolean | Prisma.CategoryDefaultArgs - subCategory?: boolean | Prisma.Equipment$subCategoryArgs +export type EquipmentOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "category" | "subCategory" | "imageId" | "createdAt" | "updatedAt", ExtArgs["result"]["equipment"]> +export type EquipmentInclude = { image?: boolean | Prisma.AssetDefaultArgs generations?: boolean | Prisma.Equipment$generationsArgs _count?: boolean | Prisma.EquipmentCountOutputTypeDefaultArgs } -export type EquipmentIncludeCreateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - category?: boolean | Prisma.CategoryDefaultArgs - subCategory?: boolean | Prisma.Equipment$subCategoryArgs +export type EquipmentIncludeCreateManyAndReturn = { image?: boolean | Prisma.AssetDefaultArgs } -export type EquipmentIncludeUpdateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - category?: boolean | Prisma.CategoryDefaultArgs - subCategory?: boolean | Prisma.Equipment$subCategoryArgs +export type EquipmentIncludeUpdateManyAndReturn = { image?: boolean | Prisma.AssetDefaultArgs } -export type $EquipmentPayload< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - name: 'Equipment' +export type $EquipmentPayload = { + name: "Equipment" objects: { - category: Prisma.$CategoryPayload - subCategory: Prisma.$CategoryPayload | null image: Prisma.$AssetPayload generations: Prisma.$GenerationEquipmentPayload[] } - scalars: runtime.Types.Extensions.GetPayloadResult< - { - id: string - name: string - description: string - categoryId: string - subCategoryId: string | null - imageId: string - createdAt: Date - updatedAt: Date - }, - ExtArgs['result']['equipment'] - > + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + name: string + description: string + category: string + subCategory: string | null + imageId: string + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["equipment"]> composites: {} } -export type EquipmentGetPayload = - runtime.Types.Result.GetResult +export type EquipmentGetPayload = runtime.Types.Result.GetResult -export type EquipmentCountArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = Omit & { - select?: EquipmentCountAggregateInputType | true -} +export type EquipmentCountArgs = + Omit & { + select?: EquipmentCountAggregateInputType | true + } -export interface EquipmentDelegate< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, - GlobalOmitOptions = {}, -> { - [K: symbol]: { types: Prisma.TypeMap['model']['Equipment']; meta: { name: 'Equipment' } } +export interface EquipmentDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Equipment'], meta: { name: 'Equipment' } } /** * Find zero or one Equipment that matches the filter. * @param {EquipmentFindUniqueArgs} args - Arguments to find a Equipment @@ -1285,19 +746,7 @@ export interface EquipmentDelegate< * } * }) */ - findUnique( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__EquipmentClient< - runtime.Types.Result.GetResult< - Prisma.$EquipmentPayload, - T, - 'findUnique', - GlobalOmitOptions - > | null, - null, - ExtArgs, - GlobalOmitOptions - > + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__EquipmentClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Equipment that matches the filter or throw an error with `error.code='P2025'` @@ -1311,19 +760,7 @@ export interface EquipmentDelegate< * } * }) */ - findUniqueOrThrow( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__EquipmentClient< - runtime.Types.Result.GetResult< - Prisma.$EquipmentPayload, - T, - 'findUniqueOrThrow', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__EquipmentClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Equipment that matches the filter. @@ -1338,19 +775,7 @@ export interface EquipmentDelegate< * } * }) */ - findFirst( - args?: Prisma.SelectSubset>, - ): Prisma.Prisma__EquipmentClient< - runtime.Types.Result.GetResult< - Prisma.$EquipmentPayload, - T, - 'findFirst', - GlobalOmitOptions - > | null, - null, - ExtArgs, - GlobalOmitOptions - > + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__EquipmentClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Equipment that matches the filter or @@ -1366,19 +791,7 @@ export interface EquipmentDelegate< * } * }) */ - findFirstOrThrow( - args?: Prisma.SelectSubset>, - ): Prisma.Prisma__EquipmentClient< - runtime.Types.Result.GetResult< - Prisma.$EquipmentPayload, - T, - 'findFirstOrThrow', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__EquipmentClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Equipment that matches the filter. @@ -1396,16 +809,7 @@ export interface EquipmentDelegate< * const equipmentWithIdOnly = await prisma.equipment.findMany({ select: { id: true } }) * */ - findMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$EquipmentPayload, - T, - 'findMany', - GlobalOmitOptions - > - > + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Equipment. @@ -1419,19 +823,7 @@ export interface EquipmentDelegate< * }) * */ - create( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__EquipmentClient< - runtime.Types.Result.GetResult< - Prisma.$EquipmentPayload, - T, - 'create', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + create(args: Prisma.SelectSubset>): Prisma.Prisma__EquipmentClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Equipment. @@ -1445,9 +837,7 @@ export interface EquipmentDelegate< * }) * */ - createMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Equipment and returns the data saved in the database. @@ -1471,16 +861,7 @@ export interface EquipmentDelegate< * Read more here: https://pris.ly/d/null-undefined * */ - createManyAndReturn( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$EquipmentPayload, - T, - 'createManyAndReturn', - GlobalOmitOptions - > - > + createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Equipment. @@ -1494,19 +875,7 @@ export interface EquipmentDelegate< * }) * */ - delete( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__EquipmentClient< - runtime.Types.Result.GetResult< - Prisma.$EquipmentPayload, - T, - 'delete', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + delete(args: Prisma.SelectSubset>): Prisma.Prisma__EquipmentClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Equipment. @@ -1523,19 +892,7 @@ export interface EquipmentDelegate< * }) * */ - update( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__EquipmentClient< - runtime.Types.Result.GetResult< - Prisma.$EquipmentPayload, - T, - 'update', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + update(args: Prisma.SelectSubset>): Prisma.Prisma__EquipmentClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Equipment. @@ -1549,9 +906,7 @@ export interface EquipmentDelegate< * }) * */ - deleteMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Equipment. @@ -1570,9 +925,7 @@ export interface EquipmentDelegate< * }) * */ - updateMany( - args: Prisma.SelectSubset>, - ): Prisma.PrismaPromise + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Equipment and returns the data updated in the database. @@ -1602,16 +955,7 @@ export interface EquipmentDelegate< * Read more here: https://pris.ly/d/null-undefined * */ - updateManyAndReturn( - args: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$EquipmentPayload, - T, - 'updateManyAndReturn', - GlobalOmitOptions - > - > + updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Equipment. @@ -1630,19 +974,8 @@ export interface EquipmentDelegate< * } * }) */ - upsert( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__EquipmentClient< - runtime.Types.Result.GetResult< - Prisma.$EquipmentPayload, - T, - 'upsert', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__EquipmentClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + /** * Count the number of Equipment. @@ -1656,7 +989,7 @@ export interface EquipmentDelegate< * // ... the filter for the Equipment we want to count * } * }) - **/ + **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< @@ -1690,10 +1023,8 @@ export interface EquipmentDelegate< * }, * take: 10, * }) - **/ - aggregate( - args: Prisma.Subset, - ): Prisma.PrismaPromise> + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Equipment. @@ -1712,7 +1043,7 @@ export interface EquipmentDelegate< * }, * }) * - **/ + **/ groupBy< T extends EquipmentGroupByArgs, HasSelectOrTake extends Prisma.Or< @@ -1722,58 +1053,59 @@ export interface EquipmentDelegate< OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: EquipmentGroupByArgs['orderBy'] } : { orderBy?: EquipmentGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys< - Prisma.Keys> - >, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields], - >( - args: Prisma.SubsetIntersection & InputErrors, - ): {} extends InputErrors ? GetEquipmentGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Equipment model - */ - readonly fields: EquipmentFieldRefs + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetEquipmentGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Equipment model + */ +readonly fields: EquipmentFieldRefs; } /** @@ -1782,83 +1114,23 @@ export interface EquipmentDelegate< * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ -export interface Prisma__EquipmentClient< - T, - Null = never, - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, - GlobalOmitOptions = {}, -> extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: 'PrismaPromise' - category = {}>( - args?: Prisma.Subset>, - ): Prisma.Prisma__CategoryClient< - | runtime.Types.Result.GetResult< - Prisma.$CategoryPayload, - T, - 'findUniqueOrThrow', - GlobalOmitOptions - > - | Null, - Null, - ExtArgs, - GlobalOmitOptions - > - subCategory = {}>( - args?: Prisma.Subset>, - ): Prisma.Prisma__CategoryClient< - runtime.Types.Result.GetResult< - Prisma.$CategoryPayload, - T, - 'findUniqueOrThrow', - GlobalOmitOptions - > | null, - null, - ExtArgs, - GlobalOmitOptions - > - image = {}>( - args?: Prisma.Subset>, - ): Prisma.Prisma__AssetClient< - | runtime.Types.Result.GetResult< - Prisma.$AssetPayload, - T, - 'findUniqueOrThrow', - GlobalOmitOptions - > - | Null, - Null, - ExtArgs, - GlobalOmitOptions - > - generations = {}>( - args?: Prisma.Subset>, - ): Prisma.PrismaPromise< - | runtime.Types.Result.GetResult< - Prisma.$GenerationEquipmentPayload, - T, - 'findMany', - GlobalOmitOptions - > - | Null - > +export interface Prisma__EquipmentClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + image = {}>(args?: Prisma.Subset>): Prisma.Prisma__AssetClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + generations = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ - then( - onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, - onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, - ): runtime.Types.Utils.JsPromise + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ - catch( - onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, - ): runtime.Types.Utils.JsPromise + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. @@ -1868,27 +1140,29 @@ export interface Prisma__EquipmentClient< finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } + + + /** * Fields of the Equipment model */ export interface EquipmentFieldRefs { - readonly id: Prisma.FieldRef<'Equipment', 'String'> - readonly name: Prisma.FieldRef<'Equipment', 'String'> - readonly description: Prisma.FieldRef<'Equipment', 'String'> - readonly categoryId: Prisma.FieldRef<'Equipment', 'String'> - readonly subCategoryId: Prisma.FieldRef<'Equipment', 'String'> - readonly imageId: Prisma.FieldRef<'Equipment', 'String'> - readonly createdAt: Prisma.FieldRef<'Equipment', 'DateTime'> - readonly updatedAt: Prisma.FieldRef<'Equipment', 'DateTime'> + readonly id: Prisma.FieldRef<"Equipment", 'String'> + readonly name: Prisma.FieldRef<"Equipment", 'String'> + readonly description: Prisma.FieldRef<"Equipment", 'String'> + readonly category: Prisma.FieldRef<"Equipment", 'String'> + readonly subCategory: Prisma.FieldRef<"Equipment", 'String'> + readonly imageId: Prisma.FieldRef<"Equipment", 'String'> + readonly createdAt: Prisma.FieldRef<"Equipment", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Equipment", 'DateTime'> } + // Custom InputTypes /** * Equipment findUnique */ -export type EquipmentFindUniqueArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentFindUniqueArgs = { /** * Select specific fields to fetch from the Equipment */ @@ -1910,9 +1184,7 @@ export type EquipmentFindUniqueArgs< /** * Equipment findUniqueOrThrow */ -export type EquipmentFindUniqueOrThrowArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Equipment */ @@ -1934,9 +1206,7 @@ export type EquipmentFindUniqueOrThrowArgs< /** * Equipment findFirst */ -export type EquipmentFindFirstArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentFindFirstArgs = { /** * Select specific fields to fetch from the Equipment */ @@ -1988,9 +1258,7 @@ export type EquipmentFindFirstArgs< /** * Equipment findFirstOrThrow */ -export type EquipmentFindFirstOrThrowArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Equipment */ @@ -2042,9 +1310,7 @@ export type EquipmentFindFirstOrThrowArgs< /** * Equipment findMany */ -export type EquipmentFindManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentFindManyArgs = { /** * Select specific fields to fetch from the Equipment */ @@ -2091,9 +1357,7 @@ export type EquipmentFindManyArgs< /** * Equipment create */ -export type EquipmentCreateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentCreateArgs = { /** * Select specific fields to fetch from the Equipment */ @@ -2115,9 +1379,7 @@ export type EquipmentCreateArgs< /** * Equipment createMany */ -export type EquipmentCreateManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentCreateManyArgs = { /** * The data used to create many Equipment. */ @@ -2127,9 +1389,7 @@ export type EquipmentCreateManyArgs< /** * Equipment createManyAndReturn */ -export type EquipmentCreateManyAndReturnArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Equipment */ @@ -2151,9 +1411,7 @@ export type EquipmentCreateManyAndReturnArgs< /** * Equipment update */ -export type EquipmentUpdateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentUpdateArgs = { /** * Select specific fields to fetch from the Equipment */ @@ -2179,16 +1437,11 @@ export type EquipmentUpdateArgs< /** * Equipment updateMany */ -export type EquipmentUpdateManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentUpdateManyArgs = { /** * The data used to update Equipment. */ - data: Prisma.XOR< - Prisma.EquipmentUpdateManyMutationInput, - Prisma.EquipmentUncheckedUpdateManyInput - > + data: Prisma.XOR /** * Filter which Equipment to update */ @@ -2202,9 +1455,7 @@ export type EquipmentUpdateManyArgs< /** * Equipment updateManyAndReturn */ -export type EquipmentUpdateManyAndReturnArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Equipment */ @@ -2216,10 +1467,7 @@ export type EquipmentUpdateManyAndReturnArgs< /** * The data used to update Equipment. */ - data: Prisma.XOR< - Prisma.EquipmentUpdateManyMutationInput, - Prisma.EquipmentUncheckedUpdateManyInput - > + data: Prisma.XOR /** * Filter which Equipment to update */ @@ -2237,9 +1485,7 @@ export type EquipmentUpdateManyAndReturnArgs< /** * Equipment upsert */ -export type EquipmentUpsertArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentUpsertArgs = { /** * Select specific fields to fetch from the Equipment */ @@ -2269,9 +1515,7 @@ export type EquipmentUpsertArgs< /** * Equipment delete */ -export type EquipmentDeleteArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentDeleteArgs = { /** * Select specific fields to fetch from the Equipment */ @@ -2293,9 +1537,7 @@ export type EquipmentDeleteArgs< /** * Equipment deleteMany */ -export type EquipmentDeleteManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentDeleteManyArgs = { /** * Filter which Equipment to delete */ @@ -2306,33 +1548,10 @@ export type EquipmentDeleteManyArgs< limit?: number } -/** - * Equipment.subCategory - */ -export type Equipment$subCategoryArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - /** - * Select specific fields to fetch from the Category - */ - select?: Prisma.CategorySelect | null - /** - * Omit specific fields from the Category - */ - omit?: Prisma.CategoryOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CategoryInclude | null - where?: Prisma.CategoryWhereInput -} - /** * Equipment.generations */ -export type Equipment$generationsArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type Equipment$generationsArgs = { /** * Select specific fields to fetch from the GenerationEquipment */ @@ -2346,9 +1565,7 @@ export type Equipment$generationsArgs< */ include?: Prisma.GenerationEquipmentInclude | null where?: Prisma.GenerationEquipmentWhereInput - orderBy?: - | Prisma.GenerationEquipmentOrderByWithRelationInput - | Prisma.GenerationEquipmentOrderByWithRelationInput[] + orderBy?: Prisma.GenerationEquipmentOrderByWithRelationInput | Prisma.GenerationEquipmentOrderByWithRelationInput[] cursor?: Prisma.GenerationEquipmentWhereUniqueInput take?: number skip?: number @@ -2358,9 +1575,7 @@ export type Equipment$generationsArgs< /** * Equipment without action */ -export type EquipmentDefaultArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type EquipmentDefaultArgs = { /** * Select specific fields to fetch from the Equipment */ diff --git a/src/generated/prisma/models/Generation.ts b/src/generated/prisma/models/Generation.ts index dddf718..80a842d 100644 --- a/src/generated/prisma/models/Generation.ts +++ b/src/generated/prisma/models/Generation.ts @@ -1,3 +1,4 @@ + /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file @@ -7,9 +8,9 @@ * * 🟢 You can import this file directly. */ -import type * as runtime from '@prisma/client/runtime/client' -import type * as $Enums from '../enums.ts' -import type * as Prisma from '../internal/prismaNamespace.ts' +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model Generation @@ -48,6 +49,7 @@ export type GenerationCountAggregateOutputType = { _all: number } + export type GenerationMinAggregateInputType = { id?: true characterId?: true @@ -73,9 +75,7 @@ export type GenerationCountAggregateInputType = { _all?: true } -export type GenerationAggregateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationAggregateArgs = { /** * Filter which Generation to aggregate. */ @@ -108,37 +108,36 @@ export type GenerationAggregateArgs< * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Generations - **/ + **/ _count?: true | GenerationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value - **/ + **/ _min?: GenerationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value - **/ + **/ _max?: GenerationMaxAggregateInputType } export type GetGenerationAggregateType = { - [P in keyof T & keyof AggregateGeneration]: P extends '_count' | 'count' + [P in keyof T & keyof AggregateGeneration]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } -export type GenerationGroupByArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { + + + +export type GenerationGroupByArgs = { where?: Prisma.GenerationWhereInput - orderBy?: - | Prisma.GenerationOrderByWithAggregationInput - | Prisma.GenerationOrderByWithAggregationInput[] + orderBy?: Prisma.GenerationOrderByWithAggregationInput | Prisma.GenerationOrderByWithAggregationInput[] by: Prisma.GenerationScalarFieldEnum[] | Prisma.GenerationScalarFieldEnum having?: Prisma.GenerationScalarWhereWithAggregatesInput take?: number @@ -161,25 +160,28 @@ export type GenerationGroupByOutputType = { type GetGenerationGroupByPayload = Prisma.PrismaPromise< Array< - Prisma.PickEnumerable & { - [P in keyof T & keyof GenerationGroupByOutputType]: P extends '_count' - ? T[P] extends boolean - ? number + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof GenerationGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType : Prisma.GetScalarType - : Prisma.GetScalarType - } + } + > > -> + + export type GenerationWhereInput = { AND?: Prisma.GenerationWhereInput | Prisma.GenerationWhereInput[] OR?: Prisma.GenerationWhereInput[] NOT?: Prisma.GenerationWhereInput | Prisma.GenerationWhereInput[] - id?: Prisma.StringFilter<'Generation'> | string - characterId?: Prisma.StringFilter<'Generation'> | string - imageId?: Prisma.StringFilter<'Generation'> | string - createdAt?: Prisma.DateTimeFilter<'Generation'> | Date | string - updatedAt?: Prisma.DateTimeFilter<'Generation'> | Date | string + id?: Prisma.StringFilter<"Generation"> | string + characterId?: Prisma.StringFilter<"Generation"> | string + imageId?: Prisma.StringFilter<"Generation"> | string + createdAt?: Prisma.DateTimeFilter<"Generation"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Generation"> | Date | string character?: Prisma.XOR image?: Prisma.XOR equipments?: Prisma.GenerationEquipmentListRelationFilter @@ -196,22 +198,19 @@ export type GenerationOrderByWithRelationInput = { equipments?: Prisma.GenerationEquipmentOrderByRelationAggregateInput } -export type GenerationWhereUniqueInput = Prisma.AtLeast< - { - id?: string - AND?: Prisma.GenerationWhereInput | Prisma.GenerationWhereInput[] - OR?: Prisma.GenerationWhereInput[] - NOT?: Prisma.GenerationWhereInput | Prisma.GenerationWhereInput[] - characterId?: Prisma.StringFilter<'Generation'> | string - imageId?: Prisma.StringFilter<'Generation'> | string - createdAt?: Prisma.DateTimeFilter<'Generation'> | Date | string - updatedAt?: Prisma.DateTimeFilter<'Generation'> | Date | string - character?: Prisma.XOR - image?: Prisma.XOR - equipments?: Prisma.GenerationEquipmentListRelationFilter - }, - 'id' -> +export type GenerationWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.GenerationWhereInput | Prisma.GenerationWhereInput[] + OR?: Prisma.GenerationWhereInput[] + NOT?: Prisma.GenerationWhereInput | Prisma.GenerationWhereInput[] + characterId?: Prisma.StringFilter<"Generation"> | string + imageId?: Prisma.StringFilter<"Generation"> | string + createdAt?: Prisma.DateTimeFilter<"Generation"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Generation"> | Date | string + character?: Prisma.XOR + image?: Prisma.XOR + equipments?: Prisma.GenerationEquipmentListRelationFilter +}, "id"> export type GenerationOrderByWithAggregationInput = { id?: Prisma.SortOrder @@ -225,18 +224,14 @@ export type GenerationOrderByWithAggregationInput = { } export type GenerationScalarWhereWithAggregatesInput = { - AND?: - | Prisma.GenerationScalarWhereWithAggregatesInput - | Prisma.GenerationScalarWhereWithAggregatesInput[] + AND?: Prisma.GenerationScalarWhereWithAggregatesInput | Prisma.GenerationScalarWhereWithAggregatesInput[] OR?: Prisma.GenerationScalarWhereWithAggregatesInput[] - NOT?: - | Prisma.GenerationScalarWhereWithAggregatesInput - | Prisma.GenerationScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<'Generation'> | string - characterId?: Prisma.StringWithAggregatesFilter<'Generation'> | string - imageId?: Prisma.StringWithAggregatesFilter<'Generation'> | string - createdAt?: Prisma.DateTimeWithAggregatesFilter<'Generation'> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Generation'> | Date | string + NOT?: Prisma.GenerationScalarWhereWithAggregatesInput | Prisma.GenerationScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Generation"> | string + characterId?: Prisma.StringWithAggregatesFilter<"Generation"> | string + imageId?: Prisma.StringWithAggregatesFilter<"Generation"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Generation"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Generation"> | Date | string } export type GenerationCreateInput = { @@ -337,201 +332,101 @@ export type GenerationScalarRelationFilter = { } export type GenerationCreateNestedManyWithoutImageInput = { - create?: - | Prisma.XOR< - Prisma.GenerationCreateWithoutImageInput, - Prisma.GenerationUncheckedCreateWithoutImageInput - > - | Prisma.GenerationCreateWithoutImageInput[] - | Prisma.GenerationUncheckedCreateWithoutImageInput[] - connectOrCreate?: - | Prisma.GenerationCreateOrConnectWithoutImageInput - | Prisma.GenerationCreateOrConnectWithoutImageInput[] + create?: Prisma.XOR | Prisma.GenerationCreateWithoutImageInput[] | Prisma.GenerationUncheckedCreateWithoutImageInput[] + connectOrCreate?: Prisma.GenerationCreateOrConnectWithoutImageInput | Prisma.GenerationCreateOrConnectWithoutImageInput[] createMany?: Prisma.GenerationCreateManyImageInputEnvelope connect?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] } export type GenerationUncheckedCreateNestedManyWithoutImageInput = { - create?: - | Prisma.XOR< - Prisma.GenerationCreateWithoutImageInput, - Prisma.GenerationUncheckedCreateWithoutImageInput - > - | Prisma.GenerationCreateWithoutImageInput[] - | Prisma.GenerationUncheckedCreateWithoutImageInput[] - connectOrCreate?: - | Prisma.GenerationCreateOrConnectWithoutImageInput - | Prisma.GenerationCreateOrConnectWithoutImageInput[] + create?: Prisma.XOR | Prisma.GenerationCreateWithoutImageInput[] | Prisma.GenerationUncheckedCreateWithoutImageInput[] + connectOrCreate?: Prisma.GenerationCreateOrConnectWithoutImageInput | Prisma.GenerationCreateOrConnectWithoutImageInput[] createMany?: Prisma.GenerationCreateManyImageInputEnvelope connect?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] } export type GenerationUpdateManyWithoutImageNestedInput = { - create?: - | Prisma.XOR< - Prisma.GenerationCreateWithoutImageInput, - Prisma.GenerationUncheckedCreateWithoutImageInput - > - | Prisma.GenerationCreateWithoutImageInput[] - | Prisma.GenerationUncheckedCreateWithoutImageInput[] - connectOrCreate?: - | Prisma.GenerationCreateOrConnectWithoutImageInput - | Prisma.GenerationCreateOrConnectWithoutImageInput[] - upsert?: - | Prisma.GenerationUpsertWithWhereUniqueWithoutImageInput - | Prisma.GenerationUpsertWithWhereUniqueWithoutImageInput[] + create?: Prisma.XOR | Prisma.GenerationCreateWithoutImageInput[] | Prisma.GenerationUncheckedCreateWithoutImageInput[] + connectOrCreate?: Prisma.GenerationCreateOrConnectWithoutImageInput | Prisma.GenerationCreateOrConnectWithoutImageInput[] + upsert?: Prisma.GenerationUpsertWithWhereUniqueWithoutImageInput | Prisma.GenerationUpsertWithWhereUniqueWithoutImageInput[] createMany?: Prisma.GenerationCreateManyImageInputEnvelope set?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] disconnect?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] delete?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] connect?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] - update?: - | Prisma.GenerationUpdateWithWhereUniqueWithoutImageInput - | Prisma.GenerationUpdateWithWhereUniqueWithoutImageInput[] - updateMany?: - | Prisma.GenerationUpdateManyWithWhereWithoutImageInput - | Prisma.GenerationUpdateManyWithWhereWithoutImageInput[] + update?: Prisma.GenerationUpdateWithWhereUniqueWithoutImageInput | Prisma.GenerationUpdateWithWhereUniqueWithoutImageInput[] + updateMany?: Prisma.GenerationUpdateManyWithWhereWithoutImageInput | Prisma.GenerationUpdateManyWithWhereWithoutImageInput[] deleteMany?: Prisma.GenerationScalarWhereInput | Prisma.GenerationScalarWhereInput[] } export type GenerationUncheckedUpdateManyWithoutImageNestedInput = { - create?: - | Prisma.XOR< - Prisma.GenerationCreateWithoutImageInput, - Prisma.GenerationUncheckedCreateWithoutImageInput - > - | Prisma.GenerationCreateWithoutImageInput[] - | Prisma.GenerationUncheckedCreateWithoutImageInput[] - connectOrCreate?: - | Prisma.GenerationCreateOrConnectWithoutImageInput - | Prisma.GenerationCreateOrConnectWithoutImageInput[] - upsert?: - | Prisma.GenerationUpsertWithWhereUniqueWithoutImageInput - | Prisma.GenerationUpsertWithWhereUniqueWithoutImageInput[] + create?: Prisma.XOR | Prisma.GenerationCreateWithoutImageInput[] | Prisma.GenerationUncheckedCreateWithoutImageInput[] + connectOrCreate?: Prisma.GenerationCreateOrConnectWithoutImageInput | Prisma.GenerationCreateOrConnectWithoutImageInput[] + upsert?: Prisma.GenerationUpsertWithWhereUniqueWithoutImageInput | Prisma.GenerationUpsertWithWhereUniqueWithoutImageInput[] createMany?: Prisma.GenerationCreateManyImageInputEnvelope set?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] disconnect?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] delete?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] connect?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] - update?: - | Prisma.GenerationUpdateWithWhereUniqueWithoutImageInput - | Prisma.GenerationUpdateWithWhereUniqueWithoutImageInput[] - updateMany?: - | Prisma.GenerationUpdateManyWithWhereWithoutImageInput - | Prisma.GenerationUpdateManyWithWhereWithoutImageInput[] + update?: Prisma.GenerationUpdateWithWhereUniqueWithoutImageInput | Prisma.GenerationUpdateWithWhereUniqueWithoutImageInput[] + updateMany?: Prisma.GenerationUpdateManyWithWhereWithoutImageInput | Prisma.GenerationUpdateManyWithWhereWithoutImageInput[] deleteMany?: Prisma.GenerationScalarWhereInput | Prisma.GenerationScalarWhereInput[] } export type GenerationCreateNestedManyWithoutCharacterInput = { - create?: - | Prisma.XOR< - Prisma.GenerationCreateWithoutCharacterInput, - Prisma.GenerationUncheckedCreateWithoutCharacterInput - > - | Prisma.GenerationCreateWithoutCharacterInput[] - | Prisma.GenerationUncheckedCreateWithoutCharacterInput[] - connectOrCreate?: - | Prisma.GenerationCreateOrConnectWithoutCharacterInput - | Prisma.GenerationCreateOrConnectWithoutCharacterInput[] + create?: Prisma.XOR | Prisma.GenerationCreateWithoutCharacterInput[] | Prisma.GenerationUncheckedCreateWithoutCharacterInput[] + connectOrCreate?: Prisma.GenerationCreateOrConnectWithoutCharacterInput | Prisma.GenerationCreateOrConnectWithoutCharacterInput[] createMany?: Prisma.GenerationCreateManyCharacterInputEnvelope connect?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] } export type GenerationUncheckedCreateNestedManyWithoutCharacterInput = { - create?: - | Prisma.XOR< - Prisma.GenerationCreateWithoutCharacterInput, - Prisma.GenerationUncheckedCreateWithoutCharacterInput - > - | Prisma.GenerationCreateWithoutCharacterInput[] - | Prisma.GenerationUncheckedCreateWithoutCharacterInput[] - connectOrCreate?: - | Prisma.GenerationCreateOrConnectWithoutCharacterInput - | Prisma.GenerationCreateOrConnectWithoutCharacterInput[] + create?: Prisma.XOR | Prisma.GenerationCreateWithoutCharacterInput[] | Prisma.GenerationUncheckedCreateWithoutCharacterInput[] + connectOrCreate?: Prisma.GenerationCreateOrConnectWithoutCharacterInput | Prisma.GenerationCreateOrConnectWithoutCharacterInput[] createMany?: Prisma.GenerationCreateManyCharacterInputEnvelope connect?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] } export type GenerationUpdateManyWithoutCharacterNestedInput = { - create?: - | Prisma.XOR< - Prisma.GenerationCreateWithoutCharacterInput, - Prisma.GenerationUncheckedCreateWithoutCharacterInput - > - | Prisma.GenerationCreateWithoutCharacterInput[] - | Prisma.GenerationUncheckedCreateWithoutCharacterInput[] - connectOrCreate?: - | Prisma.GenerationCreateOrConnectWithoutCharacterInput - | Prisma.GenerationCreateOrConnectWithoutCharacterInput[] - upsert?: - | Prisma.GenerationUpsertWithWhereUniqueWithoutCharacterInput - | Prisma.GenerationUpsertWithWhereUniqueWithoutCharacterInput[] + create?: Prisma.XOR | Prisma.GenerationCreateWithoutCharacterInput[] | Prisma.GenerationUncheckedCreateWithoutCharacterInput[] + connectOrCreate?: Prisma.GenerationCreateOrConnectWithoutCharacterInput | Prisma.GenerationCreateOrConnectWithoutCharacterInput[] + upsert?: Prisma.GenerationUpsertWithWhereUniqueWithoutCharacterInput | Prisma.GenerationUpsertWithWhereUniqueWithoutCharacterInput[] createMany?: Prisma.GenerationCreateManyCharacterInputEnvelope set?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] disconnect?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] delete?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] connect?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] - update?: - | Prisma.GenerationUpdateWithWhereUniqueWithoutCharacterInput - | Prisma.GenerationUpdateWithWhereUniqueWithoutCharacterInput[] - updateMany?: - | Prisma.GenerationUpdateManyWithWhereWithoutCharacterInput - | Prisma.GenerationUpdateManyWithWhereWithoutCharacterInput[] + update?: Prisma.GenerationUpdateWithWhereUniqueWithoutCharacterInput | Prisma.GenerationUpdateWithWhereUniqueWithoutCharacterInput[] + updateMany?: Prisma.GenerationUpdateManyWithWhereWithoutCharacterInput | Prisma.GenerationUpdateManyWithWhereWithoutCharacterInput[] deleteMany?: Prisma.GenerationScalarWhereInput | Prisma.GenerationScalarWhereInput[] } export type GenerationUncheckedUpdateManyWithoutCharacterNestedInput = { - create?: - | Prisma.XOR< - Prisma.GenerationCreateWithoutCharacterInput, - Prisma.GenerationUncheckedCreateWithoutCharacterInput - > - | Prisma.GenerationCreateWithoutCharacterInput[] - | Prisma.GenerationUncheckedCreateWithoutCharacterInput[] - connectOrCreate?: - | Prisma.GenerationCreateOrConnectWithoutCharacterInput - | Prisma.GenerationCreateOrConnectWithoutCharacterInput[] - upsert?: - | Prisma.GenerationUpsertWithWhereUniqueWithoutCharacterInput - | Prisma.GenerationUpsertWithWhereUniqueWithoutCharacterInput[] + create?: Prisma.XOR | Prisma.GenerationCreateWithoutCharacterInput[] | Prisma.GenerationUncheckedCreateWithoutCharacterInput[] + connectOrCreate?: Prisma.GenerationCreateOrConnectWithoutCharacterInput | Prisma.GenerationCreateOrConnectWithoutCharacterInput[] + upsert?: Prisma.GenerationUpsertWithWhereUniqueWithoutCharacterInput | Prisma.GenerationUpsertWithWhereUniqueWithoutCharacterInput[] createMany?: Prisma.GenerationCreateManyCharacterInputEnvelope set?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] disconnect?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] delete?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] connect?: Prisma.GenerationWhereUniqueInput | Prisma.GenerationWhereUniqueInput[] - update?: - | Prisma.GenerationUpdateWithWhereUniqueWithoutCharacterInput - | Prisma.GenerationUpdateWithWhereUniqueWithoutCharacterInput[] - updateMany?: - | Prisma.GenerationUpdateManyWithWhereWithoutCharacterInput - | Prisma.GenerationUpdateManyWithWhereWithoutCharacterInput[] + update?: Prisma.GenerationUpdateWithWhereUniqueWithoutCharacterInput | Prisma.GenerationUpdateWithWhereUniqueWithoutCharacterInput[] + updateMany?: Prisma.GenerationUpdateManyWithWhereWithoutCharacterInput | Prisma.GenerationUpdateManyWithWhereWithoutCharacterInput[] deleteMany?: Prisma.GenerationScalarWhereInput | Prisma.GenerationScalarWhereInput[] } export type GenerationCreateNestedOneWithoutEquipmentsInput = { - create?: Prisma.XOR< - Prisma.GenerationCreateWithoutEquipmentsInput, - Prisma.GenerationUncheckedCreateWithoutEquipmentsInput - > + create?: Prisma.XOR connectOrCreate?: Prisma.GenerationCreateOrConnectWithoutEquipmentsInput connect?: Prisma.GenerationWhereUniqueInput } export type GenerationUpdateOneRequiredWithoutEquipmentsNestedInput = { - create?: Prisma.XOR< - Prisma.GenerationCreateWithoutEquipmentsInput, - Prisma.GenerationUncheckedCreateWithoutEquipmentsInput - > + create?: Prisma.XOR connectOrCreate?: Prisma.GenerationCreateOrConnectWithoutEquipmentsInput upsert?: Prisma.GenerationUpsertWithoutEquipmentsInput connect?: Prisma.GenerationWhereUniqueInput - update?: Prisma.XOR< - Prisma.XOR< - Prisma.GenerationUpdateToOneWithWhereWithoutEquipmentsInput, - Prisma.GenerationUpdateWithoutEquipmentsInput - >, - Prisma.GenerationUncheckedUpdateWithoutEquipmentsInput - > + update?: Prisma.XOR, Prisma.GenerationUncheckedUpdateWithoutEquipmentsInput> } export type GenerationCreateWithoutImageInput = { @@ -552,10 +447,7 @@ export type GenerationUncheckedCreateWithoutImageInput = { export type GenerationCreateOrConnectWithoutImageInput = { where: Prisma.GenerationWhereUniqueInput - create: Prisma.XOR< - Prisma.GenerationCreateWithoutImageInput, - Prisma.GenerationUncheckedCreateWithoutImageInput - > + create: Prisma.XOR } export type GenerationCreateManyImageInputEnvelope = { @@ -564,41 +456,29 @@ export type GenerationCreateManyImageInputEnvelope = { export type GenerationUpsertWithWhereUniqueWithoutImageInput = { where: Prisma.GenerationWhereUniqueInput - update: Prisma.XOR< - Prisma.GenerationUpdateWithoutImageInput, - Prisma.GenerationUncheckedUpdateWithoutImageInput - > - create: Prisma.XOR< - Prisma.GenerationCreateWithoutImageInput, - Prisma.GenerationUncheckedCreateWithoutImageInput - > + update: Prisma.XOR + create: Prisma.XOR } export type GenerationUpdateWithWhereUniqueWithoutImageInput = { where: Prisma.GenerationWhereUniqueInput - data: Prisma.XOR< - Prisma.GenerationUpdateWithoutImageInput, - Prisma.GenerationUncheckedUpdateWithoutImageInput - > + data: Prisma.XOR } export type GenerationUpdateManyWithWhereWithoutImageInput = { where: Prisma.GenerationScalarWhereInput - data: Prisma.XOR< - Prisma.GenerationUpdateManyMutationInput, - Prisma.GenerationUncheckedUpdateManyWithoutImageInput - > + data: Prisma.XOR } export type GenerationScalarWhereInput = { AND?: Prisma.GenerationScalarWhereInput | Prisma.GenerationScalarWhereInput[] OR?: Prisma.GenerationScalarWhereInput[] NOT?: Prisma.GenerationScalarWhereInput | Prisma.GenerationScalarWhereInput[] - id?: Prisma.StringFilter<'Generation'> | string - characterId?: Prisma.StringFilter<'Generation'> | string - imageId?: Prisma.StringFilter<'Generation'> | string - createdAt?: Prisma.DateTimeFilter<'Generation'> | Date | string - updatedAt?: Prisma.DateTimeFilter<'Generation'> | Date | string + id?: Prisma.StringFilter<"Generation"> | string + characterId?: Prisma.StringFilter<"Generation"> | string + imageId?: Prisma.StringFilter<"Generation"> | string + createdAt?: Prisma.DateTimeFilter<"Generation"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Generation"> | Date | string } export type GenerationCreateWithoutCharacterInput = { @@ -619,10 +499,7 @@ export type GenerationUncheckedCreateWithoutCharacterInput = { export type GenerationCreateOrConnectWithoutCharacterInput = { where: Prisma.GenerationWhereUniqueInput - create: Prisma.XOR< - Prisma.GenerationCreateWithoutCharacterInput, - Prisma.GenerationUncheckedCreateWithoutCharacterInput - > + create: Prisma.XOR } export type GenerationCreateManyCharacterInputEnvelope = { @@ -631,30 +508,18 @@ export type GenerationCreateManyCharacterInputEnvelope = { export type GenerationUpsertWithWhereUniqueWithoutCharacterInput = { where: Prisma.GenerationWhereUniqueInput - update: Prisma.XOR< - Prisma.GenerationUpdateWithoutCharacterInput, - Prisma.GenerationUncheckedUpdateWithoutCharacterInput - > - create: Prisma.XOR< - Prisma.GenerationCreateWithoutCharacterInput, - Prisma.GenerationUncheckedCreateWithoutCharacterInput - > + update: Prisma.XOR + create: Prisma.XOR } export type GenerationUpdateWithWhereUniqueWithoutCharacterInput = { where: Prisma.GenerationWhereUniqueInput - data: Prisma.XOR< - Prisma.GenerationUpdateWithoutCharacterInput, - Prisma.GenerationUncheckedUpdateWithoutCharacterInput - > + data: Prisma.XOR } export type GenerationUpdateManyWithWhereWithoutCharacterInput = { where: Prisma.GenerationScalarWhereInput - data: Prisma.XOR< - Prisma.GenerationUpdateManyMutationInput, - Prisma.GenerationUncheckedUpdateManyWithoutCharacterInput - > + data: Prisma.XOR } export type GenerationCreateWithoutEquipmentsInput = { @@ -675,30 +540,18 @@ export type GenerationUncheckedCreateWithoutEquipmentsInput = { export type GenerationCreateOrConnectWithoutEquipmentsInput = { where: Prisma.GenerationWhereUniqueInput - create: Prisma.XOR< - Prisma.GenerationCreateWithoutEquipmentsInput, - Prisma.GenerationUncheckedCreateWithoutEquipmentsInput - > + create: Prisma.XOR } export type GenerationUpsertWithoutEquipmentsInput = { - update: Prisma.XOR< - Prisma.GenerationUpdateWithoutEquipmentsInput, - Prisma.GenerationUncheckedUpdateWithoutEquipmentsInput - > - create: Prisma.XOR< - Prisma.GenerationCreateWithoutEquipmentsInput, - Prisma.GenerationUncheckedCreateWithoutEquipmentsInput - > + update: Prisma.XOR + create: Prisma.XOR where?: Prisma.GenerationWhereInput } export type GenerationUpdateToOneWithWhereWithoutEquipmentsInput = { where?: Prisma.GenerationWhereInput - data: Prisma.XOR< - Prisma.GenerationUpdateWithoutEquipmentsInput, - Prisma.GenerationUncheckedUpdateWithoutEquipmentsInput - > + data: Prisma.XOR } export type GenerationUpdateWithoutEquipmentsInput = { @@ -777,6 +630,7 @@ export type GenerationUncheckedUpdateManyWithoutCharacterInput = { updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } + /** * Count Type GenerationCountOutputType */ @@ -785,18 +639,14 @@ export type GenerationCountOutputType = { equipments: number } -export type GenerationCountOutputTypeSelect< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationCountOutputTypeSelect = { equipments?: boolean | GenerationCountOutputTypeCountEquipmentsArgs } /** * GenerationCountOutputType without action */ -export type GenerationCountOutputTypeDefaultArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the GenerationCountOutputType */ @@ -806,58 +656,42 @@ export type GenerationCountOutputTypeDefaultArgs< /** * GenerationCountOutputType without action */ -export type GenerationCountOutputTypeCountEquipmentsArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationCountOutputTypeCountEquipmentsArgs = { where?: Prisma.GenerationEquipmentWhereInput } -export type GenerationSelect< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - id?: boolean - characterId?: boolean - imageId?: boolean - createdAt?: boolean - updatedAt?: boolean - character?: boolean | Prisma.CharacterDefaultArgs - image?: boolean | Prisma.AssetDefaultArgs - equipments?: boolean | Prisma.Generation$equipmentsArgs - _count?: boolean | Prisma.GenerationCountOutputTypeDefaultArgs - }, - ExtArgs['result']['generation'] -> -export type GenerationSelectCreateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - id?: boolean - characterId?: boolean - imageId?: boolean - createdAt?: boolean - updatedAt?: boolean - character?: boolean | Prisma.CharacterDefaultArgs - image?: boolean | Prisma.AssetDefaultArgs - }, - ExtArgs['result']['generation'] -> +export type GenerationSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + characterId?: boolean + imageId?: boolean + createdAt?: boolean + updatedAt?: boolean + character?: boolean | Prisma.CharacterDefaultArgs + image?: boolean | Prisma.AssetDefaultArgs + equipments?: boolean | Prisma.Generation$equipmentsArgs + _count?: boolean | Prisma.GenerationCountOutputTypeDefaultArgs +}, ExtArgs["result"]["generation"]> -export type GenerationSelectUpdateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - id?: boolean - characterId?: boolean - imageId?: boolean - createdAt?: boolean - updatedAt?: boolean - character?: boolean | Prisma.CharacterDefaultArgs - image?: boolean | Prisma.AssetDefaultArgs - }, - ExtArgs['result']['generation'] -> +export type GenerationSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + characterId?: boolean + imageId?: boolean + createdAt?: boolean + updatedAt?: boolean + character?: boolean | Prisma.CharacterDefaultArgs + image?: boolean | Prisma.AssetDefaultArgs +}, ExtArgs["result"]["generation"]> + +export type GenerationSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + characterId?: boolean + imageId?: boolean + createdAt?: boolean + updatedAt?: boolean + character?: boolean | Prisma.CharacterDefaultArgs + image?: boolean | Prisma.AssetDefaultArgs +}, ExtArgs["result"]["generation"]> export type GenerationSelectScalar = { id?: boolean @@ -867,72 +701,48 @@ export type GenerationSelectScalar = { updatedAt?: boolean } -export type GenerationOmit< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetOmit< - 'id' | 'characterId' | 'imageId' | 'createdAt' | 'updatedAt', - ExtArgs['result']['generation'] -> -export type GenerationInclude< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationOmit = runtime.Types.Extensions.GetOmit<"id" | "characterId" | "imageId" | "createdAt" | "updatedAt", ExtArgs["result"]["generation"]> +export type GenerationInclude = { character?: boolean | Prisma.CharacterDefaultArgs image?: boolean | Prisma.AssetDefaultArgs equipments?: boolean | Prisma.Generation$equipmentsArgs _count?: boolean | Prisma.GenerationCountOutputTypeDefaultArgs } -export type GenerationIncludeCreateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationIncludeCreateManyAndReturn = { character?: boolean | Prisma.CharacterDefaultArgs image?: boolean | Prisma.AssetDefaultArgs } -export type GenerationIncludeUpdateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationIncludeUpdateManyAndReturn = { character?: boolean | Prisma.CharacterDefaultArgs image?: boolean | Prisma.AssetDefaultArgs } -export type $GenerationPayload< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - name: 'Generation' +export type $GenerationPayload = { + name: "Generation" objects: { character: Prisma.$CharacterPayload image: Prisma.$AssetPayload equipments: Prisma.$GenerationEquipmentPayload[] } - scalars: runtime.Types.Extensions.GetPayloadResult< - { - id: string - characterId: string - imageId: string - createdAt: Date - updatedAt: Date - }, - ExtArgs['result']['generation'] - > + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + characterId: string + imageId: string + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["generation"]> composites: {} } -export type GenerationGetPayload = - runtime.Types.Result.GetResult +export type GenerationGetPayload = runtime.Types.Result.GetResult -export type GenerationCountArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = Omit & { - select?: GenerationCountAggregateInputType | true -} - -export interface GenerationDelegate< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, - GlobalOmitOptions = {}, -> { - [K: symbol]: { - types: Prisma.TypeMap['model']['Generation'] - meta: { name: 'Generation' } +export type GenerationCountArgs = + Omit & { + select?: GenerationCountAggregateInputType | true } + +export interface GenerationDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Generation'], meta: { name: 'Generation' } } /** * Find zero or one Generation that matches the filter. * @param {GenerationFindUniqueArgs} args - Arguments to find a Generation @@ -944,19 +754,7 @@ export interface GenerationDelegate< * } * }) */ - findUnique( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__GenerationClient< - runtime.Types.Result.GetResult< - Prisma.$GenerationPayload, - T, - 'findUnique', - GlobalOmitOptions - > | null, - null, - ExtArgs, - GlobalOmitOptions - > + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__GenerationClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Generation that matches the filter or throw an error with `error.code='P2025'` @@ -970,19 +768,7 @@ export interface GenerationDelegate< * } * }) */ - findUniqueOrThrow( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__GenerationClient< - runtime.Types.Result.GetResult< - Prisma.$GenerationPayload, - T, - 'findUniqueOrThrow', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__GenerationClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Generation that matches the filter. @@ -997,19 +783,7 @@ export interface GenerationDelegate< * } * }) */ - findFirst( - args?: Prisma.SelectSubset>, - ): Prisma.Prisma__GenerationClient< - runtime.Types.Result.GetResult< - Prisma.$GenerationPayload, - T, - 'findFirst', - GlobalOmitOptions - > | null, - null, - ExtArgs, - GlobalOmitOptions - > + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__GenerationClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Generation that matches the filter or @@ -1025,19 +799,7 @@ export interface GenerationDelegate< * } * }) */ - findFirstOrThrow( - args?: Prisma.SelectSubset>, - ): Prisma.Prisma__GenerationClient< - runtime.Types.Result.GetResult< - Prisma.$GenerationPayload, - T, - 'findFirstOrThrow', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__GenerationClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Generations that matches the filter. @@ -1055,16 +817,7 @@ export interface GenerationDelegate< * const generationWithIdOnly = await prisma.generation.findMany({ select: { id: true } }) * */ - findMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$GenerationPayload, - T, - 'findMany', - GlobalOmitOptions - > - > + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Generation. @@ -1078,19 +831,7 @@ export interface GenerationDelegate< * }) * */ - create( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__GenerationClient< - runtime.Types.Result.GetResult< - Prisma.$GenerationPayload, - T, - 'create', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + create(args: Prisma.SelectSubset>): Prisma.Prisma__GenerationClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Generations. @@ -1104,9 +845,7 @@ export interface GenerationDelegate< * }) * */ - createMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Generations and returns the data saved in the database. @@ -1130,16 +869,7 @@ export interface GenerationDelegate< * Read more here: https://pris.ly/d/null-undefined * */ - createManyAndReturn( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$GenerationPayload, - T, - 'createManyAndReturn', - GlobalOmitOptions - > - > + createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Generation. @@ -1153,19 +883,7 @@ export interface GenerationDelegate< * }) * */ - delete( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__GenerationClient< - runtime.Types.Result.GetResult< - Prisma.$GenerationPayload, - T, - 'delete', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + delete(args: Prisma.SelectSubset>): Prisma.Prisma__GenerationClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Generation. @@ -1182,19 +900,7 @@ export interface GenerationDelegate< * }) * */ - update( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__GenerationClient< - runtime.Types.Result.GetResult< - Prisma.$GenerationPayload, - T, - 'update', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + update(args: Prisma.SelectSubset>): Prisma.Prisma__GenerationClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Generations. @@ -1208,9 +914,7 @@ export interface GenerationDelegate< * }) * */ - deleteMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Generations. @@ -1229,9 +933,7 @@ export interface GenerationDelegate< * }) * */ - updateMany( - args: Prisma.SelectSubset>, - ): Prisma.PrismaPromise + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Generations and returns the data updated in the database. @@ -1261,16 +963,7 @@ export interface GenerationDelegate< * Read more here: https://pris.ly/d/null-undefined * */ - updateManyAndReturn( - args: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$GenerationPayload, - T, - 'updateManyAndReturn', - GlobalOmitOptions - > - > + updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Generation. @@ -1289,19 +982,8 @@ export interface GenerationDelegate< * } * }) */ - upsert( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__GenerationClient< - runtime.Types.Result.GetResult< - Prisma.$GenerationPayload, - T, - 'upsert', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__GenerationClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + /** * Count the number of Generations. @@ -1315,7 +997,7 @@ export interface GenerationDelegate< * // ... the filter for the Generations we want to count * } * }) - **/ + **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< @@ -1349,10 +1031,8 @@ export interface GenerationDelegate< * }, * take: 10, * }) - **/ - aggregate( - args: Prisma.Subset, - ): Prisma.PrismaPromise> + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Generation. @@ -1371,7 +1051,7 @@ export interface GenerationDelegate< * }, * }) * - **/ + **/ groupBy< T extends GenerationGroupByArgs, HasSelectOrTake extends Prisma.Or< @@ -1381,58 +1061,59 @@ export interface GenerationDelegate< OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: GenerationGroupByArgs['orderBy'] } : { orderBy?: GenerationGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys< - Prisma.Keys> - >, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields], - >( - args: Prisma.SubsetIntersection & InputErrors, - ): {} extends InputErrors ? GetGenerationGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Generation model - */ - readonly fields: GenerationFieldRefs + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetGenerationGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Generation model + */ +readonly fields: GenerationFieldRefs; } /** @@ -1441,70 +1122,24 @@ export interface GenerationDelegate< * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ -export interface Prisma__GenerationClient< - T, - Null = never, - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, - GlobalOmitOptions = {}, -> extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: 'PrismaPromise' - character = {}>( - args?: Prisma.Subset>, - ): Prisma.Prisma__CharacterClient< - | runtime.Types.Result.GetResult< - Prisma.$CharacterPayload, - T, - 'findUniqueOrThrow', - GlobalOmitOptions - > - | Null, - Null, - ExtArgs, - GlobalOmitOptions - > - image = {}>( - args?: Prisma.Subset>, - ): Prisma.Prisma__AssetClient< - | runtime.Types.Result.GetResult< - Prisma.$AssetPayload, - T, - 'findUniqueOrThrow', - GlobalOmitOptions - > - | Null, - Null, - ExtArgs, - GlobalOmitOptions - > - equipments = {}>( - args?: Prisma.Subset>, - ): Prisma.PrismaPromise< - | runtime.Types.Result.GetResult< - Prisma.$GenerationEquipmentPayload, - T, - 'findMany', - GlobalOmitOptions - > - | Null - > +export interface Prisma__GenerationClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + character = {}>(args?: Prisma.Subset>): Prisma.Prisma__CharacterClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + image = {}>(args?: Prisma.Subset>): Prisma.Prisma__AssetClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + equipments = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ - then( - onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, - onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, - ): runtime.Types.Utils.JsPromise + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ - catch( - onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, - ): runtime.Types.Utils.JsPromise + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. @@ -1514,24 +1149,26 @@ export interface Prisma__GenerationClient< finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } + + + /** * Fields of the Generation model */ export interface GenerationFieldRefs { - readonly id: Prisma.FieldRef<'Generation', 'String'> - readonly characterId: Prisma.FieldRef<'Generation', 'String'> - readonly imageId: Prisma.FieldRef<'Generation', 'String'> - readonly createdAt: Prisma.FieldRef<'Generation', 'DateTime'> - readonly updatedAt: Prisma.FieldRef<'Generation', 'DateTime'> + readonly id: Prisma.FieldRef<"Generation", 'String'> + readonly characterId: Prisma.FieldRef<"Generation", 'String'> + readonly imageId: Prisma.FieldRef<"Generation", 'String'> + readonly createdAt: Prisma.FieldRef<"Generation", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Generation", 'DateTime'> } + // Custom InputTypes /** * Generation findUnique */ -export type GenerationFindUniqueArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationFindUniqueArgs = { /** * Select specific fields to fetch from the Generation */ @@ -1553,9 +1190,7 @@ export type GenerationFindUniqueArgs< /** * Generation findUniqueOrThrow */ -export type GenerationFindUniqueOrThrowArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Generation */ @@ -1577,9 +1212,7 @@ export type GenerationFindUniqueOrThrowArgs< /** * Generation findFirst */ -export type GenerationFindFirstArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationFindFirstArgs = { /** * Select specific fields to fetch from the Generation */ @@ -1631,9 +1264,7 @@ export type GenerationFindFirstArgs< /** * Generation findFirstOrThrow */ -export type GenerationFindFirstOrThrowArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Generation */ @@ -1685,9 +1316,7 @@ export type GenerationFindFirstOrThrowArgs< /** * Generation findMany */ -export type GenerationFindManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationFindManyArgs = { /** * Select specific fields to fetch from the Generation */ @@ -1734,9 +1363,7 @@ export type GenerationFindManyArgs< /** * Generation create */ -export type GenerationCreateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationCreateArgs = { /** * Select specific fields to fetch from the Generation */ @@ -1758,9 +1385,7 @@ export type GenerationCreateArgs< /** * Generation createMany */ -export type GenerationCreateManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationCreateManyArgs = { /** * The data used to create many Generations. */ @@ -1770,9 +1395,7 @@ export type GenerationCreateManyArgs< /** * Generation createManyAndReturn */ -export type GenerationCreateManyAndReturnArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Generation */ @@ -1794,9 +1417,7 @@ export type GenerationCreateManyAndReturnArgs< /** * Generation update */ -export type GenerationUpdateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationUpdateArgs = { /** * Select specific fields to fetch from the Generation */ @@ -1822,16 +1443,11 @@ export type GenerationUpdateArgs< /** * Generation updateMany */ -export type GenerationUpdateManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationUpdateManyArgs = { /** * The data used to update Generations. */ - data: Prisma.XOR< - Prisma.GenerationUpdateManyMutationInput, - Prisma.GenerationUncheckedUpdateManyInput - > + data: Prisma.XOR /** * Filter which Generations to update */ @@ -1845,9 +1461,7 @@ export type GenerationUpdateManyArgs< /** * Generation updateManyAndReturn */ -export type GenerationUpdateManyAndReturnArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Generation */ @@ -1859,10 +1473,7 @@ export type GenerationUpdateManyAndReturnArgs< /** * The data used to update Generations. */ - data: Prisma.XOR< - Prisma.GenerationUpdateManyMutationInput, - Prisma.GenerationUncheckedUpdateManyInput - > + data: Prisma.XOR /** * Filter which Generations to update */ @@ -1880,9 +1491,7 @@ export type GenerationUpdateManyAndReturnArgs< /** * Generation upsert */ -export type GenerationUpsertArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationUpsertArgs = { /** * Select specific fields to fetch from the Generation */ @@ -1912,9 +1521,7 @@ export type GenerationUpsertArgs< /** * Generation delete */ -export type GenerationDeleteArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationDeleteArgs = { /** * Select specific fields to fetch from the Generation */ @@ -1936,9 +1543,7 @@ export type GenerationDeleteArgs< /** * Generation deleteMany */ -export type GenerationDeleteManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationDeleteManyArgs = { /** * Filter which Generations to delete */ @@ -1952,9 +1557,7 @@ export type GenerationDeleteManyArgs< /** * Generation.equipments */ -export type Generation$equipmentsArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type Generation$equipmentsArgs = { /** * Select specific fields to fetch from the GenerationEquipment */ @@ -1968,9 +1571,7 @@ export type Generation$equipmentsArgs< */ include?: Prisma.GenerationEquipmentInclude | null where?: Prisma.GenerationEquipmentWhereInput - orderBy?: - | Prisma.GenerationEquipmentOrderByWithRelationInput - | Prisma.GenerationEquipmentOrderByWithRelationInput[] + orderBy?: Prisma.GenerationEquipmentOrderByWithRelationInput | Prisma.GenerationEquipmentOrderByWithRelationInput[] cursor?: Prisma.GenerationEquipmentWhereUniqueInput take?: number skip?: number @@ -1980,9 +1581,7 @@ export type Generation$equipmentsArgs< /** * Generation without action */ -export type GenerationDefaultArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationDefaultArgs = { /** * Select specific fields to fetch from the Generation */ diff --git a/src/generated/prisma/models/GenerationEquipment.ts b/src/generated/prisma/models/GenerationEquipment.ts index f8208f5..291194a 100644 --- a/src/generated/prisma/models/GenerationEquipment.ts +++ b/src/generated/prisma/models/GenerationEquipment.ts @@ -1,3 +1,4 @@ + /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file @@ -7,16 +8,15 @@ * * 🟢 You can import this file directly. */ -import type * as runtime from '@prisma/client/runtime/client' -import type * as $Enums from '../enums.ts' -import type * as Prisma from '../internal/prismaNamespace.ts' +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model GenerationEquipment * */ -export type GenerationEquipmentModel = - runtime.Types.Result.DefaultSelection +export type GenerationEquipmentModel = runtime.Types.Result.DefaultSelection export type AggregateGenerationEquipment = { _count: GenerationEquipmentCountAggregateOutputType | null @@ -40,6 +40,7 @@ export type GenerationEquipmentCountAggregateOutputType = { _all: number } + export type GenerationEquipmentMinAggregateInputType = { generationId?: true equipmentId?: true @@ -56,9 +57,7 @@ export type GenerationEquipmentCountAggregateInputType = { _all?: true } -export type GenerationEquipmentAggregateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentAggregateArgs = { /** * Filter which GenerationEquipment to aggregate. */ @@ -68,9 +67,7 @@ export type GenerationEquipmentAggregateArgs< * * Determine the order of GenerationEquipments to fetch. */ - orderBy?: - | Prisma.GenerationEquipmentOrderByWithRelationInput - | Prisma.GenerationEquipmentOrderByWithRelationInput[] + orderBy?: Prisma.GenerationEquipmentOrderByWithRelationInput | Prisma.GenerationEquipmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * @@ -93,37 +90,36 @@ export type GenerationEquipmentAggregateArgs< * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned GenerationEquipments - **/ + **/ _count?: true | GenerationEquipmentCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value - **/ + **/ _min?: GenerationEquipmentMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value - **/ + **/ _max?: GenerationEquipmentMaxAggregateInputType } export type GetGenerationEquipmentAggregateType = { - [P in keyof T & keyof AggregateGenerationEquipment]: P extends '_count' | 'count' + [P in keyof T & keyof AggregateGenerationEquipment]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } -export type GenerationEquipmentGroupByArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { + + + +export type GenerationEquipmentGroupByArgs = { where?: Prisma.GenerationEquipmentWhereInput - orderBy?: - | Prisma.GenerationEquipmentOrderByWithAggregationInput - | Prisma.GenerationEquipmentOrderByWithAggregationInput[] + orderBy?: Prisma.GenerationEquipmentOrderByWithAggregationInput | Prisma.GenerationEquipmentOrderByWithAggregationInput[] by: Prisma.GenerationEquipmentScalarFieldEnum[] | Prisma.GenerationEquipmentScalarFieldEnum having?: Prisma.GenerationEquipmentScalarWhereWithAggregatesInput take?: number @@ -141,11 +137,11 @@ export type GenerationEquipmentGroupByOutputType = { _max: GenerationEquipmentMaxAggregateOutputType | null } -type GetGenerationEquipmentGroupByPayload = - Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & { - [P in keyof T & keyof GenerationEquipmentGroupByOutputType]: P extends '_count' +type GetGenerationEquipmentGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof GenerationEquipmentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType @@ -154,12 +150,14 @@ type GetGenerationEquipmentGroupByPayload > + + export type GenerationEquipmentWhereInput = { AND?: Prisma.GenerationEquipmentWhereInput | Prisma.GenerationEquipmentWhereInput[] OR?: Prisma.GenerationEquipmentWhereInput[] NOT?: Prisma.GenerationEquipmentWhereInput | Prisma.GenerationEquipmentWhereInput[] - generationId?: Prisma.StringFilter<'GenerationEquipment'> | string - equipmentId?: Prisma.StringFilter<'GenerationEquipment'> | string + generationId?: Prisma.StringFilter<"GenerationEquipment"> | string + equipmentId?: Prisma.StringFilter<"GenerationEquipment"> | string generation?: Prisma.XOR equipment?: Prisma.XOR } @@ -171,19 +169,16 @@ export type GenerationEquipmentOrderByWithRelationInput = { equipment?: Prisma.EquipmentOrderByWithRelationInput } -export type GenerationEquipmentWhereUniqueInput = Prisma.AtLeast< - { - generationId_equipmentId?: Prisma.GenerationEquipmentGenerationIdEquipmentIdCompoundUniqueInput - AND?: Prisma.GenerationEquipmentWhereInput | Prisma.GenerationEquipmentWhereInput[] - OR?: Prisma.GenerationEquipmentWhereInput[] - NOT?: Prisma.GenerationEquipmentWhereInput | Prisma.GenerationEquipmentWhereInput[] - generationId?: Prisma.StringFilter<'GenerationEquipment'> | string - equipmentId?: Prisma.StringFilter<'GenerationEquipment'> | string - generation?: Prisma.XOR - equipment?: Prisma.XOR - }, - 'generationId_equipmentId' -> +export type GenerationEquipmentWhereUniqueInput = Prisma.AtLeast<{ + generationId_equipmentId?: Prisma.GenerationEquipmentGenerationIdEquipmentIdCompoundUniqueInput + AND?: Prisma.GenerationEquipmentWhereInput | Prisma.GenerationEquipmentWhereInput[] + OR?: Prisma.GenerationEquipmentWhereInput[] + NOT?: Prisma.GenerationEquipmentWhereInput | Prisma.GenerationEquipmentWhereInput[] + generationId?: Prisma.StringFilter<"GenerationEquipment"> | string + equipmentId?: Prisma.StringFilter<"GenerationEquipment"> | string + generation?: Prisma.XOR + equipment?: Prisma.XOR +}, "generationId_equipmentId"> export type GenerationEquipmentOrderByWithAggregationInput = { generationId?: Prisma.SortOrder @@ -194,15 +189,11 @@ export type GenerationEquipmentOrderByWithAggregationInput = { } export type GenerationEquipmentScalarWhereWithAggregatesInput = { - AND?: - | Prisma.GenerationEquipmentScalarWhereWithAggregatesInput - | Prisma.GenerationEquipmentScalarWhereWithAggregatesInput[] + AND?: Prisma.GenerationEquipmentScalarWhereWithAggregatesInput | Prisma.GenerationEquipmentScalarWhereWithAggregatesInput[] OR?: Prisma.GenerationEquipmentScalarWhereWithAggregatesInput[] - NOT?: - | Prisma.GenerationEquipmentScalarWhereWithAggregatesInput - | Prisma.GenerationEquipmentScalarWhereWithAggregatesInput[] - generationId?: Prisma.StringWithAggregatesFilter<'GenerationEquipment'> | string - equipmentId?: Prisma.StringWithAggregatesFilter<'GenerationEquipment'> | string + NOT?: Prisma.GenerationEquipmentScalarWhereWithAggregatesInput | Prisma.GenerationEquipmentScalarWhereWithAggregatesInput[] + generationId?: Prisma.StringWithAggregatesFilter<"GenerationEquipment"> | string + equipmentId?: Prisma.StringWithAggregatesFilter<"GenerationEquipment"> | string } export type GenerationEquipmentCreateInput = { @@ -230,7 +221,9 @@ export type GenerationEquipmentCreateManyInput = { equipmentId: string } -export type GenerationEquipmentUpdateManyMutationInput = {} +export type GenerationEquipmentUpdateManyMutationInput = { + +} export type GenerationEquipmentUncheckedUpdateManyInput = { generationId?: Prisma.StringFieldUpdateOperationsInput | string @@ -268,207 +261,87 @@ export type GenerationEquipmentMinOrderByAggregateInput = { } export type GenerationEquipmentCreateNestedManyWithoutEquipmentInput = { - create?: - | Prisma.XOR< - Prisma.GenerationEquipmentCreateWithoutEquipmentInput, - Prisma.GenerationEquipmentUncheckedCreateWithoutEquipmentInput - > - | Prisma.GenerationEquipmentCreateWithoutEquipmentInput[] - | Prisma.GenerationEquipmentUncheckedCreateWithoutEquipmentInput[] - connectOrCreate?: - | Prisma.GenerationEquipmentCreateOrConnectWithoutEquipmentInput - | Prisma.GenerationEquipmentCreateOrConnectWithoutEquipmentInput[] + create?: Prisma.XOR | Prisma.GenerationEquipmentCreateWithoutEquipmentInput[] | Prisma.GenerationEquipmentUncheckedCreateWithoutEquipmentInput[] + connectOrCreate?: Prisma.GenerationEquipmentCreateOrConnectWithoutEquipmentInput | Prisma.GenerationEquipmentCreateOrConnectWithoutEquipmentInput[] createMany?: Prisma.GenerationEquipmentCreateManyEquipmentInputEnvelope - connect?: - | Prisma.GenerationEquipmentWhereUniqueInput - | Prisma.GenerationEquipmentWhereUniqueInput[] + connect?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] } export type GenerationEquipmentUncheckedCreateNestedManyWithoutEquipmentInput = { - create?: - | Prisma.XOR< - Prisma.GenerationEquipmentCreateWithoutEquipmentInput, - Prisma.GenerationEquipmentUncheckedCreateWithoutEquipmentInput - > - | Prisma.GenerationEquipmentCreateWithoutEquipmentInput[] - | Prisma.GenerationEquipmentUncheckedCreateWithoutEquipmentInput[] - connectOrCreate?: - | Prisma.GenerationEquipmentCreateOrConnectWithoutEquipmentInput - | Prisma.GenerationEquipmentCreateOrConnectWithoutEquipmentInput[] + create?: Prisma.XOR | Prisma.GenerationEquipmentCreateWithoutEquipmentInput[] | Prisma.GenerationEquipmentUncheckedCreateWithoutEquipmentInput[] + connectOrCreate?: Prisma.GenerationEquipmentCreateOrConnectWithoutEquipmentInput | Prisma.GenerationEquipmentCreateOrConnectWithoutEquipmentInput[] createMany?: Prisma.GenerationEquipmentCreateManyEquipmentInputEnvelope - connect?: - | Prisma.GenerationEquipmentWhereUniqueInput - | Prisma.GenerationEquipmentWhereUniqueInput[] + connect?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] } export type GenerationEquipmentUpdateManyWithoutEquipmentNestedInput = { - create?: - | Prisma.XOR< - Prisma.GenerationEquipmentCreateWithoutEquipmentInput, - Prisma.GenerationEquipmentUncheckedCreateWithoutEquipmentInput - > - | Prisma.GenerationEquipmentCreateWithoutEquipmentInput[] - | Prisma.GenerationEquipmentUncheckedCreateWithoutEquipmentInput[] - connectOrCreate?: - | Prisma.GenerationEquipmentCreateOrConnectWithoutEquipmentInput - | Prisma.GenerationEquipmentCreateOrConnectWithoutEquipmentInput[] - upsert?: - | Prisma.GenerationEquipmentUpsertWithWhereUniqueWithoutEquipmentInput - | Prisma.GenerationEquipmentUpsertWithWhereUniqueWithoutEquipmentInput[] + create?: Prisma.XOR | Prisma.GenerationEquipmentCreateWithoutEquipmentInput[] | Prisma.GenerationEquipmentUncheckedCreateWithoutEquipmentInput[] + connectOrCreate?: Prisma.GenerationEquipmentCreateOrConnectWithoutEquipmentInput | Prisma.GenerationEquipmentCreateOrConnectWithoutEquipmentInput[] + upsert?: Prisma.GenerationEquipmentUpsertWithWhereUniqueWithoutEquipmentInput | Prisma.GenerationEquipmentUpsertWithWhereUniqueWithoutEquipmentInput[] createMany?: Prisma.GenerationEquipmentCreateManyEquipmentInputEnvelope set?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] - disconnect?: - | Prisma.GenerationEquipmentWhereUniqueInput - | Prisma.GenerationEquipmentWhereUniqueInput[] + disconnect?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] delete?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] - connect?: - | Prisma.GenerationEquipmentWhereUniqueInput - | Prisma.GenerationEquipmentWhereUniqueInput[] - update?: - | Prisma.GenerationEquipmentUpdateWithWhereUniqueWithoutEquipmentInput - | Prisma.GenerationEquipmentUpdateWithWhereUniqueWithoutEquipmentInput[] - updateMany?: - | Prisma.GenerationEquipmentUpdateManyWithWhereWithoutEquipmentInput - | Prisma.GenerationEquipmentUpdateManyWithWhereWithoutEquipmentInput[] - deleteMany?: - | Prisma.GenerationEquipmentScalarWhereInput - | Prisma.GenerationEquipmentScalarWhereInput[] + connect?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] + update?: Prisma.GenerationEquipmentUpdateWithWhereUniqueWithoutEquipmentInput | Prisma.GenerationEquipmentUpdateWithWhereUniqueWithoutEquipmentInput[] + updateMany?: Prisma.GenerationEquipmentUpdateManyWithWhereWithoutEquipmentInput | Prisma.GenerationEquipmentUpdateManyWithWhereWithoutEquipmentInput[] + deleteMany?: Prisma.GenerationEquipmentScalarWhereInput | Prisma.GenerationEquipmentScalarWhereInput[] } export type GenerationEquipmentUncheckedUpdateManyWithoutEquipmentNestedInput = { - create?: - | Prisma.XOR< - Prisma.GenerationEquipmentCreateWithoutEquipmentInput, - Prisma.GenerationEquipmentUncheckedCreateWithoutEquipmentInput - > - | Prisma.GenerationEquipmentCreateWithoutEquipmentInput[] - | Prisma.GenerationEquipmentUncheckedCreateWithoutEquipmentInput[] - connectOrCreate?: - | Prisma.GenerationEquipmentCreateOrConnectWithoutEquipmentInput - | Prisma.GenerationEquipmentCreateOrConnectWithoutEquipmentInput[] - upsert?: - | Prisma.GenerationEquipmentUpsertWithWhereUniqueWithoutEquipmentInput - | Prisma.GenerationEquipmentUpsertWithWhereUniqueWithoutEquipmentInput[] + create?: Prisma.XOR | Prisma.GenerationEquipmentCreateWithoutEquipmentInput[] | Prisma.GenerationEquipmentUncheckedCreateWithoutEquipmentInput[] + connectOrCreate?: Prisma.GenerationEquipmentCreateOrConnectWithoutEquipmentInput | Prisma.GenerationEquipmentCreateOrConnectWithoutEquipmentInput[] + upsert?: Prisma.GenerationEquipmentUpsertWithWhereUniqueWithoutEquipmentInput | Prisma.GenerationEquipmentUpsertWithWhereUniqueWithoutEquipmentInput[] createMany?: Prisma.GenerationEquipmentCreateManyEquipmentInputEnvelope set?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] - disconnect?: - | Prisma.GenerationEquipmentWhereUniqueInput - | Prisma.GenerationEquipmentWhereUniqueInput[] + disconnect?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] delete?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] - connect?: - | Prisma.GenerationEquipmentWhereUniqueInput - | Prisma.GenerationEquipmentWhereUniqueInput[] - update?: - | Prisma.GenerationEquipmentUpdateWithWhereUniqueWithoutEquipmentInput - | Prisma.GenerationEquipmentUpdateWithWhereUniqueWithoutEquipmentInput[] - updateMany?: - | Prisma.GenerationEquipmentUpdateManyWithWhereWithoutEquipmentInput - | Prisma.GenerationEquipmentUpdateManyWithWhereWithoutEquipmentInput[] - deleteMany?: - | Prisma.GenerationEquipmentScalarWhereInput - | Prisma.GenerationEquipmentScalarWhereInput[] + connect?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] + update?: Prisma.GenerationEquipmentUpdateWithWhereUniqueWithoutEquipmentInput | Prisma.GenerationEquipmentUpdateWithWhereUniqueWithoutEquipmentInput[] + updateMany?: Prisma.GenerationEquipmentUpdateManyWithWhereWithoutEquipmentInput | Prisma.GenerationEquipmentUpdateManyWithWhereWithoutEquipmentInput[] + deleteMany?: Prisma.GenerationEquipmentScalarWhereInput | Prisma.GenerationEquipmentScalarWhereInput[] } export type GenerationEquipmentCreateNestedManyWithoutGenerationInput = { - create?: - | Prisma.XOR< - Prisma.GenerationEquipmentCreateWithoutGenerationInput, - Prisma.GenerationEquipmentUncheckedCreateWithoutGenerationInput - > - | Prisma.GenerationEquipmentCreateWithoutGenerationInput[] - | Prisma.GenerationEquipmentUncheckedCreateWithoutGenerationInput[] - connectOrCreate?: - | Prisma.GenerationEquipmentCreateOrConnectWithoutGenerationInput - | Prisma.GenerationEquipmentCreateOrConnectWithoutGenerationInput[] + create?: Prisma.XOR | Prisma.GenerationEquipmentCreateWithoutGenerationInput[] | Prisma.GenerationEquipmentUncheckedCreateWithoutGenerationInput[] + connectOrCreate?: Prisma.GenerationEquipmentCreateOrConnectWithoutGenerationInput | Prisma.GenerationEquipmentCreateOrConnectWithoutGenerationInput[] createMany?: Prisma.GenerationEquipmentCreateManyGenerationInputEnvelope - connect?: - | Prisma.GenerationEquipmentWhereUniqueInput - | Prisma.GenerationEquipmentWhereUniqueInput[] + connect?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] } export type GenerationEquipmentUncheckedCreateNestedManyWithoutGenerationInput = { - create?: - | Prisma.XOR< - Prisma.GenerationEquipmentCreateWithoutGenerationInput, - Prisma.GenerationEquipmentUncheckedCreateWithoutGenerationInput - > - | Prisma.GenerationEquipmentCreateWithoutGenerationInput[] - | Prisma.GenerationEquipmentUncheckedCreateWithoutGenerationInput[] - connectOrCreate?: - | Prisma.GenerationEquipmentCreateOrConnectWithoutGenerationInput - | Prisma.GenerationEquipmentCreateOrConnectWithoutGenerationInput[] + create?: Prisma.XOR | Prisma.GenerationEquipmentCreateWithoutGenerationInput[] | Prisma.GenerationEquipmentUncheckedCreateWithoutGenerationInput[] + connectOrCreate?: Prisma.GenerationEquipmentCreateOrConnectWithoutGenerationInput | Prisma.GenerationEquipmentCreateOrConnectWithoutGenerationInput[] createMany?: Prisma.GenerationEquipmentCreateManyGenerationInputEnvelope - connect?: - | Prisma.GenerationEquipmentWhereUniqueInput - | Prisma.GenerationEquipmentWhereUniqueInput[] + connect?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] } export type GenerationEquipmentUpdateManyWithoutGenerationNestedInput = { - create?: - | Prisma.XOR< - Prisma.GenerationEquipmentCreateWithoutGenerationInput, - Prisma.GenerationEquipmentUncheckedCreateWithoutGenerationInput - > - | Prisma.GenerationEquipmentCreateWithoutGenerationInput[] - | Prisma.GenerationEquipmentUncheckedCreateWithoutGenerationInput[] - connectOrCreate?: - | Prisma.GenerationEquipmentCreateOrConnectWithoutGenerationInput - | Prisma.GenerationEquipmentCreateOrConnectWithoutGenerationInput[] - upsert?: - | Prisma.GenerationEquipmentUpsertWithWhereUniqueWithoutGenerationInput - | Prisma.GenerationEquipmentUpsertWithWhereUniqueWithoutGenerationInput[] + create?: Prisma.XOR | Prisma.GenerationEquipmentCreateWithoutGenerationInput[] | Prisma.GenerationEquipmentUncheckedCreateWithoutGenerationInput[] + connectOrCreate?: Prisma.GenerationEquipmentCreateOrConnectWithoutGenerationInput | Prisma.GenerationEquipmentCreateOrConnectWithoutGenerationInput[] + upsert?: Prisma.GenerationEquipmentUpsertWithWhereUniqueWithoutGenerationInput | Prisma.GenerationEquipmentUpsertWithWhereUniqueWithoutGenerationInput[] createMany?: Prisma.GenerationEquipmentCreateManyGenerationInputEnvelope set?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] - disconnect?: - | Prisma.GenerationEquipmentWhereUniqueInput - | Prisma.GenerationEquipmentWhereUniqueInput[] + disconnect?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] delete?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] - connect?: - | Prisma.GenerationEquipmentWhereUniqueInput - | Prisma.GenerationEquipmentWhereUniqueInput[] - update?: - | Prisma.GenerationEquipmentUpdateWithWhereUniqueWithoutGenerationInput - | Prisma.GenerationEquipmentUpdateWithWhereUniqueWithoutGenerationInput[] - updateMany?: - | Prisma.GenerationEquipmentUpdateManyWithWhereWithoutGenerationInput - | Prisma.GenerationEquipmentUpdateManyWithWhereWithoutGenerationInput[] - deleteMany?: - | Prisma.GenerationEquipmentScalarWhereInput - | Prisma.GenerationEquipmentScalarWhereInput[] + connect?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] + update?: Prisma.GenerationEquipmentUpdateWithWhereUniqueWithoutGenerationInput | Prisma.GenerationEquipmentUpdateWithWhereUniqueWithoutGenerationInput[] + updateMany?: Prisma.GenerationEquipmentUpdateManyWithWhereWithoutGenerationInput | Prisma.GenerationEquipmentUpdateManyWithWhereWithoutGenerationInput[] + deleteMany?: Prisma.GenerationEquipmentScalarWhereInput | Prisma.GenerationEquipmentScalarWhereInput[] } export type GenerationEquipmentUncheckedUpdateManyWithoutGenerationNestedInput = { - create?: - | Prisma.XOR< - Prisma.GenerationEquipmentCreateWithoutGenerationInput, - Prisma.GenerationEquipmentUncheckedCreateWithoutGenerationInput - > - | Prisma.GenerationEquipmentCreateWithoutGenerationInput[] - | Prisma.GenerationEquipmentUncheckedCreateWithoutGenerationInput[] - connectOrCreate?: - | Prisma.GenerationEquipmentCreateOrConnectWithoutGenerationInput - | Prisma.GenerationEquipmentCreateOrConnectWithoutGenerationInput[] - upsert?: - | Prisma.GenerationEquipmentUpsertWithWhereUniqueWithoutGenerationInput - | Prisma.GenerationEquipmentUpsertWithWhereUniqueWithoutGenerationInput[] + create?: Prisma.XOR | Prisma.GenerationEquipmentCreateWithoutGenerationInput[] | Prisma.GenerationEquipmentUncheckedCreateWithoutGenerationInput[] + connectOrCreate?: Prisma.GenerationEquipmentCreateOrConnectWithoutGenerationInput | Prisma.GenerationEquipmentCreateOrConnectWithoutGenerationInput[] + upsert?: Prisma.GenerationEquipmentUpsertWithWhereUniqueWithoutGenerationInput | Prisma.GenerationEquipmentUpsertWithWhereUniqueWithoutGenerationInput[] createMany?: Prisma.GenerationEquipmentCreateManyGenerationInputEnvelope set?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] - disconnect?: - | Prisma.GenerationEquipmentWhereUniqueInput - | Prisma.GenerationEquipmentWhereUniqueInput[] + disconnect?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] delete?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] - connect?: - | Prisma.GenerationEquipmentWhereUniqueInput - | Prisma.GenerationEquipmentWhereUniqueInput[] - update?: - | Prisma.GenerationEquipmentUpdateWithWhereUniqueWithoutGenerationInput - | Prisma.GenerationEquipmentUpdateWithWhereUniqueWithoutGenerationInput[] - updateMany?: - | Prisma.GenerationEquipmentUpdateManyWithWhereWithoutGenerationInput - | Prisma.GenerationEquipmentUpdateManyWithWhereWithoutGenerationInput[] - deleteMany?: - | Prisma.GenerationEquipmentScalarWhereInput - | Prisma.GenerationEquipmentScalarWhereInput[] + connect?: Prisma.GenerationEquipmentWhereUniqueInput | Prisma.GenerationEquipmentWhereUniqueInput[] + update?: Prisma.GenerationEquipmentUpdateWithWhereUniqueWithoutGenerationInput | Prisma.GenerationEquipmentUpdateWithWhereUniqueWithoutGenerationInput[] + updateMany?: Prisma.GenerationEquipmentUpdateManyWithWhereWithoutGenerationInput | Prisma.GenerationEquipmentUpdateManyWithWhereWithoutGenerationInput[] + deleteMany?: Prisma.GenerationEquipmentScalarWhereInput | Prisma.GenerationEquipmentScalarWhereInput[] } export type GenerationEquipmentCreateWithoutEquipmentInput = { @@ -481,52 +354,35 @@ export type GenerationEquipmentUncheckedCreateWithoutEquipmentInput = { export type GenerationEquipmentCreateOrConnectWithoutEquipmentInput = { where: Prisma.GenerationEquipmentWhereUniqueInput - create: Prisma.XOR< - Prisma.GenerationEquipmentCreateWithoutEquipmentInput, - Prisma.GenerationEquipmentUncheckedCreateWithoutEquipmentInput - > + create: Prisma.XOR } export type GenerationEquipmentCreateManyEquipmentInputEnvelope = { - data: - | Prisma.GenerationEquipmentCreateManyEquipmentInput - | Prisma.GenerationEquipmentCreateManyEquipmentInput[] + data: Prisma.GenerationEquipmentCreateManyEquipmentInput | Prisma.GenerationEquipmentCreateManyEquipmentInput[] } export type GenerationEquipmentUpsertWithWhereUniqueWithoutEquipmentInput = { where: Prisma.GenerationEquipmentWhereUniqueInput - update: Prisma.XOR< - Prisma.GenerationEquipmentUpdateWithoutEquipmentInput, - Prisma.GenerationEquipmentUncheckedUpdateWithoutEquipmentInput - > - create: Prisma.XOR< - Prisma.GenerationEquipmentCreateWithoutEquipmentInput, - Prisma.GenerationEquipmentUncheckedCreateWithoutEquipmentInput - > + update: Prisma.XOR + create: Prisma.XOR } export type GenerationEquipmentUpdateWithWhereUniqueWithoutEquipmentInput = { where: Prisma.GenerationEquipmentWhereUniqueInput - data: Prisma.XOR< - Prisma.GenerationEquipmentUpdateWithoutEquipmentInput, - Prisma.GenerationEquipmentUncheckedUpdateWithoutEquipmentInput - > + data: Prisma.XOR } export type GenerationEquipmentUpdateManyWithWhereWithoutEquipmentInput = { where: Prisma.GenerationEquipmentScalarWhereInput - data: Prisma.XOR< - Prisma.GenerationEquipmentUpdateManyMutationInput, - Prisma.GenerationEquipmentUncheckedUpdateManyWithoutEquipmentInput - > + data: Prisma.XOR } export type GenerationEquipmentScalarWhereInput = { AND?: Prisma.GenerationEquipmentScalarWhereInput | Prisma.GenerationEquipmentScalarWhereInput[] OR?: Prisma.GenerationEquipmentScalarWhereInput[] NOT?: Prisma.GenerationEquipmentScalarWhereInput | Prisma.GenerationEquipmentScalarWhereInput[] - generationId?: Prisma.StringFilter<'GenerationEquipment'> | string - equipmentId?: Prisma.StringFilter<'GenerationEquipment'> | string + generationId?: Prisma.StringFilter<"GenerationEquipment"> | string + equipmentId?: Prisma.StringFilter<"GenerationEquipment"> | string } export type GenerationEquipmentCreateWithoutGenerationInput = { @@ -539,44 +395,27 @@ export type GenerationEquipmentUncheckedCreateWithoutGenerationInput = { export type GenerationEquipmentCreateOrConnectWithoutGenerationInput = { where: Prisma.GenerationEquipmentWhereUniqueInput - create: Prisma.XOR< - Prisma.GenerationEquipmentCreateWithoutGenerationInput, - Prisma.GenerationEquipmentUncheckedCreateWithoutGenerationInput - > + create: Prisma.XOR } export type GenerationEquipmentCreateManyGenerationInputEnvelope = { - data: - | Prisma.GenerationEquipmentCreateManyGenerationInput - | Prisma.GenerationEquipmentCreateManyGenerationInput[] + data: Prisma.GenerationEquipmentCreateManyGenerationInput | Prisma.GenerationEquipmentCreateManyGenerationInput[] } export type GenerationEquipmentUpsertWithWhereUniqueWithoutGenerationInput = { where: Prisma.GenerationEquipmentWhereUniqueInput - update: Prisma.XOR< - Prisma.GenerationEquipmentUpdateWithoutGenerationInput, - Prisma.GenerationEquipmentUncheckedUpdateWithoutGenerationInput - > - create: Prisma.XOR< - Prisma.GenerationEquipmentCreateWithoutGenerationInput, - Prisma.GenerationEquipmentUncheckedCreateWithoutGenerationInput - > + update: Prisma.XOR + create: Prisma.XOR } export type GenerationEquipmentUpdateWithWhereUniqueWithoutGenerationInput = { where: Prisma.GenerationEquipmentWhereUniqueInput - data: Prisma.XOR< - Prisma.GenerationEquipmentUpdateWithoutGenerationInput, - Prisma.GenerationEquipmentUncheckedUpdateWithoutGenerationInput - > + data: Prisma.XOR } export type GenerationEquipmentUpdateManyWithWhereWithoutGenerationInput = { where: Prisma.GenerationEquipmentScalarWhereInput - data: Prisma.XOR< - Prisma.GenerationEquipmentUpdateManyMutationInput, - Prisma.GenerationEquipmentUncheckedUpdateManyWithoutGenerationInput - > + data: Prisma.XOR } export type GenerationEquipmentCreateManyEquipmentInput = { @@ -611,108 +450,70 @@ export type GenerationEquipmentUncheckedUpdateManyWithoutGenerationInput = { equipmentId?: Prisma.StringFieldUpdateOperationsInput | string } -export type GenerationEquipmentSelect< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - generationId?: boolean - equipmentId?: boolean - generation?: boolean | Prisma.GenerationDefaultArgs - equipment?: boolean | Prisma.EquipmentDefaultArgs - }, - ExtArgs['result']['generationEquipment'] -> -export type GenerationEquipmentSelectCreateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - generationId?: boolean - equipmentId?: boolean - generation?: boolean | Prisma.GenerationDefaultArgs - equipment?: boolean | Prisma.EquipmentDefaultArgs - }, - ExtArgs['result']['generationEquipment'] -> -export type GenerationEquipmentSelectUpdateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetSelect< - { - generationId?: boolean - equipmentId?: boolean - generation?: boolean | Prisma.GenerationDefaultArgs - equipment?: boolean | Prisma.EquipmentDefaultArgs - }, - ExtArgs['result']['generationEquipment'] -> +export type GenerationEquipmentSelect = runtime.Types.Extensions.GetSelect<{ + generationId?: boolean + equipmentId?: boolean + generation?: boolean | Prisma.GenerationDefaultArgs + equipment?: boolean | Prisma.EquipmentDefaultArgs +}, ExtArgs["result"]["generationEquipment"]> + +export type GenerationEquipmentSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + generationId?: boolean + equipmentId?: boolean + generation?: boolean | Prisma.GenerationDefaultArgs + equipment?: boolean | Prisma.EquipmentDefaultArgs +}, ExtArgs["result"]["generationEquipment"]> + +export type GenerationEquipmentSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + generationId?: boolean + equipmentId?: boolean + generation?: boolean | Prisma.GenerationDefaultArgs + equipment?: boolean | Prisma.EquipmentDefaultArgs +}, ExtArgs["result"]["generationEquipment"]> export type GenerationEquipmentSelectScalar = { generationId?: boolean equipmentId?: boolean } -export type GenerationEquipmentOmit< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = runtime.Types.Extensions.GetOmit< - 'generationId' | 'equipmentId', - ExtArgs['result']['generationEquipment'] -> -export type GenerationEquipmentInclude< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentOmit = runtime.Types.Extensions.GetOmit<"generationId" | "equipmentId", ExtArgs["result"]["generationEquipment"]> +export type GenerationEquipmentInclude = { generation?: boolean | Prisma.GenerationDefaultArgs equipment?: boolean | Prisma.EquipmentDefaultArgs } -export type GenerationEquipmentIncludeCreateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentIncludeCreateManyAndReturn = { generation?: boolean | Prisma.GenerationDefaultArgs equipment?: boolean | Prisma.EquipmentDefaultArgs } -export type GenerationEquipmentIncludeUpdateManyAndReturn< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentIncludeUpdateManyAndReturn = { generation?: boolean | Prisma.GenerationDefaultArgs equipment?: boolean | Prisma.EquipmentDefaultArgs } -export type $GenerationEquipmentPayload< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { - name: 'GenerationEquipment' +export type $GenerationEquipmentPayload = { + name: "GenerationEquipment" objects: { generation: Prisma.$GenerationPayload equipment: Prisma.$EquipmentPayload } - scalars: runtime.Types.Extensions.GetPayloadResult< - { - generationId: string - equipmentId: string - }, - ExtArgs['result']['generationEquipment'] - > + scalars: runtime.Types.Extensions.GetPayloadResult<{ + generationId: string + equipmentId: string + }, ExtArgs["result"]["generationEquipment"]> composites: {} } -export type GenerationEquipmentGetPayload< - S extends boolean | null | undefined | GenerationEquipmentDefaultArgs, -> = runtime.Types.Result.GetResult +export type GenerationEquipmentGetPayload = runtime.Types.Result.GetResult -export type GenerationEquipmentCountArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = Omit & { - select?: GenerationEquipmentCountAggregateInputType | true -} - -export interface GenerationEquipmentDelegate< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, - GlobalOmitOptions = {}, -> { - [K: symbol]: { - types: Prisma.TypeMap['model']['GenerationEquipment'] - meta: { name: 'GenerationEquipment' } +export type GenerationEquipmentCountArgs = + Omit & { + select?: GenerationEquipmentCountAggregateInputType | true } + +export interface GenerationEquipmentDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['GenerationEquipment'], meta: { name: 'GenerationEquipment' } } /** * Find zero or one GenerationEquipment that matches the filter. * @param {GenerationEquipmentFindUniqueArgs} args - Arguments to find a GenerationEquipment @@ -724,19 +525,7 @@ export interface GenerationEquipmentDelegate< * } * }) */ - findUnique( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__GenerationEquipmentClient< - runtime.Types.Result.GetResult< - Prisma.$GenerationEquipmentPayload, - T, - 'findUnique', - GlobalOmitOptions - > | null, - null, - ExtArgs, - GlobalOmitOptions - > + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__GenerationEquipmentClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one GenerationEquipment that matches the filter or throw an error with `error.code='P2025'` @@ -750,19 +539,7 @@ export interface GenerationEquipmentDelegate< * } * }) */ - findUniqueOrThrow( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__GenerationEquipmentClient< - runtime.Types.Result.GetResult< - Prisma.$GenerationEquipmentPayload, - T, - 'findUniqueOrThrow', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__GenerationEquipmentClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first GenerationEquipment that matches the filter. @@ -777,19 +554,7 @@ export interface GenerationEquipmentDelegate< * } * }) */ - findFirst( - args?: Prisma.SelectSubset>, - ): Prisma.Prisma__GenerationEquipmentClient< - runtime.Types.Result.GetResult< - Prisma.$GenerationEquipmentPayload, - T, - 'findFirst', - GlobalOmitOptions - > | null, - null, - ExtArgs, - GlobalOmitOptions - > + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__GenerationEquipmentClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first GenerationEquipment that matches the filter or @@ -805,19 +570,7 @@ export interface GenerationEquipmentDelegate< * } * }) */ - findFirstOrThrow( - args?: Prisma.SelectSubset>, - ): Prisma.Prisma__GenerationEquipmentClient< - runtime.Types.Result.GetResult< - Prisma.$GenerationEquipmentPayload, - T, - 'findFirstOrThrow', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__GenerationEquipmentClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more GenerationEquipments that matches the filter. @@ -835,16 +588,7 @@ export interface GenerationEquipmentDelegate< * const generationEquipmentWithGenerationIdOnly = await prisma.generationEquipment.findMany({ select: { generationId: true } }) * */ - findMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$GenerationEquipmentPayload, - T, - 'findMany', - GlobalOmitOptions - > - > + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a GenerationEquipment. @@ -858,19 +602,7 @@ export interface GenerationEquipmentDelegate< * }) * */ - create( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__GenerationEquipmentClient< - runtime.Types.Result.GetResult< - Prisma.$GenerationEquipmentPayload, - T, - 'create', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + create(args: Prisma.SelectSubset>): Prisma.Prisma__GenerationEquipmentClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many GenerationEquipments. @@ -884,9 +616,7 @@ export interface GenerationEquipmentDelegate< * }) * */ - createMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many GenerationEquipments and returns the data saved in the database. @@ -910,16 +640,7 @@ export interface GenerationEquipmentDelegate< * Read more here: https://pris.ly/d/null-undefined * */ - createManyAndReturn( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$GenerationEquipmentPayload, - T, - 'createManyAndReturn', - GlobalOmitOptions - > - > + createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a GenerationEquipment. @@ -933,19 +654,7 @@ export interface GenerationEquipmentDelegate< * }) * */ - delete( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__GenerationEquipmentClient< - runtime.Types.Result.GetResult< - Prisma.$GenerationEquipmentPayload, - T, - 'delete', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + delete(args: Prisma.SelectSubset>): Prisma.Prisma__GenerationEquipmentClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one GenerationEquipment. @@ -962,19 +671,7 @@ export interface GenerationEquipmentDelegate< * }) * */ - update( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__GenerationEquipmentClient< - runtime.Types.Result.GetResult< - Prisma.$GenerationEquipmentPayload, - T, - 'update', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + update(args: Prisma.SelectSubset>): Prisma.Prisma__GenerationEquipmentClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more GenerationEquipments. @@ -988,9 +685,7 @@ export interface GenerationEquipmentDelegate< * }) * */ - deleteMany( - args?: Prisma.SelectSubset>, - ): Prisma.PrismaPromise + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more GenerationEquipments. @@ -1009,9 +704,7 @@ export interface GenerationEquipmentDelegate< * }) * */ - updateMany( - args: Prisma.SelectSubset>, - ): Prisma.PrismaPromise + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more GenerationEquipments and returns the data updated in the database. @@ -1041,16 +734,7 @@ export interface GenerationEquipmentDelegate< * Read more here: https://pris.ly/d/null-undefined * */ - updateManyAndReturn( - args: Prisma.SelectSubset>, - ): Prisma.PrismaPromise< - runtime.Types.Result.GetResult< - Prisma.$GenerationEquipmentPayload, - T, - 'updateManyAndReturn', - GlobalOmitOptions - > - > + updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one GenerationEquipment. @@ -1069,19 +753,8 @@ export interface GenerationEquipmentDelegate< * } * }) */ - upsert( - args: Prisma.SelectSubset>, - ): Prisma.Prisma__GenerationEquipmentClient< - runtime.Types.Result.GetResult< - Prisma.$GenerationEquipmentPayload, - T, - 'upsert', - GlobalOmitOptions - >, - never, - ExtArgs, - GlobalOmitOptions - > + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__GenerationEquipmentClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + /** * Count the number of GenerationEquipments. @@ -1095,7 +768,7 @@ export interface GenerationEquipmentDelegate< * // ... the filter for the GenerationEquipments we want to count * } * }) - **/ + **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< @@ -1129,10 +802,8 @@ export interface GenerationEquipmentDelegate< * }, * take: 10, * }) - **/ - aggregate( - args: Prisma.Subset, - ): Prisma.PrismaPromise> + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by GenerationEquipment. @@ -1151,7 +822,7 @@ export interface GenerationEquipmentDelegate< * }, * }) * - **/ + **/ groupBy< T extends GenerationEquipmentGroupByArgs, HasSelectOrTake extends Prisma.Or< @@ -1161,60 +832,59 @@ export interface GenerationEquipmentDelegate< OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: GenerationEquipmentGroupByArgs['orderBy'] } : { orderBy?: GenerationEquipmentGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys< - Prisma.Keys> - >, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields], - >( - args: Prisma.SubsetIntersection & InputErrors, - ): {} extends InputErrors - ? GetGenerationEquipmentGroupByPayload - : Prisma.PrismaPromise - /** - * Fields of the GenerationEquipment model - */ - readonly fields: GenerationEquipmentFieldRefs + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetGenerationEquipmentGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the GenerationEquipment model + */ +readonly fields: GenerationEquipmentFieldRefs; } /** @@ -1223,59 +893,23 @@ export interface GenerationEquipmentDelegate< * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ -export interface Prisma__GenerationEquipmentClient< - T, - Null = never, - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, - GlobalOmitOptions = {}, -> extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: 'PrismaPromise' - generation = {}>( - args?: Prisma.Subset>, - ): Prisma.Prisma__GenerationClient< - | runtime.Types.Result.GetResult< - Prisma.$GenerationPayload, - T, - 'findUniqueOrThrow', - GlobalOmitOptions - > - | Null, - Null, - ExtArgs, - GlobalOmitOptions - > - equipment = {}>( - args?: Prisma.Subset>, - ): Prisma.Prisma__EquipmentClient< - | runtime.Types.Result.GetResult< - Prisma.$EquipmentPayload, - T, - 'findUniqueOrThrow', - GlobalOmitOptions - > - | Null, - Null, - ExtArgs, - GlobalOmitOptions - > +export interface Prisma__GenerationEquipmentClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + generation = {}>(args?: Prisma.Subset>): Prisma.Prisma__GenerationClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + equipment = {}>(args?: Prisma.Subset>): Prisma.Prisma__EquipmentClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ - then( - onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, - onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, - ): runtime.Types.Utils.JsPromise + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ - catch( - onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, - ): runtime.Types.Utils.JsPromise + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. @@ -1285,21 +919,23 @@ export interface Prisma__GenerationEquipmentClient< finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } + + + /** * Fields of the GenerationEquipment model */ export interface GenerationEquipmentFieldRefs { - readonly generationId: Prisma.FieldRef<'GenerationEquipment', 'String'> - readonly equipmentId: Prisma.FieldRef<'GenerationEquipment', 'String'> + readonly generationId: Prisma.FieldRef<"GenerationEquipment", 'String'> + readonly equipmentId: Prisma.FieldRef<"GenerationEquipment", 'String'> } + // Custom InputTypes /** * GenerationEquipment findUnique */ -export type GenerationEquipmentFindUniqueArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentFindUniqueArgs = { /** * Select specific fields to fetch from the GenerationEquipment */ @@ -1321,9 +957,7 @@ export type GenerationEquipmentFindUniqueArgs< /** * GenerationEquipment findUniqueOrThrow */ -export type GenerationEquipmentFindUniqueOrThrowArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the GenerationEquipment */ @@ -1345,9 +979,7 @@ export type GenerationEquipmentFindUniqueOrThrowArgs< /** * GenerationEquipment findFirst */ -export type GenerationEquipmentFindFirstArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentFindFirstArgs = { /** * Select specific fields to fetch from the GenerationEquipment */ @@ -1369,9 +1001,7 @@ export type GenerationEquipmentFindFirstArgs< * * Determine the order of GenerationEquipments to fetch. */ - orderBy?: - | Prisma.GenerationEquipmentOrderByWithRelationInput - | Prisma.GenerationEquipmentOrderByWithRelationInput[] + orderBy?: Prisma.GenerationEquipmentOrderByWithRelationInput | Prisma.GenerationEquipmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * @@ -1401,9 +1031,7 @@ export type GenerationEquipmentFindFirstArgs< /** * GenerationEquipment findFirstOrThrow */ -export type GenerationEquipmentFindFirstOrThrowArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the GenerationEquipment */ @@ -1425,9 +1053,7 @@ export type GenerationEquipmentFindFirstOrThrowArgs< * * Determine the order of GenerationEquipments to fetch. */ - orderBy?: - | Prisma.GenerationEquipmentOrderByWithRelationInput - | Prisma.GenerationEquipmentOrderByWithRelationInput[] + orderBy?: Prisma.GenerationEquipmentOrderByWithRelationInput | Prisma.GenerationEquipmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * @@ -1457,9 +1083,7 @@ export type GenerationEquipmentFindFirstOrThrowArgs< /** * GenerationEquipment findMany */ -export type GenerationEquipmentFindManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentFindManyArgs = { /** * Select specific fields to fetch from the GenerationEquipment */ @@ -1481,9 +1105,7 @@ export type GenerationEquipmentFindManyArgs< * * Determine the order of GenerationEquipments to fetch. */ - orderBy?: - | Prisma.GenerationEquipmentOrderByWithRelationInput - | Prisma.GenerationEquipmentOrderByWithRelationInput[] + orderBy?: Prisma.GenerationEquipmentOrderByWithRelationInput | Prisma.GenerationEquipmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * @@ -1508,9 +1130,7 @@ export type GenerationEquipmentFindManyArgs< /** * GenerationEquipment create */ -export type GenerationEquipmentCreateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentCreateArgs = { /** * Select specific fields to fetch from the GenerationEquipment */ @@ -1526,18 +1146,13 @@ export type GenerationEquipmentCreateArgs< /** * The data needed to create a GenerationEquipment. */ - data: Prisma.XOR< - Prisma.GenerationEquipmentCreateInput, - Prisma.GenerationEquipmentUncheckedCreateInput - > + data: Prisma.XOR } /** * GenerationEquipment createMany */ -export type GenerationEquipmentCreateManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentCreateManyArgs = { /** * The data used to create many GenerationEquipments. */ @@ -1547,9 +1162,7 @@ export type GenerationEquipmentCreateManyArgs< /** * GenerationEquipment createManyAndReturn */ -export type GenerationEquipmentCreateManyAndReturnArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the GenerationEquipment */ @@ -1571,9 +1184,7 @@ export type GenerationEquipmentCreateManyAndReturnArgs< /** * GenerationEquipment update */ -export type GenerationEquipmentUpdateArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentUpdateArgs = { /** * Select specific fields to fetch from the GenerationEquipment */ @@ -1589,10 +1200,7 @@ export type GenerationEquipmentUpdateArgs< /** * The data needed to update a GenerationEquipment. */ - data: Prisma.XOR< - Prisma.GenerationEquipmentUpdateInput, - Prisma.GenerationEquipmentUncheckedUpdateInput - > + data: Prisma.XOR /** * Choose, which GenerationEquipment to update. */ @@ -1602,16 +1210,11 @@ export type GenerationEquipmentUpdateArgs< /** * GenerationEquipment updateMany */ -export type GenerationEquipmentUpdateManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentUpdateManyArgs = { /** * The data used to update GenerationEquipments. */ - data: Prisma.XOR< - Prisma.GenerationEquipmentUpdateManyMutationInput, - Prisma.GenerationEquipmentUncheckedUpdateManyInput - > + data: Prisma.XOR /** * Filter which GenerationEquipments to update */ @@ -1625,9 +1228,7 @@ export type GenerationEquipmentUpdateManyArgs< /** * GenerationEquipment updateManyAndReturn */ -export type GenerationEquipmentUpdateManyAndReturnArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the GenerationEquipment */ @@ -1639,10 +1240,7 @@ export type GenerationEquipmentUpdateManyAndReturnArgs< /** * The data used to update GenerationEquipments. */ - data: Prisma.XOR< - Prisma.GenerationEquipmentUpdateManyMutationInput, - Prisma.GenerationEquipmentUncheckedUpdateManyInput - > + data: Prisma.XOR /** * Filter which GenerationEquipments to update */ @@ -1660,9 +1258,7 @@ export type GenerationEquipmentUpdateManyAndReturnArgs< /** * GenerationEquipment upsert */ -export type GenerationEquipmentUpsertArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentUpsertArgs = { /** * Select specific fields to fetch from the GenerationEquipment */ @@ -1682,25 +1278,17 @@ export type GenerationEquipmentUpsertArgs< /** * In case the GenerationEquipment found by the `where` argument doesn't exist, create a new GenerationEquipment with this data. */ - create: Prisma.XOR< - Prisma.GenerationEquipmentCreateInput, - Prisma.GenerationEquipmentUncheckedCreateInput - > + create: Prisma.XOR /** * In case the GenerationEquipment was found with the provided `where` argument, update it with this data. */ - update: Prisma.XOR< - Prisma.GenerationEquipmentUpdateInput, - Prisma.GenerationEquipmentUncheckedUpdateInput - > + update: Prisma.XOR } /** * GenerationEquipment delete */ -export type GenerationEquipmentDeleteArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentDeleteArgs = { /** * Select specific fields to fetch from the GenerationEquipment */ @@ -1722,9 +1310,7 @@ export type GenerationEquipmentDeleteArgs< /** * GenerationEquipment deleteMany */ -export type GenerationEquipmentDeleteManyArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentDeleteManyArgs = { /** * Filter which GenerationEquipments to delete */ @@ -1738,9 +1324,7 @@ export type GenerationEquipmentDeleteManyArgs< /** * GenerationEquipment without action */ -export type GenerationEquipmentDefaultArgs< - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, -> = { +export type GenerationEquipmentDefaultArgs = { /** * Select specific fields to fetch from the GenerationEquipment */ diff --git a/src/lib/categories.ts b/src/lib/categories.ts new file mode 100644 index 0000000..86d13a4 --- /dev/null +++ b/src/lib/categories.ts @@ -0,0 +1,54 @@ +export const EQUIPMENT_CATEGORIES = [ + { + main_category: 'Headwear', + sub_categories: ['Helmet', 'Hat', 'Cap', 'Hood', 'Circlet', 'Mask', 'Crown', 'Others'], + }, + { + main_category: 'Top', + sub_categories: ['Shirt', 'Jacket', 'Hoodie', 'Vest', 'Tunic', 'Armor_Chest', 'Bra_Top', 'Cape', 'Others'], + }, + { + main_category: 'Bottom', + sub_categories: ['Pants', 'Shorts', 'Skirt', 'Leggings', 'Hakama', 'Armor_Legs', 'Others'], + }, + { + main_category: 'Full_Body', + sub_categories: ['Robe', 'Jumpsuit', 'Dress', 'Armor_Suit', 'Exosuit', 'Others'], + }, + { + main_category: 'Handwear', + sub_categories: ['Gloves', 'Gauntlets', 'Bracers', 'Wristbands', 'Rings', 'Others'], + }, + { + main_category: 'Footwear', + sub_categories: ['Boots', 'Sneakers', 'Sandals', 'Heels', 'Greaves', 'Others'], + }, + { + main_category: 'Weapon', + sub_categories: ['Sword', 'Greatsword', 'Dagger', 'Spear', 'Bow', 'Firearm', 'Shield', 'Staff', 'Others'], + }, + { + main_category: 'Accessory', + sub_categories: ['Scarf', 'Necklace', 'Belt', 'Sash', 'Glasses', 'Goggles', 'Earpiece', 'Wing', 'Others'], + }, + { + main_category: 'Storage', + sub_categories: ['Quiver', 'Scabbard', 'Pouch', 'Backpack', 'Holster', 'Bandolier', 'Others'], + }, + { + main_category: 'Utility_Prop', + sub_categories: ['Gadget', 'Phone', 'Flashlight', 'Potion', 'Tool', 'Book_Scroll', 'Others'], + }, + { + main_category: 'Others', + sub_categories: ['Others'], + }, +] as const + +export type MainCategory = (typeof EQUIPMENT_CATEGORIES)[number]['main_category'] +export type SubCategory = (typeof EQUIPMENT_CATEGORIES)[number]['sub_categories'][number] + +export function getSubCategories(mainCategory: string): readonly string[] { + const category = EQUIPMENT_CATEGORIES.find((c) => c.main_category === mainCategory) + return category ? category.sub_categories : [] +} diff --git a/src/service/category.ts b/src/service/category.ts deleted file mode 100644 index 4c2b466..0000000 --- a/src/service/category.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { prisma } from '../db' -import { ulid } from 'ulidx' - -export class CategoryService { - /** - * Finds a category by name (case-insensitive) or creates it if it doesn't exist. - * If a parentId is provided, it links the category as a sub-category. - */ - async findOrCreate(name: string, parentId?: string): Promise { - const normalizedName = name.trim() - - // Check if category exists - const existing = await prisma.category.findFirst({ - where: { - name: { - equals: normalizedName, - // mode: 'insensitive' // SQLite doesn't support 'mode: insensitive' directly like Postgres, usually need manual lower() or collate NOCASE - }, - parentId: parentId || null, - }, - }) - - if (existing) { - return existing.id - } - - // Create new category - const id = ulid() - const newCategory = await prisma.category.create({ - data: { - id, - name: normalizedName, - parentId: parentId || null, - }, - }) - - return newCategory.id - } - - /** - * Lists all main categories with their sub-categories. - */ - async listAll() { - return prisma.category.findMany({ - where: { - parentId: null, - }, - include: { - subCategories: true, - }, - orderBy: { - name: 'asc', - }, - }) - } -} - -export const categoryService = new CategoryService() diff --git a/src/service/equipment.test.ts b/src/service/equipment.test.ts index e0d4c41..7a84946 100644 --- a/src/service/equipment.test.ts +++ b/src/service/equipment.test.ts @@ -23,12 +23,12 @@ describe('EquipmentService', () => { mockPrisma.equipment.count.mockResolvedValue(5) mockPrisma.equipment.findMany.mockResolvedValue([]) - await equipmentService.listEquipments({ page: 1, limit: 10 }, { categoryId: 'cat1' }) + await equipmentService.listEquipments({ page: 1, limit: 10 }, { category: 'Headwear' }) expect(mockPrisma.equipment.findMany).toHaveBeenCalledWith( expect.objectContaining({ where: expect.objectContaining({ - categoryId: 'cat1', + category: 'Headwear', }), }), ) diff --git a/src/service/equipment.ts b/src/service/equipment.ts index 4f1040f..2cf436b 100644 --- a/src/service/equipment.ts +++ b/src/service/equipment.ts @@ -8,17 +8,17 @@ export class EquipmentService { */ async listEquipments( pagination: { page: number; limit: number }, - filters?: { categoryId?: string; subCategoryId?: string }, + filters?: { category?: string; subCategory?: string }, ) { const { page, limit } = pagination const skip = (page - 1) * limit const where: Prisma.EquipmentWhereInput = {} - if (filters?.categoryId) { - where.categoryId = filters.categoryId + if (filters?.category) { + where.category = filters.category } - if (filters?.subCategoryId) { - where.subCategoryId = filters.subCategoryId + if (filters?.subCategory) { + where.subCategory = filters.subCategory } const [total, items] = await Promise.all([ @@ -29,8 +29,6 @@ export class EquipmentService { take: limit, include: { image: true, - category: true, - subCategory: true, }, orderBy: { createdAt: 'desc', @@ -48,8 +46,8 @@ export class EquipmentService { name: string description: string imageId: string - categoryId: string - subCategoryId?: string + category: string + subCategory?: string }) { const id = ulid() @@ -59,12 +57,11 @@ export class EquipmentService { name: data.name, description: data.description, imageId: data.imageId, - categoryId: data.categoryId, - subCategoryId: data.subCategoryId, + category: data.category, + subCategory: data.subCategory, }, include: { image: true, - category: true, }, }) } diff --git a/src/service/extraction.test.ts b/src/service/extraction.test.ts index 5ba5d11..f4cf3ef 100644 --- a/src/service/extraction.test.ts +++ b/src/service/extraction.test.ts @@ -10,7 +10,8 @@ mock.module('./ai', () => ({ item_name: 'Helmet', description: 'A rusty helmet', background_color: 'Red', - category: 'Head', + category: 'Headwear', + sub_category: 'Helmet', }, ], })), diff --git a/src/service/extraction.ts b/src/service/extraction.ts index 6f59b9b..55a3445 100644 --- a/src/service/extraction.ts +++ b/src/service/extraction.ts @@ -1,13 +1,15 @@ import { aiService } from './ai' import sharp from 'sharp' import { z } from 'zod' +import { EQUIPMENT_CATEGORIES } from '../lib/categories' // Types for the extraction process export interface ExtractedAsset { item_name: string description: string background_color: string - category: string // Added category + category: string + sub_category?: string } export interface AnalysisResponse { @@ -31,15 +33,21 @@ export class ExtractionService { * Analyzes an image to identify extractable assets. */ async analyzeImage(file: File): Promise { + const categoriesJson = JSON.stringify(EQUIPMENT_CATEGORIES, null, 2) const prompt = ` Task: Character Asset Identification for Extraction Instructions: 1. Analyze the character in the image and identify all distinct, extractable equipment and clothing items. -2. Filter for items that are clearly visible: tops, bottoms, headwear, footwear, specialized armor (arm guards, leg guards), and accessories (scarves, belts, capes). +2. Filter for items that are clearly visible. 3. For each identified item, assign one of the following high-contrast background colors for future segmentation: Red, Yellow, Green, White, Blue, Black, Magenta, Cyan, Orange, Gray. Avoid repeating colors if possible. 4. Limit to a maximum of 9 most prominent assets. -5. Assign a general category to each item (e.g., Head, Body, Legs, Feet, Weapon, Accessory). +5. Assign a category and sub-category to each item based on the provided list. + - Choose the best fitting "main_category" and "sub_categories". + - If no suitable category/sub-category is found, use "Others". + +Available Categories: +${categoriesJson} Output Format (Strict JSON): Return ONLY a JSON object with a list of assets. @@ -51,7 +59,8 @@ Return ONLY a JSON object with a list of assets. item_name: z.string().describe('Name of the item'), background_color: z.string().describe('Background color assigned'), description: z.string().describe('Description of the item'), - category: z.string().describe('Category of the item'), + category: z.string().describe('Main category of the item'), + sub_category: z.string().optional().describe('Sub category of the item'), }), ), }) @@ -108,10 +117,20 @@ Output Requirement: High-resolution texture sheet, flat lay presentation, sharp /** * Detects bounding boxes for assets in the texture sheet. */ - async detectBoundingBoxes(sheetBase64: string): Promise { + async detectBoundingBoxes( + sheetBase64: string, + analyzedAssets: ExtractedAsset[], + ): Promise { const buffer = Buffer.from(sheetBase64.replace(/^data:image\/\w+;base64,/, ''), 'base64') const file = new File([buffer], 'sheet.png', { type: 'image/png' }) + const assetContext = analyzedAssets + .map( + (a) => + `- Name: ${a.item_name}, Description: ${a.description}, Background Color: ${a.background_color}`, + ) + .join('\n') + const prompt = ` Task: Spatial Asset Detection & Normalized Grid Mapping @@ -122,11 +141,20 @@ Instructions: - [ymin, xmin, ymax, xmax] - (0, 0) is the top-left corner; (1.0, 1.0) is the bottom-right corner. 4. Ensure the box coordinates strictly encompass the outer boundary of each colored tile. +5. Use the provided asset context to correctly identify which item is in which box. + +Asset Context: +${assetContext} Output Format (Strict JSON): Return ONLY a JSON object. Provide the grid dimensions and a list of detected assets with their coordinates. ` + // Create an enum from the analyzed asset names plus "unknown" + const assetNames = analyzedAssets.map((a) => a.item_name) + // Zod enum requires at least one value, and they must be unique + const uniqueNames = Array.from(new Set([...assetNames, 'unknown'])) as [string, ...string[]] + const schema = z.object({ grid_dimensions: z.object({ rows: z.number(), @@ -134,7 +162,7 @@ Return ONLY a JSON object. Provide the grid dimensions and a list of detected as }), assets: z.array( z.object({ - item_name: z.string(), + item_name: z.enum(uniqueNames), coordinates: z .tuple([z.number(), z.number(), z.number(), z.number()]) .describe('[ymin, xmin, ymax, xmax]'), @@ -162,6 +190,8 @@ Return ONLY a JSON object. Provide the grid dimensions and a list of detected as const croppedAssets = [] for (const box of boxes.assets) { + if (box.item_name === 'unknown') continue + const [ymin, xmin, ymax, xmax] = box.coordinates const left = Math.floor(xmin * metadata.width) diff --git a/src/ui/components/Extractor.tsx b/src/ui/components/Extractor.tsx index 43ffdc5..eb7dce3 100644 --- a/src/ui/components/Extractor.tsx +++ b/src/ui/components/Extractor.tsx @@ -74,8 +74,16 @@ export const Extractor: React.FC = ({ if (event === 'status') { onStatusChange(data.status, data.message) + } else if (event === 'asset_refined') { + // progressively update results + const newAsset = data.asset + setResults((prev) => [...prev, newAsset]) } else if (event === 'complete') { onStatusChange('complete', 'Extraction complete!') + // Assuming data.assets contains all assets, but we have been accumulating them. + // We can just rely on the accumulated results if we trust asset_refined. + // But let's sync one last time or just keep what we have. + // The API sends all assets in complete event too. setResults(data.assets) onAssetsExtracted(data.assets) } else if (event === 'error') { @@ -181,7 +189,7 @@ export const Extractor: React.FC = ({

diff --git a/src/ui/components/Stash.tsx b/src/ui/components/Stash.tsx index 9ed677a..b0badae 100644 --- a/src/ui/components/Stash.tsx +++ b/src/ui/components/Stash.tsx @@ -130,7 +130,7 @@ export const Stash: React.FC = ({ onNavigateToExtractor }) => {

- {item.category?.name || 'Unknown'} + {item.category || 'Unknown'}

diff --git a/src/ui/types.ts b/src/ui/types.ts index e5d90f9..7a4e3cf 100644 --- a/src/ui/types.ts +++ b/src/ui/types.ts @@ -1,13 +1,9 @@ -export interface Category { - id: string - name: string -} - export interface ExtractedAsset { id: string name: string description: string - category: Category + category: string + subCategory?: string imageUrl: string }