From 617300eaafc8b2bd7ad5158489fdfeb77310e2be Mon Sep 17 00:00:00 2001 From: purp1e Date: Wed, 11 Mar 2026 01:39:14 +0800 Subject: [PATCH] =?UTF-8?q?refactor(prisma):=20=E5=B0=86=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E4=BB=8E=20SQLite=20=E8=BF=81=E7=A7=BB=E8=87=B3=20Pos?= =?UTF-8?q?tgreSQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除 SQLite 相关依赖、配置和生成文件,更新 Prisma schema 以使用 PostgreSQL 作为数据源。 移除本地 dev.db 文件、libsql 适配器和旧迁移文件,简化 Prisma 客户端初始化。 --- backend/dev.db | 0 backend/package.json | 2 - backend/prisma.config.ts | 2 +- .../20260306034508_init/migration.sql | 86 - .../migration.sql | 30 - backend/prisma/migrations/migration_lock.toml | 3 - backend/prisma/schema.prisma | 11 +- backend/src/auth.ts | 2 +- backend/src/generated/prisma/browser.ts | 54 - backend/src/generated/prisma/client.ts | 78 - .../src/generated/prisma/commonInputTypes.ts | 348 --- backend/src/generated/prisma/enums.ts | 15 - .../src/generated/prisma/internal/class.ts | 264 --- .../prisma/internal/prismaNamespace.ts | 1278 ----------- .../prisma/internal/prismaNamespaceBrowser.ts | 181 -- backend/src/generated/prisma/models.ts | 18 - .../src/generated/prisma/models/Account.ts | 1640 -------------- .../src/generated/prisma/models/Comment.ts | 1497 ------------- backend/src/generated/prisma/models/Post.ts | 1556 -------------- .../src/generated/prisma/models/Resource.ts | 1226 ----------- .../src/generated/prisma/models/Session.ts | 1302 ------------ backend/src/generated/prisma/models/User.ts | 1878 ----------------- .../prisma/models/VerificationToken.ts | 1092 ---------- backend/src/prisma.ts | 13 +- bun.lock | 12 +- temp.md | 4 +- 26 files changed, 14 insertions(+), 12578 deletions(-) delete mode 100644 backend/dev.db delete mode 100644 backend/prisma/migrations/20260306034508_init/migration.sql delete mode 100644 backend/prisma/migrations/20260309031703_add_resources_posts/migration.sql delete mode 100644 backend/prisma/migrations/migration_lock.toml delete mode 100644 backend/src/generated/prisma/browser.ts delete mode 100644 backend/src/generated/prisma/client.ts delete mode 100644 backend/src/generated/prisma/commonInputTypes.ts delete mode 100644 backend/src/generated/prisma/enums.ts delete mode 100644 backend/src/generated/prisma/internal/class.ts delete mode 100644 backend/src/generated/prisma/internal/prismaNamespace.ts delete mode 100644 backend/src/generated/prisma/internal/prismaNamespaceBrowser.ts delete mode 100644 backend/src/generated/prisma/models.ts delete mode 100644 backend/src/generated/prisma/models/Account.ts delete mode 100644 backend/src/generated/prisma/models/Comment.ts delete mode 100644 backend/src/generated/prisma/models/Post.ts delete mode 100644 backend/src/generated/prisma/models/Resource.ts delete mode 100644 backend/src/generated/prisma/models/Session.ts delete mode 100644 backend/src/generated/prisma/models/User.ts delete mode 100644 backend/src/generated/prisma/models/VerificationToken.ts diff --git a/backend/dev.db b/backend/dev.db deleted file mode 100644 index e69de29..0000000 diff --git a/backend/package.json b/backend/package.json index cc5a4e8..d2b20d7 100644 --- a/backend/package.json +++ b/backend/package.json @@ -16,8 +16,6 @@ "dependencies": { "@elysiajs/cors": "^1.0.0", "@elysiajs/eden": "^1.0.0", - "@libsql/client": "^0.17.0", - "@prisma/adapter-libsql": "^7.4.2", "@prisma/client": "^7.4.2", "better-auth": "^1.5.4", "dotenv": "^17.3.1", diff --git a/backend/prisma.config.ts b/backend/prisma.config.ts index 75494e8..827c459 100644 --- a/backend/prisma.config.ts +++ b/backend/prisma.config.ts @@ -7,6 +7,6 @@ export default defineConfig({ path: "prisma/migrations", }, datasource: { - url: env("DATABASE_URL") || "file:./dev.db", + url: env("DATABASE_URL"), }, }); diff --git a/backend/prisma/migrations/20260306034508_init/migration.sql b/backend/prisma/migrations/20260306034508_init/migration.sql deleted file mode 100644 index a54ac14..0000000 --- a/backend/prisma/migrations/20260306034508_init/migration.sql +++ /dev/null @@ -1,86 +0,0 @@ --- CreateTable -CREATE TABLE "User" ( - "id" TEXT NOT NULL PRIMARY KEY, - "name" TEXT, - "email" TEXT, - "emailVerified" DATETIME, - "phone" TEXT, - "phoneVerified" DATETIME, - "image" TEXT, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL -); - --- CreateTable -CREATE TABLE "accounts" ( - "id" TEXT NOT NULL PRIMARY KEY, - "user_id" TEXT NOT NULL, - "type" TEXT NOT NULL, - "provider" TEXT NOT NULL, - "provider_account_id" TEXT NOT NULL, - "refresh_token" TEXT, - "access_token" TEXT, - "expires_at" INTEGER, - "token_type" TEXT, - "scope" TEXT, - "id_token" TEXT, - "session_state" TEXT, - CONSTRAINT "accounts_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE -); - --- CreateTable -CREATE TABLE "sessions" ( - "id" TEXT NOT NULL PRIMARY KEY, - "session_token" TEXT NOT NULL, - "user_id" TEXT NOT NULL, - "expires" DATETIME NOT NULL, - CONSTRAINT "sessions_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE -); - --- CreateTable -CREATE TABLE "posts" ( - "id" TEXT NOT NULL PRIMARY KEY, - "title" TEXT NOT NULL, - "content" TEXT NOT NULL, - "user_id" TEXT NOT NULL, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL, - CONSTRAINT "posts_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE -); - --- CreateTable -CREATE TABLE "comments" ( - "id" TEXT NOT NULL PRIMARY KEY, - "content" TEXT NOT NULL, - "user_id" TEXT NOT NULL, - "post_id" TEXT NOT NULL, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL, - CONSTRAINT "comments_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE, - CONSTRAINT "comments_post_id_fkey" FOREIGN KEY ("post_id") REFERENCES "posts" ("id") ON DELETE CASCADE ON UPDATE CASCADE -); - --- CreateTable -CREATE TABLE "verification_tokens" ( - "identifier" TEXT NOT NULL, - "token" TEXT NOT NULL, - "expires" DATETIME NOT NULL -); - --- CreateIndex -CREATE UNIQUE INDEX "User_email_key" ON "User"("email"); - --- CreateIndex -CREATE UNIQUE INDEX "User_phone_key" ON "User"("phone"); - --- CreateIndex -CREATE UNIQUE INDEX "accounts_provider_provider_account_id_key" ON "accounts"("provider", "provider_account_id"); - --- CreateIndex -CREATE UNIQUE INDEX "sessions_session_token_key" ON "sessions"("session_token"); - --- CreateIndex -CREATE UNIQUE INDEX "verification_tokens_token_key" ON "verification_tokens"("token"); - --- CreateIndex -CREATE UNIQUE INDEX "verification_tokens_identifier_token_key" ON "verification_tokens"("identifier", "token"); diff --git a/backend/prisma/migrations/20260309031703_add_resources_posts/migration.sql b/backend/prisma/migrations/20260309031703_add_resources_posts/migration.sql deleted file mode 100644 index 36e9347..0000000 --- a/backend/prisma/migrations/20260309031703_add_resources_posts/migration.sql +++ /dev/null @@ -1,30 +0,0 @@ --- CreateTable -CREATE TABLE "resources" ( - "id" TEXT NOT NULL PRIMARY KEY, - "title" TEXT NOT NULL, - "description" TEXT, - "url" TEXT NOT NULL, - "icon" TEXT, - "category" TEXT, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL -); - --- RedefineTables -PRAGMA defer_foreign_keys=ON; -PRAGMA foreign_keys=OFF; -CREATE TABLE "new_posts" ( - "id" TEXT NOT NULL PRIMARY KEY, - "title" TEXT NOT NULL, - "content" TEXT NOT NULL, - "user_id" TEXT NOT NULL, - "published" BOOLEAN NOT NULL DEFAULT false, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL, - CONSTRAINT "posts_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE -); -INSERT INTO "new_posts" ("content", "createdAt", "id", "title", "updatedAt", "user_id") SELECT "content", "createdAt", "id", "title", "updatedAt", "user_id" FROM "posts"; -DROP TABLE "posts"; -ALTER TABLE "new_posts" RENAME TO "posts"; -PRAGMA foreign_keys=ON; -PRAGMA defer_foreign_keys=OFF; diff --git a/backend/prisma/migrations/migration_lock.toml b/backend/prisma/migrations/migration_lock.toml deleted file mode 100644 index e5e5c47..0000000 --- a/backend/prisma/migrations/migration_lock.toml +++ /dev/null @@ -1,3 +0,0 @@ -# Please do not edit this file manually -# It should be added in your version-control system (i.e. Git) -provider = "sqlite" \ No newline at end of file diff --git a/backend/prisma/schema.prisma b/backend/prisma/schema.prisma index 3643a3b..25e5f9f 100644 --- a/backend/prisma/schema.prisma +++ b/backend/prisma/schema.prisma @@ -2,14 +2,11 @@ // learn more about it in the docs: https://pris.ly/d/prisma-schema generator client { - provider = "prisma-client" - output = "../src/generated/prisma" - engineType = "client" - runtime = "bun" + provider = "prisma-client-js" } datasource db { - provider = "sqlite" + provider = "postgresql" } model User { @@ -26,6 +23,8 @@ model User { sessions Session[] posts Post[] comments Comment[] + + @@map("users") } model Account { @@ -41,7 +40,7 @@ model Account { scope String? id_token String? session_state String? - user User @relation(fields: [userId], references: [id], onDelete: Cascade) + user User @relation(fields: [userId], references: [id], onDelete: Cascade) @@unique([provider, providerAccountId]) @@map("accounts") diff --git a/backend/src/auth.ts b/backend/src/auth.ts index c08810d..97cf32b 100644 --- a/backend/src/auth.ts +++ b/backend/src/auth.ts @@ -4,7 +4,7 @@ import { prisma } from './prisma' export const auth = betterAuth({ database: prismaAdapter(prisma, { - provider: 'sqlite', + provider: 'postgresql', }), basePath: '/api/auth', emailAndPassword: { diff --git a/backend/src/generated/prisma/browser.ts b/backend/src/generated/prisma/browser.ts deleted file mode 100644 index 3866038..0000000 --- a/backend/src/generated/prisma/browser.ts +++ /dev/null @@ -1,54 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file should be your main import to use Prisma-related types and utilities in a browser. - * Use it to get access to models, enums, and input types. - * - * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only. - * See `client.ts` for the standard, server-side entry point. - * - * 🟢 You can import this file directly. - */ - -import * as Prisma from './internal/prismaNamespaceBrowser.ts' -export { Prisma } -export * as $Enums from './enums.ts' -export * from './enums.ts'; -/** - * Model User - * - */ -export type User = Prisma.UserModel -/** - * Model Account - * - */ -export type Account = Prisma.AccountModel -/** - * Model Session - * - */ -export type Session = Prisma.SessionModel -/** - * Model Post - * - */ -export type Post = Prisma.PostModel -/** - * Model Resource - * - */ -export type Resource = Prisma.ResourceModel -/** - * Model Comment - * - */ -export type Comment = Prisma.CommentModel -/** - * Model VerificationToken - * - */ -export type VerificationToken = Prisma.VerificationTokenModel diff --git a/backend/src/generated/prisma/client.ts b/backend/src/generated/prisma/client.ts deleted file mode 100644 index a3ada44..0000000 --- a/backend/src/generated/prisma/client.ts +++ /dev/null @@ -1,78 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types. - * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead. - * - * 🟢 You can import this file directly. - */ - -import * as process from 'node:process' -import * as path from 'node:path' -import { fileURLToPath } from 'node:url' -globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url)) - -import * as runtime from "@prisma/client/runtime/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" -/** - * ## Prisma Client - * - * Type-safe database client for TypeScript - * @example - * ``` - * const prisma = new PrismaClient({ - * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }) - * }) - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - * - * Read more in our [docs](https://pris.ly/d/client). - */ -export const PrismaClient = $Class.getPrismaClientClass() -export type PrismaClient = $Class.PrismaClient -export { Prisma } - -/** - * Model User - * - */ -export type User = Prisma.UserModel -/** - * Model Account - * - */ -export type Account = Prisma.AccountModel -/** - * Model Session - * - */ -export type Session = Prisma.SessionModel -/** - * Model Post - * - */ -export type Post = Prisma.PostModel -/** - * Model Resource - * - */ -export type Resource = Prisma.ResourceModel -/** - * Model Comment - * - */ -export type Comment = Prisma.CommentModel -/** - * Model VerificationToken - * - */ -export type VerificationToken = Prisma.VerificationTokenModel diff --git a/backend/src/generated/prisma/commonInputTypes.ts b/backend/src/generated/prisma/commonInputTypes.ts deleted file mode 100644 index 29fa0b5..0000000 --- a/backend/src/generated/prisma/commonInputTypes.ts +++ /dev/null @@ -1,348 +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 various common sort, input & filter types that are not directly linked to a particular model. - * - * 🟢 You can import this file directly. - */ - -import type * as runtime from "@prisma/client/runtime/client" -import * as $Enums from "./enums.ts" -import type * as Prisma from "./internal/prismaNamespace.ts" - - -export type StringFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringFilter<$PrismaModel> | string -} - -export type StringNullableFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null -} - -export type DateTimeNullableFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | null - notIn?: Date[] | string[] | null - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null -} - -export type DateTimeFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string -} - -export type SortOrderInput = { - sort: Prisma.SortOrder - nulls?: Prisma.NullsOrder -} - -export type StringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedStringFilter<$PrismaModel> - _max?: Prisma.NestedStringFilter<$PrismaModel> -} - -export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedStringNullableFilter<$PrismaModel> - _max?: Prisma.NestedStringNullableFilter<$PrismaModel> -} - -export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | null - notIn?: Date[] | string[] | null - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> - _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> -} - -export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedDateTimeFilter<$PrismaModel> - _max?: Prisma.NestedDateTimeFilter<$PrismaModel> -} - -export type IntNullableFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null -} - -export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> - _sum?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedIntNullableFilter<$PrismaModel> - _max?: Prisma.NestedIntNullableFilter<$PrismaModel> -} - -export type BoolFilter<$PrismaModel = never> = { - equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> - not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean -} - -export type BoolWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> - not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedBoolFilter<$PrismaModel> - _max?: Prisma.NestedBoolFilter<$PrismaModel> -} - -export type NestedStringFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringFilter<$PrismaModel> | string -} - -export type NestedStringNullableFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null -} - -export type NestedDateTimeNullableFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | null - notIn?: Date[] | string[] | null - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null -} - -export type NestedDateTimeFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string -} - -export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedStringFilter<$PrismaModel> - _max?: Prisma.NestedStringFilter<$PrismaModel> -} - -export type NestedIntFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntFilter<$PrismaModel> | number -} - -export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedStringNullableFilter<$PrismaModel> - _max?: Prisma.NestedStringNullableFilter<$PrismaModel> -} - -export type NestedIntNullableFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null -} - -export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | null - notIn?: Date[] | string[] | null - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> - _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> -} - -export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedDateTimeFilter<$PrismaModel> - _max?: Prisma.NestedDateTimeFilter<$PrismaModel> -} - -export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> - _sum?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedIntNullableFilter<$PrismaModel> - _max?: Prisma.NestedIntNullableFilter<$PrismaModel> -} - -export type NestedFloatNullableFilter<$PrismaModel = never> = { - equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> - lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> - gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> - gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> - not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null -} - -export type NestedBoolFilter<$PrismaModel = never> = { - equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> - not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean -} - -export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> - not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedBoolFilter<$PrismaModel> - _max?: Prisma.NestedBoolFilter<$PrismaModel> -} - - diff --git a/backend/src/generated/prisma/enums.ts b/backend/src/generated/prisma/enums.ts deleted file mode 100644 index 043572d..0000000 --- a/backend/src/generated/prisma/enums.ts +++ /dev/null @@ -1,15 +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 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/backend/src/generated/prisma/internal/class.ts b/backend/src/generated/prisma/internal/class.ts deleted file mode 100644 index f43a415..0000000 --- a/backend/src/generated/prisma/internal/class.ts +++ /dev/null @@ -1,264 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * WARNING: This is an internal file that is subject to change! - * - * 🛑 Under no circumstances should you import this file directly! 🛑 - * - * Please import the `PrismaClient` class from the `client.ts` file instead. - */ - -import * as runtime from "@prisma/client/runtime/client" -import type * as Prisma from "./prismaNamespace.ts" - - -const config: runtime.GetPrismaClientConfig = { - "previewFeatures": [], - "clientVersion": "7.4.2", - "engineVersion": "94a226be1cf2967af2541cca5529f0f7ba866919", - "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 engineType = \"client\"\n runtime = \"bun\"\n}\n\ndatasource db {\n provider = \"sqlite\"\n}\n\nmodel User {\n id String @id @default(cuid())\n name String?\n email String? @unique\n emailVerified DateTime?\n phone String? @unique\n phoneVerified DateTime?\n image String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n accounts Account[]\n sessions Session[]\n posts Post[]\n comments Comment[]\n}\n\nmodel Account {\n id String @id @default(cuid())\n userId String @map(\"user_id\")\n type String\n provider String\n providerAccountId String @map(\"provider_account_id\")\n refresh_token String?\n access_token String?\n expires_at Int?\n token_type String?\n scope String?\n id_token String?\n session_state String?\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@unique([provider, providerAccountId])\n @@map(\"accounts\")\n}\n\nmodel Session {\n id String @id @default(cuid())\n sessionToken String @unique @map(\"session_token\")\n userId String @map(\"user_id\")\n expires DateTime\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@map(\"sessions\")\n}\n\nmodel Post {\n id String @id @default(cuid())\n title String\n content String\n userId String @map(\"user_id\")\n published Boolean @default(false)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n comments Comment[]\n\n @@map(\"posts\")\n}\n\nmodel Resource {\n id String @id @default(cuid())\n title String\n description String?\n url String\n icon String?\n category String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@map(\"resources\")\n}\n\nmodel Comment {\n id String @id @default(cuid())\n content String\n userId String @map(\"user_id\")\n postId String @map(\"post_id\")\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n post Post @relation(fields: [postId], references: [id], onDelete: Cascade)\n\n @@map(\"comments\")\n}\n\nmodel VerificationToken {\n identifier String\n token String @unique\n expires DateTime\n\n @@unique([identifier, token])\n @@map(\"verification_tokens\")\n}\n", - "runtimeDataModel": { - "models": {}, - "enums": {}, - "types": {} - }, - "parameterizationSchema": { - "strings": [], - "graph": "" - } -} - -config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phoneVerified\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"image\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"accounts\",\"kind\":\"object\",\"type\":\"Account\",\"relationName\":\"AccountToUser\"},{\"name\":\"sessions\",\"kind\":\"object\",\"type\":\"Session\",\"relationName\":\"SessionToUser\"},{\"name\":\"posts\",\"kind\":\"object\",\"type\":\"Post\",\"relationName\":\"PostToUser\"},{\"name\":\"comments\",\"kind\":\"object\",\"type\":\"Comment\",\"relationName\":\"CommentToUser\"}],\"dbName\":null},\"Account\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"provider\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"providerAccountId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"provider_account_id\"},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"access_token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"token_type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"scope\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"id_token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"session_state\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"AccountToUser\"}],\"dbName\":\"accounts\"},\"Session\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sessionToken\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"session_token\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"expires\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"SessionToUser\"}],\"dbName\":\"sessions\"},\"Post\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"content\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"published\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"PostToUser\"},{\"name\":\"comments\",\"kind\":\"object\",\"type\":\"Comment\",\"relationName\":\"CommentToPost\"}],\"dbName\":\"posts\"},\"Resource\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"url\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"icon\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"category\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":\"resources\"},\"Comment\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"content\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"postId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"post_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"CommentToUser\"},{\"name\":\"post\",\"kind\":\"object\",\"type\":\"Post\",\"relationName\":\"CommentToPost\"}],\"dbName\":\"comments\"},\"VerificationToken\":{\"fields\":[{\"name\":\"identifier\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expires\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":\"verification_tokens\"}},\"enums\":{},\"types\":{}}") -config.parameterizationSchema = { - strings: JSON.parse("[\"where\",\"orderBy\",\"cursor\",\"user\",\"accounts\",\"sessions\",\"post\",\"comments\",\"_count\",\"posts\",\"User.findUnique\",\"User.findUniqueOrThrow\",\"User.findFirst\",\"User.findFirstOrThrow\",\"User.findMany\",\"data\",\"User.createOne\",\"User.createMany\",\"User.createManyAndReturn\",\"User.updateOne\",\"User.updateMany\",\"User.updateManyAndReturn\",\"create\",\"update\",\"User.upsertOne\",\"User.deleteOne\",\"User.deleteMany\",\"having\",\"_min\",\"_max\",\"User.groupBy\",\"User.aggregate\",\"Account.findUnique\",\"Account.findUniqueOrThrow\",\"Account.findFirst\",\"Account.findFirstOrThrow\",\"Account.findMany\",\"Account.createOne\",\"Account.createMany\",\"Account.createManyAndReturn\",\"Account.updateOne\",\"Account.updateMany\",\"Account.updateManyAndReturn\",\"Account.upsertOne\",\"Account.deleteOne\",\"Account.deleteMany\",\"_avg\",\"_sum\",\"Account.groupBy\",\"Account.aggregate\",\"Session.findUnique\",\"Session.findUniqueOrThrow\",\"Session.findFirst\",\"Session.findFirstOrThrow\",\"Session.findMany\",\"Session.createOne\",\"Session.createMany\",\"Session.createManyAndReturn\",\"Session.updateOne\",\"Session.updateMany\",\"Session.updateManyAndReturn\",\"Session.upsertOne\",\"Session.deleteOne\",\"Session.deleteMany\",\"Session.groupBy\",\"Session.aggregate\",\"Post.findUnique\",\"Post.findUniqueOrThrow\",\"Post.findFirst\",\"Post.findFirstOrThrow\",\"Post.findMany\",\"Post.createOne\",\"Post.createMany\",\"Post.createManyAndReturn\",\"Post.updateOne\",\"Post.updateMany\",\"Post.updateManyAndReturn\",\"Post.upsertOne\",\"Post.deleteOne\",\"Post.deleteMany\",\"Post.groupBy\",\"Post.aggregate\",\"Resource.findUnique\",\"Resource.findUniqueOrThrow\",\"Resource.findFirst\",\"Resource.findFirstOrThrow\",\"Resource.findMany\",\"Resource.createOne\",\"Resource.createMany\",\"Resource.createManyAndReturn\",\"Resource.updateOne\",\"Resource.updateMany\",\"Resource.updateManyAndReturn\",\"Resource.upsertOne\",\"Resource.deleteOne\",\"Resource.deleteMany\",\"Resource.groupBy\",\"Resource.aggregate\",\"Comment.findUnique\",\"Comment.findUniqueOrThrow\",\"Comment.findFirst\",\"Comment.findFirstOrThrow\",\"Comment.findMany\",\"Comment.createOne\",\"Comment.createMany\",\"Comment.createManyAndReturn\",\"Comment.updateOne\",\"Comment.updateMany\",\"Comment.updateManyAndReturn\",\"Comment.upsertOne\",\"Comment.deleteOne\",\"Comment.deleteMany\",\"Comment.groupBy\",\"Comment.aggregate\",\"VerificationToken.findUnique\",\"VerificationToken.findUniqueOrThrow\",\"VerificationToken.findFirst\",\"VerificationToken.findFirstOrThrow\",\"VerificationToken.findMany\",\"VerificationToken.createOne\",\"VerificationToken.createMany\",\"VerificationToken.createManyAndReturn\",\"VerificationToken.updateOne\",\"VerificationToken.updateMany\",\"VerificationToken.updateManyAndReturn\",\"VerificationToken.upsertOne\",\"VerificationToken.deleteOne\",\"VerificationToken.deleteMany\",\"VerificationToken.groupBy\",\"VerificationToken.aggregate\",\"AND\",\"OR\",\"NOT\",\"identifier\",\"token\",\"expires\",\"equals\",\"in\",\"notIn\",\"lt\",\"lte\",\"gt\",\"gte\",\"not\",\"contains\",\"startsWith\",\"endsWith\",\"identifier_token\",\"id\",\"content\",\"userId\",\"postId\",\"createdAt\",\"updatedAt\",\"title\",\"description\",\"url\",\"icon\",\"category\",\"published\",\"sessionToken\",\"type\",\"provider\",\"providerAccountId\",\"refresh_token\",\"access_token\",\"expires_at\",\"token_type\",\"scope\",\"id_token\",\"session_state\",\"name\",\"email\",\"emailVerified\",\"phone\",\"phoneVerified\",\"image\",\"every\",\"some\",\"none\",\"provider_providerAccountId\",\"is\",\"isNot\",\"connectOrCreate\",\"upsert\",\"createMany\",\"set\",\"disconnect\",\"delete\",\"connect\",\"updateMany\",\"deleteMany\",\"increment\",\"decrement\",\"multiply\",\"divide\"]"), - graph: "-AI9cBAEAADdAQAgBQAA3gEAIAcAAOABACAJAADfAQAgggEAANsBADCDAQAAGgAQhAEAANsBADCUAQEAAAABmAFAAMQBACGZAUAAxAEAIasBAQDNAQAhrAEBAAAAAa0BQADcAQAhrgEBAAAAAa8BQADcAQAhsAEBAM0BACEBAAAAAQAgEAMAAOIBACCCAQAA6AEAMIMBAAADABCEAQAA6AEAMJQBAQDDAQAhlgEBAMMBACGhAQEAwwEAIaIBAQDDAQAhowEBAMMBACGkAQEAzQEAIaUBAQDNAQAhpgECAOkBACGnAQEAzQEAIagBAQDNAQAhqQEBAM0BACGqAQEAzQEAIQgDAADZAgAgpAEAAPYBACClAQAA9gEAIKYBAAD2AQAgpwEAAPYBACCoAQAA9gEAIKkBAAD2AQAgqgEAAPYBACARAwAA4gEAIIIBAADoAQAwgwEAAAMAEIQBAADoAQAwlAEBAAAAAZYBAQDDAQAhoQEBAMMBACGiAQEAwwEAIaMBAQDDAQAhpAEBAM0BACGlAQEAzQEAIaYBAgDpAQAhpwEBAM0BACGoAQEAzQEAIakBAQDNAQAhqgEBAM0BACG0AQAA5wEAIAMAAAADACABAAAEADACAAAFACAIAwAA4gEAIIIBAADmAQAwgwEAAAcAEIQBAADmAQAwhwFAAMQBACGUAQEAwwEAIZYBAQDDAQAhoAEBAMMBACEBAwAA2QIAIAgDAADiAQAgggEAAOYBADCDAQAABwAQhAEAAOYBADCHAUAAxAEAIZQBAQAAAAGWAQEAwwEAIaABAQAAAAEDAAAABwAgAQAACAAwAgAACQAgDAMAAOIBACAHAADgAQAgggEAAOQBADCDAQAACwAQhAEAAOQBADCUAQEAwwEAIZUBAQDDAQAhlgEBAMMBACGYAUAAxAEAIZkBQADEAQAhmgEBAMMBACGfASAA5QEAIQIDAADZAgAgBwAA2AIAIAwDAADiAQAgBwAA4AEAIIIBAADkAQAwgwEAAAsAEIQBAADkAQAwlAEBAAAAAZUBAQDDAQAhlgEBAMMBACGYAUAAxAEAIZkBQADEAQAhmgEBAMMBACGfASAA5QEAIQMAAAALACABAAAMADACAAANACALAwAA4gEAIAYAAOMBACCCAQAA4QEAMIMBAAAPABCEAQAA4QEAMJQBAQDDAQAhlQEBAMMBACGWAQEAwwEAIZcBAQDDAQAhmAFAAMQBACGZAUAAxAEAIQIDAADZAgAgBgAA2gIAIAsDAADiAQAgBgAA4wEAIIIBAADhAQAwgwEAAA8AEIQBAADhAQAwlAEBAAAAAZUBAQDDAQAhlgEBAMMBACGXAQEAwwEAIZgBQADEAQAhmQFAAMQBACEDAAAADwAgAQAAEAAwAgAAEQAgAQAAAA8AIAMAAAAPACABAAAQADACAAARACABAAAAAwAgAQAAAAcAIAEAAAALACABAAAADwAgAQAAAAEAIBAEAADdAQAgBQAA3gEAIAcAAOABACAJAADfAQAgggEAANsBADCDAQAAGgAQhAEAANsBADCUAQEAwwEAIZgBQADEAQAhmQFAAMQBACGrAQEAzQEAIawBAQDNAQAhrQFAANwBACGuAQEAzQEAIa8BQADcAQAhsAEBAM0BACEKBAAA1QIAIAUAANYCACAHAADYAgAgCQAA1wIAIKsBAAD2AQAgrAEAAPYBACCtAQAA9gEAIK4BAAD2AQAgrwEAAPYBACCwAQAA9gEAIAMAAAAaACABAAAbADACAAABACADAAAAGgAgAQAAGwAwAgAAAQAgAwAAABoAIAEAABsAMAIAAAEAIA0EAADRAgAgBQAA0gIAIAcAANQCACAJAADTAgAglAEBAAAAAZgBQAAAAAGZAUAAAAABqwEBAAAAAawBAQAAAAGtAUAAAAABrgEBAAAAAa8BQAAAAAGwAQEAAAABAQ8AAB8AIAmUAQEAAAABmAFAAAAAAZkBQAAAAAGrAQEAAAABrAEBAAAAAa0BQAAAAAGuAQEAAAABrwFAAAAAAbABAQAAAAEBDwAAIQAwAQ8AACEAMA0EAACgAgAgBQAAoQIAIAcAAKMCACAJAACiAgAglAEBAO0BACGYAUAA7gEAIZkBQADuAQAhqwEBAPoBACGsAQEA-gEAIa0BQACfAgAhrgEBAPoBACGvAUAAnwIAIbABAQD6AQAhAgAAAAEAIA8AACQAIAmUAQEA7QEAIZgBQADuAQAhmQFAAO4BACGrAQEA-gEAIawBAQD6AQAhrQFAAJ8CACGuAQEA-gEAIa8BQACfAgAhsAEBAPoBACECAAAAGgAgDwAAJgAgAgAAABoAIA8AACYAIAMAAAABACAWAAAfACAXAAAkACABAAAAAQAgAQAAABoAIAkIAACcAgAgHAAAngIAIB0AAJ0CACCrAQAA9gEAIKwBAAD2AQAgrQEAAPYBACCuAQAA9gEAIK8BAAD2AQAgsAEAAPYBACAMggEAANcBADCDAQAALQAQhAEAANcBADCUAQEAuwEAIZgBQAC8AQAhmQFAALwBACGrAQEAyAEAIawBAQDIAQAhrQFAANgBACGuAQEAyAEAIa8BQADYAQAhsAEBAMgBACEDAAAAGgAgAQAALAAwGwAALQAgAwAAABoAIAEAABsAMAIAAAEAIAEAAAAFACABAAAABQAgAwAAAAMAIAEAAAQAMAIAAAUAIAMAAAADACABAAAEADACAAAFACADAAAAAwAgAQAABAAwAgAABQAgDQMAAJsCACCUAQEAAAABlgEBAAAAAaEBAQAAAAGiAQEAAAABowEBAAAAAaQBAQAAAAGlAQEAAAABpgECAAAAAacBAQAAAAGoAQEAAAABqQEBAAAAAaoBAQAAAAEBDwAANQAgDJQBAQAAAAGWAQEAAAABoQEBAAAAAaIBAQAAAAGjAQEAAAABpAEBAAAAAaUBAQAAAAGmAQIAAAABpwEBAAAAAagBAQAAAAGpAQEAAAABqgEBAAAAAQEPAAA3ADABDwAANwAwDQMAAJoCACCUAQEA7QEAIZYBAQDtAQAhoQEBAO0BACGiAQEA7QEAIaMBAQDtAQAhpAEBAPoBACGlAQEA-gEAIaYBAgCZAgAhpwEBAPoBACGoAQEA-gEAIakBAQD6AQAhqgEBAPoBACECAAAABQAgDwAAOgAgDJQBAQDtAQAhlgEBAO0BACGhAQEA7QEAIaIBAQDtAQAhowEBAO0BACGkAQEA-gEAIaUBAQD6AQAhpgECAJkCACGnAQEA-gEAIagBAQD6AQAhqQEBAPoBACGqAQEA-gEAIQIAAAADACAPAAA8ACACAAAAAwAgDwAAPAAgAwAAAAUAIBYAADUAIBcAADoAIAEAAAAFACABAAAAAwAgDAgAAJQCACAcAACXAgAgHQAAlgIAIC4AAJUCACAvAACYAgAgpAEAAPYBACClAQAA9gEAIKYBAAD2AQAgpwEAAPYBACCoAQAA9gEAIKkBAAD2AQAgqgEAAPYBACAPggEAANMBADCDAQAAQwAQhAEAANMBADCUAQEAuwEAIZYBAQC7AQAhoQEBALsBACGiAQEAuwEAIaMBAQC7AQAhpAEBAMgBACGlAQEAyAEAIaYBAgDUAQAhpwEBAMgBACGoAQEAyAEAIakBAQDIAQAhqgEBAMgBACEDAAAAAwAgAQAAQgAwGwAAQwAgAwAAAAMAIAEAAAQAMAIAAAUAIAEAAAAJACABAAAACQAgAwAAAAcAIAEAAAgAMAIAAAkAIAMAAAAHACABAAAIADACAAAJACADAAAABwAgAQAACAAwAgAACQAgBQMAAJMCACCHAUAAAAABlAEBAAAAAZYBAQAAAAGgAQEAAAABAQ8AAEsAIASHAUAAAAABlAEBAAAAAZYBAQAAAAGgAQEAAAABAQ8AAE0AMAEPAABNADAFAwAAkgIAIIcBQADuAQAhlAEBAO0BACGWAQEA7QEAIaABAQDtAQAhAgAAAAkAIA8AAFAAIASHAUAA7gEAIZQBAQDtAQAhlgEBAO0BACGgAQEA7QEAIQIAAAAHACAPAABSACACAAAABwAgDwAAUgAgAwAAAAkAIBYAAEsAIBcAAFAAIAEAAAAJACABAAAABwAgAwgAAI8CACAcAACRAgAgHQAAkAIAIAeCAQAA0gEAMIMBAABZABCEAQAA0gEAMIcBQAC8AQAhlAEBALsBACGWAQEAuwEAIaABAQC7AQAhAwAAAAcAIAEAAFgAMBsAAFkAIAMAAAAHACABAAAIADACAAAJACABAAAADQAgAQAAAA0AIAMAAAALACABAAAMADACAAANACADAAAACwAgAQAADAAwAgAADQAgAwAAAAsAIAEAAAwAMAIAAA0AIAkDAACNAgAgBwAAjgIAIJQBAQAAAAGVAQEAAAABlgEBAAAAAZgBQAAAAAGZAUAAAAABmgEBAAAAAZ8BIAAAAAEBDwAAYQAgB5QBAQAAAAGVAQEAAAABlgEBAAAAAZgBQAAAAAGZAUAAAAABmgEBAAAAAZ8BIAAAAAEBDwAAYwAwAQ8AAGMAMAkDAAD_AQAgBwAAgAIAIJQBAQDtAQAhlQEBAO0BACGWAQEA7QEAIZgBQADuAQAhmQFAAO4BACGaAQEA7QEAIZ8BIAD-AQAhAgAAAA0AIA8AAGYAIAeUAQEA7QEAIZUBAQDtAQAhlgEBAO0BACGYAUAA7gEAIZkBQADuAQAhmgEBAO0BACGfASAA_gEAIQIAAAALACAPAABoACACAAAACwAgDwAAaAAgAwAAAA0AIBYAAGEAIBcAAGYAIAEAAAANACABAAAACwAgAwgAAPsBACAcAAD9AQAgHQAA_AEAIAqCAQAAzgEAMIMBAABvABCEAQAAzgEAMJQBAQC7AQAhlQEBALsBACGWAQEAuwEAIZgBQAC8AQAhmQFAALwBACGaAQEAuwEAIZ8BIADPAQAhAwAAAAsAIAEAAG4AMBsAAG8AIAMAAAALACABAAAMADACAAANACALggEAAMwBADCDAQAAdQAQhAEAAMwBADCUAQEAAAABmAFAAMQBACGZAUAAxAEAIZoBAQDDAQAhmwEBAM0BACGcAQEAwwEAIZ0BAQDNAQAhngEBAM0BACEBAAAAcgAgAQAAAHIAIAuCAQAAzAEAMIMBAAB1ABCEAQAAzAEAMJQBAQDDAQAhmAFAAMQBACGZAUAAxAEAIZoBAQDDAQAhmwEBAM0BACGcAQEAwwEAIZ0BAQDNAQAhngEBAM0BACEDmwEAAPYBACCdAQAA9gEAIJ4BAAD2AQAgAwAAAHUAIAEAAHYAMAIAAHIAIAMAAAB1ACABAAB2ADACAAByACADAAAAdQAgAQAAdgAwAgAAcgAgCJQBAQAAAAGYAUAAAAABmQFAAAAAAZoBAQAAAAGbAQEAAAABnAEBAAAAAZ0BAQAAAAGeAQEAAAABAQ8AAHoAIAiUAQEAAAABmAFAAAAAAZkBQAAAAAGaAQEAAAABmwEBAAAAAZwBAQAAAAGdAQEAAAABngEBAAAAAQEPAAB8ADABDwAAfAAwCJQBAQDtAQAhmAFAAO4BACGZAUAA7gEAIZoBAQDtAQAhmwEBAPoBACGcAQEA7QEAIZ0BAQD6AQAhngEBAPoBACECAAAAcgAgDwAAfwAgCJQBAQDtAQAhmAFAAO4BACGZAUAA7gEAIZoBAQDtAQAhmwEBAPoBACGcAQEA7QEAIZ0BAQD6AQAhngEBAPoBACECAAAAdQAgDwAAgQEAIAIAAAB1ACAPAACBAQAgAwAAAHIAIBYAAHoAIBcAAH8AIAEAAAByACABAAAAdQAgBggAAPcBACAcAAD5AQAgHQAA-AEAIJsBAAD2AQAgnQEAAPYBACCeAQAA9gEAIAuCAQAAxwEAMIMBAACIAQAQhAEAAMcBADCUAQEAuwEAIZgBQAC8AQAhmQFAALwBACGaAQEAuwEAIZsBAQDIAQAhnAEBALsBACGdAQEAyAEAIZ4BAQDIAQAhAwAAAHUAIAEAAIcBADAbAACIAQAgAwAAAHUAIAEAAHYAMAIAAHIAIAEAAAARACABAAAAEQAgAwAAAA8AIAEAABAAMAIAABEAIAMAAAAPACABAAAQADACAAARACADAAAADwAgAQAAEAAwAgAAEQAgCAMAAPQBACAGAAD1AQAglAEBAAAAAZUBAQAAAAGWAQEAAAABlwEBAAAAAZgBQAAAAAGZAUAAAAABAQ8AAJABACAGlAEBAAAAAZUBAQAAAAGWAQEAAAABlwEBAAAAAZgBQAAAAAGZAUAAAAABAQ8AAJIBADABDwAAkgEAMAgDAADyAQAgBgAA8wEAIJQBAQDtAQAhlQEBAO0BACGWAQEA7QEAIZcBAQDtAQAhmAFAAO4BACGZAUAA7gEAIQIAAAARACAPAACVAQAgBpQBAQDtAQAhlQEBAO0BACGWAQEA7QEAIZcBAQDtAQAhmAFAAO4BACGZAUAA7gEAIQIAAAAPACAPAACXAQAgAgAAAA8AIA8AAJcBACADAAAAEQAgFgAAkAEAIBcAAJUBACABAAAAEQAgAQAAAA8AIAMIAADvAQAgHAAA8QEAIB0AAPABACAJggEAAMYBADCDAQAAngEAEIQBAADGAQAwlAEBALsBACGVAQEAuwEAIZYBAQC7AQAhlwEBALsBACGYAUAAvAEAIZkBQAC8AQAhAwAAAA8AIAEAAJ0BADAbAACeAQAgAwAAAA8AIAEAABAAMAIAABEAIAeCAQAAwgEAMIMBAACkAQAQhAEAAMIBADCFAQEAwwEAIYYBAQAAAAGHAUAAxAEAIZMBAADFAQAgAQAAAKEBACABAAAAoQEAIAaCAQAAwgEAMIMBAACkAQAQhAEAAMIBADCFAQEAwwEAIYYBAQDDAQAhhwFAAMQBACEAAwAAAKQBACABAAClAQAwAgAAoQEAIAMAAACkAQAgAQAApQEAMAIAAKEBACADAAAApAEAIAEAAKUBADACAAChAQAgA4UBAQAAAAGGAQEAAAABhwFAAAAAAQEPAACpAQAgA4UBAQAAAAGGAQEAAAABhwFAAAAAAQEPAACrAQAwAQ8AAKsBADADhQEBAO0BACGGAQEA7QEAIYcBQADuAQAhAgAAAKEBACAPAACuAQAgA4UBAQDtAQAhhgEBAO0BACGHAUAA7gEAIQIAAACkAQAgDwAAsAEAIAIAAACkAQAgDwAAsAEAIAMAAAChAQAgFgAAqQEAIBcAAK4BACABAAAAoQEAIAEAAACkAQAgAwgAAOoBACAcAADsAQAgHQAA6wEAIAaCAQAAugEAMIMBAAC3AQAQhAEAALoBADCFAQEAuwEAIYYBAQC7AQAhhwFAALwBACEDAAAApAEAIAEAALYBADAbAAC3AQAgAwAAAKQBACABAAClAQAwAgAAoQEAIAaCAQAAugEAMIMBAAC3AQAQhAEAALoBADCFAQEAuwEAIYYBAQC7AQAhhwFAALwBACEOCAAAvgEAIBwAAMEBACAdAADBAQAgiAEBAAAAAYkBAQAAAASKAQEAAAAEiwEBAAAAAYwBAQAAAAGNAQEAAAABjgEBAAAAAY8BAQDAAQAhkAEBAAAAAZEBAQAAAAGSAQEAAAABCwgAAL4BACAcAAC_AQAgHQAAvwEAIIgBQAAAAAGJAUAAAAAEigFAAAAABIsBQAAAAAGMAUAAAAABjQFAAAAAAY4BQAAAAAGPAUAAvQEAIQsIAAC-AQAgHAAAvwEAIB0AAL8BACCIAUAAAAABiQFAAAAABIoBQAAAAASLAUAAAAABjAFAAAAAAY0BQAAAAAGOAUAAAAABjwFAAL0BACEIiAECAAAAAYkBAgAAAASKAQIAAAAEiwECAAAAAYwBAgAAAAGNAQIAAAABjgECAAAAAY8BAgC-AQAhCIgBQAAAAAGJAUAAAAAEigFAAAAABIsBQAAAAAGMAUAAAAABjQFAAAAAAY4BQAAAAAGPAUAAvwEAIQ4IAAC-AQAgHAAAwQEAIB0AAMEBACCIAQEAAAABiQEBAAAABIoBAQAAAASLAQEAAAABjAEBAAAAAY0BAQAAAAGOAQEAAAABjwEBAMABACGQAQEAAAABkQEBAAAAAZIBAQAAAAELiAEBAAAAAYkBAQAAAASKAQEAAAAEiwEBAAAAAYwBAQAAAAGNAQEAAAABjgEBAAAAAY8BAQDBAQAhkAEBAAAAAZEBAQAAAAGSAQEAAAABBoIBAADCAQAwgwEAAKQBABCEAQAAwgEAMIUBAQDDAQAhhgEBAMMBACGHAUAAxAEAIQuIAQEAAAABiQEBAAAABIoBAQAAAASLAQEAAAABjAEBAAAAAY0BAQAAAAGOAQEAAAABjwEBAMEBACGQAQEAAAABkQEBAAAAAZIBAQAAAAEIiAFAAAAAAYkBQAAAAASKAUAAAAAEiwFAAAAAAYwBQAAAAAGNAUAAAAABjgFAAAAAAY8BQAC_AQAhAoUBAQAAAAGGAQEAAAABCYIBAADGAQAwgwEAAJ4BABCEAQAAxgEAMJQBAQC7AQAhlQEBALsBACGWAQEAuwEAIZcBAQC7AQAhmAFAALwBACGZAUAAvAEAIQuCAQAAxwEAMIMBAACIAQAQhAEAAMcBADCUAQEAuwEAIZgBQAC8AQAhmQFAALwBACGaAQEAuwEAIZsBAQDIAQAhnAEBALsBACGdAQEAyAEAIZ4BAQDIAQAhDggAAMoBACAcAADLAQAgHQAAywEAIIgBAQAAAAGJAQEAAAAFigEBAAAABYsBAQAAAAGMAQEAAAABjQEBAAAAAY4BAQAAAAGPAQEAyQEAIZABAQAAAAGRAQEAAAABkgEBAAAAAQ4IAADKAQAgHAAAywEAIB0AAMsBACCIAQEAAAABiQEBAAAABYoBAQAAAAWLAQEAAAABjAEBAAAAAY0BAQAAAAGOAQEAAAABjwEBAMkBACGQAQEAAAABkQEBAAAAAZIBAQAAAAEIiAECAAAAAYkBAgAAAAWKAQIAAAAFiwECAAAAAYwBAgAAAAGNAQIAAAABjgECAAAAAY8BAgDKAQAhC4gBAQAAAAGJAQEAAAAFigEBAAAABYsBAQAAAAGMAQEAAAABjQEBAAAAAY4BAQAAAAGPAQEAywEAIZABAQAAAAGRAQEAAAABkgEBAAAAAQuCAQAAzAEAMIMBAAB1ABCEAQAAzAEAMJQBAQDDAQAhmAFAAMQBACGZAUAAxAEAIZoBAQDDAQAhmwEBAM0BACGcAQEAwwEAIZ0BAQDNAQAhngEBAM0BACELiAEBAAAAAYkBAQAAAAWKAQEAAAAFiwEBAAAAAYwBAQAAAAGNAQEAAAABjgEBAAAAAY8BAQDLAQAhkAEBAAAAAZEBAQAAAAGSAQEAAAABCoIBAADOAQAwgwEAAG8AEIQBAADOAQAwlAEBALsBACGVAQEAuwEAIZYBAQC7AQAhmAFAALwBACGZAUAAvAEAIZoBAQC7AQAhnwEgAM8BACEFCAAAvgEAIBwAANEBACAdAADRAQAgiAEgAAAAAY8BIADQAQAhBQgAAL4BACAcAADRAQAgHQAA0QEAIIgBIAAAAAGPASAA0AEAIQKIASAAAAABjwEgANEBACEHggEAANIBADCDAQAAWQAQhAEAANIBADCHAUAAvAEAIZQBAQC7AQAhlgEBALsBACGgAQEAuwEAIQ-CAQAA0wEAMIMBAABDABCEAQAA0wEAMJQBAQC7AQAhlgEBALsBACGhAQEAuwEAIaIBAQC7AQAhowEBALsBACGkAQEAyAEAIaUBAQDIAQAhpgECANQBACGnAQEAyAEAIagBAQDIAQAhqQEBAMgBACGqAQEAyAEAIQ0IAADKAQAgHAAAygEAIB0AAMoBACAuAADWAQAgLwAAygEAIIgBAgAAAAGJAQIAAAAFigECAAAABYsBAgAAAAGMAQIAAAABjQECAAAAAY4BAgAAAAGPAQIA1QEAIQ0IAADKAQAgHAAAygEAIB0AAMoBACAuAADWAQAgLwAAygEAIIgBAgAAAAGJAQIAAAAFigECAAAABYsBAgAAAAGMAQIAAAABjQECAAAAAY4BAgAAAAGPAQIA1QEAIQiIAQgAAAABiQEIAAAABYoBCAAAAAWLAQgAAAABjAEIAAAAAY0BCAAAAAGOAQgAAAABjwEIANYBACEMggEAANcBADCDAQAALQAQhAEAANcBADCUAQEAuwEAIZgBQAC8AQAhmQFAALwBACGrAQEAyAEAIawBAQDIAQAhrQFAANgBACGuAQEAyAEAIa8BQADYAQAhsAEBAMgBACELCAAAygEAIBwAANoBACAdAADaAQAgiAFAAAAAAYkBQAAAAAWKAUAAAAAFiwFAAAAAAYwBQAAAAAGNAUAAAAABjgFAAAAAAY8BQADZAQAhCwgAAMoBACAcAADaAQAgHQAA2gEAIIgBQAAAAAGJAUAAAAAFigFAAAAABYsBQAAAAAGMAUAAAAABjQFAAAAAAY4BQAAAAAGPAUAA2QEAIQiIAUAAAAABiQFAAAAABYoBQAAAAAWLAUAAAAABjAFAAAAAAY0BQAAAAAGOAUAAAAABjwFAANoBACEQBAAA3QEAIAUAAN4BACAHAADgAQAgCQAA3wEAIIIBAADbAQAwgwEAABoAEIQBAADbAQAwlAEBAMMBACGYAUAAxAEAIZkBQADEAQAhqwEBAM0BACGsAQEAzQEAIa0BQADcAQAhrgEBAM0BACGvAUAA3AEAIbABAQDNAQAhCIgBQAAAAAGJAUAAAAAFigFAAAAABYsBQAAAAAGMAUAAAAABjQFAAAAAAY4BQAAAAAGPAUAA2gEAIQOxAQAAAwAgsgEAAAMAILMBAAADACADsQEAAAcAILIBAAAHACCzAQAABwAgA7EBAAALACCyAQAACwAgswEAAAsAIAOxAQAADwAgsgEAAA8AILMBAAAPACALAwAA4gEAIAYAAOMBACCCAQAA4QEAMIMBAAAPABCEAQAA4QEAMJQBAQDDAQAhlQEBAMMBACGWAQEAwwEAIZcBAQDDAQAhmAFAAMQBACGZAUAAxAEAIRIEAADdAQAgBQAA3gEAIAcAAOABACAJAADfAQAgggEAANsBADCDAQAAGgAQhAEAANsBADCUAQEAwwEAIZgBQADEAQAhmQFAAMQBACGrAQEAzQEAIawBAQDNAQAhrQFAANwBACGuAQEAzQEAIa8BQADcAQAhsAEBAM0BACG1AQAAGgAgtgEAABoAIA4DAADiAQAgBwAA4AEAIIIBAADkAQAwgwEAAAsAEIQBAADkAQAwlAEBAMMBACGVAQEAwwEAIZYBAQDDAQAhmAFAAMQBACGZAUAAxAEAIZoBAQDDAQAhnwEgAOUBACG1AQAACwAgtgEAAAsAIAwDAADiAQAgBwAA4AEAIIIBAADkAQAwgwEAAAsAEIQBAADkAQAwlAEBAMMBACGVAQEAwwEAIZYBAQDDAQAhmAFAAMQBACGZAUAAxAEAIZoBAQDDAQAhnwEgAOUBACECiAEgAAAAAY8BIADRAQAhCAMAAOIBACCCAQAA5gEAMIMBAAAHABCEAQAA5gEAMIcBQADEAQAhlAEBAMMBACGWAQEAwwEAIaABAQDDAQAhAqIBAQAAAAGjAQEAAAABEAMAAOIBACCCAQAA6AEAMIMBAAADABCEAQAA6AEAMJQBAQDDAQAhlgEBAMMBACGhAQEAwwEAIaIBAQDDAQAhowEBAMMBACGkAQEAzQEAIaUBAQDNAQAhpgECAOkBACGnAQEAzQEAIagBAQDNAQAhqQEBAM0BACGqAQEAzQEAIQiIAQIAAAABiQECAAAABYoBAgAAAAWLAQIAAAABjAECAAAAAY0BAgAAAAGOAQIAAAABjwECAMoBACEAAAABugEBAAAAAQG6AUAAAAABAAAABRYAAPECACAXAAD3AgAgtwEAAPICACC4AQAA9gIAIL0BAAABACAFFgAA7wIAIBcAAPQCACC3AQAA8AIAILgBAADzAgAgvQEAAA0AIAMWAADxAgAgtwEAAPICACC9AQAAAQAgAxYAAO8CACC3AQAA8AIAIL0BAAANACAAAAAAAboBAQAAAAEAAAABugEgAAAAAQUWAADpAgAgFwAA7QIAILcBAADqAgAguAEAAOwCACC9AQAAAQAgCxYAAIECADAXAACGAgAwtwEAAIICADC4AQAAgwIAMLkBAACEAgAgugEAAIUCADC7AQAAhQIAMLwBAACFAgAwvQEAAIUCADC-AQAAhwIAML8BAACIAgAwBgMAAPQBACCUAQEAAAABlQEBAAAAAZYBAQAAAAGYAUAAAAABmQFAAAAAAQIAAAARACAWAACMAgAgAwAAABEAIBYAAIwCACAXAACLAgAgAQ8AAOsCADALAwAA4gEAIAYAAOMBACCCAQAA4QEAMIMBAAAPABCEAQAA4QEAMJQBAQAAAAGVAQEAwwEAIZYBAQDDAQAhlwEBAMMBACGYAUAAxAEAIZkBQADEAQAhAgAAABEAIA8AAIsCACACAAAAiQIAIA8AAIoCACAJggEAAIgCADCDAQAAiQIAEIQBAACIAgAwlAEBAMMBACGVAQEAwwEAIZYBAQDDAQAhlwEBAMMBACGYAUAAxAEAIZkBQADEAQAhCYIBAACIAgAwgwEAAIkCABCEAQAAiAIAMJQBAQDDAQAhlQEBAMMBACGWAQEAwwEAIZcBAQDDAQAhmAFAAMQBACGZAUAAxAEAIQWUAQEA7QEAIZUBAQDtAQAhlgEBAO0BACGYAUAA7gEAIZkBQADuAQAhBgMAAPIBACCUAQEA7QEAIZUBAQDtAQAhlgEBAO0BACGYAUAA7gEAIZkBQADuAQAhBgMAAPQBACCUAQEAAAABlQEBAAAAAZYBAQAAAAGYAUAAAAABmQFAAAAAAQMWAADpAgAgtwEAAOoCACC9AQAAAQAgBBYAAIECADC3AQAAggIAMLkBAACEAgAgvQEAAIUCADAAAAAFFgAA5AIAIBcAAOcCACC3AQAA5QIAILgBAADmAgAgvQEAAAEAIAMWAADkAgAgtwEAAOUCACC9AQAAAQAgAAAAAAAFugECAAAAAcABAgAAAAHBAQIAAAABwgECAAAAAcMBAgAAAAEFFgAA3wIAIBcAAOICACC3AQAA4AIAILgBAADhAgAgvQEAAAEAIAMWAADfAgAgtwEAAOACACC9AQAAAQAgAAAAAboBQAAAAAELFgAAxQIAMBcAAMoCADC3AQAAxgIAMLgBAADHAgAwuQEAAMgCACC6AQAAyQIAMLsBAADJAgAwvAEAAMkCADC9AQAAyQIAML4BAADLAgAwvwEAAMwCADALFgAAuQIAMBcAAL4CADC3AQAAugIAMLgBAAC7AgAwuQEAALwCACC6AQAAvQIAMLsBAAC9AgAwvAEAAL0CADC9AQAAvQIAML4BAAC_AgAwvwEAAMACADALFgAArQIAMBcAALICADC3AQAArgIAMLgBAACvAgAwuQEAALACACC6AQAAsQIAMLsBAACxAgAwvAEAALECADC9AQAAsQIAML4BAACzAgAwvwEAALQCADALFgAApAIAMBcAAKgCADC3AQAApQIAMLgBAACmAgAwuQEAAKcCACC6AQAAhQIAMLsBAACFAgAwvAEAAIUCADC9AQAAhQIAML4BAACpAgAwvwEAAIgCADAGBgAA9QEAIJQBAQAAAAGVAQEAAAABlwEBAAAAAZgBQAAAAAGZAUAAAAABAgAAABEAIBYAAKwCACADAAAAEQAgFgAArAIAIBcAAKsCACABDwAA3gIAMAIAAAARACAPAACrAgAgAgAAAIkCACAPAACqAgAgBZQBAQDtAQAhlQEBAO0BACGXAQEA7QEAIZgBQADuAQAhmQFAAO4BACEGBgAA8wEAIJQBAQDtAQAhlQEBAO0BACGXAQEA7QEAIZgBQADuAQAhmQFAAO4BACEGBgAA9QEAIJQBAQAAAAGVAQEAAAABlwEBAAAAAZgBQAAAAAGZAUAAAAABBwcAAI4CACCUAQEAAAABlQEBAAAAAZgBQAAAAAGZAUAAAAABmgEBAAAAAZ8BIAAAAAECAAAADQAgFgAAuAIAIAMAAAANACAWAAC4AgAgFwAAtwIAIAEPAADdAgAwDAMAAOIBACAHAADgAQAgggEAAOQBADCDAQAACwAQhAEAAOQBADCUAQEAAAABlQEBAMMBACGWAQEAwwEAIZgBQADEAQAhmQFAAMQBACGaAQEAwwEAIZ8BIADlAQAhAgAAAA0AIA8AALcCACACAAAAtQIAIA8AALYCACAKggEAALQCADCDAQAAtQIAEIQBAAC0AgAwlAEBAMMBACGVAQEAwwEAIZYBAQDDAQAhmAFAAMQBACGZAUAAxAEAIZoBAQDDAQAhnwEgAOUBACEKggEAALQCADCDAQAAtQIAEIQBAAC0AgAwlAEBAMMBACGVAQEAwwEAIZYBAQDDAQAhmAFAAMQBACGZAUAAxAEAIZoBAQDDAQAhnwEgAOUBACEGlAEBAO0BACGVAQEA7QEAIZgBQADuAQAhmQFAAO4BACGaAQEA7QEAIZ8BIAD-AQAhBwcAAIACACCUAQEA7QEAIZUBAQDtAQAhmAFAAO4BACGZAUAA7gEAIZoBAQDtAQAhnwEgAP4BACEHBwAAjgIAIJQBAQAAAAGVAQEAAAABmAFAAAAAAZkBQAAAAAGaAQEAAAABnwEgAAAAAQOHAUAAAAABlAEBAAAAAaABAQAAAAECAAAACQAgFgAAxAIAIAMAAAAJACAWAADEAgAgFwAAwwIAIAEPAADcAgAwCAMAAOIBACCCAQAA5gEAMIMBAAAHABCEAQAA5gEAMIcBQADEAQAhlAEBAAAAAZYBAQDDAQAhoAEBAAAAAQIAAAAJACAPAADDAgAgAgAAAMECACAPAADCAgAgB4IBAADAAgAwgwEAAMECABCEAQAAwAIAMIcBQADEAQAhlAEBAMMBACGWAQEAwwEAIaABAQDDAQAhB4IBAADAAgAwgwEAAMECABCEAQAAwAIAMIcBQADEAQAhlAEBAMMBACGWAQEAwwEAIaABAQDDAQAhA4cBQADuAQAhlAEBAO0BACGgAQEA7QEAIQOHAUAA7gEAIZQBAQDtAQAhoAEBAO0BACEDhwFAAAAAAZQBAQAAAAGgAQEAAAABC5QBAQAAAAGhAQEAAAABogEBAAAAAaMBAQAAAAGkAQEAAAABpQEBAAAAAaYBAgAAAAGnAQEAAAABqAEBAAAAAakBAQAAAAGqAQEAAAABAgAAAAUAIBYAANACACADAAAABQAgFgAA0AIAIBcAAM8CACABDwAA2wIAMBEDAADiAQAgggEAAOgBADCDAQAAAwAQhAEAAOgBADCUAQEAAAABlgEBAMMBACGhAQEAwwEAIaIBAQDDAQAhowEBAMMBACGkAQEAzQEAIaUBAQDNAQAhpgECAOkBACGnAQEAzQEAIagBAQDNAQAhqQEBAM0BACGqAQEAzQEAIbQBAADnAQAgAgAAAAUAIA8AAM8CACACAAAAzQIAIA8AAM4CACAPggEAAMwCADCDAQAAzQIAEIQBAADMAgAwlAEBAMMBACGWAQEAwwEAIaEBAQDDAQAhogEBAMMBACGjAQEAwwEAIaQBAQDNAQAhpQEBAM0BACGmAQIA6QEAIacBAQDNAQAhqAEBAM0BACGpAQEAzQEAIaoBAQDNAQAhD4IBAADMAgAwgwEAAM0CABCEAQAAzAIAMJQBAQDDAQAhlgEBAMMBACGhAQEAwwEAIaIBAQDDAQAhowEBAMMBACGkAQEAzQEAIaUBAQDNAQAhpgECAOkBACGnAQEAzQEAIagBAQDNAQAhqQEBAM0BACGqAQEAzQEAIQuUAQEA7QEAIaEBAQDtAQAhogEBAO0BACGjAQEA7QEAIaQBAQD6AQAhpQEBAPoBACGmAQIAmQIAIacBAQD6AQAhqAEBAPoBACGpAQEA-gEAIaoBAQD6AQAhC5QBAQDtAQAhoQEBAO0BACGiAQEA7QEAIaMBAQDtAQAhpAEBAPoBACGlAQEA-gEAIaYBAgCZAgAhpwEBAPoBACGoAQEA-gEAIakBAQD6AQAhqgEBAPoBACELlAEBAAAAAaEBAQAAAAGiAQEAAAABowEBAAAAAaQBAQAAAAGlAQEAAAABpgECAAAAAacBAQAAAAGoAQEAAAABqQEBAAAAAaoBAQAAAAEEFgAAxQIAMLcBAADGAgAwuQEAAMgCACC9AQAAyQIAMAQWAAC5AgAwtwEAALoCADC5AQAAvAIAIL0BAAC9AgAwBBYAAK0CADC3AQAArgIAMLkBAACwAgAgvQEAALECADAEFgAApAIAMLcBAAClAgAwuQEAAKcCACC9AQAAhQIAMAAAAAAKBAAA1QIAIAUAANYCACAHAADYAgAgCQAA1wIAIKsBAAD2AQAgrAEAAPYBACCtAQAA9gEAIK4BAAD2AQAgrwEAAPYBACCwAQAA9gEAIAIDAADZAgAgBwAA2AIAIAuUAQEAAAABoQEBAAAAAaIBAQAAAAGjAQEAAAABpAEBAAAAAaUBAQAAAAGmAQIAAAABpwEBAAAAAagBAQAAAAGpAQEAAAABqgEBAAAAAQOHAUAAAAABlAEBAAAAAaABAQAAAAEGlAEBAAAAAZUBAQAAAAGYAUAAAAABmQFAAAAAAZoBAQAAAAGfASAAAAABBZQBAQAAAAGVAQEAAAABlwEBAAAAAZgBQAAAAAGZAUAAAAABDAUAANICACAHAADUAgAgCQAA0wIAIJQBAQAAAAGYAUAAAAABmQFAAAAAAasBAQAAAAGsAQEAAAABrQFAAAAAAa4BAQAAAAGvAUAAAAABsAEBAAAAAQIAAAABACAWAADfAgAgAwAAABoAIBYAAN8CACAXAADjAgAgDgAAABoAIAUAAKECACAHAACjAgAgCQAAogIAIA8AAOMCACCUAQEA7QEAIZgBQADuAQAhmQFAAO4BACGrAQEA-gEAIawBAQD6AQAhrQFAAJ8CACGuAQEA-gEAIa8BQACfAgAhsAEBAPoBACEMBQAAoQIAIAcAAKMCACAJAACiAgAglAEBAO0BACGYAUAA7gEAIZkBQADuAQAhqwEBAPoBACGsAQEA-gEAIa0BQACfAgAhrgEBAPoBACGvAUAAnwIAIbABAQD6AQAhDAQAANECACAHAADUAgAgCQAA0wIAIJQBAQAAAAGYAUAAAAABmQFAAAAAAasBAQAAAAGsAQEAAAABrQFAAAAAAa4BAQAAAAGvAUAAAAABsAEBAAAAAQIAAAABACAWAADkAgAgAwAAABoAIBYAAOQCACAXAADoAgAgDgAAABoAIAQAAKACACAHAACjAgAgCQAAogIAIA8AAOgCACCUAQEA7QEAIZgBQADuAQAhmQFAAO4BACGrAQEA-gEAIawBAQD6AQAhrQFAAJ8CACGuAQEA-gEAIa8BQACfAgAhsAEBAPoBACEMBAAAoAIAIAcAAKMCACAJAACiAgAglAEBAO0BACGYAUAA7gEAIZkBQADuAQAhqwEBAPoBACGsAQEA-gEAIa0BQACfAgAhrgEBAPoBACGvAUAAnwIAIbABAQD6AQAhDAQAANECACAFAADSAgAgBwAA1AIAIJQBAQAAAAGYAUAAAAABmQFAAAAAAasBAQAAAAGsAQEAAAABrQFAAAAAAa4BAQAAAAGvAUAAAAABsAEBAAAAAQIAAAABACAWAADpAgAgBZQBAQAAAAGVAQEAAAABlgEBAAAAAZgBQAAAAAGZAUAAAAABAwAAABoAIBYAAOkCACAXAADuAgAgDgAAABoAIAQAAKACACAFAAChAgAgBwAAowIAIA8AAO4CACCUAQEA7QEAIZgBQADuAQAhmQFAAO4BACGrAQEA-gEAIawBAQD6AQAhrQFAAJ8CACGuAQEA-gEAIa8BQACfAgAhsAEBAPoBACEMBAAAoAIAIAUAAKECACAHAACjAgAglAEBAO0BACGYAUAA7gEAIZkBQADuAQAhqwEBAPoBACGsAQEA-gEAIa0BQACfAgAhrgEBAPoBACGvAUAAnwIAIbABAQD6AQAhCAMAAI0CACCUAQEAAAABlQEBAAAAAZYBAQAAAAGYAUAAAAABmQFAAAAAAZoBAQAAAAGfASAAAAABAgAAAA0AIBYAAO8CACAMBAAA0QIAIAUAANICACAJAADTAgAglAEBAAAAAZgBQAAAAAGZAUAAAAABqwEBAAAAAawBAQAAAAGtAUAAAAABrgEBAAAAAa8BQAAAAAGwAQEAAAABAgAAAAEAIBYAAPECACADAAAACwAgFgAA7wIAIBcAAPUCACAKAAAACwAgAwAA_wEAIA8AAPUCACCUAQEA7QEAIZUBAQDtAQAhlgEBAO0BACGYAUAA7gEAIZkBQADuAQAhmgEBAO0BACGfASAA_gEAIQgDAAD_AQAglAEBAO0BACGVAQEA7QEAIZYBAQDtAQAhmAFAAO4BACGZAUAA7gEAIZoBAQDtAQAhnwEgAP4BACEDAAAAGgAgFgAA8QIAIBcAAPgCACAOAAAAGgAgBAAAoAIAIAUAAKECACAJAACiAgAgDwAA-AIAIJQBAQDtAQAhmAFAAO4BACGZAUAA7gEAIasBAQD6AQAhrAEBAPoBACGtAUAAnwIAIa4BAQD6AQAhrwFAAJ8CACGwAQEA-gEAIQwEAACgAgAgBQAAoQIAIAkAAKICACCUAQEA7QEAIZgBQADuAQAhmQFAAO4BACGrAQEA-gEAIawBAQD6AQAhrQFAAJ8CACGuAQEA-gEAIa8BQACfAgAhsAEBAPoBACEFBAYCBQoDBxQFCAAHCQ4EAQMAAQEDAAEDAwABBxIFCAAGAgMAAQYABAEHEwAEBBUABRYABxgACRcAAAAAAwgADBwADR0ADgAAAAMIAAwcAA0dAA4BAwABAQMAAQUIABMcABYdABcuABQvABUAAAAAAAUIABMcABYdABcuABQvABUBAwABAQMAAQMIABwcAB0dAB4AAAADCAAcHAAdHQAeAQMAAQEDAAEDCAAjHAAkHQAlAAAAAwgAIxwAJB0AJQAAAAMIACscACwdAC0AAAADCAArHAAsHQAtAgMAAQYABAIDAAEGAAQDCAAyHAAzHQA0AAAAAwgAMhwAMx0ANAAAAAMIADocADsdADwAAAADCAA6HAA7HQA8CgIBCxkBDBwBDR0BDh4BECABESIIEiMJEyUBFCcIFSgKGCkBGSoBGisIHi4LHy8PIDACITECIjICIzMCJDQCJTYCJjgIJzkQKDsCKT0IKj4RKz8CLEACLUEIMEQSMUUYMkYDM0cDNEgDNUkDNkoDN0wDOE4IOU8ZOlEDO1MIPFQaPVUDPlYDP1cIQFobQVsfQlwEQ10ERF4ERV8ERmAER2IESGQISWUgSmcES2kITGohTWsETmwET20IUHAiUXEmUnMnU3QnVHcnVXgnVnknV3snWH0IWX4oWoABJ1uCAQhcgwEpXYQBJ16FASdfhgEIYIkBKmGKAS5iiwEFY4wBBWSNAQVljgEFZo8BBWeRAQVokwEIaZQBL2qWAQVrmAEIbJkBMG2aAQVumwEFb5wBCHCfATFxoAE1cqIBNnOjATZ0pgE2dacBNnaoATZ3qgE2eKwBCHmtATd6rwE2e7EBCHyyATh9swE2frQBNn-1AQiAAbgBOYEBuQE9" -} - -async function decodeBase64AsWasm(wasmBase64: string): Promise { - const { Buffer } = await import('node:buffer') - const wasmArray = Buffer.from(wasmBase64, 'base64') - return new WebAssembly.Module(wasmArray) -} - -config.compilerWasm = { - getRuntime: async () => await import("@prisma/client/runtime/query_compiler_fast_bg.sqlite.mjs"), - - getQueryCompilerWasmModule: async () => { - 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" -} - - - -export type LogOptions = - 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never - -export interface PrismaClientConstructor { - /** - * ## Prisma Client - * - * Type-safe database client for TypeScript - * @example - * ``` - * const prisma = new PrismaClient({ - * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }) - * }) - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - * - * Read more in our [docs](https://pris.ly/d/client). - */ - - new < - Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, - LogOpts extends LogOptions = LogOptions, - OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'], - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs - >(options: Prisma.Subset ): PrismaClient -} - -/** - * ## Prisma Client - * - * Type-safe database client for TypeScript - * @example - * ``` - * const prisma = new PrismaClient({ - * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }) - * }) - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - * - * Read more in our [docs](https://pris.ly/d/client). - */ - -export interface PrismaClient< - in LogOpts extends Prisma.LogLevel = never, - in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, - in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs -> { - [K: symbol]: { types: Prisma.TypeMap['other'] } - - $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; - - /** - * Connect with the database - */ - $connect(): runtime.Types.Utils.JsPromise; - - /** - * Disconnect from the database - */ - $disconnect(): runtime.Types.Utils.JsPromise; - -/** - * Executes a prepared raw query and returns the number of affected rows. - * @example - * ``` - * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` - * ``` - * - * Read more in our [docs](https://pris.ly/d/raw-queries). - */ - $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; - - /** - * Executes a raw query and returns the number of affected rows. - * Susceptible to SQL injections, see documentation. - * @example - * ``` - * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') - * ``` - * - * Read more in our [docs](https://pris.ly/d/raw-queries). - */ - $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; - - /** - * Performs a prepared raw query and returns the `SELECT` data. - * @example - * ``` - * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` - * ``` - * - * Read more in our [docs](https://pris.ly/d/raw-queries). - */ - $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; - - /** - * Performs a raw query and returns the `SELECT` data. - * Susceptible to SQL injections, see documentation. - * @example - * ``` - * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') - * ``` - * - * Read more in our [docs](https://pris.ly/d/raw-queries). - */ - $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; - - - /** - * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. - * @example - * ``` - * const [george, bob, alice] = await prisma.$transaction([ - * prisma.user.create({ data: { name: 'George' } }), - * prisma.user.create({ data: { name: 'Bob' } }), - * prisma.user.create({ data: { name: 'Alice' } }), - * ]) - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions). - */ - $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise> - - $transaction(fn: (prisma: Omit) => runtime.Types.Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise - - $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, runtime.Types.Utils.Call, { - extArgs: ExtArgs - }>> - - /** - * `prisma.user`: Exposes CRUD operations for the **User** model. - * Example usage: - * ```ts - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - */ - get user(): Prisma.UserDelegate; - - /** - * `prisma.account`: Exposes CRUD operations for the **Account** model. - * Example usage: - * ```ts - * // Fetch zero or more Accounts - * const accounts = await prisma.account.findMany() - * ``` - */ - get account(): Prisma.AccountDelegate; - - /** - * `prisma.session`: Exposes CRUD operations for the **Session** model. - * Example usage: - * ```ts - * // Fetch zero or more Sessions - * const sessions = await prisma.session.findMany() - * ``` - */ - get session(): Prisma.SessionDelegate; - - /** - * `prisma.post`: Exposes CRUD operations for the **Post** model. - * Example usage: - * ```ts - * // Fetch zero or more Posts - * const posts = await prisma.post.findMany() - * ``` - */ - get post(): Prisma.PostDelegate; - - /** - * `prisma.resource`: Exposes CRUD operations for the **Resource** model. - * Example usage: - * ```ts - * // Fetch zero or more Resources - * const resources = await prisma.resource.findMany() - * ``` - */ - get resource(): Prisma.ResourceDelegate; - - /** - * `prisma.comment`: Exposes CRUD operations for the **Comment** model. - * Example usage: - * ```ts - * // Fetch zero or more Comments - * const comments = await prisma.comment.findMany() - * ``` - */ - get comment(): Prisma.CommentDelegate; - - /** - * `prisma.verificationToken`: Exposes CRUD operations for the **VerificationToken** model. - * Example usage: - * ```ts - * // Fetch zero or more VerificationTokens - * const verificationTokens = await prisma.verificationToken.findMany() - * ``` - */ - get verificationToken(): Prisma.VerificationTokenDelegate; -} - -export function getPrismaClientClass(): PrismaClientConstructor { - return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor -} diff --git a/backend/src/generated/prisma/internal/prismaNamespace.ts b/backend/src/generated/prisma/internal/prismaNamespace.ts deleted file mode 100644 index 4535f43..0000000 --- a/backend/src/generated/prisma/internal/prismaNamespace.ts +++ /dev/null @@ -1,1278 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * WARNING: This is an internal file that is subject to change! - * - * 🛑 Under no circumstances should you import this file directly! 🛑 - * - * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file. - * While this enables partial backward compatibility, it is not part of the stable public API. - * - * If you are looking for your Models, Enums, and Input Types, please import them from the respective - * model files in the `model` directory! - */ - -import * as runtime from "@prisma/client/runtime/client" -import type * as Prisma from "../models.ts" -import { type PrismaClient } from "./class.ts" - -export type * from '../models.ts' - -export type DMMF = typeof runtime.DMMF - -export type PrismaPromise = runtime.Types.Public.PrismaPromise - -/** - * Prisma Errors - */ - -export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError -export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError - -export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError -export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError - -export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError -export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError - -export const PrismaClientInitializationError = runtime.PrismaClientInitializationError -export type PrismaClientInitializationError = runtime.PrismaClientInitializationError - -export const PrismaClientValidationError = runtime.PrismaClientValidationError -export type PrismaClientValidationError = runtime.PrismaClientValidationError - -/** - * Re-export of sql-template-tag - */ -export const sql = runtime.sqltag -export const empty = runtime.empty -export const join = runtime.join -export const raw = runtime.raw -export const Sql = runtime.Sql -export type Sql = runtime.Sql - - - -/** - * Decimal.js - */ -export const Decimal = runtime.Decimal -export type Decimal = runtime.Decimal - -export type DecimalJsLike = runtime.DecimalJsLike - -/** -* Extensions -*/ -export type Extension = runtime.Types.Extensions.UserArgs -export const getExtensionContext = runtime.Extensions.getExtensionContext -export type Args = runtime.Types.Public.Args -export type Payload = runtime.Types.Public.Payload -export type Result = runtime.Types.Public.Result -export type Exact = runtime.Types.Public.Exact - -export type PrismaVersion = { - client: string - engine: string -} - -/** - * Prisma Client JS version: 7.4.2 - * Query Engine version: 94a226be1cf2967af2541cca5529f0f7ba866919 - */ -export const prismaVersion: PrismaVersion = { - client: "7.4.2", - engine: "94a226be1cf2967af2541cca5529f0f7ba866919" -} - -/** - * Utility Types - */ - -export type Bytes = runtime.Bytes -export type JsonObject = runtime.JsonObject -export type JsonArray = runtime.JsonArray -export type JsonValue = runtime.JsonValue -export type InputJsonObject = runtime.InputJsonObject -export type InputJsonArray = runtime.InputJsonArray -export type InputJsonValue = runtime.InputJsonValue - - -export const NullTypes = { - DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull), - JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull), - AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull), -} -/** - * Helper for filtering JSON entries that have `null` on the database (empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const DbNull = runtime.DbNull - -/** - * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const JsonNull = runtime.JsonNull - -/** - * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const AnyNull = runtime.AnyNull - - -type SelectAndInclude = { - select: any - include: any -} - -type SelectAndOmit = { - select: any - omit: any -} - -/** - * From T, pick a set of properties whose keys are in the union K - */ -type Prisma__Pick = { - [P in K]: T[P]; -}; - -export type Enumerable = T | Array; - -/** - * Subset - * @desc From `T` pick properties that exist in `U`. Simple version of Intersection - */ -export type Subset = { - [key in keyof T]: key extends keyof U ? T[key] : never; -}; - -/** - * SelectSubset - * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. - * Additionally, it validates, if both select and include are present. If the case, it errors. - */ -export type SelectSubset = { - [key in keyof T]: key extends keyof U ? T[key] : never -} & - (T extends SelectAndInclude - ? 'Please either choose `select` or `include`.' - : T extends SelectAndOmit - ? 'Please either choose `select` or `omit`.' - : {}) - -/** - * Subset + Intersection - * @desc From `T` pick properties that exist in `U` and intersect `K` - */ -export type SubsetIntersection = { - [key in keyof T]: key extends keyof U ? T[key] : never -} & - K - -type Without = { [P in Exclude]?: never }; - -/** - * XOR is needed to have a real mutually exclusive union type - * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types - */ -export type XOR = - T extends object ? - U extends object ? - (Without & U) | (Without & T) - : U : T - - -/** - * Is T a Record? - */ -type IsObject = T extends Array -? False -: T extends Date -? False -: T extends Uint8Array -? False -: T extends BigInt -? False -: T extends object -? True -: False - - -/** - * If it's T[], return T - */ -export type UnEnumerate = T extends Array ? U : T - -/** - * From ts-toolbelt - */ - -type __Either = Omit & - { - // Merge all but K - [P in K]: Prisma__Pick // With K possibilities - }[K] - -type EitherStrict = Strict<__Either> - -type EitherLoose = ComputeRaw<__Either> - -type _Either< - O extends object, - K extends Key, - strict extends Boolean -> = { - 1: EitherStrict - 0: EitherLoose -}[strict] - -export type Either< - O extends object, - K extends Key, - strict extends Boolean = 1 -> = O extends unknown ? _Either : never - -export type Union = any - -export type PatchUndefined = { - [K in keyof O]: O[K] extends undefined ? At : O[K] -} & {} - -/** Helper Types for "Merge" **/ -export type IntersectOf = ( - U extends unknown ? (k: U) => void : never -) extends (k: infer I) => void - ? I - : never - -export type Overwrite = { - [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; -} & {}; - -type _Merge = IntersectOf; -}>>; - -type Key = string | number | symbol; -type AtStrict = O[K & keyof O]; -type AtLoose = O extends unknown ? AtStrict : never; -export type At = { - 1: AtStrict; - 0: AtLoose; -}[strict]; - -export type ComputeRaw = A extends Function ? A : { - [K in keyof A]: A[K]; -} & {}; - -export type OptionalFlat = { - [K in keyof O]?: O[K]; -} & {}; - -type _Record = { - [P in K]: T; -}; - -// cause typescript not to expand types and preserve names -type NoExpand = T extends unknown ? T : never; - -// this type assumes the passed object is entirely optional -export type AtLeast = NoExpand< - O extends unknown - ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) - | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O - : never>; - -type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; - -export type Strict = ComputeRaw<_Strict>; -/** End Helper Types for "Merge" **/ - -export type Merge = ComputeRaw<_Merge>>; - -export type Boolean = True | False - -export type True = 1 - -export type False = 0 - -export type Not = { - 0: 1 - 1: 0 -}[B] - -export type Extends = [A1] extends [never] - ? 0 // anything `never` is false - : A1 extends A2 - ? 1 - : 0 - -export type Has = Not< - Extends, U1> -> - -export type Or = { - 0: { - 0: 0 - 1: 1 - } - 1: { - 0: 1 - 1: 1 - } -}[B1][B2] - -export type Keys = U extends unknown ? keyof U : never - -export type GetScalarType = O extends object ? { - [P in keyof T]: P extends keyof O - ? O[P] - : never -} : never - -type FieldPaths< - T, - U = Omit -> = IsObject extends True ? U : T - -export type GetHavingFields = { - [K in keyof T]: Or< - Or, Extends<'AND', K>>, - Extends<'NOT', K> - > extends True - ? // infer is only needed to not hit TS limit - // based on the brilliant idea of Pierre-Antoine Mills - // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 - T[K] extends infer TK - ? GetHavingFields extends object ? Merge> : never> - : never - : {} extends FieldPaths - ? never - : K -}[keyof T] - -/** - * Convert tuple to union - */ -type _TupleToUnion = T extends (infer E)[] ? E : never -type TupleToUnion = _TupleToUnion -export type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T - -/** - * Like `Pick`, but additionally can also accept an array of keys - */ -export type PickEnumerable | keyof T> = Prisma__Pick> - -/** - * Exclude all keys with underscores - */ -export type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T - - -export type FieldRef = runtime.FieldRef - -type FieldRefInputType = Model extends never ? never : FieldRef - - -export const ModelName = { - User: 'User', - Account: 'Account', - Session: 'Session', - Post: 'Post', - Resource: 'Resource', - Comment: 'Comment', - VerificationToken: 'VerificationToken' -} as const - -export type ModelName = (typeof ModelName)[keyof typeof ModelName] - - - -export interface TypeMapCb extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record> { - returns: TypeMap -} - -export type TypeMap = { - globalOmitOptions: { - omit: GlobalOmitOptions - } - meta: { - modelProps: "user" | "account" | "session" | "post" | "resource" | "comment" | "verificationToken" - txIsolationLevel: TransactionIsolationLevel - } - model: { - User: { - payload: Prisma.$UserPayload - fields: Prisma.UserFieldRefs - operations: { - findUnique: { - args: Prisma.UserFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.UserFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.UserFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.UserFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.UserFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.UserCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.UserCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.UserCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.UserDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.UserUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.UserDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.UserUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.UserUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.UserUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.UserAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.UserGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.UserCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - Account: { - payload: Prisma.$AccountPayload - fields: Prisma.AccountFieldRefs - operations: { - findUnique: { - args: Prisma.AccountFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.AccountFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.AccountFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.AccountFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.AccountFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.AccountCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.AccountCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.AccountCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.AccountDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.AccountUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.AccountDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.AccountUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.AccountUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.AccountUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.AccountAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.AccountGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.AccountCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - Session: { - payload: Prisma.$SessionPayload - fields: Prisma.SessionFieldRefs - operations: { - findUnique: { - args: Prisma.SessionFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.SessionFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.SessionFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.SessionFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.SessionFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.SessionCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.SessionCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.SessionCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.SessionDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.SessionUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.SessionDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.SessionUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.SessionUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.SessionUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.SessionAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.SessionGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.SessionCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - Post: { - payload: Prisma.$PostPayload - fields: Prisma.PostFieldRefs - operations: { - findUnique: { - args: Prisma.PostFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.PostFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.PostFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.PostFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.PostFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.PostCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.PostCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.PostCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.PostDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.PostUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.PostDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.PostUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.PostUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.PostUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.PostAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.PostGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.PostCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - Resource: { - payload: Prisma.$ResourcePayload - fields: Prisma.ResourceFieldRefs - operations: { - findUnique: { - args: Prisma.ResourceFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.ResourceFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.ResourceFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.ResourceFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.ResourceFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.ResourceCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.ResourceCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.ResourceCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.ResourceDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.ResourceUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.ResourceDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.ResourceUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.ResourceUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.ResourceUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.ResourceAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.ResourceGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.ResourceCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - Comment: { - payload: Prisma.$CommentPayload - fields: Prisma.CommentFieldRefs - operations: { - findUnique: { - args: Prisma.CommentFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.CommentFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.CommentFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.CommentFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.CommentFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.CommentCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.CommentCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.CommentCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.CommentDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.CommentUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.CommentDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.CommentUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.CommentUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.CommentUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.CommentAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.CommentGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.CommentCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - VerificationToken: { - payload: Prisma.$VerificationTokenPayload - fields: Prisma.VerificationTokenFieldRefs - operations: { - findUnique: { - args: Prisma.VerificationTokenFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.VerificationTokenFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.VerificationTokenFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.VerificationTokenFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.VerificationTokenFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.VerificationTokenCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.VerificationTokenCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.VerificationTokenCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.VerificationTokenDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.VerificationTokenUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.VerificationTokenDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.VerificationTokenUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.VerificationTokenUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.VerificationTokenUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.VerificationTokenAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.VerificationTokenGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.VerificationTokenCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - } -} & { - other: { - payload: any - operations: { - $executeRaw: { - args: [query: TemplateStringsArray | Sql, ...values: any[]], - result: any - } - $executeRawUnsafe: { - args: [query: string, ...values: any[]], - result: any - } - $queryRaw: { - args: [query: TemplateStringsArray | Sql, ...values: any[]], - result: any - } - $queryRawUnsafe: { - args: [query: string, ...values: any[]], - result: any - } - } - } -} - -/** - * Enums - */ - -export const TransactionIsolationLevel = runtime.makeStrictEnum({ - Serializable: 'Serializable' -} as const) - -export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] - - -export const UserScalarFieldEnum = { - id: 'id', - name: 'name', - email: 'email', - emailVerified: 'emailVerified', - phone: 'phone', - phoneVerified: 'phoneVerified', - image: 'image', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -} as const - -export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] - - -export const AccountScalarFieldEnum = { - id: 'id', - userId: 'userId', - type: 'type', - provider: 'provider', - providerAccountId: 'providerAccountId', - refresh_token: 'refresh_token', - access_token: 'access_token', - expires_at: 'expires_at', - token_type: 'token_type', - scope: 'scope', - id_token: 'id_token', - session_state: 'session_state' -} as const - -export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum] - - -export const SessionScalarFieldEnum = { - id: 'id', - sessionToken: 'sessionToken', - userId: 'userId', - expires: 'expires' -} as const - -export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum] - - -export const PostScalarFieldEnum = { - id: 'id', - title: 'title', - content: 'content', - userId: 'userId', - published: 'published', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -} as const - -export type PostScalarFieldEnum = (typeof PostScalarFieldEnum)[keyof typeof PostScalarFieldEnum] - - -export const ResourceScalarFieldEnum = { - id: 'id', - title: 'title', - description: 'description', - url: 'url', - icon: 'icon', - category: 'category', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -} as const - -export type ResourceScalarFieldEnum = (typeof ResourceScalarFieldEnum)[keyof typeof ResourceScalarFieldEnum] - - -export const CommentScalarFieldEnum = { - id: 'id', - content: 'content', - userId: 'userId', - postId: 'postId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -} as const - -export type CommentScalarFieldEnum = (typeof CommentScalarFieldEnum)[keyof typeof CommentScalarFieldEnum] - - -export const VerificationTokenScalarFieldEnum = { - identifier: 'identifier', - token: 'token', - expires: 'expires' -} as const - -export type VerificationTokenScalarFieldEnum = (typeof VerificationTokenScalarFieldEnum)[keyof typeof VerificationTokenScalarFieldEnum] - - -export const SortOrder = { - asc: 'asc', - desc: 'desc' -} as const - -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] - - -export const NullsOrder = { - first: 'first', - last: 'last' -} as const - -export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] - - - -/** - * Field references - */ - - -/** - * Reference to a field of type 'String' - */ -export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> - - - -/** - * Reference to a field of type 'DateTime' - */ -export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> - - - -/** - * Reference to a field of type 'Int' - */ -export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> - - - -/** - * Reference to a field of type 'Boolean' - */ -export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> - - - -/** - * Reference to a field of type 'Float' - */ -export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> - - -/** - * Batch Payload for updateMany & deleteMany & createMany - */ -export type BatchPayload = { - count: number -} - -export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs> -export type DefaultPrismaClient = PrismaClient -export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' -export type PrismaClientOptions = ({ - /** - * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`. - */ - adapter: runtime.SqlDriverAdapterFactory - accelerateUrl?: never -} | { - /** - * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database. - */ - accelerateUrl: string - adapter?: never -}) & { - /** - * @default "colorless" - */ - errorFormat?: ErrorFormat - /** - * @example - * ``` - * // Shorthand for `emit: 'stdout'` - * log: ['query', 'info', 'warn', 'error'] - * - * // Emit as events only - * log: [ - * { emit: 'event', level: 'query' }, - * { emit: 'event', level: 'info' }, - * { emit: 'event', level: 'warn' } - * { emit: 'event', level: 'error' } - * ] - * - * / Emit as events and log to stdout - * og: [ - * { emit: 'stdout', level: 'query' }, - * { emit: 'stdout', level: 'info' }, - * { emit: 'stdout', level: 'warn' } - * { emit: 'stdout', level: 'error' } - * - * ``` - * Read more in our [docs](https://pris.ly/d/logging). - */ - log?: (LogLevel | LogDefinition)[] - /** - * The default values for transactionOptions - * maxWait ?= 2000 - * timeout ?= 5000 - */ - transactionOptions?: { - maxWait?: number - timeout?: number - isolationLevel?: TransactionIsolationLevel - } - /** - * Global configuration for omitting model fields by default. - * - * @example - * ``` - * const prisma = new PrismaClient({ - * omit: { - * user: { - * password: true - * } - * } - * }) - * ``` - */ - omit?: GlobalOmitConfig - /** - * SQL commenter plugins that add metadata to SQL queries as comments. - * Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/ - * - * @example - * ``` - * const prisma = new PrismaClient({ - * adapter, - * comments: [ - * traceContext(), - * queryInsights(), - * ], - * }) - * ``` - */ - comments?: runtime.SqlCommenterPlugin[] -} -export type GlobalOmitConfig = { - user?: Prisma.UserOmit - account?: Prisma.AccountOmit - session?: Prisma.SessionOmit - post?: Prisma.PostOmit - resource?: Prisma.ResourceOmit - comment?: Prisma.CommentOmit - verificationToken?: Prisma.VerificationTokenOmit -} - -/* Types for Logging */ -export type LogLevel = 'info' | 'query' | 'warn' | 'error' -export type LogDefinition = { - level: LogLevel - emit: 'stdout' | 'event' -} - -export type CheckIsLogLevel = T extends LogLevel ? T : never; - -export type GetLogType = CheckIsLogLevel< - T extends LogDefinition ? T['level'] : T ->; - -export type GetEvents = T extends Array - ? GetLogType - : never; - -export type QueryEvent = { - timestamp: Date - query: string - params: string - duration: number - target: string -} - -export type LogEvent = { - timestamp: Date - message: string - target: string -} -/* End Types for Logging */ - - -export type PrismaAction = - | 'findUnique' - | 'findUniqueOrThrow' - | 'findMany' - | 'findFirst' - | 'findFirstOrThrow' - | 'create' - | 'createMany' - | 'createManyAndReturn' - | 'update' - | 'updateMany' - | 'updateManyAndReturn' - | 'upsert' - | 'delete' - | 'deleteMany' - | 'executeRaw' - | 'queryRaw' - | 'aggregate' - | 'count' - | 'runCommandRaw' - | 'findRaw' - | 'groupBy' - -/** - * `PrismaClient` proxy available in interactive transactions. - */ -export type TransactionClient = Omit - diff --git a/backend/src/generated/prisma/internal/prismaNamespaceBrowser.ts b/backend/src/generated/prisma/internal/prismaNamespaceBrowser.ts deleted file mode 100644 index 8d6e0ac..0000000 --- a/backend/src/generated/prisma/internal/prismaNamespaceBrowser.ts +++ /dev/null @@ -1,181 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * WARNING: This is an internal file that is subject to change! - * - * 🛑 Under no circumstances should you import this file directly! 🛑 - * - * All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file. - * While this enables partial backward compatibility, it is not part of the stable public API. - * - * If you are looking for your Models, Enums, and Input Types, please import them from the respective - * model files in the `model` directory! - */ - -import * as runtime from "@prisma/client/runtime/index-browser" - -export type * from '../models.ts' -export type * from './prismaNamespace.ts' - -export const Decimal = runtime.Decimal - - -export const NullTypes = { - DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull), - JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull), - AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull), -} -/** - * Helper for filtering JSON entries that have `null` on the database (empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const DbNull = runtime.DbNull - -/** - * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const JsonNull = runtime.JsonNull - -/** - * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const AnyNull = runtime.AnyNull - - -export const ModelName = { - User: 'User', - Account: 'Account', - Session: 'Session', - Post: 'Post', - Resource: 'Resource', - Comment: 'Comment', - VerificationToken: 'VerificationToken' -} as const - -export type ModelName = (typeof ModelName)[keyof typeof ModelName] - -/* - * Enums - */ - -export const TransactionIsolationLevel = runtime.makeStrictEnum({ - Serializable: 'Serializable' -} as const) - -export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] - - -export const UserScalarFieldEnum = { - id: 'id', - name: 'name', - email: 'email', - emailVerified: 'emailVerified', - phone: 'phone', - phoneVerified: 'phoneVerified', - image: 'image', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -} as const - -export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] - - -export const AccountScalarFieldEnum = { - id: 'id', - userId: 'userId', - type: 'type', - provider: 'provider', - providerAccountId: 'providerAccountId', - refresh_token: 'refresh_token', - access_token: 'access_token', - expires_at: 'expires_at', - token_type: 'token_type', - scope: 'scope', - id_token: 'id_token', - session_state: 'session_state' -} as const - -export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum] - - -export const SessionScalarFieldEnum = { - id: 'id', - sessionToken: 'sessionToken', - userId: 'userId', - expires: 'expires' -} as const - -export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum] - - -export const PostScalarFieldEnum = { - id: 'id', - title: 'title', - content: 'content', - userId: 'userId', - published: 'published', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -} as const - -export type PostScalarFieldEnum = (typeof PostScalarFieldEnum)[keyof typeof PostScalarFieldEnum] - - -export const ResourceScalarFieldEnum = { - id: 'id', - title: 'title', - description: 'description', - url: 'url', - icon: 'icon', - category: 'category', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -} as const - -export type ResourceScalarFieldEnum = (typeof ResourceScalarFieldEnum)[keyof typeof ResourceScalarFieldEnum] - - -export const CommentScalarFieldEnum = { - id: 'id', - content: 'content', - userId: 'userId', - postId: 'postId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -} as const - -export type CommentScalarFieldEnum = (typeof CommentScalarFieldEnum)[keyof typeof CommentScalarFieldEnum] - - -export const VerificationTokenScalarFieldEnum = { - identifier: 'identifier', - token: 'token', - expires: 'expires' -} as const - -export type VerificationTokenScalarFieldEnum = (typeof VerificationTokenScalarFieldEnum)[keyof typeof VerificationTokenScalarFieldEnum] - - -export const SortOrder = { - asc: 'asc', - desc: 'desc' -} as const - -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] - - -export const NullsOrder = { - first: 'first', - last: 'last' -} as const - -export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] - diff --git a/backend/src/generated/prisma/models.ts b/backend/src/generated/prisma/models.ts deleted file mode 100644 index 95e24b6..0000000 --- a/backend/src/generated/prisma/models.ts +++ /dev/null @@ -1,18 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This is a barrel export file for all models and their related types. - * - * 🟢 You can import this file directly. - */ -export type * from './models/User.ts' -export type * from './models/Account.ts' -export type * from './models/Session.ts' -export type * from './models/Post.ts' -export type * from './models/Resource.ts' -export type * from './models/Comment.ts' -export type * from './models/VerificationToken.ts' -export type * from './commonInputTypes.ts' \ No newline at end of file diff --git a/backend/src/generated/prisma/models/Account.ts b/backend/src/generated/prisma/models/Account.ts deleted file mode 100644 index 869fcf7..0000000 --- a/backend/src/generated/prisma/models/Account.ts +++ /dev/null @@ -1,1640 +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 `Account` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums.ts" -import type * as Prisma from "../internal/prismaNamespace.ts" - -/** - * Model Account - * - */ -export type AccountModel = runtime.Types.Result.DefaultSelection - -export type AggregateAccount = { - _count: AccountCountAggregateOutputType | null - _avg: AccountAvgAggregateOutputType | null - _sum: AccountSumAggregateOutputType | null - _min: AccountMinAggregateOutputType | null - _max: AccountMaxAggregateOutputType | null -} - -export type AccountAvgAggregateOutputType = { - expires_at: number | null -} - -export type AccountSumAggregateOutputType = { - expires_at: number | null -} - -export type AccountMinAggregateOutputType = { - id: string | null - userId: string | null - type: string | null - provider: string | null - providerAccountId: string | null - refresh_token: string | null - access_token: string | null - expires_at: number | null - token_type: string | null - scope: string | null - id_token: string | null - session_state: string | null -} - -export type AccountMaxAggregateOutputType = { - id: string | null - userId: string | null - type: string | null - provider: string | null - providerAccountId: string | null - refresh_token: string | null - access_token: string | null - expires_at: number | null - token_type: string | null - scope: string | null - id_token: string | null - session_state: string | null -} - -export type AccountCountAggregateOutputType = { - id: number - userId: number - type: number - provider: number - providerAccountId: number - refresh_token: number - access_token: number - expires_at: number - token_type: number - scope: number - id_token: number - session_state: number - _all: number -} - - -export type AccountAvgAggregateInputType = { - expires_at?: true -} - -export type AccountSumAggregateInputType = { - expires_at?: true -} - -export type AccountMinAggregateInputType = { - id?: true - userId?: true - type?: true - provider?: true - providerAccountId?: true - refresh_token?: true - access_token?: true - expires_at?: true - token_type?: true - scope?: true - id_token?: true - session_state?: true -} - -export type AccountMaxAggregateInputType = { - id?: true - userId?: true - type?: true - provider?: true - providerAccountId?: true - refresh_token?: true - access_token?: true - expires_at?: true - token_type?: true - scope?: true - id_token?: true - session_state?: true -} - -export type AccountCountAggregateInputType = { - id?: true - userId?: true - type?: true - provider?: true - providerAccountId?: true - refresh_token?: true - access_token?: true - expires_at?: true - token_type?: true - scope?: true - id_token?: true - session_state?: true - _all?: true -} - -export type AccountAggregateArgs = { - /** - * Filter which Account to aggregate. - */ - where?: Prisma.AccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Accounts to fetch. - */ - orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.AccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Accounts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Accounts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Accounts - **/ - _count?: true | AccountCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: AccountAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: AccountSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: AccountMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: AccountMaxAggregateInputType -} - -export type GetAccountAggregateType = { - [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type AccountGroupByArgs = { - where?: Prisma.AccountWhereInput - orderBy?: Prisma.AccountOrderByWithAggregationInput | Prisma.AccountOrderByWithAggregationInput[] - by: Prisma.AccountScalarFieldEnum[] | Prisma.AccountScalarFieldEnum - having?: Prisma.AccountScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: AccountCountAggregateInputType | true - _avg?: AccountAvgAggregateInputType - _sum?: AccountSumAggregateInputType - _min?: AccountMinAggregateInputType - _max?: AccountMaxAggregateInputType -} - -export type AccountGroupByOutputType = { - id: string - userId: string - type: string - provider: string - providerAccountId: string - refresh_token: string | null - access_token: string | null - expires_at: number | null - token_type: string | null - scope: string | null - id_token: string | null - session_state: string | null - _count: AccountCountAggregateOutputType | null - _avg: AccountAvgAggregateOutputType | null - _sum: AccountSumAggregateOutputType | null - _min: AccountMinAggregateOutputType | null - _max: AccountMaxAggregateOutputType | null -} - -type GetAccountGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type AccountWhereInput = { - AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] - OR?: Prisma.AccountWhereInput[] - NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] - id?: Prisma.StringFilter<"Account"> | string - userId?: Prisma.StringFilter<"Account"> | string - type?: Prisma.StringFilter<"Account"> | string - provider?: Prisma.StringFilter<"Account"> | string - providerAccountId?: Prisma.StringFilter<"Account"> | string - refresh_token?: Prisma.StringNullableFilter<"Account"> | string | null - access_token?: Prisma.StringNullableFilter<"Account"> | string | null - expires_at?: Prisma.IntNullableFilter<"Account"> | number | null - token_type?: Prisma.StringNullableFilter<"Account"> | string | null - scope?: Prisma.StringNullableFilter<"Account"> | string | null - id_token?: Prisma.StringNullableFilter<"Account"> | string | null - session_state?: Prisma.StringNullableFilter<"Account"> | string | null - user?: Prisma.XOR -} - -export type AccountOrderByWithRelationInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - type?: Prisma.SortOrder - provider?: Prisma.SortOrder - providerAccountId?: Prisma.SortOrder - refresh_token?: Prisma.SortOrderInput | Prisma.SortOrder - access_token?: Prisma.SortOrderInput | Prisma.SortOrder - expires_at?: Prisma.SortOrderInput | Prisma.SortOrder - token_type?: Prisma.SortOrderInput | Prisma.SortOrder - scope?: Prisma.SortOrderInput | Prisma.SortOrder - id_token?: Prisma.SortOrderInput | Prisma.SortOrder - session_state?: Prisma.SortOrderInput | Prisma.SortOrder - user?: Prisma.UserOrderByWithRelationInput -} - -export type AccountWhereUniqueInput = Prisma.AtLeast<{ - id?: string - provider_providerAccountId?: Prisma.AccountProviderProviderAccountIdCompoundUniqueInput - AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] - OR?: Prisma.AccountWhereInput[] - NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] - userId?: Prisma.StringFilter<"Account"> | string - type?: Prisma.StringFilter<"Account"> | string - provider?: Prisma.StringFilter<"Account"> | string - providerAccountId?: Prisma.StringFilter<"Account"> | string - refresh_token?: Prisma.StringNullableFilter<"Account"> | string | null - access_token?: Prisma.StringNullableFilter<"Account"> | string | null - expires_at?: Prisma.IntNullableFilter<"Account"> | number | null - token_type?: Prisma.StringNullableFilter<"Account"> | string | null - scope?: Prisma.StringNullableFilter<"Account"> | string | null - id_token?: Prisma.StringNullableFilter<"Account"> | string | null - session_state?: Prisma.StringNullableFilter<"Account"> | string | null - user?: Prisma.XOR -}, "id" | "provider_providerAccountId"> - -export type AccountOrderByWithAggregationInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - type?: Prisma.SortOrder - provider?: Prisma.SortOrder - providerAccountId?: Prisma.SortOrder - refresh_token?: Prisma.SortOrderInput | Prisma.SortOrder - access_token?: Prisma.SortOrderInput | Prisma.SortOrder - expires_at?: Prisma.SortOrderInput | Prisma.SortOrder - token_type?: Prisma.SortOrderInput | Prisma.SortOrder - scope?: Prisma.SortOrderInput | Prisma.SortOrder - id_token?: Prisma.SortOrderInput | Prisma.SortOrder - session_state?: Prisma.SortOrderInput | Prisma.SortOrder - _count?: Prisma.AccountCountOrderByAggregateInput - _avg?: Prisma.AccountAvgOrderByAggregateInput - _max?: Prisma.AccountMaxOrderByAggregateInput - _min?: Prisma.AccountMinOrderByAggregateInput - _sum?: Prisma.AccountSumOrderByAggregateInput -} - -export type AccountScalarWhereWithAggregatesInput = { - AND?: Prisma.AccountScalarWhereWithAggregatesInput | Prisma.AccountScalarWhereWithAggregatesInput[] - OR?: Prisma.AccountScalarWhereWithAggregatesInput[] - NOT?: Prisma.AccountScalarWhereWithAggregatesInput | Prisma.AccountScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"Account"> | string - userId?: Prisma.StringWithAggregatesFilter<"Account"> | string - type?: Prisma.StringWithAggregatesFilter<"Account"> | string - provider?: Prisma.StringWithAggregatesFilter<"Account"> | string - providerAccountId?: Prisma.StringWithAggregatesFilter<"Account"> | string - refresh_token?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null - access_token?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null - expires_at?: Prisma.IntNullableWithAggregatesFilter<"Account"> | number | null - token_type?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null - scope?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null - id_token?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null - session_state?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null -} - -export type AccountCreateInput = { - id?: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null - user: Prisma.UserCreateNestedOneWithoutAccountsInput -} - -export type AccountUncheckedCreateInput = { - id?: string - userId: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null -} - -export type AccountUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - provider?: Prisma.StringFieldUpdateOperationsInput | string - providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string - refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - user?: Prisma.UserUpdateOneRequiredWithoutAccountsNestedInput -} - -export type AccountUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - provider?: Prisma.StringFieldUpdateOperationsInput | string - providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string - refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type AccountCreateManyInput = { - id?: string - userId: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null -} - -export type AccountUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - provider?: Prisma.StringFieldUpdateOperationsInput | string - providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string - refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type AccountUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - provider?: Prisma.StringFieldUpdateOperationsInput | string - providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string - refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type AccountListRelationFilter = { - every?: Prisma.AccountWhereInput - some?: Prisma.AccountWhereInput - none?: Prisma.AccountWhereInput -} - -export type AccountOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type AccountProviderProviderAccountIdCompoundUniqueInput = { - provider: string - providerAccountId: string -} - -export type AccountCountOrderByAggregateInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - type?: Prisma.SortOrder - provider?: Prisma.SortOrder - providerAccountId?: Prisma.SortOrder - refresh_token?: Prisma.SortOrder - access_token?: Prisma.SortOrder - expires_at?: Prisma.SortOrder - token_type?: Prisma.SortOrder - scope?: Prisma.SortOrder - id_token?: Prisma.SortOrder - session_state?: Prisma.SortOrder -} - -export type AccountAvgOrderByAggregateInput = { - expires_at?: Prisma.SortOrder -} - -export type AccountMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - type?: Prisma.SortOrder - provider?: Prisma.SortOrder - providerAccountId?: Prisma.SortOrder - refresh_token?: Prisma.SortOrder - access_token?: Prisma.SortOrder - expires_at?: Prisma.SortOrder - token_type?: Prisma.SortOrder - scope?: Prisma.SortOrder - id_token?: Prisma.SortOrder - session_state?: Prisma.SortOrder -} - -export type AccountMinOrderByAggregateInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - type?: Prisma.SortOrder - provider?: Prisma.SortOrder - providerAccountId?: Prisma.SortOrder - refresh_token?: Prisma.SortOrder - access_token?: Prisma.SortOrder - expires_at?: Prisma.SortOrder - token_type?: Prisma.SortOrder - scope?: Prisma.SortOrder - id_token?: Prisma.SortOrder - session_state?: Prisma.SortOrder -} - -export type AccountSumOrderByAggregateInput = { - expires_at?: Prisma.SortOrder -} - -export type AccountCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[] - createMany?: Prisma.AccountCreateManyUserInputEnvelope - connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] -} - -export type AccountUncheckedCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[] - createMany?: Prisma.AccountCreateManyUserInputEnvelope - connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] -} - -export type AccountUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[] - upsert?: Prisma.AccountUpsertWithWhereUniqueWithoutUserInput | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.AccountCreateManyUserInputEnvelope - set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] - disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] - delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] - connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] - update?: Prisma.AccountUpdateWithWhereUniqueWithoutUserInput | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.AccountUpdateManyWithWhereWithoutUserInput | Prisma.AccountUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] -} - -export type AccountUncheckedUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[] - upsert?: Prisma.AccountUpsertWithWhereUniqueWithoutUserInput | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.AccountCreateManyUserInputEnvelope - set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] - disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] - delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] - connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] - update?: Prisma.AccountUpdateWithWhereUniqueWithoutUserInput | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.AccountUpdateManyWithWhereWithoutUserInput | Prisma.AccountUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] -} - -export type NullableIntFieldUpdateOperationsInput = { - set?: number | null - increment?: number - decrement?: number - multiply?: number - divide?: number -} - -export type AccountCreateWithoutUserInput = { - id?: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null -} - -export type AccountUncheckedCreateWithoutUserInput = { - id?: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null -} - -export type AccountCreateOrConnectWithoutUserInput = { - where: Prisma.AccountWhereUniqueInput - create: Prisma.XOR -} - -export type AccountCreateManyUserInputEnvelope = { - data: Prisma.AccountCreateManyUserInput | Prisma.AccountCreateManyUserInput[] -} - -export type AccountUpsertWithWhereUniqueWithoutUserInput = { - where: Prisma.AccountWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type AccountUpdateWithWhereUniqueWithoutUserInput = { - where: Prisma.AccountWhereUniqueInput - data: Prisma.XOR -} - -export type AccountUpdateManyWithWhereWithoutUserInput = { - where: Prisma.AccountScalarWhereInput - data: Prisma.XOR -} - -export type AccountScalarWhereInput = { - AND?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] - OR?: Prisma.AccountScalarWhereInput[] - NOT?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] - id?: Prisma.StringFilter<"Account"> | string - userId?: Prisma.StringFilter<"Account"> | string - type?: Prisma.StringFilter<"Account"> | string - provider?: Prisma.StringFilter<"Account"> | string - providerAccountId?: Prisma.StringFilter<"Account"> | string - refresh_token?: Prisma.StringNullableFilter<"Account"> | string | null - access_token?: Prisma.StringNullableFilter<"Account"> | string | null - expires_at?: Prisma.IntNullableFilter<"Account"> | number | null - token_type?: Prisma.StringNullableFilter<"Account"> | string | null - scope?: Prisma.StringNullableFilter<"Account"> | string | null - id_token?: Prisma.StringNullableFilter<"Account"> | string | null - session_state?: Prisma.StringNullableFilter<"Account"> | string | null -} - -export type AccountCreateManyUserInput = { - id?: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null -} - -export type AccountUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - provider?: Prisma.StringFieldUpdateOperationsInput | string - providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string - refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type AccountUncheckedUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - provider?: Prisma.StringFieldUpdateOperationsInput | string - providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string - refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type AccountUncheckedUpdateManyWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - provider?: Prisma.StringFieldUpdateOperationsInput | string - providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string - refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - - - -export type AccountSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - userId?: boolean - type?: boolean - provider?: boolean - providerAccountId?: boolean - refresh_token?: boolean - access_token?: boolean - expires_at?: boolean - token_type?: boolean - scope?: boolean - id_token?: boolean - session_state?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["account"]> - -export type AccountSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - userId?: boolean - type?: boolean - provider?: boolean - providerAccountId?: boolean - refresh_token?: boolean - access_token?: boolean - expires_at?: boolean - token_type?: boolean - scope?: boolean - id_token?: boolean - session_state?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["account"]> - -export type AccountSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - userId?: boolean - type?: boolean - provider?: boolean - providerAccountId?: boolean - refresh_token?: boolean - access_token?: boolean - expires_at?: boolean - token_type?: boolean - scope?: boolean - id_token?: boolean - session_state?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["account"]> - -export type AccountSelectScalar = { - id?: boolean - userId?: boolean - type?: boolean - provider?: boolean - providerAccountId?: boolean - refresh_token?: boolean - access_token?: boolean - expires_at?: boolean - token_type?: boolean - scope?: boolean - id_token?: boolean - session_state?: boolean -} - -export type AccountOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "type" | "provider" | "providerAccountId" | "refresh_token" | "access_token" | "expires_at" | "token_type" | "scope" | "id_token" | "session_state", ExtArgs["result"]["account"]> -export type AccountInclude = { - user?: boolean | Prisma.UserDefaultArgs -} -export type AccountIncludeCreateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs -} -export type AccountIncludeUpdateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs -} - -export type $AccountPayload = { - name: "Account" - objects: { - user: Prisma.$UserPayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - userId: string - type: string - provider: string - providerAccountId: string - refresh_token: string | null - access_token: string | null - expires_at: number | null - token_type: string | null - scope: string | null - id_token: string | null - session_state: string | null - }, ExtArgs["result"]["account"]> - composites: {} -} - -export type AccountGetPayload = runtime.Types.Result.GetResult - -export type AccountCountArgs = - Omit & { - select?: AccountCountAggregateInputType | true - } - -export interface AccountDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Account'], meta: { name: 'Account' } } - /** - * Find zero or one Account that matches the filter. - * @param {AccountFindUniqueArgs} args - Arguments to find a Account - * @example - * // Get one Account - * const account = await prisma.account.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Account that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account - * @example - * // Get one Account - * const account = await prisma.account.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Account that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountFindFirstArgs} args - Arguments to find a Account - * @example - * // Get one Account - * const account = await prisma.account.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Account that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountFindFirstOrThrowArgs} args - Arguments to find a Account - * @example - * // Get one Account - * const account = await prisma.account.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Accounts that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Accounts - * const accounts = await prisma.account.findMany() - * - * // Get first 10 Accounts - * const accounts = await prisma.account.findMany({ take: 10 }) - * - * // Only select the `id` - * const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Account. - * @param {AccountCreateArgs} args - Arguments to create a Account. - * @example - * // Create one Account - * const Account = await prisma.account.create({ - * data: { - * // ... data to create a Account - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Accounts. - * @param {AccountCreateManyArgs} args - Arguments to create many Accounts. - * @example - * // Create many Accounts - * const account = await prisma.account.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Accounts and returns the data saved in the database. - * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts. - * @example - * // Create many Accounts - * const account = await prisma.account.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Accounts and only return the `id` - * const accountWithIdOnly = await prisma.account.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Account. - * @param {AccountDeleteArgs} args - Arguments to delete one Account. - * @example - * // Delete one Account - * const Account = await prisma.account.delete({ - * where: { - * // ... filter to delete one Account - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Account. - * @param {AccountUpdateArgs} args - Arguments to update one Account. - * @example - * // Update one Account - * const account = await prisma.account.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Accounts. - * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete. - * @example - * // Delete a few Accounts - * const { count } = await prisma.account.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Accounts. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Accounts - * const account = await prisma.account.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Accounts and returns the data updated in the database. - * @param {AccountUpdateManyAndReturnArgs} args - Arguments to update many Accounts. - * @example - * // Update many Accounts - * const account = await prisma.account.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Accounts and only return the `id` - * const accountWithIdOnly = await prisma.account.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Account. - * @param {AccountUpsertArgs} args - Arguments to update or create a Account. - * @example - * // Update or create a Account - * const account = await prisma.account.upsert({ - * create: { - * // ... data to create a Account - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Account we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Accounts. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountCountArgs} args - Arguments to filter Accounts to count. - * @example - * // Count the number of Accounts - * const count = await prisma.account.count({ - * where: { - * // ... the filter for the Accounts we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Account. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by Account. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends AccountGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: AccountGroupByArgs['orderBy'] } - : { orderBy?: AccountGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Account model - */ -readonly fields: AccountFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Account. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__AccountClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the Account model - */ -export interface AccountFieldRefs { - readonly id: Prisma.FieldRef<"Account", 'String'> - readonly userId: Prisma.FieldRef<"Account", 'String'> - readonly type: Prisma.FieldRef<"Account", 'String'> - readonly provider: Prisma.FieldRef<"Account", 'String'> - readonly providerAccountId: Prisma.FieldRef<"Account", 'String'> - readonly refresh_token: Prisma.FieldRef<"Account", 'String'> - readonly access_token: Prisma.FieldRef<"Account", 'String'> - readonly expires_at: Prisma.FieldRef<"Account", 'Int'> - readonly token_type: Prisma.FieldRef<"Account", 'String'> - readonly scope: Prisma.FieldRef<"Account", 'String'> - readonly id_token: Prisma.FieldRef<"Account", 'String'> - readonly session_state: Prisma.FieldRef<"Account", 'String'> -} - - -// Custom InputTypes -/** - * Account findUnique - */ -export type AccountFindUniqueArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * Filter, which Account to fetch. - */ - where: Prisma.AccountWhereUniqueInput -} - -/** - * Account findUniqueOrThrow - */ -export type AccountFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * Filter, which Account to fetch. - */ - where: Prisma.AccountWhereUniqueInput -} - -/** - * Account findFirst - */ -export type AccountFindFirstArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * Filter, which Account to fetch. - */ - where?: Prisma.AccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Accounts to fetch. - */ - orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Accounts. - */ - cursor?: Prisma.AccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Accounts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Accounts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Accounts. - */ - distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] -} - -/** - * Account findFirstOrThrow - */ -export type AccountFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * Filter, which Account to fetch. - */ - where?: Prisma.AccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Accounts to fetch. - */ - orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Accounts. - */ - cursor?: Prisma.AccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Accounts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Accounts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Accounts. - */ - distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] -} - -/** - * Account findMany - */ -export type AccountFindManyArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * Filter, which Accounts to fetch. - */ - where?: Prisma.AccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Accounts to fetch. - */ - orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Accounts. - */ - cursor?: Prisma.AccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Accounts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Accounts. - */ - skip?: number - distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] -} - -/** - * Account create - */ -export type AccountCreateArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * The data needed to create a Account. - */ - data: Prisma.XOR -} - -/** - * Account createMany - */ -export type AccountCreateManyArgs = { - /** - * The data used to create many Accounts. - */ - data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[] -} - -/** - * Account createManyAndReturn - */ -export type AccountCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * The data used to create many Accounts. - */ - data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountIncludeCreateManyAndReturn | null -} - -/** - * Account update - */ -export type AccountUpdateArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * The data needed to update a Account. - */ - data: Prisma.XOR - /** - * Choose, which Account to update. - */ - where: Prisma.AccountWhereUniqueInput -} - -/** - * Account updateMany - */ -export type AccountUpdateManyArgs = { - /** - * The data used to update Accounts. - */ - data: Prisma.XOR - /** - * Filter which Accounts to update - */ - where?: Prisma.AccountWhereInput - /** - * Limit how many Accounts to update. - */ - limit?: number -} - -/** - * Account updateManyAndReturn - */ -export type AccountUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * The data used to update Accounts. - */ - data: Prisma.XOR - /** - * Filter which Accounts to update - */ - where?: Prisma.AccountWhereInput - /** - * Limit how many Accounts to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountIncludeUpdateManyAndReturn | null -} - -/** - * Account upsert - */ -export type AccountUpsertArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * The filter to search for the Account to update in case it exists. - */ - where: Prisma.AccountWhereUniqueInput - /** - * In case the Account found by the `where` argument doesn't exist, create a new Account with this data. - */ - create: Prisma.XOR - /** - * In case the Account was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Account delete - */ -export type AccountDeleteArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * Filter which Account to delete. - */ - where: Prisma.AccountWhereUniqueInput -} - -/** - * Account deleteMany - */ -export type AccountDeleteManyArgs = { - /** - * Filter which Accounts to delete - */ - where?: Prisma.AccountWhereInput - /** - * Limit how many Accounts to delete. - */ - limit?: number -} - -/** - * Account without action - */ -export type AccountDefaultArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null -} diff --git a/backend/src/generated/prisma/models/Comment.ts b/backend/src/generated/prisma/models/Comment.ts deleted file mode 100644 index c2f5836..0000000 --- a/backend/src/generated/prisma/models/Comment.ts +++ /dev/null @@ -1,1497 +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 `Comment` 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 Comment - * - */ -export type CommentModel = runtime.Types.Result.DefaultSelection - -export type AggregateComment = { - _count: CommentCountAggregateOutputType | null - _min: CommentMinAggregateOutputType | null - _max: CommentMaxAggregateOutputType | null -} - -export type CommentMinAggregateOutputType = { - id: string | null - content: string | null - userId: string | null - postId: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type CommentMaxAggregateOutputType = { - id: string | null - content: string | null - userId: string | null - postId: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type CommentCountAggregateOutputType = { - id: number - content: number - userId: number - postId: number - createdAt: number - updatedAt: number - _all: number -} - - -export type CommentMinAggregateInputType = { - id?: true - content?: true - userId?: true - postId?: true - createdAt?: true - updatedAt?: true -} - -export type CommentMaxAggregateInputType = { - id?: true - content?: true - userId?: true - postId?: true - createdAt?: true - updatedAt?: true -} - -export type CommentCountAggregateInputType = { - id?: true - content?: true - userId?: true - postId?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type CommentAggregateArgs = { - /** - * Filter which Comment to aggregate. - */ - where?: Prisma.CommentWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Comments to fetch. - */ - orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.CommentWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Comments 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` Comments. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Comments - **/ - _count?: true | CommentCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: CommentMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: CommentMaxAggregateInputType -} - -export type GetCommentAggregateType = { - [P in keyof T & keyof AggregateComment]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type CommentGroupByArgs = { - where?: Prisma.CommentWhereInput - orderBy?: Prisma.CommentOrderByWithAggregationInput | Prisma.CommentOrderByWithAggregationInput[] - by: Prisma.CommentScalarFieldEnum[] | Prisma.CommentScalarFieldEnum - having?: Prisma.CommentScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: CommentCountAggregateInputType | true - _min?: CommentMinAggregateInputType - _max?: CommentMaxAggregateInputType -} - -export type CommentGroupByOutputType = { - id: string - content: string - userId: string - postId: string - createdAt: Date - updatedAt: Date - _count: CommentCountAggregateOutputType | null - _min: CommentMinAggregateOutputType | null - _max: CommentMaxAggregateOutputType | null -} - -type GetCommentGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof CommentGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type CommentWhereInput = { - AND?: Prisma.CommentWhereInput | Prisma.CommentWhereInput[] - OR?: Prisma.CommentWhereInput[] - NOT?: Prisma.CommentWhereInput | Prisma.CommentWhereInput[] - id?: Prisma.StringFilter<"Comment"> | string - content?: Prisma.StringFilter<"Comment"> | string - userId?: Prisma.StringFilter<"Comment"> | string - postId?: Prisma.StringFilter<"Comment"> | string - createdAt?: Prisma.DateTimeFilter<"Comment"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Comment"> | Date | string - user?: Prisma.XOR - post?: Prisma.XOR -} - -export type CommentOrderByWithRelationInput = { - id?: Prisma.SortOrder - content?: Prisma.SortOrder - userId?: Prisma.SortOrder - postId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - user?: Prisma.UserOrderByWithRelationInput - post?: Prisma.PostOrderByWithRelationInput -} - -export type CommentWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: Prisma.CommentWhereInput | Prisma.CommentWhereInput[] - OR?: Prisma.CommentWhereInput[] - NOT?: Prisma.CommentWhereInput | Prisma.CommentWhereInput[] - content?: Prisma.StringFilter<"Comment"> | string - userId?: Prisma.StringFilter<"Comment"> | string - postId?: Prisma.StringFilter<"Comment"> | string - createdAt?: Prisma.DateTimeFilter<"Comment"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Comment"> | Date | string - user?: Prisma.XOR - post?: Prisma.XOR -}, "id"> - -export type CommentOrderByWithAggregationInput = { - id?: Prisma.SortOrder - content?: Prisma.SortOrder - userId?: Prisma.SortOrder - postId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.CommentCountOrderByAggregateInput - _max?: Prisma.CommentMaxOrderByAggregateInput - _min?: Prisma.CommentMinOrderByAggregateInput -} - -export type CommentScalarWhereWithAggregatesInput = { - AND?: Prisma.CommentScalarWhereWithAggregatesInput | Prisma.CommentScalarWhereWithAggregatesInput[] - OR?: Prisma.CommentScalarWhereWithAggregatesInput[] - NOT?: Prisma.CommentScalarWhereWithAggregatesInput | Prisma.CommentScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"Comment"> | string - content?: Prisma.StringWithAggregatesFilter<"Comment"> | string - userId?: Prisma.StringWithAggregatesFilter<"Comment"> | string - postId?: Prisma.StringWithAggregatesFilter<"Comment"> | string - createdAt?: Prisma.DateTimeWithAggregatesFilter<"Comment"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Comment"> | Date | string -} - -export type CommentCreateInput = { - id?: string - content: string - createdAt?: Date | string - updatedAt?: Date | string - user: Prisma.UserCreateNestedOneWithoutCommentsInput - post: Prisma.PostCreateNestedOneWithoutCommentsInput -} - -export type CommentUncheckedCreateInput = { - id?: string - content: string - userId: string - postId: string - createdAt?: Date | string - updatedAt?: Date | string -} - -export type CommentUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - user?: Prisma.UserUpdateOneRequiredWithoutCommentsNestedInput - post?: Prisma.PostUpdateOneRequiredWithoutCommentsNestedInput -} - -export type CommentUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - postId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type CommentCreateManyInput = { - id?: string - content: string - userId: string - postId: string - createdAt?: Date | string - updatedAt?: Date | string -} - -export type CommentUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type CommentUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - postId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type CommentListRelationFilter = { - every?: Prisma.CommentWhereInput - some?: Prisma.CommentWhereInput - none?: Prisma.CommentWhereInput -} - -export type CommentOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type CommentCountOrderByAggregateInput = { - id?: Prisma.SortOrder - content?: Prisma.SortOrder - userId?: Prisma.SortOrder - postId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type CommentMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - content?: Prisma.SortOrder - userId?: Prisma.SortOrder - postId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type CommentMinOrderByAggregateInput = { - id?: Prisma.SortOrder - content?: Prisma.SortOrder - userId?: Prisma.SortOrder - postId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type CommentCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.CommentCreateWithoutUserInput[] | Prisma.CommentUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.CommentCreateOrConnectWithoutUserInput | Prisma.CommentCreateOrConnectWithoutUserInput[] - createMany?: Prisma.CommentCreateManyUserInputEnvelope - connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] -} - -export type CommentUncheckedCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.CommentCreateWithoutUserInput[] | Prisma.CommentUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.CommentCreateOrConnectWithoutUserInput | Prisma.CommentCreateOrConnectWithoutUserInput[] - createMany?: Prisma.CommentCreateManyUserInputEnvelope - connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] -} - -export type CommentUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.CommentCreateWithoutUserInput[] | Prisma.CommentUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.CommentCreateOrConnectWithoutUserInput | Prisma.CommentCreateOrConnectWithoutUserInput[] - upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutUserInput | Prisma.CommentUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.CommentCreateManyUserInputEnvelope - set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] - disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] - delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] - connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] - update?: Prisma.CommentUpdateWithWhereUniqueWithoutUserInput | Prisma.CommentUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.CommentUpdateManyWithWhereWithoutUserInput | Prisma.CommentUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[] -} - -export type CommentUncheckedUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.CommentCreateWithoutUserInput[] | Prisma.CommentUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.CommentCreateOrConnectWithoutUserInput | Prisma.CommentCreateOrConnectWithoutUserInput[] - upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutUserInput | Prisma.CommentUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.CommentCreateManyUserInputEnvelope - set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] - disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] - delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] - connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] - update?: Prisma.CommentUpdateWithWhereUniqueWithoutUserInput | Prisma.CommentUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.CommentUpdateManyWithWhereWithoutUserInput | Prisma.CommentUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[] -} - -export type CommentCreateNestedManyWithoutPostInput = { - create?: Prisma.XOR | Prisma.CommentCreateWithoutPostInput[] | Prisma.CommentUncheckedCreateWithoutPostInput[] - connectOrCreate?: Prisma.CommentCreateOrConnectWithoutPostInput | Prisma.CommentCreateOrConnectWithoutPostInput[] - createMany?: Prisma.CommentCreateManyPostInputEnvelope - connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] -} - -export type CommentUncheckedCreateNestedManyWithoutPostInput = { - create?: Prisma.XOR | Prisma.CommentCreateWithoutPostInput[] | Prisma.CommentUncheckedCreateWithoutPostInput[] - connectOrCreate?: Prisma.CommentCreateOrConnectWithoutPostInput | Prisma.CommentCreateOrConnectWithoutPostInput[] - createMany?: Prisma.CommentCreateManyPostInputEnvelope - connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] -} - -export type CommentUpdateManyWithoutPostNestedInput = { - create?: Prisma.XOR | Prisma.CommentCreateWithoutPostInput[] | Prisma.CommentUncheckedCreateWithoutPostInput[] - connectOrCreate?: Prisma.CommentCreateOrConnectWithoutPostInput | Prisma.CommentCreateOrConnectWithoutPostInput[] - upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutPostInput | Prisma.CommentUpsertWithWhereUniqueWithoutPostInput[] - createMany?: Prisma.CommentCreateManyPostInputEnvelope - set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] - disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] - delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] - connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] - update?: Prisma.CommentUpdateWithWhereUniqueWithoutPostInput | Prisma.CommentUpdateWithWhereUniqueWithoutPostInput[] - updateMany?: Prisma.CommentUpdateManyWithWhereWithoutPostInput | Prisma.CommentUpdateManyWithWhereWithoutPostInput[] - deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[] -} - -export type CommentUncheckedUpdateManyWithoutPostNestedInput = { - create?: Prisma.XOR | Prisma.CommentCreateWithoutPostInput[] | Prisma.CommentUncheckedCreateWithoutPostInput[] - connectOrCreate?: Prisma.CommentCreateOrConnectWithoutPostInput | Prisma.CommentCreateOrConnectWithoutPostInput[] - upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutPostInput | Prisma.CommentUpsertWithWhereUniqueWithoutPostInput[] - createMany?: Prisma.CommentCreateManyPostInputEnvelope - set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] - disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] - delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] - connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[] - update?: Prisma.CommentUpdateWithWhereUniqueWithoutPostInput | Prisma.CommentUpdateWithWhereUniqueWithoutPostInput[] - updateMany?: Prisma.CommentUpdateManyWithWhereWithoutPostInput | Prisma.CommentUpdateManyWithWhereWithoutPostInput[] - deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[] -} - -export type CommentCreateWithoutUserInput = { - id?: string - content: string - createdAt?: Date | string - updatedAt?: Date | string - post: Prisma.PostCreateNestedOneWithoutCommentsInput -} - -export type CommentUncheckedCreateWithoutUserInput = { - id?: string - content: string - postId: string - createdAt?: Date | string - updatedAt?: Date | string -} - -export type CommentCreateOrConnectWithoutUserInput = { - where: Prisma.CommentWhereUniqueInput - create: Prisma.XOR -} - -export type CommentCreateManyUserInputEnvelope = { - data: Prisma.CommentCreateManyUserInput | Prisma.CommentCreateManyUserInput[] -} - -export type CommentUpsertWithWhereUniqueWithoutUserInput = { - where: Prisma.CommentWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type CommentUpdateWithWhereUniqueWithoutUserInput = { - where: Prisma.CommentWhereUniqueInput - data: Prisma.XOR -} - -export type CommentUpdateManyWithWhereWithoutUserInput = { - where: Prisma.CommentScalarWhereInput - data: Prisma.XOR -} - -export type CommentScalarWhereInput = { - AND?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[] - OR?: Prisma.CommentScalarWhereInput[] - NOT?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[] - id?: Prisma.StringFilter<"Comment"> | string - content?: Prisma.StringFilter<"Comment"> | string - userId?: Prisma.StringFilter<"Comment"> | string - postId?: Prisma.StringFilter<"Comment"> | string - createdAt?: Prisma.DateTimeFilter<"Comment"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Comment"> | Date | string -} - -export type CommentCreateWithoutPostInput = { - id?: string - content: string - createdAt?: Date | string - updatedAt?: Date | string - user: Prisma.UserCreateNestedOneWithoutCommentsInput -} - -export type CommentUncheckedCreateWithoutPostInput = { - id?: string - content: string - userId: string - createdAt?: Date | string - updatedAt?: Date | string -} - -export type CommentCreateOrConnectWithoutPostInput = { - where: Prisma.CommentWhereUniqueInput - create: Prisma.XOR -} - -export type CommentCreateManyPostInputEnvelope = { - data: Prisma.CommentCreateManyPostInput | Prisma.CommentCreateManyPostInput[] -} - -export type CommentUpsertWithWhereUniqueWithoutPostInput = { - where: Prisma.CommentWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type CommentUpdateWithWhereUniqueWithoutPostInput = { - where: Prisma.CommentWhereUniqueInput - data: Prisma.XOR -} - -export type CommentUpdateManyWithWhereWithoutPostInput = { - where: Prisma.CommentScalarWhereInput - data: Prisma.XOR -} - -export type CommentCreateManyUserInput = { - id?: string - content: string - postId: string - createdAt?: Date | string - updatedAt?: Date | string -} - -export type CommentUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - post?: Prisma.PostUpdateOneRequiredWithoutCommentsNestedInput -} - -export type CommentUncheckedUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - postId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type CommentUncheckedUpdateManyWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - postId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type CommentCreateManyPostInput = { - id?: string - content: string - userId: string - createdAt?: Date | string - updatedAt?: Date | string -} - -export type CommentUpdateWithoutPostInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - user?: Prisma.UserUpdateOneRequiredWithoutCommentsNestedInput -} - -export type CommentUncheckedUpdateWithoutPostInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type CommentUncheckedUpdateManyWithoutPostInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - - -export type CommentSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - content?: boolean - userId?: boolean - postId?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | Prisma.UserDefaultArgs - post?: boolean | Prisma.PostDefaultArgs -}, ExtArgs["result"]["comment"]> - -export type CommentSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - content?: boolean - userId?: boolean - postId?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | Prisma.UserDefaultArgs - post?: boolean | Prisma.PostDefaultArgs -}, ExtArgs["result"]["comment"]> - -export type CommentSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - content?: boolean - userId?: boolean - postId?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | Prisma.UserDefaultArgs - post?: boolean | Prisma.PostDefaultArgs -}, ExtArgs["result"]["comment"]> - -export type CommentSelectScalar = { - id?: boolean - content?: boolean - userId?: boolean - postId?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type CommentOmit = runtime.Types.Extensions.GetOmit<"id" | "content" | "userId" | "postId" | "createdAt" | "updatedAt", ExtArgs["result"]["comment"]> -export type CommentInclude = { - user?: boolean | Prisma.UserDefaultArgs - post?: boolean | Prisma.PostDefaultArgs -} -export type CommentIncludeCreateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs - post?: boolean | Prisma.PostDefaultArgs -} -export type CommentIncludeUpdateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs - post?: boolean | Prisma.PostDefaultArgs -} - -export type $CommentPayload = { - name: "Comment" - objects: { - user: Prisma.$UserPayload - post: Prisma.$PostPayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - content: string - userId: string - postId: string - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["comment"]> - composites: {} -} - -export type CommentGetPayload = runtime.Types.Result.GetResult - -export type CommentCountArgs = - Omit & { - select?: CommentCountAggregateInputType | true - } - -export interface CommentDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Comment'], meta: { name: 'Comment' } } - /** - * Find zero or one Comment that matches the filter. - * @param {CommentFindUniqueArgs} args - Arguments to find a Comment - * @example - * // Get one Comment - * const comment = await prisma.comment.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__CommentClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Comment that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {CommentFindUniqueOrThrowArgs} args - Arguments to find a Comment - * @example - * // Get one Comment - * const comment = await prisma.comment.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__CommentClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Comment 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 {CommentFindFirstArgs} args - Arguments to find a Comment - * @example - * // Get one Comment - * const comment = await prisma.comment.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__CommentClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Comment 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 {CommentFindFirstOrThrowArgs} args - Arguments to find a Comment - * @example - * // Get one Comment - * const comment = await prisma.comment.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__CommentClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Comments 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 {CommentFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Comments - * const comments = await prisma.comment.findMany() - * - * // Get first 10 Comments - * const comments = await prisma.comment.findMany({ take: 10 }) - * - * // Only select the `id` - * const commentWithIdOnly = await prisma.comment.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Comment. - * @param {CommentCreateArgs} args - Arguments to create a Comment. - * @example - * // Create one Comment - * const Comment = await prisma.comment.create({ - * data: { - * // ... data to create a Comment - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__CommentClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Comments. - * @param {CommentCreateManyArgs} args - Arguments to create many Comments. - * @example - * // Create many Comments - * const comment = await prisma.comment.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Comments and returns the data saved in the database. - * @param {CommentCreateManyAndReturnArgs} args - Arguments to create many Comments. - * @example - * // Create many Comments - * const comment = await prisma.comment.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Comments and only return the `id` - * const commentWithIdOnly = await prisma.comment.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Comment. - * @param {CommentDeleteArgs} args - Arguments to delete one Comment. - * @example - * // Delete one Comment - * const Comment = await prisma.comment.delete({ - * where: { - * // ... filter to delete one Comment - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__CommentClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Comment. - * @param {CommentUpdateArgs} args - Arguments to update one Comment. - * @example - * // Update one Comment - * const comment = await prisma.comment.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__CommentClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Comments. - * @param {CommentDeleteManyArgs} args - Arguments to filter Comments to delete. - * @example - * // Delete a few Comments - * const { count } = await prisma.comment.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Comments. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CommentUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Comments - * const comment = await prisma.comment.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Comments and returns the data updated in the database. - * @param {CommentUpdateManyAndReturnArgs} args - Arguments to update many Comments. - * @example - * // Update many Comments - * const comment = await prisma.comment.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Comments and only return the `id` - * const commentWithIdOnly = await prisma.comment.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Comment. - * @param {CommentUpsertArgs} args - Arguments to update or create a Comment. - * @example - * // Update or create a Comment - * const comment = await prisma.comment.upsert({ - * create: { - * // ... data to create a Comment - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Comment we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__CommentClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Comments. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CommentCountArgs} args - Arguments to filter Comments to count. - * @example - * // Count the number of Comments - * const count = await prisma.comment.count({ - * where: { - * // ... the filter for the Comments 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 Comment. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CommentAggregateArgs} 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 Comment. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CommentGroupByArgs} 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 CommentGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: CommentGroupByArgs['orderBy'] } - : { orderBy?: CommentGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetCommentGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Comment model - */ -readonly fields: CommentFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Comment. - * 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__CommentClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - post = {}>(args?: Prisma.Subset>): Prisma.Prisma__PostClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the Comment model - */ -export interface CommentFieldRefs { - readonly id: Prisma.FieldRef<"Comment", 'String'> - readonly content: Prisma.FieldRef<"Comment", 'String'> - readonly userId: Prisma.FieldRef<"Comment", 'String'> - readonly postId: Prisma.FieldRef<"Comment", 'String'> - readonly createdAt: Prisma.FieldRef<"Comment", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"Comment", 'DateTime'> -} - - -// Custom InputTypes -/** - * Comment findUnique - */ -export type CommentFindUniqueArgs = { - /** - * Select specific fields to fetch from the Comment - */ - select?: Prisma.CommentSelect | null - /** - * Omit specific fields from the Comment - */ - omit?: Prisma.CommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CommentInclude | null - /** - * Filter, which Comment to fetch. - */ - where: Prisma.CommentWhereUniqueInput -} - -/** - * Comment findUniqueOrThrow - */ -export type CommentFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Comment - */ - select?: Prisma.CommentSelect | null - /** - * Omit specific fields from the Comment - */ - omit?: Prisma.CommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CommentInclude | null - /** - * Filter, which Comment to fetch. - */ - where: Prisma.CommentWhereUniqueInput -} - -/** - * Comment findFirst - */ -export type CommentFindFirstArgs = { - /** - * Select specific fields to fetch from the Comment - */ - select?: Prisma.CommentSelect | null - /** - * Omit specific fields from the Comment - */ - omit?: Prisma.CommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CommentInclude | null - /** - * Filter, which Comment to fetch. - */ - where?: Prisma.CommentWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Comments to fetch. - */ - orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Comments. - */ - cursor?: Prisma.CommentWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Comments 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` Comments. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Comments. - */ - distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[] -} - -/** - * Comment findFirstOrThrow - */ -export type CommentFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Comment - */ - select?: Prisma.CommentSelect | null - /** - * Omit specific fields from the Comment - */ - omit?: Prisma.CommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CommentInclude | null - /** - * Filter, which Comment to fetch. - */ - where?: Prisma.CommentWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Comments to fetch. - */ - orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Comments. - */ - cursor?: Prisma.CommentWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Comments 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` Comments. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Comments. - */ - distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[] -} - -/** - * Comment findMany - */ -export type CommentFindManyArgs = { - /** - * Select specific fields to fetch from the Comment - */ - select?: Prisma.CommentSelect | null - /** - * Omit specific fields from the Comment - */ - omit?: Prisma.CommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CommentInclude | null - /** - * Filter, which Comments to fetch. - */ - where?: Prisma.CommentWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Comments to fetch. - */ - orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Comments. - */ - cursor?: Prisma.CommentWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Comments 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` Comments. - */ - skip?: number - distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[] -} - -/** - * Comment create - */ -export type CommentCreateArgs = { - /** - * Select specific fields to fetch from the Comment - */ - select?: Prisma.CommentSelect | null - /** - * Omit specific fields from the Comment - */ - omit?: Prisma.CommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CommentInclude | null - /** - * The data needed to create a Comment. - */ - data: Prisma.XOR -} - -/** - * Comment createMany - */ -export type CommentCreateManyArgs = { - /** - * The data used to create many Comments. - */ - data: Prisma.CommentCreateManyInput | Prisma.CommentCreateManyInput[] -} - -/** - * Comment createManyAndReturn - */ -export type CommentCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Comment - */ - select?: Prisma.CommentSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Comment - */ - omit?: Prisma.CommentOmit | null - /** - * The data used to create many Comments. - */ - data: Prisma.CommentCreateManyInput | Prisma.CommentCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CommentIncludeCreateManyAndReturn | null -} - -/** - * Comment update - */ -export type CommentUpdateArgs = { - /** - * Select specific fields to fetch from the Comment - */ - select?: Prisma.CommentSelect | null - /** - * Omit specific fields from the Comment - */ - omit?: Prisma.CommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CommentInclude | null - /** - * The data needed to update a Comment. - */ - data: Prisma.XOR - /** - * Choose, which Comment to update. - */ - where: Prisma.CommentWhereUniqueInput -} - -/** - * Comment updateMany - */ -export type CommentUpdateManyArgs = { - /** - * The data used to update Comments. - */ - data: Prisma.XOR - /** - * Filter which Comments to update - */ - where?: Prisma.CommentWhereInput - /** - * Limit how many Comments to update. - */ - limit?: number -} - -/** - * Comment updateManyAndReturn - */ -export type CommentUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Comment - */ - select?: Prisma.CommentSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Comment - */ - omit?: Prisma.CommentOmit | null - /** - * The data used to update Comments. - */ - data: Prisma.XOR - /** - * Filter which Comments to update - */ - where?: Prisma.CommentWhereInput - /** - * Limit how many Comments to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CommentIncludeUpdateManyAndReturn | null -} - -/** - * Comment upsert - */ -export type CommentUpsertArgs = { - /** - * Select specific fields to fetch from the Comment - */ - select?: Prisma.CommentSelect | null - /** - * Omit specific fields from the Comment - */ - omit?: Prisma.CommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CommentInclude | null - /** - * The filter to search for the Comment to update in case it exists. - */ - where: Prisma.CommentWhereUniqueInput - /** - * In case the Comment found by the `where` argument doesn't exist, create a new Comment with this data. - */ - create: Prisma.XOR - /** - * In case the Comment was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Comment delete - */ -export type CommentDeleteArgs = { - /** - * Select specific fields to fetch from the Comment - */ - select?: Prisma.CommentSelect | null - /** - * Omit specific fields from the Comment - */ - omit?: Prisma.CommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CommentInclude | null - /** - * Filter which Comment to delete. - */ - where: Prisma.CommentWhereUniqueInput -} - -/** - * Comment deleteMany - */ -export type CommentDeleteManyArgs = { - /** - * Filter which Comments to delete - */ - where?: Prisma.CommentWhereInput - /** - * Limit how many Comments to delete. - */ - limit?: number -} - -/** - * Comment without action - */ -export type CommentDefaultArgs = { - /** - * Select specific fields to fetch from the Comment - */ - select?: Prisma.CommentSelect | null - /** - * Omit specific fields from the Comment - */ - omit?: Prisma.CommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CommentInclude | null -} diff --git a/backend/src/generated/prisma/models/Post.ts b/backend/src/generated/prisma/models/Post.ts deleted file mode 100644 index 70e35cb..0000000 --- a/backend/src/generated/prisma/models/Post.ts +++ /dev/null @@ -1,1556 +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 `Post` 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 Post - * - */ -export type PostModel = runtime.Types.Result.DefaultSelection - -export type AggregatePost = { - _count: PostCountAggregateOutputType | null - _min: PostMinAggregateOutputType | null - _max: PostMaxAggregateOutputType | null -} - -export type PostMinAggregateOutputType = { - id: string | null - title: string | null - content: string | null - userId: string | null - published: boolean | null - createdAt: Date | null - updatedAt: Date | null -} - -export type PostMaxAggregateOutputType = { - id: string | null - title: string | null - content: string | null - userId: string | null - published: boolean | null - createdAt: Date | null - updatedAt: Date | null -} - -export type PostCountAggregateOutputType = { - id: number - title: number - content: number - userId: number - published: number - createdAt: number - updatedAt: number - _all: number -} - - -export type PostMinAggregateInputType = { - id?: true - title?: true - content?: true - userId?: true - published?: true - createdAt?: true - updatedAt?: true -} - -export type PostMaxAggregateInputType = { - id?: true - title?: true - content?: true - userId?: true - published?: true - createdAt?: true - updatedAt?: true -} - -export type PostCountAggregateInputType = { - id?: true - title?: true - content?: true - userId?: true - published?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type PostAggregateArgs = { - /** - * Filter which Post to aggregate. - */ - where?: Prisma.PostWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Posts to fetch. - */ - orderBy?: Prisma.PostOrderByWithRelationInput | Prisma.PostOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.PostWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Posts 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` Posts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Posts - **/ - _count?: true | PostCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: PostMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: PostMaxAggregateInputType -} - -export type GetPostAggregateType = { - [P in keyof T & keyof AggregatePost]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type PostGroupByArgs = { - where?: Prisma.PostWhereInput - orderBy?: Prisma.PostOrderByWithAggregationInput | Prisma.PostOrderByWithAggregationInput[] - by: Prisma.PostScalarFieldEnum[] | Prisma.PostScalarFieldEnum - having?: Prisma.PostScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: PostCountAggregateInputType | true - _min?: PostMinAggregateInputType - _max?: PostMaxAggregateInputType -} - -export type PostGroupByOutputType = { - id: string - title: string - content: string - userId: string - published: boolean - createdAt: Date - updatedAt: Date - _count: PostCountAggregateOutputType | null - _min: PostMinAggregateOutputType | null - _max: PostMaxAggregateOutputType | null -} - -type GetPostGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof PostGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type PostWhereInput = { - AND?: Prisma.PostWhereInput | Prisma.PostWhereInput[] - OR?: Prisma.PostWhereInput[] - NOT?: Prisma.PostWhereInput | Prisma.PostWhereInput[] - id?: Prisma.StringFilter<"Post"> | string - title?: Prisma.StringFilter<"Post"> | string - content?: Prisma.StringFilter<"Post"> | string - userId?: Prisma.StringFilter<"Post"> | string - published?: Prisma.BoolFilter<"Post"> | boolean - createdAt?: Prisma.DateTimeFilter<"Post"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Post"> | Date | string - user?: Prisma.XOR - comments?: Prisma.CommentListRelationFilter -} - -export type PostOrderByWithRelationInput = { - id?: Prisma.SortOrder - title?: Prisma.SortOrder - content?: Prisma.SortOrder - userId?: Prisma.SortOrder - published?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - user?: Prisma.UserOrderByWithRelationInput - comments?: Prisma.CommentOrderByRelationAggregateInput -} - -export type PostWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: Prisma.PostWhereInput | Prisma.PostWhereInput[] - OR?: Prisma.PostWhereInput[] - NOT?: Prisma.PostWhereInput | Prisma.PostWhereInput[] - title?: Prisma.StringFilter<"Post"> | string - content?: Prisma.StringFilter<"Post"> | string - userId?: Prisma.StringFilter<"Post"> | string - published?: Prisma.BoolFilter<"Post"> | boolean - createdAt?: Prisma.DateTimeFilter<"Post"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Post"> | Date | string - user?: Prisma.XOR - comments?: Prisma.CommentListRelationFilter -}, "id"> - -export type PostOrderByWithAggregationInput = { - id?: Prisma.SortOrder - title?: Prisma.SortOrder - content?: Prisma.SortOrder - userId?: Prisma.SortOrder - published?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.PostCountOrderByAggregateInput - _max?: Prisma.PostMaxOrderByAggregateInput - _min?: Prisma.PostMinOrderByAggregateInput -} - -export type PostScalarWhereWithAggregatesInput = { - AND?: Prisma.PostScalarWhereWithAggregatesInput | Prisma.PostScalarWhereWithAggregatesInput[] - OR?: Prisma.PostScalarWhereWithAggregatesInput[] - NOT?: Prisma.PostScalarWhereWithAggregatesInput | Prisma.PostScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"Post"> | string - title?: Prisma.StringWithAggregatesFilter<"Post"> | string - content?: Prisma.StringWithAggregatesFilter<"Post"> | string - userId?: Prisma.StringWithAggregatesFilter<"Post"> | string - published?: Prisma.BoolWithAggregatesFilter<"Post"> | boolean - createdAt?: Prisma.DateTimeWithAggregatesFilter<"Post"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Post"> | Date | string -} - -export type PostCreateInput = { - id?: string - title: string - content: string - published?: boolean - createdAt?: Date | string - updatedAt?: Date | string - user: Prisma.UserCreateNestedOneWithoutPostsInput - comments?: Prisma.CommentCreateNestedManyWithoutPostInput -} - -export type PostUncheckedCreateInput = { - id?: string - title: string - content: string - userId: string - published?: boolean - createdAt?: Date | string - updatedAt?: Date | string - comments?: Prisma.CommentUncheckedCreateNestedManyWithoutPostInput -} - -export type PostUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - title?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - published?: Prisma.BoolFieldUpdateOperationsInput | boolean - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - user?: Prisma.UserUpdateOneRequiredWithoutPostsNestedInput - comments?: Prisma.CommentUpdateManyWithoutPostNestedInput -} - -export type PostUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - title?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - published?: Prisma.BoolFieldUpdateOperationsInput | boolean - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - comments?: Prisma.CommentUncheckedUpdateManyWithoutPostNestedInput -} - -export type PostCreateManyInput = { - id?: string - title: string - content: string - userId: string - published?: boolean - createdAt?: Date | string - updatedAt?: Date | string -} - -export type PostUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - title?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - published?: Prisma.BoolFieldUpdateOperationsInput | boolean - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type PostUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - title?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - published?: Prisma.BoolFieldUpdateOperationsInput | boolean - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type PostListRelationFilter = { - every?: Prisma.PostWhereInput - some?: Prisma.PostWhereInput - none?: Prisma.PostWhereInput -} - -export type PostOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type PostCountOrderByAggregateInput = { - id?: Prisma.SortOrder - title?: Prisma.SortOrder - content?: Prisma.SortOrder - userId?: Prisma.SortOrder - published?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type PostMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - title?: Prisma.SortOrder - content?: Prisma.SortOrder - userId?: Prisma.SortOrder - published?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type PostMinOrderByAggregateInput = { - id?: Prisma.SortOrder - title?: Prisma.SortOrder - content?: Prisma.SortOrder - userId?: Prisma.SortOrder - published?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type PostScalarRelationFilter = { - is?: Prisma.PostWhereInput - isNot?: Prisma.PostWhereInput -} - -export type PostCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.PostCreateWithoutUserInput[] | Prisma.PostUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.PostCreateOrConnectWithoutUserInput | Prisma.PostCreateOrConnectWithoutUserInput[] - createMany?: Prisma.PostCreateManyUserInputEnvelope - connect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] -} - -export type PostUncheckedCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.PostCreateWithoutUserInput[] | Prisma.PostUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.PostCreateOrConnectWithoutUserInput | Prisma.PostCreateOrConnectWithoutUserInput[] - createMany?: Prisma.PostCreateManyUserInputEnvelope - connect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] -} - -export type PostUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.PostCreateWithoutUserInput[] | Prisma.PostUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.PostCreateOrConnectWithoutUserInput | Prisma.PostCreateOrConnectWithoutUserInput[] - upsert?: Prisma.PostUpsertWithWhereUniqueWithoutUserInput | Prisma.PostUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.PostCreateManyUserInputEnvelope - set?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] - disconnect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] - delete?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] - connect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] - update?: Prisma.PostUpdateWithWhereUniqueWithoutUserInput | Prisma.PostUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.PostUpdateManyWithWhereWithoutUserInput | Prisma.PostUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.PostScalarWhereInput | Prisma.PostScalarWhereInput[] -} - -export type PostUncheckedUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.PostCreateWithoutUserInput[] | Prisma.PostUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.PostCreateOrConnectWithoutUserInput | Prisma.PostCreateOrConnectWithoutUserInput[] - upsert?: Prisma.PostUpsertWithWhereUniqueWithoutUserInput | Prisma.PostUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.PostCreateManyUserInputEnvelope - set?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] - disconnect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] - delete?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] - connect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] - update?: Prisma.PostUpdateWithWhereUniqueWithoutUserInput | Prisma.PostUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.PostUpdateManyWithWhereWithoutUserInput | Prisma.PostUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.PostScalarWhereInput | Prisma.PostScalarWhereInput[] -} - -export type BoolFieldUpdateOperationsInput = { - set?: boolean -} - -export type PostCreateNestedOneWithoutCommentsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.PostCreateOrConnectWithoutCommentsInput - connect?: Prisma.PostWhereUniqueInput -} - -export type PostUpdateOneRequiredWithoutCommentsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.PostCreateOrConnectWithoutCommentsInput - upsert?: Prisma.PostUpsertWithoutCommentsInput - connect?: Prisma.PostWhereUniqueInput - update?: Prisma.XOR, Prisma.PostUncheckedUpdateWithoutCommentsInput> -} - -export type PostCreateWithoutUserInput = { - id?: string - title: string - content: string - published?: boolean - createdAt?: Date | string - updatedAt?: Date | string - comments?: Prisma.CommentCreateNestedManyWithoutPostInput -} - -export type PostUncheckedCreateWithoutUserInput = { - id?: string - title: string - content: string - published?: boolean - createdAt?: Date | string - updatedAt?: Date | string - comments?: Prisma.CommentUncheckedCreateNestedManyWithoutPostInput -} - -export type PostCreateOrConnectWithoutUserInput = { - where: Prisma.PostWhereUniqueInput - create: Prisma.XOR -} - -export type PostCreateManyUserInputEnvelope = { - data: Prisma.PostCreateManyUserInput | Prisma.PostCreateManyUserInput[] -} - -export type PostUpsertWithWhereUniqueWithoutUserInput = { - where: Prisma.PostWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type PostUpdateWithWhereUniqueWithoutUserInput = { - where: Prisma.PostWhereUniqueInput - data: Prisma.XOR -} - -export type PostUpdateManyWithWhereWithoutUserInput = { - where: Prisma.PostScalarWhereInput - data: Prisma.XOR -} - -export type PostScalarWhereInput = { - AND?: Prisma.PostScalarWhereInput | Prisma.PostScalarWhereInput[] - OR?: Prisma.PostScalarWhereInput[] - NOT?: Prisma.PostScalarWhereInput | Prisma.PostScalarWhereInput[] - id?: Prisma.StringFilter<"Post"> | string - title?: Prisma.StringFilter<"Post"> | string - content?: Prisma.StringFilter<"Post"> | string - userId?: Prisma.StringFilter<"Post"> | string - published?: Prisma.BoolFilter<"Post"> | boolean - createdAt?: Prisma.DateTimeFilter<"Post"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Post"> | Date | string -} - -export type PostCreateWithoutCommentsInput = { - id?: string - title: string - content: string - published?: boolean - createdAt?: Date | string - updatedAt?: Date | string - user: Prisma.UserCreateNestedOneWithoutPostsInput -} - -export type PostUncheckedCreateWithoutCommentsInput = { - id?: string - title: string - content: string - userId: string - published?: boolean - createdAt?: Date | string - updatedAt?: Date | string -} - -export type PostCreateOrConnectWithoutCommentsInput = { - where: Prisma.PostWhereUniqueInput - create: Prisma.XOR -} - -export type PostUpsertWithoutCommentsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.PostWhereInput -} - -export type PostUpdateToOneWithWhereWithoutCommentsInput = { - where?: Prisma.PostWhereInput - data: Prisma.XOR -} - -export type PostUpdateWithoutCommentsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - title?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - published?: Prisma.BoolFieldUpdateOperationsInput | boolean - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - user?: Prisma.UserUpdateOneRequiredWithoutPostsNestedInput -} - -export type PostUncheckedUpdateWithoutCommentsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - title?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - published?: Prisma.BoolFieldUpdateOperationsInput | boolean - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type PostCreateManyUserInput = { - id?: string - title: string - content: string - published?: boolean - createdAt?: Date | string - updatedAt?: Date | string -} - -export type PostUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - title?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - published?: Prisma.BoolFieldUpdateOperationsInput | boolean - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - comments?: Prisma.CommentUpdateManyWithoutPostNestedInput -} - -export type PostUncheckedUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - title?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - published?: Prisma.BoolFieldUpdateOperationsInput | boolean - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - comments?: Prisma.CommentUncheckedUpdateManyWithoutPostNestedInput -} - -export type PostUncheckedUpdateManyWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - title?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.StringFieldUpdateOperationsInput | string - published?: Prisma.BoolFieldUpdateOperationsInput | boolean - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - -/** - * Count Type PostCountOutputType - */ - -export type PostCountOutputType = { - comments: number -} - -export type PostCountOutputTypeSelect = { - comments?: boolean | PostCountOutputTypeCountCommentsArgs -} - -/** - * PostCountOutputType without action - */ -export type PostCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the PostCountOutputType - */ - select?: Prisma.PostCountOutputTypeSelect | null -} - -/** - * PostCountOutputType without action - */ -export type PostCountOutputTypeCountCommentsArgs = { - where?: Prisma.CommentWhereInput -} - - -export type PostSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - title?: boolean - content?: boolean - userId?: boolean - published?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | Prisma.UserDefaultArgs - comments?: boolean | Prisma.Post$commentsArgs - _count?: boolean | Prisma.PostCountOutputTypeDefaultArgs -}, ExtArgs["result"]["post"]> - -export type PostSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - title?: boolean - content?: boolean - userId?: boolean - published?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["post"]> - -export type PostSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - title?: boolean - content?: boolean - userId?: boolean - published?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["post"]> - -export type PostSelectScalar = { - id?: boolean - title?: boolean - content?: boolean - userId?: boolean - published?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type PostOmit = runtime.Types.Extensions.GetOmit<"id" | "title" | "content" | "userId" | "published" | "createdAt" | "updatedAt", ExtArgs["result"]["post"]> -export type PostInclude = { - user?: boolean | Prisma.UserDefaultArgs - comments?: boolean | Prisma.Post$commentsArgs - _count?: boolean | Prisma.PostCountOutputTypeDefaultArgs -} -export type PostIncludeCreateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs -} -export type PostIncludeUpdateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs -} - -export type $PostPayload = { - name: "Post" - objects: { - user: Prisma.$UserPayload - comments: Prisma.$CommentPayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - title: string - content: string - userId: string - published: boolean - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["post"]> - composites: {} -} - -export type PostGetPayload = runtime.Types.Result.GetResult - -export type PostCountArgs = - Omit & { - select?: PostCountAggregateInputType | true - } - -export interface PostDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Post'], meta: { name: 'Post' } } - /** - * Find zero or one Post that matches the filter. - * @param {PostFindUniqueArgs} args - Arguments to find a Post - * @example - * // Get one Post - * const post = await prisma.post.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Post that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {PostFindUniqueOrThrowArgs} args - Arguments to find a Post - * @example - * // Get one Post - * const post = await prisma.post.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Post 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 {PostFindFirstArgs} args - Arguments to find a Post - * @example - * // Get one Post - * const post = await prisma.post.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Post 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 {PostFindFirstOrThrowArgs} args - Arguments to find a Post - * @example - * // Get one Post - * const post = await prisma.post.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Posts 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 {PostFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Posts - * const posts = await prisma.post.findMany() - * - * // Get first 10 Posts - * const posts = await prisma.post.findMany({ take: 10 }) - * - * // Only select the `id` - * const postWithIdOnly = await prisma.post.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Post. - * @param {PostCreateArgs} args - Arguments to create a Post. - * @example - * // Create one Post - * const Post = await prisma.post.create({ - * data: { - * // ... data to create a Post - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Posts. - * @param {PostCreateManyArgs} args - Arguments to create many Posts. - * @example - * // Create many Posts - * const post = await prisma.post.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Posts and returns the data saved in the database. - * @param {PostCreateManyAndReturnArgs} args - Arguments to create many Posts. - * @example - * // Create many Posts - * const post = await prisma.post.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Posts and only return the `id` - * const postWithIdOnly = await prisma.post.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Post. - * @param {PostDeleteArgs} args - Arguments to delete one Post. - * @example - * // Delete one Post - * const Post = await prisma.post.delete({ - * where: { - * // ... filter to delete one Post - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Post. - * @param {PostUpdateArgs} args - Arguments to update one Post. - * @example - * // Update one Post - * const post = await prisma.post.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Posts. - * @param {PostDeleteManyArgs} args - Arguments to filter Posts to delete. - * @example - * // Delete a few Posts - * const { count } = await prisma.post.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Posts. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {PostUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Posts - * const post = await prisma.post.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Posts and returns the data updated in the database. - * @param {PostUpdateManyAndReturnArgs} args - Arguments to update many Posts. - * @example - * // Update many Posts - * const post = await prisma.post.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Posts and only return the `id` - * const postWithIdOnly = await prisma.post.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Post. - * @param {PostUpsertArgs} args - Arguments to update or create a Post. - * @example - * // Update or create a Post - * const post = await prisma.post.upsert({ - * create: { - * // ... data to create a Post - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Post we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Posts. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {PostCountArgs} args - Arguments to filter Posts to count. - * @example - * // Count the number of Posts - * const count = await prisma.post.count({ - * where: { - * // ... the filter for the Posts 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 Post. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {PostAggregateArgs} 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 Post. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {PostGroupByArgs} 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 PostGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: PostGroupByArgs['orderBy'] } - : { orderBy?: PostGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetPostGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Post model - */ -readonly fields: PostFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Post. - * 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__PostClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - comments = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the Post model - */ -export interface PostFieldRefs { - readonly id: Prisma.FieldRef<"Post", 'String'> - readonly title: Prisma.FieldRef<"Post", 'String'> - readonly content: Prisma.FieldRef<"Post", 'String'> - readonly userId: Prisma.FieldRef<"Post", 'String'> - readonly published: Prisma.FieldRef<"Post", 'Boolean'> - readonly createdAt: Prisma.FieldRef<"Post", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"Post", 'DateTime'> -} - - -// Custom InputTypes -/** - * Post findUnique - */ -export type PostFindUniqueArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * Filter, which Post to fetch. - */ - where: Prisma.PostWhereUniqueInput -} - -/** - * Post findUniqueOrThrow - */ -export type PostFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * Filter, which Post to fetch. - */ - where: Prisma.PostWhereUniqueInput -} - -/** - * Post findFirst - */ -export type PostFindFirstArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * Filter, which Post to fetch. - */ - where?: Prisma.PostWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Posts to fetch. - */ - orderBy?: Prisma.PostOrderByWithRelationInput | Prisma.PostOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Posts. - */ - cursor?: Prisma.PostWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Posts 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` Posts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Posts. - */ - distinct?: Prisma.PostScalarFieldEnum | Prisma.PostScalarFieldEnum[] -} - -/** - * Post findFirstOrThrow - */ -export type PostFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * Filter, which Post to fetch. - */ - where?: Prisma.PostWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Posts to fetch. - */ - orderBy?: Prisma.PostOrderByWithRelationInput | Prisma.PostOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Posts. - */ - cursor?: Prisma.PostWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Posts 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` Posts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Posts. - */ - distinct?: Prisma.PostScalarFieldEnum | Prisma.PostScalarFieldEnum[] -} - -/** - * Post findMany - */ -export type PostFindManyArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * Filter, which Posts to fetch. - */ - where?: Prisma.PostWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Posts to fetch. - */ - orderBy?: Prisma.PostOrderByWithRelationInput | Prisma.PostOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Posts. - */ - cursor?: Prisma.PostWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Posts 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` Posts. - */ - skip?: number - distinct?: Prisma.PostScalarFieldEnum | Prisma.PostScalarFieldEnum[] -} - -/** - * Post create - */ -export type PostCreateArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * The data needed to create a Post. - */ - data: Prisma.XOR -} - -/** - * Post createMany - */ -export type PostCreateManyArgs = { - /** - * The data used to create many Posts. - */ - data: Prisma.PostCreateManyInput | Prisma.PostCreateManyInput[] -} - -/** - * Post createManyAndReturn - */ -export type PostCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * The data used to create many Posts. - */ - data: Prisma.PostCreateManyInput | Prisma.PostCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostIncludeCreateManyAndReturn | null -} - -/** - * Post update - */ -export type PostUpdateArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * The data needed to update a Post. - */ - data: Prisma.XOR - /** - * Choose, which Post to update. - */ - where: Prisma.PostWhereUniqueInput -} - -/** - * Post updateMany - */ -export type PostUpdateManyArgs = { - /** - * The data used to update Posts. - */ - data: Prisma.XOR - /** - * Filter which Posts to update - */ - where?: Prisma.PostWhereInput - /** - * Limit how many Posts to update. - */ - limit?: number -} - -/** - * Post updateManyAndReturn - */ -export type PostUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * The data used to update Posts. - */ - data: Prisma.XOR - /** - * Filter which Posts to update - */ - where?: Prisma.PostWhereInput - /** - * Limit how many Posts to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostIncludeUpdateManyAndReturn | null -} - -/** - * Post upsert - */ -export type PostUpsertArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * The filter to search for the Post to update in case it exists. - */ - where: Prisma.PostWhereUniqueInput - /** - * In case the Post found by the `where` argument doesn't exist, create a new Post with this data. - */ - create: Prisma.XOR - /** - * In case the Post was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Post delete - */ -export type PostDeleteArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * Filter which Post to delete. - */ - where: Prisma.PostWhereUniqueInput -} - -/** - * Post deleteMany - */ -export type PostDeleteManyArgs = { - /** - * Filter which Posts to delete - */ - where?: Prisma.PostWhereInput - /** - * Limit how many Posts to delete. - */ - limit?: number -} - -/** - * Post.comments - */ -export type Post$commentsArgs = { - /** - * Select specific fields to fetch from the Comment - */ - select?: Prisma.CommentSelect | null - /** - * Omit specific fields from the Comment - */ - omit?: Prisma.CommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CommentInclude | null - where?: Prisma.CommentWhereInput - orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[] - cursor?: Prisma.CommentWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[] -} - -/** - * Post without action - */ -export type PostDefaultArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null -} diff --git a/backend/src/generated/prisma/models/Resource.ts b/backend/src/generated/prisma/models/Resource.ts deleted file mode 100644 index 1231f5b..0000000 --- a/backend/src/generated/prisma/models/Resource.ts +++ /dev/null @@ -1,1226 +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 `Resource` 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 Resource - * - */ -export type ResourceModel = runtime.Types.Result.DefaultSelection - -export type AggregateResource = { - _count: ResourceCountAggregateOutputType | null - _min: ResourceMinAggregateOutputType | null - _max: ResourceMaxAggregateOutputType | null -} - -export type ResourceMinAggregateOutputType = { - id: string | null - title: string | null - description: string | null - url: string | null - icon: string | null - category: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type ResourceMaxAggregateOutputType = { - id: string | null - title: string | null - description: string | null - url: string | null - icon: string | null - category: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type ResourceCountAggregateOutputType = { - id: number - title: number - description: number - url: number - icon: number - category: number - createdAt: number - updatedAt: number - _all: number -} - - -export type ResourceMinAggregateInputType = { - id?: true - title?: true - description?: true - url?: true - icon?: true - category?: true - createdAt?: true - updatedAt?: true -} - -export type ResourceMaxAggregateInputType = { - id?: true - title?: true - description?: true - url?: true - icon?: true - category?: true - createdAt?: true - updatedAt?: true -} - -export type ResourceCountAggregateInputType = { - id?: true - title?: true - description?: true - url?: true - icon?: true - category?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type ResourceAggregateArgs = { - /** - * Filter which Resource to aggregate. - */ - where?: Prisma.ResourceWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Resources to fetch. - */ - orderBy?: Prisma.ResourceOrderByWithRelationInput | Prisma.ResourceOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.ResourceWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Resources 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` Resources. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Resources - **/ - _count?: true | ResourceCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: ResourceMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: ResourceMaxAggregateInputType -} - -export type GetResourceAggregateType = { - [P in keyof T & keyof AggregateResource]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type ResourceGroupByArgs = { - where?: Prisma.ResourceWhereInput - orderBy?: Prisma.ResourceOrderByWithAggregationInput | Prisma.ResourceOrderByWithAggregationInput[] - by: Prisma.ResourceScalarFieldEnum[] | Prisma.ResourceScalarFieldEnum - having?: Prisma.ResourceScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: ResourceCountAggregateInputType | true - _min?: ResourceMinAggregateInputType - _max?: ResourceMaxAggregateInputType -} - -export type ResourceGroupByOutputType = { - id: string - title: string - description: string | null - url: string - icon: string | null - category: string | null - createdAt: Date - updatedAt: Date - _count: ResourceCountAggregateOutputType | null - _min: ResourceMinAggregateOutputType | null - _max: ResourceMaxAggregateOutputType | null -} - -type GetResourceGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof ResourceGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type ResourceWhereInput = { - AND?: Prisma.ResourceWhereInput | Prisma.ResourceWhereInput[] - OR?: Prisma.ResourceWhereInput[] - NOT?: Prisma.ResourceWhereInput | Prisma.ResourceWhereInput[] - id?: Prisma.StringFilter<"Resource"> | string - title?: Prisma.StringFilter<"Resource"> | string - description?: Prisma.StringNullableFilter<"Resource"> | string | null - url?: Prisma.StringFilter<"Resource"> | string - icon?: Prisma.StringNullableFilter<"Resource"> | string | null - category?: Prisma.StringNullableFilter<"Resource"> | string | null - createdAt?: Prisma.DateTimeFilter<"Resource"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Resource"> | Date | string -} - -export type ResourceOrderByWithRelationInput = { - id?: Prisma.SortOrder - title?: Prisma.SortOrder - description?: Prisma.SortOrderInput | Prisma.SortOrder - url?: Prisma.SortOrder - icon?: Prisma.SortOrderInput | Prisma.SortOrder - category?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type ResourceWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: Prisma.ResourceWhereInput | Prisma.ResourceWhereInput[] - OR?: Prisma.ResourceWhereInput[] - NOT?: Prisma.ResourceWhereInput | Prisma.ResourceWhereInput[] - title?: Prisma.StringFilter<"Resource"> | string - description?: Prisma.StringNullableFilter<"Resource"> | string | null - url?: Prisma.StringFilter<"Resource"> | string - icon?: Prisma.StringNullableFilter<"Resource"> | string | null - category?: Prisma.StringNullableFilter<"Resource"> | string | null - createdAt?: Prisma.DateTimeFilter<"Resource"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Resource"> | Date | string -}, "id"> - -export type ResourceOrderByWithAggregationInput = { - id?: Prisma.SortOrder - title?: Prisma.SortOrder - description?: Prisma.SortOrderInput | Prisma.SortOrder - url?: Prisma.SortOrder - icon?: Prisma.SortOrderInput | Prisma.SortOrder - category?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.ResourceCountOrderByAggregateInput - _max?: Prisma.ResourceMaxOrderByAggregateInput - _min?: Prisma.ResourceMinOrderByAggregateInput -} - -export type ResourceScalarWhereWithAggregatesInput = { - AND?: Prisma.ResourceScalarWhereWithAggregatesInput | Prisma.ResourceScalarWhereWithAggregatesInput[] - OR?: Prisma.ResourceScalarWhereWithAggregatesInput[] - NOT?: Prisma.ResourceScalarWhereWithAggregatesInput | Prisma.ResourceScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"Resource"> | string - title?: Prisma.StringWithAggregatesFilter<"Resource"> | string - description?: Prisma.StringNullableWithAggregatesFilter<"Resource"> | string | null - url?: Prisma.StringWithAggregatesFilter<"Resource"> | string - icon?: Prisma.StringNullableWithAggregatesFilter<"Resource"> | string | null - category?: Prisma.StringNullableWithAggregatesFilter<"Resource"> | string | null - createdAt?: Prisma.DateTimeWithAggregatesFilter<"Resource"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Resource"> | Date | string -} - -export type ResourceCreateInput = { - id?: string - title: string - description?: string | null - url: string - icon?: string | null - category?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type ResourceUncheckedCreateInput = { - id?: string - title: string - description?: string | null - url: string - icon?: string | null - category?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type ResourceUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - title?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - url?: Prisma.StringFieldUpdateOperationsInput | string - icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type ResourceUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - title?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - url?: Prisma.StringFieldUpdateOperationsInput | string - icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type ResourceCreateManyInput = { - id?: string - title: string - description?: string | null - url: string - icon?: string | null - category?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type ResourceUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - title?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - url?: Prisma.StringFieldUpdateOperationsInput | string - icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type ResourceUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - title?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - url?: Prisma.StringFieldUpdateOperationsInput | string - icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type ResourceCountOrderByAggregateInput = { - id?: Prisma.SortOrder - title?: Prisma.SortOrder - description?: Prisma.SortOrder - url?: Prisma.SortOrder - icon?: Prisma.SortOrder - category?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type ResourceMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - title?: Prisma.SortOrder - description?: Prisma.SortOrder - url?: Prisma.SortOrder - icon?: Prisma.SortOrder - category?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type ResourceMinOrderByAggregateInput = { - id?: Prisma.SortOrder - title?: Prisma.SortOrder - description?: Prisma.SortOrder - url?: Prisma.SortOrder - icon?: Prisma.SortOrder - category?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - - - -export type ResourceSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - title?: boolean - description?: boolean - url?: boolean - icon?: boolean - category?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["resource"]> - -export type ResourceSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - title?: boolean - description?: boolean - url?: boolean - icon?: boolean - category?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["resource"]> - -export type ResourceSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - title?: boolean - description?: boolean - url?: boolean - icon?: boolean - category?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["resource"]> - -export type ResourceSelectScalar = { - id?: boolean - title?: boolean - description?: boolean - url?: boolean - icon?: boolean - category?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type ResourceOmit = runtime.Types.Extensions.GetOmit<"id" | "title" | "description" | "url" | "icon" | "category" | "createdAt" | "updatedAt", ExtArgs["result"]["resource"]> - -export type $ResourcePayload = { - name: "Resource" - objects: {} - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - title: string - description: string | null - url: string - icon: string | null - category: string | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["resource"]> - composites: {} -} - -export type ResourceGetPayload = runtime.Types.Result.GetResult - -export type ResourceCountArgs = - Omit & { - select?: ResourceCountAggregateInputType | true - } - -export interface ResourceDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Resource'], meta: { name: 'Resource' } } - /** - * Find zero or one Resource that matches the filter. - * @param {ResourceFindUniqueArgs} args - Arguments to find a Resource - * @example - * // Get one Resource - * const resource = await prisma.resource.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ResourceClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Resource that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {ResourceFindUniqueOrThrowArgs} args - Arguments to find a Resource - * @example - * // Get one Resource - * const resource = await prisma.resource.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ResourceClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Resource 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 {ResourceFindFirstArgs} args - Arguments to find a Resource - * @example - * // Get one Resource - * const resource = await prisma.resource.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ResourceClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Resource 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 {ResourceFindFirstOrThrowArgs} args - Arguments to find a Resource - * @example - * // Get one Resource - * const resource = await prisma.resource.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ResourceClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Resources 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 {ResourceFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Resources - * const resources = await prisma.resource.findMany() - * - * // Get first 10 Resources - * const resources = await prisma.resource.findMany({ take: 10 }) - * - * // Only select the `id` - * const resourceWithIdOnly = await prisma.resource.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Resource. - * @param {ResourceCreateArgs} args - Arguments to create a Resource. - * @example - * // Create one Resource - * const Resource = await prisma.resource.create({ - * data: { - * // ... data to create a Resource - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__ResourceClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Resources. - * @param {ResourceCreateManyArgs} args - Arguments to create many Resources. - * @example - * // Create many Resources - * const resource = await prisma.resource.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Resources and returns the data saved in the database. - * @param {ResourceCreateManyAndReturnArgs} args - Arguments to create many Resources. - * @example - * // Create many Resources - * const resource = await prisma.resource.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Resources and only return the `id` - * const resourceWithIdOnly = await prisma.resource.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Resource. - * @param {ResourceDeleteArgs} args - Arguments to delete one Resource. - * @example - * // Delete one Resource - * const Resource = await prisma.resource.delete({ - * where: { - * // ... filter to delete one Resource - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__ResourceClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Resource. - * @param {ResourceUpdateArgs} args - Arguments to update one Resource. - * @example - * // Update one Resource - * const resource = await prisma.resource.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__ResourceClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Resources. - * @param {ResourceDeleteManyArgs} args - Arguments to filter Resources to delete. - * @example - * // Delete a few Resources - * const { count } = await prisma.resource.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Resources. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ResourceUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Resources - * const resource = await prisma.resource.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Resources and returns the data updated in the database. - * @param {ResourceUpdateManyAndReturnArgs} args - Arguments to update many Resources. - * @example - * // Update many Resources - * const resource = await prisma.resource.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Resources and only return the `id` - * const resourceWithIdOnly = await prisma.resource.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Resource. - * @param {ResourceUpsertArgs} args - Arguments to update or create a Resource. - * @example - * // Update or create a Resource - * const resource = await prisma.resource.upsert({ - * create: { - * // ... data to create a Resource - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Resource we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ResourceClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Resources. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ResourceCountArgs} args - Arguments to filter Resources to count. - * @example - * // Count the number of Resources - * const count = await prisma.resource.count({ - * where: { - * // ... the filter for the Resources 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 Resource. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ResourceAggregateArgs} 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 Resource. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ResourceGroupByArgs} 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 ResourceGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: ResourceGroupByArgs['orderBy'] } - : { orderBy?: ResourceGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetResourceGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Resource model - */ -readonly fields: ResourceFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Resource. - * 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__ResourceClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the Resource model - */ -export interface ResourceFieldRefs { - readonly id: Prisma.FieldRef<"Resource", 'String'> - readonly title: Prisma.FieldRef<"Resource", 'String'> - readonly description: Prisma.FieldRef<"Resource", 'String'> - readonly url: Prisma.FieldRef<"Resource", 'String'> - readonly icon: Prisma.FieldRef<"Resource", 'String'> - readonly category: Prisma.FieldRef<"Resource", 'String'> - readonly createdAt: Prisma.FieldRef<"Resource", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"Resource", 'DateTime'> -} - - -// Custom InputTypes -/** - * Resource findUnique - */ -export type ResourceFindUniqueArgs = { - /** - * Select specific fields to fetch from the Resource - */ - select?: Prisma.ResourceSelect | null - /** - * Omit specific fields from the Resource - */ - omit?: Prisma.ResourceOmit | null - /** - * Filter, which Resource to fetch. - */ - where: Prisma.ResourceWhereUniqueInput -} - -/** - * Resource findUniqueOrThrow - */ -export type ResourceFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Resource - */ - select?: Prisma.ResourceSelect | null - /** - * Omit specific fields from the Resource - */ - omit?: Prisma.ResourceOmit | null - /** - * Filter, which Resource to fetch. - */ - where: Prisma.ResourceWhereUniqueInput -} - -/** - * Resource findFirst - */ -export type ResourceFindFirstArgs = { - /** - * Select specific fields to fetch from the Resource - */ - select?: Prisma.ResourceSelect | null - /** - * Omit specific fields from the Resource - */ - omit?: Prisma.ResourceOmit | null - /** - * Filter, which Resource to fetch. - */ - where?: Prisma.ResourceWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Resources to fetch. - */ - orderBy?: Prisma.ResourceOrderByWithRelationInput | Prisma.ResourceOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Resources. - */ - cursor?: Prisma.ResourceWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Resources 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` Resources. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Resources. - */ - distinct?: Prisma.ResourceScalarFieldEnum | Prisma.ResourceScalarFieldEnum[] -} - -/** - * Resource findFirstOrThrow - */ -export type ResourceFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Resource - */ - select?: Prisma.ResourceSelect | null - /** - * Omit specific fields from the Resource - */ - omit?: Prisma.ResourceOmit | null - /** - * Filter, which Resource to fetch. - */ - where?: Prisma.ResourceWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Resources to fetch. - */ - orderBy?: Prisma.ResourceOrderByWithRelationInput | Prisma.ResourceOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Resources. - */ - cursor?: Prisma.ResourceWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Resources 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` Resources. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Resources. - */ - distinct?: Prisma.ResourceScalarFieldEnum | Prisma.ResourceScalarFieldEnum[] -} - -/** - * Resource findMany - */ -export type ResourceFindManyArgs = { - /** - * Select specific fields to fetch from the Resource - */ - select?: Prisma.ResourceSelect | null - /** - * Omit specific fields from the Resource - */ - omit?: Prisma.ResourceOmit | null - /** - * Filter, which Resources to fetch. - */ - where?: Prisma.ResourceWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Resources to fetch. - */ - orderBy?: Prisma.ResourceOrderByWithRelationInput | Prisma.ResourceOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Resources. - */ - cursor?: Prisma.ResourceWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Resources 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` Resources. - */ - skip?: number - distinct?: Prisma.ResourceScalarFieldEnum | Prisma.ResourceScalarFieldEnum[] -} - -/** - * Resource create - */ -export type ResourceCreateArgs = { - /** - * Select specific fields to fetch from the Resource - */ - select?: Prisma.ResourceSelect | null - /** - * Omit specific fields from the Resource - */ - omit?: Prisma.ResourceOmit | null - /** - * The data needed to create a Resource. - */ - data: Prisma.XOR -} - -/** - * Resource createMany - */ -export type ResourceCreateManyArgs = { - /** - * The data used to create many Resources. - */ - data: Prisma.ResourceCreateManyInput | Prisma.ResourceCreateManyInput[] -} - -/** - * Resource createManyAndReturn - */ -export type ResourceCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Resource - */ - select?: Prisma.ResourceSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Resource - */ - omit?: Prisma.ResourceOmit | null - /** - * The data used to create many Resources. - */ - data: Prisma.ResourceCreateManyInput | Prisma.ResourceCreateManyInput[] -} - -/** - * Resource update - */ -export type ResourceUpdateArgs = { - /** - * Select specific fields to fetch from the Resource - */ - select?: Prisma.ResourceSelect | null - /** - * Omit specific fields from the Resource - */ - omit?: Prisma.ResourceOmit | null - /** - * The data needed to update a Resource. - */ - data: Prisma.XOR - /** - * Choose, which Resource to update. - */ - where: Prisma.ResourceWhereUniqueInput -} - -/** - * Resource updateMany - */ -export type ResourceUpdateManyArgs = { - /** - * The data used to update Resources. - */ - data: Prisma.XOR - /** - * Filter which Resources to update - */ - where?: Prisma.ResourceWhereInput - /** - * Limit how many Resources to update. - */ - limit?: number -} - -/** - * Resource updateManyAndReturn - */ -export type ResourceUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Resource - */ - select?: Prisma.ResourceSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Resource - */ - omit?: Prisma.ResourceOmit | null - /** - * The data used to update Resources. - */ - data: Prisma.XOR - /** - * Filter which Resources to update - */ - where?: Prisma.ResourceWhereInput - /** - * Limit how many Resources to update. - */ - limit?: number -} - -/** - * Resource upsert - */ -export type ResourceUpsertArgs = { - /** - * Select specific fields to fetch from the Resource - */ - select?: Prisma.ResourceSelect | null - /** - * Omit specific fields from the Resource - */ - omit?: Prisma.ResourceOmit | null - /** - * The filter to search for the Resource to update in case it exists. - */ - where: Prisma.ResourceWhereUniqueInput - /** - * In case the Resource found by the `where` argument doesn't exist, create a new Resource with this data. - */ - create: Prisma.XOR - /** - * In case the Resource was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Resource delete - */ -export type ResourceDeleteArgs = { - /** - * Select specific fields to fetch from the Resource - */ - select?: Prisma.ResourceSelect | null - /** - * Omit specific fields from the Resource - */ - omit?: Prisma.ResourceOmit | null - /** - * Filter which Resource to delete. - */ - where: Prisma.ResourceWhereUniqueInput -} - -/** - * Resource deleteMany - */ -export type ResourceDeleteManyArgs = { - /** - * Filter which Resources to delete - */ - where?: Prisma.ResourceWhereInput - /** - * Limit how many Resources to delete. - */ - limit?: number -} - -/** - * Resource without action - */ -export type ResourceDefaultArgs = { - /** - * Select specific fields to fetch from the Resource - */ - select?: Prisma.ResourceSelect | null - /** - * Omit specific fields from the Resource - */ - omit?: Prisma.ResourceOmit | null -} diff --git a/backend/src/generated/prisma/models/Session.ts b/backend/src/generated/prisma/models/Session.ts deleted file mode 100644 index 79f4c66..0000000 --- a/backend/src/generated/prisma/models/Session.ts +++ /dev/null @@ -1,1302 +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 `Session` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums.ts" -import type * as Prisma from "../internal/prismaNamespace.ts" - -/** - * Model Session - * - */ -export type SessionModel = runtime.Types.Result.DefaultSelection - -export type AggregateSession = { - _count: SessionCountAggregateOutputType | null - _min: SessionMinAggregateOutputType | null - _max: SessionMaxAggregateOutputType | null -} - -export type SessionMinAggregateOutputType = { - id: string | null - sessionToken: string | null - userId: string | null - expires: Date | null -} - -export type SessionMaxAggregateOutputType = { - id: string | null - sessionToken: string | null - userId: string | null - expires: Date | null -} - -export type SessionCountAggregateOutputType = { - id: number - sessionToken: number - userId: number - expires: number - _all: number -} - - -export type SessionMinAggregateInputType = { - id?: true - sessionToken?: true - userId?: true - expires?: true -} - -export type SessionMaxAggregateInputType = { - id?: true - sessionToken?: true - userId?: true - expires?: true -} - -export type SessionCountAggregateInputType = { - id?: true - sessionToken?: true - userId?: true - expires?: true - _all?: true -} - -export type SessionAggregateArgs = { - /** - * Filter which Session to aggregate. - */ - where?: Prisma.SessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Sessions to fetch. - */ - orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.SessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Sessions from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Sessions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Sessions - **/ - _count?: true | SessionCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: SessionMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: SessionMaxAggregateInputType -} - -export type GetSessionAggregateType = { - [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type SessionGroupByArgs = { - where?: Prisma.SessionWhereInput - orderBy?: Prisma.SessionOrderByWithAggregationInput | Prisma.SessionOrderByWithAggregationInput[] - by: Prisma.SessionScalarFieldEnum[] | Prisma.SessionScalarFieldEnum - having?: Prisma.SessionScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: SessionCountAggregateInputType | true - _min?: SessionMinAggregateInputType - _max?: SessionMaxAggregateInputType -} - -export type SessionGroupByOutputType = { - id: string - sessionToken: string - userId: string - expires: Date - _count: SessionCountAggregateOutputType | null - _min: SessionMinAggregateOutputType | null - _max: SessionMaxAggregateOutputType | null -} - -type GetSessionGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type SessionWhereInput = { - AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] - OR?: Prisma.SessionWhereInput[] - NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] - id?: Prisma.StringFilter<"Session"> | string - sessionToken?: Prisma.StringFilter<"Session"> | string - userId?: Prisma.StringFilter<"Session"> | string - expires?: Prisma.DateTimeFilter<"Session"> | Date | string - user?: Prisma.XOR -} - -export type SessionOrderByWithRelationInput = { - id?: Prisma.SortOrder - sessionToken?: Prisma.SortOrder - userId?: Prisma.SortOrder - expires?: Prisma.SortOrder - user?: Prisma.UserOrderByWithRelationInput -} - -export type SessionWhereUniqueInput = Prisma.AtLeast<{ - id?: string - sessionToken?: string - AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] - OR?: Prisma.SessionWhereInput[] - NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] - userId?: Prisma.StringFilter<"Session"> | string - expires?: Prisma.DateTimeFilter<"Session"> | Date | string - user?: Prisma.XOR -}, "id" | "sessionToken"> - -export type SessionOrderByWithAggregationInput = { - id?: Prisma.SortOrder - sessionToken?: Prisma.SortOrder - userId?: Prisma.SortOrder - expires?: Prisma.SortOrder - _count?: Prisma.SessionCountOrderByAggregateInput - _max?: Prisma.SessionMaxOrderByAggregateInput - _min?: Prisma.SessionMinOrderByAggregateInput -} - -export type SessionScalarWhereWithAggregatesInput = { - AND?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[] - OR?: Prisma.SessionScalarWhereWithAggregatesInput[] - NOT?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"Session"> | string - sessionToken?: Prisma.StringWithAggregatesFilter<"Session"> | string - userId?: Prisma.StringWithAggregatesFilter<"Session"> | string - expires?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string -} - -export type SessionCreateInput = { - id?: string - sessionToken: string - expires: Date | string - user: Prisma.UserCreateNestedOneWithoutSessionsInput -} - -export type SessionUncheckedCreateInput = { - id?: string - sessionToken: string - userId: string - expires: Date | string -} - -export type SessionUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - sessionToken?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - user?: Prisma.UserUpdateOneRequiredWithoutSessionsNestedInput -} - -export type SessionUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - sessionToken?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type SessionCreateManyInput = { - id?: string - sessionToken: string - userId: string - expires: Date | string -} - -export type SessionUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - sessionToken?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type SessionUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - sessionToken?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type SessionListRelationFilter = { - every?: Prisma.SessionWhereInput - some?: Prisma.SessionWhereInput - none?: Prisma.SessionWhereInput -} - -export type SessionOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type SessionCountOrderByAggregateInput = { - id?: Prisma.SortOrder - sessionToken?: Prisma.SortOrder - userId?: Prisma.SortOrder - expires?: Prisma.SortOrder -} - -export type SessionMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - sessionToken?: Prisma.SortOrder - userId?: Prisma.SortOrder - expires?: Prisma.SortOrder -} - -export type SessionMinOrderByAggregateInput = { - id?: Prisma.SortOrder - sessionToken?: Prisma.SortOrder - userId?: Prisma.SortOrder - expires?: Prisma.SortOrder -} - -export type SessionCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] - createMany?: Prisma.SessionCreateManyUserInputEnvelope - connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] -} - -export type SessionUncheckedCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] - createMany?: Prisma.SessionCreateManyUserInputEnvelope - connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] -} - -export type SessionUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] - upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.SessionCreateManyUserInputEnvelope - set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] - disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] - delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] - connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] - update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] -} - -export type SessionUncheckedUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] - upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.SessionCreateManyUserInputEnvelope - set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] - disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] - delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] - connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] - update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] -} - -export type SessionCreateWithoutUserInput = { - id?: string - sessionToken: string - expires: Date | string -} - -export type SessionUncheckedCreateWithoutUserInput = { - id?: string - sessionToken: string - expires: Date | string -} - -export type SessionCreateOrConnectWithoutUserInput = { - where: Prisma.SessionWhereUniqueInput - create: Prisma.XOR -} - -export type SessionCreateManyUserInputEnvelope = { - data: Prisma.SessionCreateManyUserInput | Prisma.SessionCreateManyUserInput[] -} - -export type SessionUpsertWithWhereUniqueWithoutUserInput = { - where: Prisma.SessionWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type SessionUpdateWithWhereUniqueWithoutUserInput = { - where: Prisma.SessionWhereUniqueInput - data: Prisma.XOR -} - -export type SessionUpdateManyWithWhereWithoutUserInput = { - where: Prisma.SessionScalarWhereInput - data: Prisma.XOR -} - -export type SessionScalarWhereInput = { - AND?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] - OR?: Prisma.SessionScalarWhereInput[] - NOT?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] - id?: Prisma.StringFilter<"Session"> | string - sessionToken?: Prisma.StringFilter<"Session"> | string - userId?: Prisma.StringFilter<"Session"> | string - expires?: Prisma.DateTimeFilter<"Session"> | Date | string -} - -export type SessionCreateManyUserInput = { - id?: string - sessionToken: string - expires: Date | string -} - -export type SessionUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - sessionToken?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type SessionUncheckedUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - sessionToken?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type SessionUncheckedUpdateManyWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - sessionToken?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - - -export type SessionSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - sessionToken?: boolean - userId?: boolean - expires?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["session"]> - -export type SessionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - sessionToken?: boolean - userId?: boolean - expires?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["session"]> - -export type SessionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - sessionToken?: boolean - userId?: boolean - expires?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["session"]> - -export type SessionSelectScalar = { - id?: boolean - sessionToken?: boolean - userId?: boolean - expires?: boolean -} - -export type SessionOmit = runtime.Types.Extensions.GetOmit<"id" | "sessionToken" | "userId" | "expires", ExtArgs["result"]["session"]> -export type SessionInclude = { - user?: boolean | Prisma.UserDefaultArgs -} -export type SessionIncludeCreateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs -} -export type SessionIncludeUpdateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs -} - -export type $SessionPayload = { - name: "Session" - objects: { - user: Prisma.$UserPayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - sessionToken: string - userId: string - expires: Date - }, ExtArgs["result"]["session"]> - composites: {} -} - -export type SessionGetPayload = runtime.Types.Result.GetResult - -export type SessionCountArgs = - Omit & { - select?: SessionCountAggregateInputType | true - } - -export interface SessionDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Session'], meta: { name: 'Session' } } - /** - * Find zero or one Session that matches the filter. - * @param {SessionFindUniqueArgs} args - Arguments to find a Session - * @example - * // Get one Session - * const session = await prisma.session.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Session that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session - * @example - * // Get one Session - * const session = await prisma.session.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Session that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionFindFirstArgs} args - Arguments to find a Session - * @example - * // Get one Session - * const session = await prisma.session.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Session that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session - * @example - * // Get one Session - * const session = await prisma.session.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Sessions that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Sessions - * const sessions = await prisma.session.findMany() - * - * // Get first 10 Sessions - * const sessions = await prisma.session.findMany({ take: 10 }) - * - * // Only select the `id` - * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Session. - * @param {SessionCreateArgs} args - Arguments to create a Session. - * @example - * // Create one Session - * const Session = await prisma.session.create({ - * data: { - * // ... data to create a Session - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Sessions. - * @param {SessionCreateManyArgs} args - Arguments to create many Sessions. - * @example - * // Create many Sessions - * const session = await prisma.session.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Sessions and returns the data saved in the database. - * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions. - * @example - * // Create many Sessions - * const session = await prisma.session.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Sessions and only return the `id` - * const sessionWithIdOnly = await prisma.session.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Session. - * @param {SessionDeleteArgs} args - Arguments to delete one Session. - * @example - * // Delete one Session - * const Session = await prisma.session.delete({ - * where: { - * // ... filter to delete one Session - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Session. - * @param {SessionUpdateArgs} args - Arguments to update one Session. - * @example - * // Update one Session - * const session = await prisma.session.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Sessions. - * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete. - * @example - * // Delete a few Sessions - * const { count } = await prisma.session.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Sessions. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Sessions - * const session = await prisma.session.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Sessions and returns the data updated in the database. - * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions. - * @example - * // Update many Sessions - * const session = await prisma.session.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Sessions and only return the `id` - * const sessionWithIdOnly = await prisma.session.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Session. - * @param {SessionUpsertArgs} args - Arguments to update or create a Session. - * @example - * // Update or create a Session - * const session = await prisma.session.upsert({ - * create: { - * // ... data to create a Session - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Session we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Sessions. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionCountArgs} args - Arguments to filter Sessions to count. - * @example - * // Count the number of Sessions - * const count = await prisma.session.count({ - * where: { - * // ... the filter for the Sessions we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Session. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by Session. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends SessionGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: SessionGroupByArgs['orderBy'] } - : { orderBy?: SessionGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Session model - */ -readonly fields: SessionFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Session. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__SessionClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the Session model - */ -export interface SessionFieldRefs { - readonly id: Prisma.FieldRef<"Session", 'String'> - readonly sessionToken: Prisma.FieldRef<"Session", 'String'> - readonly userId: Prisma.FieldRef<"Session", 'String'> - readonly expires: Prisma.FieldRef<"Session", 'DateTime'> -} - - -// Custom InputTypes -/** - * Session findUnique - */ -export type SessionFindUniqueArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * Filter, which Session to fetch. - */ - where: Prisma.SessionWhereUniqueInput -} - -/** - * Session findUniqueOrThrow - */ -export type SessionFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * Filter, which Session to fetch. - */ - where: Prisma.SessionWhereUniqueInput -} - -/** - * Session findFirst - */ -export type SessionFindFirstArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * Filter, which Session to fetch. - */ - where?: Prisma.SessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Sessions to fetch. - */ - orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Sessions. - */ - cursor?: Prisma.SessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Sessions from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Sessions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Sessions. - */ - distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] -} - -/** - * Session findFirstOrThrow - */ -export type SessionFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * Filter, which Session to fetch. - */ - where?: Prisma.SessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Sessions to fetch. - */ - orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Sessions. - */ - cursor?: Prisma.SessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Sessions from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Sessions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Sessions. - */ - distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] -} - -/** - * Session findMany - */ -export type SessionFindManyArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * Filter, which Sessions to fetch. - */ - where?: Prisma.SessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Sessions to fetch. - */ - orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Sessions. - */ - cursor?: Prisma.SessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Sessions from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Sessions. - */ - skip?: number - distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] -} - -/** - * Session create - */ -export type SessionCreateArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * The data needed to create a Session. - */ - data: Prisma.XOR -} - -/** - * Session createMany - */ -export type SessionCreateManyArgs = { - /** - * The data used to create many Sessions. - */ - data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[] -} - -/** - * Session createManyAndReturn - */ -export type SessionCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * The data used to create many Sessions. - */ - data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionIncludeCreateManyAndReturn | null -} - -/** - * Session update - */ -export type SessionUpdateArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * The data needed to update a Session. - */ - data: Prisma.XOR - /** - * Choose, which Session to update. - */ - where: Prisma.SessionWhereUniqueInput -} - -/** - * Session updateMany - */ -export type SessionUpdateManyArgs = { - /** - * The data used to update Sessions. - */ - data: Prisma.XOR - /** - * Filter which Sessions to update - */ - where?: Prisma.SessionWhereInput - /** - * Limit how many Sessions to update. - */ - limit?: number -} - -/** - * Session updateManyAndReturn - */ -export type SessionUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * The data used to update Sessions. - */ - data: Prisma.XOR - /** - * Filter which Sessions to update - */ - where?: Prisma.SessionWhereInput - /** - * Limit how many Sessions to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionIncludeUpdateManyAndReturn | null -} - -/** - * Session upsert - */ -export type SessionUpsertArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * The filter to search for the Session to update in case it exists. - */ - where: Prisma.SessionWhereUniqueInput - /** - * In case the Session found by the `where` argument doesn't exist, create a new Session with this data. - */ - create: Prisma.XOR - /** - * In case the Session was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Session delete - */ -export type SessionDeleteArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * Filter which Session to delete. - */ - where: Prisma.SessionWhereUniqueInput -} - -/** - * Session deleteMany - */ -export type SessionDeleteManyArgs = { - /** - * Filter which Sessions to delete - */ - where?: Prisma.SessionWhereInput - /** - * Limit how many Sessions to delete. - */ - limit?: number -} - -/** - * Session without action - */ -export type SessionDefaultArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null -} diff --git a/backend/src/generated/prisma/models/User.ts b/backend/src/generated/prisma/models/User.ts deleted file mode 100644 index b42a2d6..0000000 --- a/backend/src/generated/prisma/models/User.ts +++ /dev/null @@ -1,1878 +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 `User` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums.ts" -import type * as Prisma from "../internal/prismaNamespace.ts" - -/** - * Model User - * - */ -export type UserModel = runtime.Types.Result.DefaultSelection - -export type AggregateUser = { - _count: UserCountAggregateOutputType | null - _min: UserMinAggregateOutputType | null - _max: UserMaxAggregateOutputType | null -} - -export type UserMinAggregateOutputType = { - id: string | null - name: string | null - email: string | null - emailVerified: Date | null - phone: string | null - phoneVerified: Date | null - image: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type UserMaxAggregateOutputType = { - id: string | null - name: string | null - email: string | null - emailVerified: Date | null - phone: string | null - phoneVerified: Date | null - image: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type UserCountAggregateOutputType = { - id: number - name: number - email: number - emailVerified: number - phone: number - phoneVerified: number - image: number - createdAt: number - updatedAt: number - _all: number -} - - -export type UserMinAggregateInputType = { - id?: true - name?: true - email?: true - emailVerified?: true - phone?: true - phoneVerified?: true - image?: true - createdAt?: true - updatedAt?: true -} - -export type UserMaxAggregateInputType = { - id?: true - name?: true - email?: true - emailVerified?: true - phone?: true - phoneVerified?: true - image?: true - createdAt?: true - updatedAt?: true -} - -export type UserCountAggregateInputType = { - id?: true - name?: true - email?: true - emailVerified?: true - phone?: true - phoneVerified?: true - image?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type UserAggregateArgs = { - /** - * Filter which User to aggregate. - */ - where?: Prisma.UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Users - **/ - _count?: true | UserCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: UserMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: UserMaxAggregateInputType -} - -export type GetUserAggregateType = { - [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type UserGroupByArgs = { - where?: Prisma.UserWhereInput - orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[] - by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum - having?: Prisma.UserScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: UserCountAggregateInputType | true - _min?: UserMinAggregateInputType - _max?: UserMaxAggregateInputType -} - -export type UserGroupByOutputType = { - id: string - name: string | null - email: string | null - emailVerified: Date | null - phone: string | null - phoneVerified: Date | null - image: string | null - createdAt: Date - updatedAt: Date - _count: UserCountAggregateOutputType | null - _min: UserMinAggregateOutputType | null - _max: UserMaxAggregateOutputType | null -} - -type GetUserGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type UserWhereInput = { - AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - OR?: Prisma.UserWhereInput[] - NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - id?: Prisma.StringFilter<"User"> | string - name?: Prisma.StringNullableFilter<"User"> | string | null - email?: Prisma.StringNullableFilter<"User"> | string | null - emailVerified?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null - phone?: Prisma.StringNullableFilter<"User"> | string | null - phoneVerified?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null - image?: Prisma.StringNullableFilter<"User"> | string | null - createdAt?: Prisma.DateTimeFilter<"User"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string - accounts?: Prisma.AccountListRelationFilter - sessions?: Prisma.SessionListRelationFilter - posts?: Prisma.PostListRelationFilter - comments?: Prisma.CommentListRelationFilter -} - -export type UserOrderByWithRelationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrderInput | Prisma.SortOrder - email?: Prisma.SortOrderInput | Prisma.SortOrder - emailVerified?: Prisma.SortOrderInput | Prisma.SortOrder - phone?: Prisma.SortOrderInput | Prisma.SortOrder - phoneVerified?: Prisma.SortOrderInput | Prisma.SortOrder - image?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - accounts?: Prisma.AccountOrderByRelationAggregateInput - sessions?: Prisma.SessionOrderByRelationAggregateInput - posts?: Prisma.PostOrderByRelationAggregateInput - comments?: Prisma.CommentOrderByRelationAggregateInput -} - -export type UserWhereUniqueInput = Prisma.AtLeast<{ - id?: string - email?: string - phone?: string - AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - OR?: Prisma.UserWhereInput[] - NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - name?: Prisma.StringNullableFilter<"User"> | string | null - emailVerified?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null - phoneVerified?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null - image?: Prisma.StringNullableFilter<"User"> | string | null - createdAt?: Prisma.DateTimeFilter<"User"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string - accounts?: Prisma.AccountListRelationFilter - sessions?: Prisma.SessionListRelationFilter - posts?: Prisma.PostListRelationFilter - comments?: Prisma.CommentListRelationFilter -}, "id" | "email" | "phone"> - -export type UserOrderByWithAggregationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrderInput | Prisma.SortOrder - email?: Prisma.SortOrderInput | Prisma.SortOrder - emailVerified?: Prisma.SortOrderInput | Prisma.SortOrder - phone?: Prisma.SortOrderInput | Prisma.SortOrder - phoneVerified?: Prisma.SortOrderInput | Prisma.SortOrder - image?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.UserCountOrderByAggregateInput - _max?: Prisma.UserMaxOrderByAggregateInput - _min?: Prisma.UserMinOrderByAggregateInput -} - -export type UserScalarWhereWithAggregatesInput = { - AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] - OR?: Prisma.UserScalarWhereWithAggregatesInput[] - NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"User"> | string - name?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null - email?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null - emailVerified?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null - phone?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null - phoneVerified?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null - image?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null - createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string -} - -export type UserCreateInput = { - id?: string - name?: string | null - email?: string | null - emailVerified?: Date | string | null - phone?: string | null - phoneVerified?: Date | string | null - image?: string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: Prisma.AccountCreateNestedManyWithoutUserInput - sessions?: Prisma.SessionCreateNestedManyWithoutUserInput - posts?: Prisma.PostCreateNestedManyWithoutUserInput - comments?: Prisma.CommentCreateNestedManyWithoutUserInput -} - -export type UserUncheckedCreateInput = { - id?: string - name?: string | null - email?: string | null - emailVerified?: Date | string | null - phone?: string | null - phoneVerified?: Date | string | null - image?: string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput - sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput - posts?: Prisma.PostUncheckedCreateNestedManyWithoutUserInput - comments?: Prisma.CommentUncheckedCreateNestedManyWithoutUserInput -} - -export type UserUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phoneVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput - sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput - posts?: Prisma.PostUpdateManyWithoutUserNestedInput - comments?: Prisma.CommentUpdateManyWithoutUserNestedInput -} - -export type UserUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phoneVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput - sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput - posts?: Prisma.PostUncheckedUpdateManyWithoutUserNestedInput - comments?: Prisma.CommentUncheckedUpdateManyWithoutUserNestedInput -} - -export type UserCreateManyInput = { - id?: string - name?: string | null - email?: string | null - emailVerified?: Date | string | null - phone?: string | null - phoneVerified?: Date | string | null - image?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type UserUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phoneVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type UserUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phoneVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type UserCountOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - email?: Prisma.SortOrder - emailVerified?: Prisma.SortOrder - phone?: Prisma.SortOrder - phoneVerified?: Prisma.SortOrder - image?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type UserMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - email?: Prisma.SortOrder - emailVerified?: Prisma.SortOrder - phone?: Prisma.SortOrder - phoneVerified?: Prisma.SortOrder - image?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type UserMinOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - email?: Prisma.SortOrder - emailVerified?: Prisma.SortOrder - phone?: Prisma.SortOrder - phoneVerified?: Prisma.SortOrder - image?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type UserScalarRelationFilter = { - is?: Prisma.UserWhereInput - isNot?: Prisma.UserWhereInput -} - -export type StringFieldUpdateOperationsInput = { - set?: string -} - -export type NullableStringFieldUpdateOperationsInput = { - set?: string | null -} - -export type NullableDateTimeFieldUpdateOperationsInput = { - set?: Date | string | null -} - -export type DateTimeFieldUpdateOperationsInput = { - set?: Date | string -} - -export type UserCreateNestedOneWithoutAccountsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutAccountsInput - connect?: Prisma.UserWhereUniqueInput -} - -export type UserUpdateOneRequiredWithoutAccountsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutAccountsInput - upsert?: Prisma.UserUpsertWithoutAccountsInput - connect?: Prisma.UserWhereUniqueInput - update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutAccountsInput> -} - -export type UserCreateNestedOneWithoutSessionsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput - connect?: Prisma.UserWhereUniqueInput -} - -export type UserUpdateOneRequiredWithoutSessionsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput - upsert?: Prisma.UserUpsertWithoutSessionsInput - connect?: Prisma.UserWhereUniqueInput - update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutSessionsInput> -} - -export type UserCreateNestedOneWithoutPostsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutPostsInput - connect?: Prisma.UserWhereUniqueInput -} - -export type UserUpdateOneRequiredWithoutPostsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutPostsInput - upsert?: Prisma.UserUpsertWithoutPostsInput - connect?: Prisma.UserWhereUniqueInput - update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutPostsInput> -} - -export type UserCreateNestedOneWithoutCommentsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutCommentsInput - connect?: Prisma.UserWhereUniqueInput -} - -export type UserUpdateOneRequiredWithoutCommentsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutCommentsInput - upsert?: Prisma.UserUpsertWithoutCommentsInput - connect?: Prisma.UserWhereUniqueInput - update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutCommentsInput> -} - -export type UserCreateWithoutAccountsInput = { - id?: string - name?: string | null - email?: string | null - emailVerified?: Date | string | null - phone?: string | null - phoneVerified?: Date | string | null - image?: string | null - createdAt?: Date | string - updatedAt?: Date | string - sessions?: Prisma.SessionCreateNestedManyWithoutUserInput - posts?: Prisma.PostCreateNestedManyWithoutUserInput - comments?: Prisma.CommentCreateNestedManyWithoutUserInput -} - -export type UserUncheckedCreateWithoutAccountsInput = { - id?: string - name?: string | null - email?: string | null - emailVerified?: Date | string | null - phone?: string | null - phoneVerified?: Date | string | null - image?: string | null - createdAt?: Date | string - updatedAt?: Date | string - sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput - posts?: Prisma.PostUncheckedCreateNestedManyWithoutUserInput - comments?: Prisma.CommentUncheckedCreateNestedManyWithoutUserInput -} - -export type UserCreateOrConnectWithoutAccountsInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserUpsertWithoutAccountsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.UserWhereInput -} - -export type UserUpdateToOneWithWhereWithoutAccountsInput = { - where?: Prisma.UserWhereInput - data: Prisma.XOR -} - -export type UserUpdateWithoutAccountsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phoneVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput - posts?: Prisma.PostUpdateManyWithoutUserNestedInput - comments?: Prisma.CommentUpdateManyWithoutUserNestedInput -} - -export type UserUncheckedUpdateWithoutAccountsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phoneVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput - posts?: Prisma.PostUncheckedUpdateManyWithoutUserNestedInput - comments?: Prisma.CommentUncheckedUpdateManyWithoutUserNestedInput -} - -export type UserCreateWithoutSessionsInput = { - id?: string - name?: string | null - email?: string | null - emailVerified?: Date | string | null - phone?: string | null - phoneVerified?: Date | string | null - image?: string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: Prisma.AccountCreateNestedManyWithoutUserInput - posts?: Prisma.PostCreateNestedManyWithoutUserInput - comments?: Prisma.CommentCreateNestedManyWithoutUserInput -} - -export type UserUncheckedCreateWithoutSessionsInput = { - id?: string - name?: string | null - email?: string | null - emailVerified?: Date | string | null - phone?: string | null - phoneVerified?: Date | string | null - image?: string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput - posts?: Prisma.PostUncheckedCreateNestedManyWithoutUserInput - comments?: Prisma.CommentUncheckedCreateNestedManyWithoutUserInput -} - -export type UserCreateOrConnectWithoutSessionsInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserUpsertWithoutSessionsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.UserWhereInput -} - -export type UserUpdateToOneWithWhereWithoutSessionsInput = { - where?: Prisma.UserWhereInput - data: Prisma.XOR -} - -export type UserUpdateWithoutSessionsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phoneVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput - posts?: Prisma.PostUpdateManyWithoutUserNestedInput - comments?: Prisma.CommentUpdateManyWithoutUserNestedInput -} - -export type UserUncheckedUpdateWithoutSessionsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phoneVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput - posts?: Prisma.PostUncheckedUpdateManyWithoutUserNestedInput - comments?: Prisma.CommentUncheckedUpdateManyWithoutUserNestedInput -} - -export type UserCreateWithoutPostsInput = { - id?: string - name?: string | null - email?: string | null - emailVerified?: Date | string | null - phone?: string | null - phoneVerified?: Date | string | null - image?: string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: Prisma.AccountCreateNestedManyWithoutUserInput - sessions?: Prisma.SessionCreateNestedManyWithoutUserInput - comments?: Prisma.CommentCreateNestedManyWithoutUserInput -} - -export type UserUncheckedCreateWithoutPostsInput = { - id?: string - name?: string | null - email?: string | null - emailVerified?: Date | string | null - phone?: string | null - phoneVerified?: Date | string | null - image?: string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput - sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput - comments?: Prisma.CommentUncheckedCreateNestedManyWithoutUserInput -} - -export type UserCreateOrConnectWithoutPostsInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserUpsertWithoutPostsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.UserWhereInput -} - -export type UserUpdateToOneWithWhereWithoutPostsInput = { - where?: Prisma.UserWhereInput - data: Prisma.XOR -} - -export type UserUpdateWithoutPostsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phoneVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput - sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput - comments?: Prisma.CommentUpdateManyWithoutUserNestedInput -} - -export type UserUncheckedUpdateWithoutPostsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phoneVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput - sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput - comments?: Prisma.CommentUncheckedUpdateManyWithoutUserNestedInput -} - -export type UserCreateWithoutCommentsInput = { - id?: string - name?: string | null - email?: string | null - emailVerified?: Date | string | null - phone?: string | null - phoneVerified?: Date | string | null - image?: string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: Prisma.AccountCreateNestedManyWithoutUserInput - sessions?: Prisma.SessionCreateNestedManyWithoutUserInput - posts?: Prisma.PostCreateNestedManyWithoutUserInput -} - -export type UserUncheckedCreateWithoutCommentsInput = { - id?: string - name?: string | null - email?: string | null - emailVerified?: Date | string | null - phone?: string | null - phoneVerified?: Date | string | null - image?: string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput - sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput - posts?: Prisma.PostUncheckedCreateNestedManyWithoutUserInput -} - -export type UserCreateOrConnectWithoutCommentsInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserUpsertWithoutCommentsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.UserWhereInput -} - -export type UserUpdateToOneWithWhereWithoutCommentsInput = { - where?: Prisma.UserWhereInput - data: Prisma.XOR -} - -export type UserUpdateWithoutCommentsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phoneVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput - sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput - posts?: Prisma.PostUpdateManyWithoutUserNestedInput -} - -export type UserUncheckedUpdateWithoutCommentsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phoneVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput - sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput - posts?: Prisma.PostUncheckedUpdateManyWithoutUserNestedInput -} - - -/** - * Count Type UserCountOutputType - */ - -export type UserCountOutputType = { - accounts: number - sessions: number - posts: number - comments: number -} - -export type UserCountOutputTypeSelect = { - accounts?: boolean | UserCountOutputTypeCountAccountsArgs - sessions?: boolean | UserCountOutputTypeCountSessionsArgs - posts?: boolean | UserCountOutputTypeCountPostsArgs - comments?: boolean | UserCountOutputTypeCountCommentsArgs -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the UserCountOutputType - */ - select?: Prisma.UserCountOutputTypeSelect | null -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeCountAccountsArgs = { - where?: Prisma.AccountWhereInput -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeCountSessionsArgs = { - where?: Prisma.SessionWhereInput -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeCountPostsArgs = { - where?: Prisma.PostWhereInput -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeCountCommentsArgs = { - where?: Prisma.CommentWhereInput -} - - -export type UserSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - email?: boolean - emailVerified?: boolean - phone?: boolean - phoneVerified?: boolean - image?: boolean - createdAt?: boolean - updatedAt?: boolean - accounts?: boolean | Prisma.User$accountsArgs - sessions?: boolean | Prisma.User$sessionsArgs - posts?: boolean | Prisma.User$postsArgs - comments?: boolean | Prisma.User$commentsArgs - _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs -}, ExtArgs["result"]["user"]> - -export type UserSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - email?: boolean - emailVerified?: boolean - phone?: boolean - phoneVerified?: boolean - image?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["user"]> - -export type UserSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - email?: boolean - emailVerified?: boolean - phone?: boolean - phoneVerified?: boolean - image?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["user"]> - -export type UserSelectScalar = { - id?: boolean - name?: boolean - email?: boolean - emailVerified?: boolean - phone?: boolean - phoneVerified?: boolean - image?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type UserOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "email" | "emailVerified" | "phone" | "phoneVerified" | "image" | "createdAt" | "updatedAt", ExtArgs["result"]["user"]> -export type UserInclude = { - accounts?: boolean | Prisma.User$accountsArgs - sessions?: boolean | Prisma.User$sessionsArgs - posts?: boolean | Prisma.User$postsArgs - comments?: boolean | Prisma.User$commentsArgs - _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs -} -export type UserIncludeCreateManyAndReturn = {} -export type UserIncludeUpdateManyAndReturn = {} - -export type $UserPayload = { - name: "User" - objects: { - accounts: Prisma.$AccountPayload[] - sessions: Prisma.$SessionPayload[] - posts: Prisma.$PostPayload[] - comments: Prisma.$CommentPayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - name: string | null - email: string | null - emailVerified: Date | null - phone: string | null - phoneVerified: Date | null - image: string | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["user"]> - composites: {} -} - -export type UserGetPayload = runtime.Types.Result.GetResult - -export type UserCountArgs = - Omit & { - select?: UserCountAggregateInputType | true - } - -export interface UserDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } - /** - * Find zero or one User that matches the filter. - * @param {UserFindUniqueArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one User that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first User that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindFirstArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first User that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Users that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Users - * const users = await prisma.user.findMany() - * - * // Get first 10 Users - * const users = await prisma.user.findMany({ take: 10 }) - * - * // Only select the `id` - * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a User. - * @param {UserCreateArgs} args - Arguments to create a User. - * @example - * // Create one User - * const User = await prisma.user.create({ - * data: { - * // ... data to create a User - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Users. - * @param {UserCreateManyArgs} args - Arguments to create many Users. - * @example - * // Create many Users - * const user = await prisma.user.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Users and returns the data saved in the database. - * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. - * @example - * // Create many Users - * const user = await prisma.user.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Users and only return the `id` - * const userWithIdOnly = await prisma.user.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a User. - * @param {UserDeleteArgs} args - Arguments to delete one User. - * @example - * // Delete one User - * const User = await prisma.user.delete({ - * where: { - * // ... filter to delete one User - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one User. - * @param {UserUpdateArgs} args - Arguments to update one User. - * @example - * // Update one User - * const user = await prisma.user.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Users. - * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. - * @example - * // Delete a few Users - * const { count } = await prisma.user.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Users. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Users - * const user = await prisma.user.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Users and returns the data updated in the database. - * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users. - * @example - * // Update many Users - * const user = await prisma.user.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Users and only return the `id` - * const userWithIdOnly = await prisma.user.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one User. - * @param {UserUpsertArgs} args - Arguments to update or create a User. - * @example - * // Update or create a User - * const user = await prisma.user.upsert({ - * create: { - * // ... data to create a User - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the User we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Users. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserCountArgs} args - Arguments to filter Users to count. - * @example - * // Count the number of Users - * const count = await prisma.user.count({ - * where: { - * // ... the filter for the Users we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a User. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by User. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends UserGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: UserGroupByArgs['orderBy'] } - : { orderBy?: UserGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the User model - */ -readonly fields: UserFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for User. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__UserClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - accounts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - sessions = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - posts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - comments = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the User model - */ -export interface UserFieldRefs { - readonly id: Prisma.FieldRef<"User", 'String'> - readonly name: Prisma.FieldRef<"User", 'String'> - readonly email: Prisma.FieldRef<"User", 'String'> - readonly emailVerified: Prisma.FieldRef<"User", 'DateTime'> - readonly phone: Prisma.FieldRef<"User", 'String'> - readonly phoneVerified: Prisma.FieldRef<"User", 'DateTime'> - readonly image: Prisma.FieldRef<"User", 'String'> - readonly createdAt: Prisma.FieldRef<"User", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"User", 'DateTime'> -} - - -// Custom InputTypes -/** - * User findUnique - */ -export type UserFindUniqueArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter, which User to fetch. - */ - where: Prisma.UserWhereUniqueInput -} - -/** - * User findUniqueOrThrow - */ -export type UserFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter, which User to fetch. - */ - where: Prisma.UserWhereUniqueInput -} - -/** - * User findFirst - */ -export type UserFindFirstArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter, which User to fetch. - */ - where?: Prisma.UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Users. - */ - cursor?: Prisma.UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Users. - */ - distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] -} - -/** - * User findFirstOrThrow - */ -export type UserFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter, which User to fetch. - */ - where?: Prisma.UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Users. - */ - cursor?: Prisma.UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Users. - */ - distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] -} - -/** - * User findMany - */ -export type UserFindManyArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter, which Users to fetch. - */ - where?: Prisma.UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Users. - */ - cursor?: Prisma.UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] -} - -/** - * User create - */ -export type UserCreateArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * The data needed to create a User. - */ - data: Prisma.XOR -} - -/** - * User createMany - */ -export type UserCreateManyArgs = { - /** - * The data used to create many Users. - */ - data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] -} - -/** - * User createManyAndReturn - */ -export type UserCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelectCreateManyAndReturn | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * The data used to create many Users. - */ - data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] -} - -/** - * User update - */ -export type UserUpdateArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * The data needed to update a User. - */ - data: Prisma.XOR - /** - * Choose, which User to update. - */ - where: Prisma.UserWhereUniqueInput -} - -/** - * User updateMany - */ -export type UserUpdateManyArgs = { - /** - * The data used to update Users. - */ - data: Prisma.XOR - /** - * Filter which Users to update - */ - where?: Prisma.UserWhereInput - /** - * Limit how many Users to update. - */ - limit?: number -} - -/** - * User updateManyAndReturn - */ -export type UserUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * The data used to update Users. - */ - data: Prisma.XOR - /** - * Filter which Users to update - */ - where?: Prisma.UserWhereInput - /** - * Limit how many Users to update. - */ - limit?: number -} - -/** - * User upsert - */ -export type UserUpsertArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * The filter to search for the User to update in case it exists. - */ - where: Prisma.UserWhereUniqueInput - /** - * In case the User found by the `where` argument doesn't exist, create a new User with this data. - */ - create: Prisma.XOR - /** - * In case the User was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * User delete - */ -export type UserDeleteArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter which User to delete. - */ - where: Prisma.UserWhereUniqueInput -} - -/** - * User deleteMany - */ -export type UserDeleteManyArgs = { - /** - * Filter which Users to delete - */ - where?: Prisma.UserWhereInput - /** - * Limit how many Users to delete. - */ - limit?: number -} - -/** - * User.accounts - */ -export type User$accountsArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - where?: Prisma.AccountWhereInput - orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] - cursor?: Prisma.AccountWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] -} - -/** - * User.sessions - */ -export type User$sessionsArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - where?: Prisma.SessionWhereInput - orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] - cursor?: Prisma.SessionWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] -} - -/** - * User.posts - */ -export type User$postsArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - where?: Prisma.PostWhereInput - orderBy?: Prisma.PostOrderByWithRelationInput | Prisma.PostOrderByWithRelationInput[] - cursor?: Prisma.PostWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.PostScalarFieldEnum | Prisma.PostScalarFieldEnum[] -} - -/** - * User.comments - */ -export type User$commentsArgs = { - /** - * Select specific fields to fetch from the Comment - */ - select?: Prisma.CommentSelect | null - /** - * Omit specific fields from the Comment - */ - omit?: Prisma.CommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CommentInclude | null - where?: Prisma.CommentWhereInput - orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[] - cursor?: Prisma.CommentWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[] -} - -/** - * User without action - */ -export type UserDefaultArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null -} diff --git a/backend/src/generated/prisma/models/VerificationToken.ts b/backend/src/generated/prisma/models/VerificationToken.ts deleted file mode 100644 index 8e24496..0000000 --- a/backend/src/generated/prisma/models/VerificationToken.ts +++ /dev/null @@ -1,1092 +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 `VerificationToken` 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 VerificationToken - * - */ -export type VerificationTokenModel = runtime.Types.Result.DefaultSelection - -export type AggregateVerificationToken = { - _count: VerificationTokenCountAggregateOutputType | null - _min: VerificationTokenMinAggregateOutputType | null - _max: VerificationTokenMaxAggregateOutputType | null -} - -export type VerificationTokenMinAggregateOutputType = { - identifier: string | null - token: string | null - expires: Date | null -} - -export type VerificationTokenMaxAggregateOutputType = { - identifier: string | null - token: string | null - expires: Date | null -} - -export type VerificationTokenCountAggregateOutputType = { - identifier: number - token: number - expires: number - _all: number -} - - -export type VerificationTokenMinAggregateInputType = { - identifier?: true - token?: true - expires?: true -} - -export type VerificationTokenMaxAggregateInputType = { - identifier?: true - token?: true - expires?: true -} - -export type VerificationTokenCountAggregateInputType = { - identifier?: true - token?: true - expires?: true - _all?: true -} - -export type VerificationTokenAggregateArgs = { - /** - * Filter which VerificationToken to aggregate. - */ - where?: Prisma.VerificationTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of VerificationTokens to fetch. - */ - orderBy?: Prisma.VerificationTokenOrderByWithRelationInput | Prisma.VerificationTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.VerificationTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` VerificationTokens 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` VerificationTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned VerificationTokens - **/ - _count?: true | VerificationTokenCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: VerificationTokenMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: VerificationTokenMaxAggregateInputType -} - -export type GetVerificationTokenAggregateType = { - [P in keyof T & keyof AggregateVerificationToken]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type VerificationTokenGroupByArgs = { - where?: Prisma.VerificationTokenWhereInput - orderBy?: Prisma.VerificationTokenOrderByWithAggregationInput | Prisma.VerificationTokenOrderByWithAggregationInput[] - by: Prisma.VerificationTokenScalarFieldEnum[] | Prisma.VerificationTokenScalarFieldEnum - having?: Prisma.VerificationTokenScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: VerificationTokenCountAggregateInputType | true - _min?: VerificationTokenMinAggregateInputType - _max?: VerificationTokenMaxAggregateInputType -} - -export type VerificationTokenGroupByOutputType = { - identifier: string - token: string - expires: Date - _count: VerificationTokenCountAggregateOutputType | null - _min: VerificationTokenMinAggregateOutputType | null - _max: VerificationTokenMaxAggregateOutputType | null -} - -type GetVerificationTokenGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof VerificationTokenGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type VerificationTokenWhereInput = { - AND?: Prisma.VerificationTokenWhereInput | Prisma.VerificationTokenWhereInput[] - OR?: Prisma.VerificationTokenWhereInput[] - NOT?: Prisma.VerificationTokenWhereInput | Prisma.VerificationTokenWhereInput[] - identifier?: Prisma.StringFilter<"VerificationToken"> | string - token?: Prisma.StringFilter<"VerificationToken"> | string - expires?: Prisma.DateTimeFilter<"VerificationToken"> | Date | string -} - -export type VerificationTokenOrderByWithRelationInput = { - identifier?: Prisma.SortOrder - token?: Prisma.SortOrder - expires?: Prisma.SortOrder -} - -export type VerificationTokenWhereUniqueInput = Prisma.AtLeast<{ - token?: string - identifier_token?: Prisma.VerificationTokenIdentifierTokenCompoundUniqueInput - AND?: Prisma.VerificationTokenWhereInput | Prisma.VerificationTokenWhereInput[] - OR?: Prisma.VerificationTokenWhereInput[] - NOT?: Prisma.VerificationTokenWhereInput | Prisma.VerificationTokenWhereInput[] - identifier?: Prisma.StringFilter<"VerificationToken"> | string - expires?: Prisma.DateTimeFilter<"VerificationToken"> | Date | string -}, "token" | "identifier_token"> - -export type VerificationTokenOrderByWithAggregationInput = { - identifier?: Prisma.SortOrder - token?: Prisma.SortOrder - expires?: Prisma.SortOrder - _count?: Prisma.VerificationTokenCountOrderByAggregateInput - _max?: Prisma.VerificationTokenMaxOrderByAggregateInput - _min?: Prisma.VerificationTokenMinOrderByAggregateInput -} - -export type VerificationTokenScalarWhereWithAggregatesInput = { - AND?: Prisma.VerificationTokenScalarWhereWithAggregatesInput | Prisma.VerificationTokenScalarWhereWithAggregatesInput[] - OR?: Prisma.VerificationTokenScalarWhereWithAggregatesInput[] - NOT?: Prisma.VerificationTokenScalarWhereWithAggregatesInput | Prisma.VerificationTokenScalarWhereWithAggregatesInput[] - identifier?: Prisma.StringWithAggregatesFilter<"VerificationToken"> | string - token?: Prisma.StringWithAggregatesFilter<"VerificationToken"> | string - expires?: Prisma.DateTimeWithAggregatesFilter<"VerificationToken"> | Date | string -} - -export type VerificationTokenCreateInput = { - identifier: string - token: string - expires: Date | string -} - -export type VerificationTokenUncheckedCreateInput = { - identifier: string - token: string - expires: Date | string -} - -export type VerificationTokenUpdateInput = { - identifier?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type VerificationTokenUncheckedUpdateInput = { - identifier?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type VerificationTokenCreateManyInput = { - identifier: string - token: string - expires: Date | string -} - -export type VerificationTokenUpdateManyMutationInput = { - identifier?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type VerificationTokenUncheckedUpdateManyInput = { - identifier?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type VerificationTokenIdentifierTokenCompoundUniqueInput = { - identifier: string - token: string -} - -export type VerificationTokenCountOrderByAggregateInput = { - identifier?: Prisma.SortOrder - token?: Prisma.SortOrder - expires?: Prisma.SortOrder -} - -export type VerificationTokenMaxOrderByAggregateInput = { - identifier?: Prisma.SortOrder - token?: Prisma.SortOrder - expires?: Prisma.SortOrder -} - -export type VerificationTokenMinOrderByAggregateInput = { - identifier?: Prisma.SortOrder - token?: Prisma.SortOrder - expires?: Prisma.SortOrder -} - - - -export type VerificationTokenSelect = runtime.Types.Extensions.GetSelect<{ - identifier?: boolean - token?: boolean - expires?: boolean -}, ExtArgs["result"]["verificationToken"]> - -export type VerificationTokenSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - identifier?: boolean - token?: boolean - expires?: boolean -}, ExtArgs["result"]["verificationToken"]> - -export type VerificationTokenSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - identifier?: boolean - token?: boolean - expires?: boolean -}, ExtArgs["result"]["verificationToken"]> - -export type VerificationTokenSelectScalar = { - identifier?: boolean - token?: boolean - expires?: boolean -} - -export type VerificationTokenOmit = runtime.Types.Extensions.GetOmit<"identifier" | "token" | "expires", ExtArgs["result"]["verificationToken"]> - -export type $VerificationTokenPayload = { - name: "VerificationToken" - objects: {} - scalars: runtime.Types.Extensions.GetPayloadResult<{ - identifier: string - token: string - expires: Date - }, ExtArgs["result"]["verificationToken"]> - composites: {} -} - -export type VerificationTokenGetPayload = runtime.Types.Result.GetResult - -export type VerificationTokenCountArgs = - Omit & { - select?: VerificationTokenCountAggregateInputType | true - } - -export interface VerificationTokenDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['VerificationToken'], meta: { name: 'VerificationToken' } } - /** - * Find zero or one VerificationToken that matches the filter. - * @param {VerificationTokenFindUniqueArgs} args - Arguments to find a VerificationToken - * @example - * // Get one VerificationToken - * const verificationToken = await prisma.verificationToken.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationTokenClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one VerificationToken that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {VerificationTokenFindUniqueOrThrowArgs} args - Arguments to find a VerificationToken - * @example - * // Get one VerificationToken - * const verificationToken = await prisma.verificationToken.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationTokenClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first VerificationToken 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 {VerificationTokenFindFirstArgs} args - Arguments to find a VerificationToken - * @example - * // Get one VerificationToken - * const verificationToken = await prisma.verificationToken.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__VerificationTokenClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first VerificationToken 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 {VerificationTokenFindFirstOrThrowArgs} args - Arguments to find a VerificationToken - * @example - * // Get one VerificationToken - * const verificationToken = await prisma.verificationToken.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__VerificationTokenClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more VerificationTokens 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 {VerificationTokenFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all VerificationTokens - * const verificationTokens = await prisma.verificationToken.findMany() - * - * // Get first 10 VerificationTokens - * const verificationTokens = await prisma.verificationToken.findMany({ take: 10 }) - * - * // Only select the `identifier` - * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.findMany({ select: { identifier: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a VerificationToken. - * @param {VerificationTokenCreateArgs} args - Arguments to create a VerificationToken. - * @example - * // Create one VerificationToken - * const VerificationToken = await prisma.verificationToken.create({ - * data: { - * // ... data to create a VerificationToken - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationTokenClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many VerificationTokens. - * @param {VerificationTokenCreateManyArgs} args - Arguments to create many VerificationTokens. - * @example - * // Create many VerificationTokens - * const verificationToken = await prisma.verificationToken.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many VerificationTokens and returns the data saved in the database. - * @param {VerificationTokenCreateManyAndReturnArgs} args - Arguments to create many VerificationTokens. - * @example - * // Create many VerificationTokens - * const verificationToken = await prisma.verificationToken.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many VerificationTokens and only return the `identifier` - * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.createManyAndReturn({ - * select: { identifier: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a VerificationToken. - * @param {VerificationTokenDeleteArgs} args - Arguments to delete one VerificationToken. - * @example - * // Delete one VerificationToken - * const VerificationToken = await prisma.verificationToken.delete({ - * where: { - * // ... filter to delete one VerificationToken - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationTokenClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one VerificationToken. - * @param {VerificationTokenUpdateArgs} args - Arguments to update one VerificationToken. - * @example - * // Update one VerificationToken - * const verificationToken = await prisma.verificationToken.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationTokenClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more VerificationTokens. - * @param {VerificationTokenDeleteManyArgs} args - Arguments to filter VerificationTokens to delete. - * @example - * // Delete a few VerificationTokens - * const { count } = await prisma.verificationToken.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more VerificationTokens. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many VerificationTokens - * const verificationToken = await prisma.verificationToken.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more VerificationTokens and returns the data updated in the database. - * @param {VerificationTokenUpdateManyAndReturnArgs} args - Arguments to update many VerificationTokens. - * @example - * // Update many VerificationTokens - * const verificationToken = await prisma.verificationToken.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more VerificationTokens and only return the `identifier` - * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.updateManyAndReturn({ - * select: { identifier: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one VerificationToken. - * @param {VerificationTokenUpsertArgs} args - Arguments to update or create a VerificationToken. - * @example - * // Update or create a VerificationToken - * const verificationToken = await prisma.verificationToken.upsert({ - * create: { - * // ... data to create a VerificationToken - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the VerificationToken we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationTokenClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of VerificationTokens. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenCountArgs} args - Arguments to filter VerificationTokens to count. - * @example - * // Count the number of VerificationTokens - * const count = await prisma.verificationToken.count({ - * where: { - * // ... the filter for the VerificationTokens 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 VerificationToken. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenAggregateArgs} 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 VerificationToken. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenGroupByArgs} 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 VerificationTokenGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: VerificationTokenGroupByArgs['orderBy'] } - : { orderBy?: VerificationTokenGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetVerificationTokenGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the VerificationToken model - */ -readonly fields: VerificationTokenFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for VerificationToken. - * 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__VerificationTokenClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the VerificationToken model - */ -export interface VerificationTokenFieldRefs { - readonly identifier: Prisma.FieldRef<"VerificationToken", 'String'> - readonly token: Prisma.FieldRef<"VerificationToken", 'String'> - readonly expires: Prisma.FieldRef<"VerificationToken", 'DateTime'> -} - - -// Custom InputTypes -/** - * VerificationToken findUnique - */ -export type VerificationTokenFindUniqueArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * Filter, which VerificationToken to fetch. - */ - where: Prisma.VerificationTokenWhereUniqueInput -} - -/** - * VerificationToken findUniqueOrThrow - */ -export type VerificationTokenFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * Filter, which VerificationToken to fetch. - */ - where: Prisma.VerificationTokenWhereUniqueInput -} - -/** - * VerificationToken findFirst - */ -export type VerificationTokenFindFirstArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * Filter, which VerificationToken to fetch. - */ - where?: Prisma.VerificationTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of VerificationTokens to fetch. - */ - orderBy?: Prisma.VerificationTokenOrderByWithRelationInput | Prisma.VerificationTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for VerificationTokens. - */ - cursor?: Prisma.VerificationTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` VerificationTokens 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` VerificationTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of VerificationTokens. - */ - distinct?: Prisma.VerificationTokenScalarFieldEnum | Prisma.VerificationTokenScalarFieldEnum[] -} - -/** - * VerificationToken findFirstOrThrow - */ -export type VerificationTokenFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * Filter, which VerificationToken to fetch. - */ - where?: Prisma.VerificationTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of VerificationTokens to fetch. - */ - orderBy?: Prisma.VerificationTokenOrderByWithRelationInput | Prisma.VerificationTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for VerificationTokens. - */ - cursor?: Prisma.VerificationTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` VerificationTokens 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` VerificationTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of VerificationTokens. - */ - distinct?: Prisma.VerificationTokenScalarFieldEnum | Prisma.VerificationTokenScalarFieldEnum[] -} - -/** - * VerificationToken findMany - */ -export type VerificationTokenFindManyArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * Filter, which VerificationTokens to fetch. - */ - where?: Prisma.VerificationTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of VerificationTokens to fetch. - */ - orderBy?: Prisma.VerificationTokenOrderByWithRelationInput | Prisma.VerificationTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing VerificationTokens. - */ - cursor?: Prisma.VerificationTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` VerificationTokens 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` VerificationTokens. - */ - skip?: number - distinct?: Prisma.VerificationTokenScalarFieldEnum | Prisma.VerificationTokenScalarFieldEnum[] -} - -/** - * VerificationToken create - */ -export type VerificationTokenCreateArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * The data needed to create a VerificationToken. - */ - data: Prisma.XOR -} - -/** - * VerificationToken createMany - */ -export type VerificationTokenCreateManyArgs = { - /** - * The data used to create many VerificationTokens. - */ - data: Prisma.VerificationTokenCreateManyInput | Prisma.VerificationTokenCreateManyInput[] -} - -/** - * VerificationToken createManyAndReturn - */ -export type VerificationTokenCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelectCreateManyAndReturn | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * The data used to create many VerificationTokens. - */ - data: Prisma.VerificationTokenCreateManyInput | Prisma.VerificationTokenCreateManyInput[] -} - -/** - * VerificationToken update - */ -export type VerificationTokenUpdateArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * The data needed to update a VerificationToken. - */ - data: Prisma.XOR - /** - * Choose, which VerificationToken to update. - */ - where: Prisma.VerificationTokenWhereUniqueInput -} - -/** - * VerificationToken updateMany - */ -export type VerificationTokenUpdateManyArgs = { - /** - * The data used to update VerificationTokens. - */ - data: Prisma.XOR - /** - * Filter which VerificationTokens to update - */ - where?: Prisma.VerificationTokenWhereInput - /** - * Limit how many VerificationTokens to update. - */ - limit?: number -} - -/** - * VerificationToken updateManyAndReturn - */ -export type VerificationTokenUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * The data used to update VerificationTokens. - */ - data: Prisma.XOR - /** - * Filter which VerificationTokens to update - */ - where?: Prisma.VerificationTokenWhereInput - /** - * Limit how many VerificationTokens to update. - */ - limit?: number -} - -/** - * VerificationToken upsert - */ -export type VerificationTokenUpsertArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * The filter to search for the VerificationToken to update in case it exists. - */ - where: Prisma.VerificationTokenWhereUniqueInput - /** - * In case the VerificationToken found by the `where` argument doesn't exist, create a new VerificationToken with this data. - */ - create: Prisma.XOR - /** - * In case the VerificationToken was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * VerificationToken delete - */ -export type VerificationTokenDeleteArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * Filter which VerificationToken to delete. - */ - where: Prisma.VerificationTokenWhereUniqueInput -} - -/** - * VerificationToken deleteMany - */ -export type VerificationTokenDeleteManyArgs = { - /** - * Filter which VerificationTokens to delete - */ - where?: Prisma.VerificationTokenWhereInput - /** - * Limit how many VerificationTokens to delete. - */ - limit?: number -} - -/** - * VerificationToken without action - */ -export type VerificationTokenDefaultArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null -} diff --git a/backend/src/prisma.ts b/backend/src/prisma.ts index 0a0c073..901f3a0 100644 --- a/backend/src/prisma.ts +++ b/backend/src/prisma.ts @@ -1,12 +1,3 @@ -import { PrismaClient } from "./generated/prisma/client"; -import { PrismaLibSql } from "@prisma/adapter-libsql"; -import { createClient } from "@libsql/client"; +import { PrismaClient } from "@prisma/client"; -const libsql = createClient({ - url: process.env.DATABASE_URL || "file:./prisma/dev.db", -}); - -// eslint-disable-next-line @typescript-eslint/no-explicit-any -const adapter = new PrismaLibSql(libsql as any); - -export const prisma = new PrismaClient({ adapter }); +export const prisma = new PrismaClient(); diff --git a/bun.lock b/bun.lock index 5b3f0a7..d5f0733 100644 --- a/bun.lock +++ b/bun.lock @@ -30,8 +30,6 @@ "dependencies": { "@elysiajs/cors": "^1.0.0", "@elysiajs/eden": "^1.0.0", - "@libsql/client": "^0.17.0", - "@prisma/adapter-libsql": "^7.4.2", "@prisma/client": "^7.4.2", "better-auth": "^1.5.4", "dotenv": "^17.3.1", @@ -326,8 +324,6 @@ "@oven/bun-windows-x64-baseline": ["@oven/bun-windows-x64-baseline@1.3.10", "https://registry.npmmirror.com/@oven/bun-windows-x64-baseline/-/bun-windows-x64-baseline-1.3.10.tgz", { "os": "win32", "cpu": "x64" }, "sha512-gh3UAHbUdDUG6fhLc1Csa4IGdtghue6U8oAIXWnUqawp6lwb3gOCRvp25IUnLF5vUHtgfMxuEUYV7YA2WxVutw=="], - "@prisma/adapter-libsql": ["@prisma/adapter-libsql@7.4.2", "https://registry.npmmirror.com/@prisma/adapter-libsql/-/adapter-libsql-7.4.2.tgz", { "dependencies": { "@libsql/client": "^0.17.0", "@prisma/driver-adapter-utils": "7.4.2", "async-mutex": "0.5.0" } }, "sha512-H7B+5H1Y2tcbtQ+fPdTc6wmj3xbcJqh6F4wC3z1H8m+yjGT1PnG8Iw7WGKMCmRTn2b2S+E/xCEBia0YzLzncDQ=="], - "@prisma/client": ["@prisma/client@7.4.2", "https://registry.npmmirror.com/@prisma/client/-/client-7.4.2.tgz", { "dependencies": { "@prisma/client-runtime-utils": "7.4.2" }, "peerDependencies": { "prisma": "*", "typescript": ">=5.4.0" }, "optionalPeers": ["prisma", "typescript"] }, "sha512-ts2mu+cQHriAhSxngO3StcYubBGTWDtu/4juZhXCUKOwgh26l+s4KD3vT2kMUzFyrYnll9u/3qWrtzRv9CGWzA=="], "@prisma/client-runtime-utils": ["@prisma/client-runtime-utils@7.4.2", "https://registry.npmmirror.com/@prisma/client-runtime-utils/-/client-runtime-utils-7.4.2.tgz", {}, "sha512-cID+rzOEb38VyMsx5LwJMEY4NGIrWCNpKu/0ImbeooQ2Px7TI+kOt7cm0NelxUzF2V41UVVXAmYjANZQtCu1/Q=="], @@ -338,8 +334,6 @@ "@prisma/dev": ["@prisma/dev@0.20.0", "https://registry.npmmirror.com/@prisma/dev/-/dev-0.20.0.tgz", { "dependencies": { "@electric-sql/pglite": "0.3.15", "@electric-sql/pglite-socket": "0.0.20", "@electric-sql/pglite-tools": "0.2.20", "@hono/node-server": "1.19.9", "@mrleebo/prisma-ast": "0.13.1", "@prisma/get-platform": "7.2.0", "@prisma/query-plan-executor": "7.2.0", "foreground-child": "3.3.1", "get-port-please": "3.2.0", "hono": "4.11.4", "http-status-codes": "2.3.0", "pathe": "2.0.3", "proper-lockfile": "4.1.2", "remeda": "2.33.4", "std-env": "3.10.0", "valibot": "1.2.0", "zeptomatch": "2.1.0" } }, "sha512-ovlBYwWor0OzG+yH4J3Ot+AneD818BttLA+Ii7wjbcLHUrnC4tbUPVGyNd3c/+71KETPKZfjhkTSpdS15dmXNQ=="], - "@prisma/driver-adapter-utils": ["@prisma/driver-adapter-utils@7.4.2", "https://registry.npmmirror.com/@prisma/driver-adapter-utils/-/driver-adapter-utils-7.4.2.tgz", { "dependencies": { "@prisma/debug": "7.4.2" } }, "sha512-REdjFpT/ye9KdDs+CXAXPIbMQkVLhne9G5Pe97sNY4Ovx4r2DAbWM9hOFvvB1Oq8H8bOCdu0Ri3AoGALquQqVw=="], - "@prisma/engines": ["@prisma/engines@7.4.2", "https://registry.npmmirror.com/@prisma/engines/-/engines-7.4.2.tgz", { "dependencies": { "@prisma/debug": "7.4.2", "@prisma/engines-version": "7.5.0-10.94a226be1cf2967af2541cca5529f0f7ba866919", "@prisma/fetch-engine": "7.4.2", "@prisma/get-platform": "7.4.2" } }, "sha512-B+ZZhI4rXlzjVqRw/93AothEKOU5/x4oVyJFGo9RpHPnBwaPwk4Pi0Q4iGXipKxeXPs/dqljgNBjK0m8nocOJA=="], "@prisma/engines-version": ["@prisma/engines-version@7.5.0-10.94a226be1cf2967af2541cca5529f0f7ba866919", "https://registry.npmmirror.com/@prisma/engines-version/-/engines-version-7.5.0-10.94a226be1cf2967af2541cca5529f0f7ba866919.tgz", {}, "sha512-5FIKY3KoYQlBuZC2yc16EXfVRQ8HY+fLqgxkYfWCtKhRb3ajCRzP/rPeoSx11+NueJDANdh4hjY36mdmrTcGSg=="], @@ -774,8 +768,6 @@ "async-function": ["async-function@1.0.0", "https://registry.npmmirror.com/async-function/-/async-function-1.0.0.tgz", {}, "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA=="], - "async-mutex": ["async-mutex@0.5.0", "https://registry.npmmirror.com/async-mutex/-/async-mutex-0.5.0.tgz", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-1A94B18jkJ3DYq284ohPxoXbfTA5HsQ7/Mf4DEhcyLx3Bz27Rh59iScbB6EPiP+B+joue6YCxcMXSbFC1tZKwA=="], - "available-typed-arrays": ["available-typed-arrays@1.0.7", "https://registry.npmmirror.com/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", { "dependencies": { "possible-typed-array-names": "^1.0.0" } }, "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ=="], "aws-ssl-profiles": ["aws-ssl-profiles@1.1.2", "https://registry.npmmirror.com/aws-ssl-profiles/-/aws-ssl-profiles-1.1.2.tgz", {}, "sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g=="], @@ -878,7 +870,7 @@ "destr": ["destr@2.0.5", "https://registry.npmmirror.com/destr/-/destr-2.0.5.tgz", {}, "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA=="], - "detect-libc": ["detect-libc@2.0.2", "https://registry.npmmirror.com/detect-libc/-/detect-libc-2.0.2.tgz", {}, "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw=="], + "detect-libc": ["detect-libc@2.1.2", "https://registry.npmmirror.com/detect-libc/-/detect-libc-2.1.2.tgz", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="], "doctrine": ["doctrine@2.1.0", "https://registry.npmmirror.com/doctrine/-/doctrine-2.1.0.tgz", { "dependencies": { "esutils": "^2.0.2" } }, "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw=="], @@ -1918,7 +1910,7 @@ "fast-glob/glob-parent": ["glob-parent@5.1.2", "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="], - "lightningcss/detect-libc": ["detect-libc@2.1.2", "https://registry.npmmirror.com/detect-libc/-/detect-libc-2.1.2.tgz", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="], + "libsql/detect-libc": ["detect-libc@2.0.2", "https://registry.npmmirror.com/detect-libc/-/detect-libc-2.0.2.tgz", {}, "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw=="], "micromatch/picomatch": ["picomatch@2.3.1", "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz", {}, "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="], diff --git a/temp.md b/temp.md index d68e037..de709df 100644 --- a/temp.md +++ b/temp.md @@ -1 +1,3 @@ -https://v3.heroui.com/docs/react/components \ No newline at end of file +https://v3.heroui.com/docs/react/components + +prisma配置有问题,把之前的schema删了变成了sqlite,接下来修改